summaryrefslogtreecommitdiff
path: root/web.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-11-07 08:04:56 -0500
committerlolcat <will@lolcat.ca>2023-11-07 08:04:56 -0500
commit785452873f0ee0a27fc157b482b7551560f0282d (patch)
tree4c70e240031ed3868425ca683c83ebfd378a9159 /web.php
parent64b090ee058953aed2246967332c7f0b6623cd8f (diff)
fix typo
Diffstat (limited to 'web.php')
-rw-r--r--web.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/web.php b/web.php
index 05700b2..97905be 100644
--- a/web.php
+++ b/web.php
@@ -3,6 +3,8 @@
/*
Initialize random shit
*/
+include "data/config.php";
+
include "lib/frontend.php";
$frontend = new frontend();
@@ -28,20 +30,7 @@ try{
}catch(Exception $error){
- echo
- $frontend->drawerror(
- "Shit",
- 'This scraper returned an error:' .
- '<div class="code">' . htmlspecialchars($error->getMessage()) . '</div>' .
- 'Things you can try:' .
- '<ul>' .
- '<li>Use a different scraper</li>' .
- '<li>Remove keywords that could cause errors</li>' .
- '<li>Use another 4get instance</li>' .
- '</ul><br>' .
- 'If the error persists, please <a href="/about">contact the administrator</a>.'
- );
- die();
+ $frontend->drawscrapererror($error->getMessage(), $get, "web");
}
/*