-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_closed.php
More file actions
53 lines (48 loc) · 1.61 KB
/
index_closed.php
File metadata and controls
53 lines (48 loc) · 1.61 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- <html xmlns="http://www.w3.org/1999/xhtml" lang="ru-RU" xml:lang="ru-RU"> -->
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<html>
<head>
<title>admin_inside</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="static/css/bootstrap.min.css" type="text/css">
<script type="text/javascript" src="static/js/jquery.min.js"></script>
<script type="text/javascript" src="static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="static/js/application.js"></script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<span class="brand" href="#">admin_sys</span>
<ul class="nav">
<li><a href="index.php">Главная</a></li>
<li><a href="login.php">Авторизация</a></li>
<li class="active"><a href="">Админка</a></li>
</ul>
</div>
</div>
</div>
<br/><br/><br/>
<?php
session_start();
include ('static/db_connect.php');
if (isset($_SESSION['user_id']))
{
$query = "select * from `users`;";
$sql = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($sql))
{
echo $row[1]. "";
}
}
else
{
die('<h2 align=center>Error Database</h2><br/><p align=center><a href="login.php"><img src="static/img/error.jpg"></a></p>');
}
?>
</body>
</html>