]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - plugins/sql_auth/error.php
sql: Some further checking on sessions
[irc/unrealircd/unrealircd-webpanel.git] / plugins / sql_auth / error.php
1 <?php
2
3 require_once "../../common.php";
4 require_once "../../header.php";
5
6 if ($_GET['errno'] == 1)
7 {
8 Message::Fail("Looks like your SQL tables haven't been set up yet",
9 "SQL_Auth needs to create tables for users and permissions. Is that okay?<br>",
10 "<form method=\"post\" action=\"index.php\">
11 <button type=\"submit\" id=\"sql_setup\" name=\"sql_setup\" class=\"text-right btn btn-primary\" value=\"add_tables\">Yes, set up tables</button>
12 </form>");
13 }
14
15 else if (!$_GET['errno'])
16 {
17 echo "<h3>Uh oh! Looks like there was an error.</h3><h4>That's all we know.</h4>";
18 echo "Here's a cute chihuahua enjoying a chest rub to cheer you up about it<br>";
19 echo "<img width=\"250\" height=\"300\" src=\"https://i.ibb.co/WtvNbkC/20220731-160824.jpg\">";
20 }
21 ?>