From 4f7e9ff3d8ba670332ae08dff73023ddad173a2d Mon Sep 17 00:00:00 2001 From: ngn Date: Fri, 11 Jul 2025 18:55:46 +0300 Subject: [PATCH] get rid of old about and donate pages Signed-off-by: ngn --- src/about.php | 39 --------------------------------------- src/donate.php | 39 --------------------------------------- src/lib/frontend.php | 1 - 3 files changed, 79 deletions(-) delete mode 100644 src/about.php delete mode 100644 src/donate.php diff --git a/src/about.php b/src/about.php deleted file mode 100644 index b0bb65c..0000000 --- a/src/about.php +++ /dev/null @@ -1,39 +0,0 @@ -load( - "header_nofilters.html", - [ - "title" => "About", - "class" => " class=\"about\"" - ] - ); - -$left = - explode( - "\n", - file_get_contents("template/about.html") - ); - -$out = ""; - -foreach($left as $line){ - - $out .= trim($line); -} - -echo - $frontend->load( - "search.html", - [ - "timetaken" => null, - "class" => "", - "right-left" => "", - "right-right" => "", - "left" => $out - ] - ); diff --git a/src/donate.php b/src/donate.php deleted file mode 100644 index 1ae2cac..0000000 --- a/src/donate.php +++ /dev/null @@ -1,39 +0,0 @@ -load( - "header_nofilters.html", - [ - "title" => "Donate to the project", - "class" => " class=\"about\"" - ] - ); - -$left = - explode( - "\n", - file_get_contents("template/donate.html") - ); - -$out = ""; - -foreach($left as $line){ - - $out .= trim($line); -} - -echo - $frontend->load( - "search.html", - [ - "timetaken" => null, - "class" => "", - "right-left" => "", - "right-right" => "", - "left" => $out - ] - ); diff --git a/src/lib/frontend.php b/src/lib/frontend.php index 8ffb806..3726965 100644 --- a/src/lib/frontend.php +++ b/src/lib/frontend.php @@ -123,7 +123,6 @@ class frontend{ '
  • Remove keywords that could cause errors
  • ' . '
  • buildquery($get, false) . '">Try your search on another 4get instance
  • ' . '
    ' . - 'If the error persists, please contact the administrator.', $timetaken ); }