64 lines
2.0 KiB
PHP
64 lines
2.0 KiB
PHP
<?
|
|
session_start();
|
|
|
|
function er($e)
|
|
{
|
|
global $c;
|
|
die('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="ru"><TITLE>Ïðîèçîøëà îøèáêà</TITLE></HEAD><BODY text="#FFFFFF"><p><font color=black>Ïðîèçîøëà îøèáêà: <pre>'.$e.'</pre><b><p><a href="https://'.$c[0].'/">Íàçàä</b></a><HR><p align="right">(c) <a href="https://'.$c[0].'/">'.$c[1].'</a></p></body></html>');
|
|
}
|
|
|
|
function GetRealIp()
|
|
{
|
|
if(!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
|
$ip=$_SERVER['HTTP_CLIENT_IP'];
|
|
}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
|
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
|
}else{
|
|
$ip=$_SERVER['REMOTE_ADDR'];
|
|
}
|
|
return $ip;
|
|
}
|
|
|
|
define('IP',GetRealIp());
|
|
define('GAME',true);
|
|
|
|
include_once('_incl_data/__config.php');
|
|
include_once('_incl_data/class/__db_connect.php');
|
|
include_once('_incl_data/class/__user.php');
|
|
|
|
if(!isset($u->info['id']) || $u->info['ip'] != IP || $u->info['admin'] == 1) {
|
|
die('<meta http-equiv="refresh" content="0; URL=https://new-combats.com/">');
|
|
}
|
|
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
|
<title>Âèçóàëüíûé ðåäàêòîð Ëàáèðèíòîâ © new-combats.com</title>
|
|
|
|
<script type="text/javascript" src="js/jquery.js"></script>
|
|
<script type="text/javascript" src="js/jqueryrotate.js"></script>
|
|
<script type="text/javascript" src="js/jquery.zclip.js"></script>
|
|
<script type="text/javascript" src="js/jquery.cookie.js"></script>
|
|
<script type="text/javascript" src="js/title.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/clu0b.css" />
|
|
<link rel="stylesheet" type="text/css" href="css/windows.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div style="background:#CCCCCC;padding:10px;">
|
|
<span style="padding:5px; background:#999999;"><span style="color:#CCCCCC">#</span> <b>1</b></span>
|
|
<select name="select" id="select">
|
|
<option value="0">Âûáåðèòå íîìåð ïåùåðû</option>
|
|
<? $i = 0; while($i <= 100) { ?>
|
|
<option value="<?=$i?>"><?=$i?></option>
|
|
<? } ?>
|
|
</select>
|
|
</div>
|
|
</body>
|
|
</html>
|