2022-06-06 21:30:34 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
2022-08-25 11:23:36 +00:00
|
|
|
|
function getIP()
|
|
|
|
|
{
|
|
|
|
|
return isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-08-25 11:23:36 +00:00
|
|
|
|
if (!isset($_GET['tests']) && getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP(
|
|
|
|
|
) != '51.89.6.100') {
|
|
|
|
|
exit(getIP() . '<br>' . $_SERVER['SERVER_ADDR']);
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-08-25 11:23:36 +00:00
|
|
|
|
const GAME = true;
|
|
|
|
|
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
2022-06-06 21:30:34 +00:00
|
|
|
|
include('_incl_data/class/__db_connect.php');
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD>) <20><><EFBFBD> 8-11 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2022-08-25 11:23:36 +00:00
|
|
|
|
$inc = $pdo->prepare(
|
|
|
|
|
'insert into zayvki (`comment`,`arand`,`noatack`,`city`,`creator`,`type`,`time_start`,`timeout`,`min_lvl_1`,`min_lvl_2`,`max_lvl_1`,`max_lvl_2`,`noinc`,`razdel`,`time`,`fastfight`,`priz`,`maxplayers`,`tm1max`,`tm2max`) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,unix_timestamp(),?,?,?,?,?)'
|
|
|
|
|
)->execute(
|
|
|
|
|
[
|
|
|
|
|
"<i style='color: green;'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>! <b><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></i>",
|
|
|
|
|
1, 1, 'capitalcity', 0, 33, 300, 180, 8, 8, 12, 12, 1, 5, 1, 1, 40, 0, 0,
|
|
|
|
|
]
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$pdo->prepare('insert into chat (`text`,`type`,`new`,`time`) values (?,?,?,unix_timestamp())')
|
|
|
|
|
->execute(
|
|
|
|
|
["<span style='color: red'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!!!</span> <span style='color:#cb0000'><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.</span>", 6, 1,]
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
echo $inc ? 'true' : 'false';
|