addBreadCrumb(['link' => ADMIN.'robots.php'.fusion_get_aidlink(), 'title' => $locale['ROBOT_400']]); function write_Default() { $robots_content = "User-agent: *\n"; $robots_content .= "Disallow: /config.php\n"; $robots_content .= "Disallow: /administration/\n"; $robots_content .= "Disallow: /includes/\n"; $robots_content .= "Disallow: /locale/\n"; $robots_content .= "Disallow: /themes/\n"; $robots_content .= "Disallow: /print.php\n"; return $robots_content; } $file = BASEDIR."robots.txt"; if (isset($_POST['save_robots'])) { $robots_content = form_sanitizer($_POST['robots_content'], '', 'robots_content'); if (!preg_check("/^[-0-9A-Z._\*\:\.\/@\s]+$/i", $robots_content)) { \defender::stop(); addNotice("danger", $locale['ROBOT_417']); } if (\defender::safe()) { $message = !file_exists($file) ? $locale['ROBOT_416'] : $locale['ROBOT_412']; write_file($file, $robots_content); addNotice("success", $message); redirect(FUSION_REQUEST); } } if (isset($_POST['set_default'])) { if (!is_writable($file)) { \defender::stop(); addNotice("danger", $locale['ROBOT_414']); } if (\defender::safe() && !defined('FUSION_NULL')) { write_file($file, write_Default()); addNotice("success", $locale['ROBOT_412']); redirect(FUSION_REQUEST); } } opentable($locale['ROBOT_400']); if (!file_exists($file)) { echo "