]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - plugins/sql_auth/error.php
for ?redirect=xx in login, only allow local URLs
[irc/unrealircd/unrealircd-webpanel.git] / plugins / sql_auth / error.php
CommitLineData
ea27475b
VP
1<?php
2
3require_once "../../common.php";
4require_once "../../header.php";
5
ce9cf366 6if ($_GET['errno'] == 1)
ea27475b
VP
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>");
ce9cf366
VP
13}
14
15else 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\">";
ea27475b
VP
20}
21?>