-
Notifications
You must be signed in to change notification settings - Fork 0
/
ad_body.php
executable file
·128 lines (121 loc) · 4.92 KB
/
ad_body.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
if ($main_var != 'parol') exit; // защита от запуска этого файла отдельно
//header("Access-Control-Allow-Origin: *");
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<link type="text/css" href="css/jquery-ui.css" rel="stylesheet"/>
<link href="js/validetta/validetta.css" rel="stylesheet" type="text/css">
<!-- include jquery libs -->
<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="./js/jquery.form.js"></script>
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/validetta/validetta.js"></script>
<script type="text/javascript" src="js/validetta/validettaLang-ru-RU.js"></script>
<!-- fancytree -->
<link type="text/css" href="fancytree/skin-win8-n/ui.fancytree.css" rel="stylesheet"/>
<script src="fancytree/jquery.fancytree-all.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.ui-contextmenu.js"></script>
<!-- /fancytree -->
<link type="text/css" href="css/style.css" rel="stylesheet"/>
<script type="text/javascript" src="js/jscript.js"></script>
<title>AD FrontEnd on <?php echo "$site_name" ?></title>
</head>
<body>
<div class="top_div">
<div class="header-text" onclick="window.location.reload();">
Web-AD
</div>
<?php if ($_SESSION['admin'] == true) { ?>
<!-- Top buttons begin -->
<div title="Создать нового пользователя" onclick="create_user()" class="top_btn">+</div>
<div title="Поиск пользователя" onclick="find_user()" class="top_btn">F</div>
<div title="Найти заблокированых пользователей" onclick="get_locked()" class="top_btn">FL</div>
<!-- Top buttons end -->
<div title="Выход" class="adm_panel" onclick="exit()">
<?php echo $_SESSION['cur_username'] ?>
</div>
<?php } ?>
</div>
<?php
// Проверяем, произведен ли вход в систему
if ($_SESSION['admin'] === true) {
?>
<div class="middle_div">
<div id="left_div">
<div id="tree" style="height: 100%;overflow: auto"></div>
</div>
<div id="right_div" style="height: 100%; overflow: auto">
<table id="tree_objects">
<colgroup>
<col style="width:26px; max-width: 26px;">
<col>
<col width="150px">
</colgroup>
<thead>
<tr>
<th style="width: 26px; max-width: 26px;"></th>
<th>Имя</th>
<th width="150px">Тип</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="bottom_div">
<div class="page_info">
<?php
$E_TIME = round(((time() + microtime()) - $S_TIME), 8); //Отсекаю время
echo "server: $E_TIME sec, ";
?>
© Created by <a style="text-decoration:none" href="mailto:[email protected]">Veron</a>, 2013-2015
</div>
</div>
<?php
} else {?>
<script>
document.body.style.background = "#39F";
</script>
<div class="auth_div">
<form id="authf" action="./" method="post" name="authorization">
<div class="inputu">
<div class="ui-state-highlight">
<div class="ui-icon ui-icon-person"></div>
</div>
<input type="text" autofocus placeholder="Логин (доменный)" name="login" tabindex="1"/>
<select name="dc" id="dc">
<?php
foreach ($dcs as $host) {
echo "<option value='".$host."'>".$host."</option>";
}
?>
</select>
</div>
<div class="inputp">
<div class="ui-state-highlight">
<div class="ui-icon ui-icon-key"></div>
</div>
<input type="password" placeholder="Пароль" name="pass" tabindex="2"/>
<input style="position:absolute; width:0; height:0" type="submit" />
<div id="auths"></div>
</div>
<input type="hidden" name="act" value="auth"/>
</form>
</div>
<?php }
if (isset($error_text) && $error_text != "") {
?>
<div class="error_div"><?php echo $error_text; ?></div>
<?php
}
?>
<div id="dialog_div"></div>
</body></html>