forked from lakshmaji/iadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·111 lines (80 loc) · 3.1 KB
/
index.php
File metadata and controls
executable file
·111 lines (80 loc) · 3.1 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
require('login/session.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>i ADMIN</title>
<meta name="robots" content="noindex, nofollow">
<meta name="author" content="lakshmaji"/>
<link rel="publisher" href="http://lakshmaji.tk">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style>
html,body{width:100%;height:100%;}
.fix_nav{margin-top:10%;}
.win_by_lakshmaji{padding:3em 0em;text-align: center;margin:1.5em 1em;text-shadow:5px 5px 10px black;font-size:18px;}
.wrapper{line-height:12;}
a:hover{text-decoration:none;}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" style="background:#eeefc6">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<span class="glyphicon glyphicon-leaf" style="font-size:2.5em"></span>
</a>
<a class="navbar-brand" href="#">
<span><i style="font-size:8px;letter-spacing:5px">@lakshmaji ananth's</i><br> i ADMINSTRATOR</span>
</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li ><p style="margin-top:10%;">ADMINSTARTOR<br><i style="font-size:8px;letter-spacing:5px">lakshmaji inno's</i></p></li>
<li><a href="login/logout.php"><span class="glyphicon glyphicon-off" style="font-size:2.5em"></span></a></li>
</ul>
</div>
</div>
</nav>
<div class="fix_nav">
</div>
<div class="container">
<div class="row ">
<?php
include('connection.php');
$connection = new createConnection(); //created a new object
$connection->connectToDatabase();
$connection->selectDatabase();
$result = mysql_query('SHOW TABLES');
if($result)
{
$break_line=0;
while($table = mysql_fetch_array($result)) // go through each row that was returned in $result
{
echo "<div class='col-md-4 win_by_lakshmaji' style='background-color:rgba(".rand(0,255).",".rand(0,255).",".rand(0,255).",1);'><a href='choice.php?dummy=".base64_encode($table[0])."' class='text-uppercase win_by_lakshmaji' style='color:#fff;'>".$table[0]."</a></div>";
$break_line++;
if($break_line==4 || $break_line==8 || $break_line==12)
{
echo "</div><div class='row'>";
}
}
}
else
{
echo 'Error displaying tables';
}
?>
</div>
</div>
</body>
</html>