'valid.html' => $this->make_hook('valid', AUTH_PUBLIC),
'favicon.ico' => $this->make_hook('favicon', AUTH_PUBLIC),
+ 'robots.txt' => $this->make_hook('robotstxt', AUTH_PUBLIC, 'user', NO_HTTPS),
);
}
exit;
}
+ function handler_robotstxt(&$page)
+ {
+ global $globals;
+ if (!$globals->core->restricted_platal) {
+ return PL_NOT_FOUND;
+ }
+
+ header('Content-Type: text/plain');
+ echo "User-agent: *\n";
+ echo "Disallow: /\n";
+ exit;
+ }
+
function handler_purge_cache(&$page)
{
require_once 'wiki.inc.php';
$mymail->setTxtBody($body);
$mymail->send();
} elseif (Env::has('send')) {
- $page->trig("Merci de remplir une explication du problème rencontré");
+ $page->trigError("Merci de remplir une explication du problème rencontré");
}
}