-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauthorization.php
38 lines (37 loc) · 1.4 KB
/
authorization.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
include './auth.php';
$re = mysqli_query($dbhandle, "select * from user where username = '".$_SESSION['username']."' AND password = '".$_SESSION['password']."';" );
echo mysqli_error($dbhandle);
if(mysqli_num_rows($re) < 0)
{
echo "<!DOCTYPE html>\n";
echo "<html lang=\"en\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n";
echo "\n";
echo " <!-- Bootstrap core CSS -->\n";
echo " <link href=\"css/bootstrap.min.css\" rel=\"stylesheet\">\n";
echo " <!-- Custom styles for this template -->\n";
echo " <link href=\"css/dashboard.css\" rel=\"stylesheet\">\n";
echo " <link href=\"css/style.css\" rel=\"stylesheet\">\n";
echo " <link rel=\"stylesheet\" href=\"css/fontello.css\">\n";
echo " <link rel=\"stylesheet\" href=\"css/animation.css\"><!--[if IE 7]><link rel=\"stylesheet\" href=\"css/fontello-ie7.css\"><![endif]-->\n";
echo " \n";
echo "<body>\n";
echo "<div class=\"container\">\n";
echo " <div class=\"row\">\n";
echo " <div class=\"col-xs-3\">\n";
echo " </div>\n";
echo " <div class=\"col-xs-6 \">\n";
echo " <h4> Wrong Username. Redirecting to login page...<i class=\"icon-spin4 animate-spin\" style=\"font-size:28px;\"></i></h4>\n";
echo " \n";
echo " </div>\n";
echo " <div class=\"col-xs-3\">\n";
echo " </div>\n";
echo " </div>\n";
echo "</div>\n";
echo "\n";
echo "\n";
echo "</body></html>";
session_destroy();
header('Refresh: 2;url=index.htm');
}
?>