diff --git a/_compile.php b/_compile.php index 18eb1d8e..f0ef9344 100644 --- a/_compile.php +++ b/_compile.php @@ -64,7 +64,7 @@ if ($_COOKIE["lang"]) { } $file = str_replace("favicon.ico", '', $file); $file = str_replace("arrow.gif", '" . preg_replace("~\\\\?.*~", "", $_SERVER["REQUEST_URI"]) . "?gif=arrow', $file); -$file = str_replace('session_start();', "if (isset(\$_GET['favicon'])) {\n\theader('Content-Type: image/x-icon');\n\techo base64_decode('" . base64_encode(file_get_contents("favicon.ico")) . "');\n\texit;\n} elseif (isset(\$_GET['gif'])) {\n\theader('Content-Type: image/gif');\n\techo base64_decode('" . base64_encode(file_get_contents("arrow.gif")) . "');\n\texit;\n}\n\nsession_start();", $file); +$file = str_replace('error_reporting(E_ALL & ~E_NOTICE);', "error_reporting(E_ALL & ~E_NOTICE);\nif (isset(\$_GET['favicon'])) {\n\theader('Content-Type: image/x-icon');\n\techo base64_decode('" . base64_encode(file_get_contents("favicon.ico")) . "');\n\texit;\n} elseif (isset(\$_GET['gif'])) {\n\theader('Content-Type: image/gif');\n\techo base64_decode('" . base64_encode(file_get_contents("arrow.gif")) . "');\n\texit;\n}", $file); $file = str_replace('', "", $file); file_put_contents($filename, $file); echo "$filename created.\n"; diff --git a/index.php b/index.php index bd2a8e92..95c64cc8 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,10 @@