]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - plugins/sql_auth/error.php
Add sql::table_prefix to first setup screen
[irc/unrealircd/unrealircd-webpanel.git] / plugins / sql_auth / error.php
index f006048f0af09ae831f8e2bc0c21881fadea2518..e662ab107ac65347f0f7e567ed5d96c7d8894a6b 100644 (file)
@@ -3,19 +3,19 @@
 require_once "../../common.php";
 require_once "../../header.php";
 
-if (!isset($_GET) || !isset($_GET['errno']))
-{
-    Message::Fail("Uh oh! Something went wrong. We don't know anything else.");
-}
-elseif ($_GET['errno'] == 1)
+if ($_GET['errno'] == 1)
 {
     Message::Fail("Looks like your SQL tables haven't been set up yet", 
                     "SQL_Auth needs to create tables for users and permissions. Is that okay?<br>",
                     "<form method=\"post\" action=\"index.php\">
                     <button type=\"submit\" id=\"sql_setup\" name=\"sql_setup\" class=\"text-right btn btn-primary\" value=\"add_tables\">Yes, set up tables</button>
                     </form>");
-    ?>
-    
-    <?php
+}
+
+else if (!$_GET['errno'])
+{
+    echo "<h3>Uh oh! Looks like there was an error.</h3><h4>That's all we know.</h4>";
+    echo "Here's a cute chihuahua enjoying a chest rub to cheer you up about it<br>";
+    echo "<img width=\"250\" height=\"300\" src=\"https://i.ibb.co/WtvNbkC/20220731-160824.jpg\">";
 }
 ?>
\ No newline at end of file