Clean up old links
We have moved everything to skirogaining.krk-litvinov.cz
This commit is contained in:
10
load.lib.php
10
load.lib.php
@@ -20,7 +20,7 @@ function readPage(string $page): bool {
|
||||
$log404 = fopen('404.log', 'a+');
|
||||
if (!preg_match('(' . preg_quote($page) . '\n)', file_get_contents('404.log'))) {
|
||||
fwrite($log404, $page . "\n");
|
||||
mail($mainMail, "Stranka nenalezena http://skirogaining.tojnar.cz/$page", rplc('Prichozi z: %comefrom%'));
|
||||
mail($mainMail, "Stranka nenalezena https://skirogaining.krk-litvinov.cz/$page", rplc('Prichozi z: %comefrom%'));
|
||||
}
|
||||
fclose($log404);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ function readPage(string $page): bool {
|
||||
$logrecursive = fopen('syntax.log', 'a+');
|
||||
if (!preg_match('(' . preg_quote($realPage) . '\n)', file_get_contents('recursive.log'))) {
|
||||
fwrite($logrecursive, $realPage . "\n");
|
||||
mail($mainMail, "Presmerovaci smycka http://skirogaining.tojnar.cz/$realPage", 'Stranka se presmerovava sama na sebe');
|
||||
mail($mainMail, "Presmerovaci smycka https://skirogaining.krk-litvinov.cz/$realPage", 'Stranka se presmerovava sama na sebe');
|
||||
}
|
||||
fclose($logrecursive);
|
||||
readPage('error/recursive');
|
||||
@@ -137,7 +137,7 @@ function readPage(string $page): bool {
|
||||
$logsyntax = fopen('syntax.log', 'a+');
|
||||
if (!preg_match('(' . preg_quote($realPage) . '\n)', file_get_contents('syntax.log'))) {
|
||||
fwrite($logsyntax, $realPage . "\n");
|
||||
mail($mainMail, "Chyba syntaxe http://skirogaining.tojnar.cz/$realPage", 'Nerozpoznan titulek a clanek');
|
||||
mail($mainMail, "Chyba syntaxe https://skirogaining.krk-litvinov.cz/$realPage", 'Nerozpoznan titulek a clanek');
|
||||
}
|
||||
fclose($logsyntax);
|
||||
return false;
|
||||
@@ -148,7 +148,7 @@ function readPage(string $page): bool {
|
||||
$logsyntax = fopen('syntax.log', 'a+');
|
||||
if (!preg_match('(' . preg_quote($realPage) . '\n)', file_get_contents('syntax.log'))) {
|
||||
fwrite($logsyntax, $realPage . "\n");
|
||||
mail($mainMail, "Chyba syntaxe http://skirogaining.tojnar.cz/$realPage", 'Nerozpoznan titulek');
|
||||
mail($mainMail, "Chyba syntaxe https://skirogaining.krk-litvinov.cz/$realPage", 'Nerozpoznan titulek');
|
||||
}
|
||||
fclose($logsyntax);
|
||||
return false;
|
||||
@@ -159,7 +159,7 @@ function readPage(string $page): bool {
|
||||
$logsyntax = fopen('syntax.log', 'a+');
|
||||
if (!preg_match('(' . preg_quote($realPage) . '\n)', file_get_contents('syntax.log'))) {
|
||||
fwrite($logsyntax, $realPage . "\n");
|
||||
mail($mainMail, "Chyba syntaxe http://skirogaining.tojnar.cz/$realPage", 'Nerozpoznan clanek');
|
||||
mail($mainMail, "Chyba syntaxe https://skirogaining.krk-litvinov.cz/$realPage", 'Nerozpoznan clanek');
|
||||
}
|
||||
fclose($logsyntax);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user