/
administrate_users.php
53 lines (47 loc) · 1.45 KB
/
administrate_users.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
include_once './business_logic/functions/database_logic.php';
include_once './business_logic/functions/menu_logic.php';
session_start();
if (!isset($_SESSION['nick']))
header('Location: main.php');
//$ip = get_client_ip();
$nick = $_SESSION['nick'];
$role = getRole($nick);
//$email = $_SESSION['email'];
if($role!="admin"){
header('Location: main.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bigou - Mis Álbumes</title>
<link href="style/bigou_style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="./business_logic/ajax_bl.js"></script>
<script language="JavaScript" type="text/javascript" src="./business_logic/lib/jquery-1.11.3.min.js"></script>
<script>
var role = "<?php echo $role; ?>";
if(role=="admin"){
getUnacceptedUsers("no");
getDropRequested("yes");
}
</script>
</head>
<body>
<div class="Canvas">
<?php echo menuHeader(true, $nick, $role); ?>
<br/><br/>
<h>Aceptar Usuarios:</h>
<hr/>
<br/><br/>
<div id="display" class="Display"></div>
<br/><br/>
<h>Dar de baja Usuarios:</h>
<hr/>
<br/><br/>
<div id="display2" class="Display"></div>
<br/><br/>
</div>
</body>
</html>