game/cron_autozv.php

40 lines
1.3 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?php
die();
function getIP() {
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
return $_SERVER['REMOTE_ADDR'];
}
if(!isset($_GET['test'])) {
if( $_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR'] && $_SERVER['HTTP_CF_CONNECTING_IP'] != '127.0.0.1' ) { die('Hello pussy!'); }
if(getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP() != '' && getIP() != '5.187.7.71') {
die(getIP().'<br>'.$_SERVER['SERVER_ADDR']);
}
}
define('GAME',true);
setlocale(LC_CTYPE ,"ru_RU.CP1251");
include('_incl_data/__config.php');
include('_incl_data/class/__db_connect.php');
include('_incl_data/class/__user.php');
include('_incl_data/class/__magic.php');
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 2-3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$inc = mysql_query('INSERT INTO `zayvki` (
`comment`,`noatack`,`city`,`creator`,`type`,`time_start`,`timeout`,`min_lvl_1`,`min_lvl_2`,`max_lvl_1`,`max_lvl_2`,`noinc`,`razdel`,`time`,`fastfight`,`maxplayers`
) VALUES
( "<i><font color=green><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! </b>(<28><><EFBFBD> <20><><EFBFBD>)<b></font></i>","1","capitalcity","0","51","300","120","8","8","8","8","1","5","'.time().'","0","30" ),
( "<i><font color=green><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! </b>(<28><><EFBFBD> <20><><EFBFBD>)<b></font></i>","1","capitalcity","0","51","300","120","8","8","21","21","1","5","'.time().'","0","30" )
');
if($inc) {
echo 'true';
}else{
echo 'false';
}
?>