2023-03-31 18:42:06 +00:00
|
|
|
|
<?php
|
2022-12-19 20:22:19 +00:00
|
|
|
|
|
|
|
|
|
$sd4 = 'admin';
|
|
|
|
|
$psw = md5('tip:'.$_SERVER['REMOTE_ADDR'].'t'.date('dh',time()).'t'.$sd4);
|
|
|
|
|
$psw = $psw[7].$psw[3].$psw[0].$psw[1].$psw[5];
|
|
|
|
|
$auth = false;
|
|
|
|
|
|
|
|
|
|
$_POST['psw'] = $psw;
|
|
|
|
|
|
|
|
|
|
if(isset($_COOKIE['pass3']) && $_COOKIE['pass3']==$psw){
|
|
|
|
|
$auth = true;
|
|
|
|
|
}
|
|
|
|
|
if(isset($_GET['code'])){
|
|
|
|
|
$tpsw = md5('tip:'.$_SERVER['REMOTE_ADDR'].'t'.$_GET['code'].'t'.$sd4);
|
|
|
|
|
$tpsw = $tpsw[7].$tpsw[3].$tpsw[0].$tpsw[1].$tpsw[5];
|
|
|
|
|
die($tpsw);
|
|
|
|
|
}elseif(isset($_POST['psw'])){
|
|
|
|
|
if($_POST['psw']==$psw) {
|
|
|
|
|
setcookie('pass3',$_POST['psw'],time()+36000);
|
|
|
|
|
$_COOKIE['pass3'] = $_POST['psw'];
|
|
|
|
|
$auth = true;
|
|
|
|
|
}
|
|
|
|
|
}elseif(isset($_GET['exit'])){
|
|
|
|
|
if($_COOKIE['pass3']==$psw){
|
|
|
|
|
setcookie('pass3',false,time()-3600);
|
|
|
|
|
unset($_COOKIE['pass3']);
|
|
|
|
|
$auth = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
include_once('../_incl_data/__config.php');
|
|
|
|
|
define('GAME',true);
|
|
|
|
|
include_once('../_incl_data/class/__db_connect.php');
|
|
|
|
|
include_once('../_incl_data/class/__user.php');
|
|
|
|
|
if($u->info['admin']=0){
|
|
|
|
|
die(':KING:');
|
|
|
|
|
}
|
|
|
|
|
?><!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2023-01-10 17:26:14 +00:00
|
|
|
|
|
2022-12-19 20:22:19 +00:00
|
|
|
|
<meta http-equiv=Cache-Control Content=no-cache>
|
|
|
|
|
<meta http-equiv=PRAGMA content=NO-CACHE>
|
|
|
|
|
<meta http-equiv=Expires Content=0>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<title>Центр управления "Adminion"</title>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
<link href="https://<?=$c['img']?>/css/main.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<style>
|
|
|
|
|
.tblbr2 {
|
|
|
|
|
border-left:1px solid #AEAFAE;
|
|
|
|
|
border-top:1px solid #AEAFAE;
|
|
|
|
|
border-bottom:1px solid #EEEFEE;
|
|
|
|
|
border-right:1px solid #EEEFEE;
|
|
|
|
|
}
|
|
|
|
|
.tblbr {
|
|
|
|
|
border-left:1px solid #EEEFEE;
|
|
|
|
|
border-top:1px solid #EEEFEE;
|
|
|
|
|
border-bottom:1px solid #AEAFAE;
|
|
|
|
|
border-right:1px solid #AEAFAE;
|
|
|
|
|
}
|
2023-01-10 16:29:32 +00:00
|
|
|
|
.стиль1 {border-left: 1px solid #AEAFAE; border-top: 1px solid #AEAFAE; border-bottom: 1px solid #EEEFEE; border-right: 1px solid #EEEFEE; font-size: 12px; }
|
|
|
|
|
.стиль2 {
|
2022-12-19 20:22:19 +00:00
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #999999;
|
|
|
|
|
}
|
2023-01-10 16:29:32 +00:00
|
|
|
|
.стиль5 {font-size: 12px}
|
2022-12-19 20:22:19 +00:00
|
|
|
|
.test a {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body style="padding-top:0px; margin-top:2px; background-color:#dedfde;">
|
|
|
|
|
<table class="tblbr" width="100%" border="0" cellspacing="0" cellpadding="5">
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td class="стиль1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
2022-12-19 20:22:19 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<td>Adminion v0.0.0
|
2023-03-31 16:54:33 +00:00
|
|
|
|
<?php if($auth==true){
|
2022-12-19 20:22:19 +00:00
|
|
|
|
$la = sys_getloadavg();
|
|
|
|
|
$la[0]=$la[0]/4;
|
|
|
|
|
$la[1]=$la[1]/4;
|
|
|
|
|
$la[2]=$la[2]/4;
|
|
|
|
|
?>
|
2023-03-31 16:54:33 +00:00
|
|
|
|
/ Время сервера: <?=date('H:i')?> ( <?=time()?> ) / <?php
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo "Нагрузка: ".round($la[0]*100,2)."% ";
|
2022-12-19 20:22:19 +00:00
|
|
|
|
if ($la[1] < 0.16) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo "<font color=green>низкая</font>";
|
2022-12-19 20:22:19 +00:00
|
|
|
|
} elseif ($la[1] < 0.25) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo "<font color=orange>средняя</font>";
|
2022-12-19 20:22:19 +00:00
|
|
|
|
} elseif ($la[1] > 0.25) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo "<font color=red>высокая</font>";
|
2022-12-19 20:22:19 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|
2023-03-31 16:54:33 +00:00
|
|
|
|
<?php }
|
2022-12-19 20:22:19 +00:00
|
|
|
|
$online = 0;
|
|
|
|
|
$sp = mysql_query('SELECT `id`,`room`,`city` FROM `users` WHERE `online` > ('.time().'-600)');
|
|
|
|
|
while($pl = mysql_fetch_array($sp))
|
|
|
|
|
{
|
|
|
|
|
$online++;
|
|
|
|
|
}
|
2023-01-10 16:29:32 +00:00
|
|
|
|
?> / Онлайн: <?=$online?> / Нагрузка USI: <?=round((round($la[2]*100,2)/$online),2)?>%</td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
<td> </td>
|
2023-03-31 16:54:33 +00:00
|
|
|
|
<td><?php if($auth==true){ ?><div align="right"><a href="../adminion/?exit=<?=$code?>">Выйти</a></div><?php } ?></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top">
|
|
|
|
|
<div align="center">
|
2023-03-31 18:42:06 +00:00
|
|
|
|
<?php
|
2022-12-19 20:22:19 +00:00
|
|
|
|
if(!isset($_COOKIE['pass3']) || $_COOKIE['pass3']!=$psw){
|
|
|
|
|
?>
|
|
|
|
|
<form action="../adminion/index.php" method="post"><center><br><br>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<span class="стиль5"><br>
|
|
|
|
|
Для входа в панель требуется пароль</span>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
<hr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<span class="стиль5">Введите пароль:
|
2022-12-19 20:22:19 +00:00
|
|
|
|
<input value="" name="psw" type="password">
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<input type="submit" value="ок" />
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</span>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2023-03-31 18:42:06 +00:00
|
|
|
|
<?php
|
2022-12-19 20:22:19 +00:00
|
|
|
|
}else{
|
|
|
|
|
?>
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="200" height="18" valign="top"><table class="test" width="100%" border="0" align="left" cellpadding="2" cellspacing="0">
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#C0C2C0"><div align="left" class="tblbr"><strong style="margin-left:10px;">Общие настройки</strong></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Настройка сервера</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Настройки модулей</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#C0C2C0"><div align="left" class="tblbr"><strong style="margin-left:10px;">Персонажи</strong></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Поиск персонажей</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Работа с персонажем</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Работа с ботом</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#C0C2C0"><div align="left" class="tblbr"><strong style="margin-left:10px;">Предметы</strong></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Поиск предмета</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Работа с предметом</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Предметы у персонажей</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#C0C2C0"><div align="left" class="tblbr"><strong style="margin-left:10px;">Локации</strong></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Поиск локации</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Работа с локацией</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Добавить локацию</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#C0C2C0"><div align="left" class="tblbr"><strong style="margin-left:10px;">Действия</strong></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Проверить переводы</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Проверить действия</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Проверить чат</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#C0C2C0"><div align="left" class="tblbr"><strong style="margin-left:10px;">Поединки</strong></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Поиск поединка</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Настройки баланса</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#C0C2C0"><div align="left" class="tblbr"><strong style="margin-left:10px;">Пещеры</strong></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="../adminion/?mod=dungeon_list">Список пещер</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="../adminion/?mod=dungeon&r=1">Редактор лабиринтов</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="../adminion/?mod=dungeon_bots">Редактор ботов</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="../adminion/?mod=dungeon_editor">Редактор пещер</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="../adminion/?mod=dobj&r=1">Работа с обьектами</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Создать пещеру</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Работа с квестами</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td><div align="left"><a href="#">Создать квест</a></div></td>
|
2022-12-19 20:22:19 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
<td valign="top" style="padding:10px;">
|
2023-03-31 18:42:06 +00:00
|
|
|
|
<?php
|
2022-12-19 20:22:19 +00:00
|
|
|
|
if(isset($_GET['mod'])){
|
2023-01-10 17:26:14 +00:00
|
|
|
|
if(file_exists('../adminion/mod/'.htmlspecialchars($_GET['mod'],NULL).'.php')){
|
|
|
|
|
include('../adminion/mod/'.htmlspecialchars($_GET['mod'],NULL).'.php');
|
2022-12-19 20:22:19 +00:00
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<center>У вас нет доступа к данному разделу</center>';
|
2022-12-19 20:22:19 +00:00
|
|
|
|
}
|
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
echo '<center>Выберите раздел</center>';
|
2022-12-19 20:22:19 +00:00
|
|
|
|
}
|
|
|
|
|
?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2023-03-31 18:42:06 +00:00
|
|
|
|
<?php
|
2022-12-19 20:22:19 +00:00
|
|
|
|
}
|
|
|
|
|
?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|