]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - plugins/sql_auth/error.php
Add the start of the SQL_Auth plugin
[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 (!isset($_GET) || !isset($_GET['errno']))
7 {
8 Message::Fail("Uh oh! Something went wrong. We don't know anything else.");
9 }
10 elseif ($_GET['errno'] == 1)
11 {
12 Message::Fail("Looks like your SQL tables haven't been set up yet",
13 "SQL_Auth needs to create tables for users and permissions. Is that okay?<br>",
14 "<form method=\"post\" action=\"index.php\">
15 <button type=\"submit\" id=\"sql_setup\" name=\"sql_setup\" class=\"text-right btn btn-primary\" value=\"add_tables\">Yes, set up tables</button>
16 </form>");
17 ?>
18
19 <?php
20 }
21 ?>