* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
-
class RobotstxtAction extends Action
{
/**
*
* @return void
*/
-
function handle($args)
{
if (Event::handle('StartRobotsTxt', array($this))) {
if (common_config('site', 'private')) {
print "Disallow: /\n";
-
} else {
-
$disallow = common_config('robotstxt', 'disallow');
foreach ($disallow as $dir) {
*
* @return boolean is read only action?
*/
-
function isReadOnly($args)
{
return true;