Дополнительный файл конфигов. Разнесение конфигов на игровые и системные.
This commit is contained in:
@@ -1700,7 +1700,7 @@ class fbattle
|
||||
}
|
||||
|
||||
|
||||
if (in_array($user->getRoom(), Config::$caverooms)) {
|
||||
if (in_array($user->getRoom(), CAVE_ROOMS)) {
|
||||
$location = mysql_fetch_array(mysql_query("SELECT `x`, `y`, `dir` FROM `caveparties` WHERE `user` = '" . $this->user['id'] . "' LIMIT 1"));
|
||||
|
||||
if ($location['dir'] == 0) {
|
||||
@@ -1805,7 +1805,7 @@ class fbattle
|
||||
|
||||
function addAction($time, $vars, $vls, $uid)
|
||||
{
|
||||
$ins = mysql_query('INSERT INTO `actions` (`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`) VALUES ("' . $uid . '", "' . $time . '", "capitalcity", "0", "' . mysql_real_escape_string($vars) . '", "' . mysql_real_escape_string($_SERVER['HTTP_X_REAL_IP']) . '", "' . mysql_real_escape_string($vls) . '")');
|
||||
$ins = mysql_query('INSERT INTO `actions` (`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`) VALUES ("' . $uid . '", "' . $time . '", "capitalcity", "0", "' . mysql_real_escape_string($vars) . '", "' . $_SERVER['REMOTE_ADDR'] . '", "' . mysql_real_escape_string($vls) . '")');
|
||||
if ($ins) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user