dev #41

Merged
lopar merged 29 commits from dev into master 2021-05-25 15:28:14 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit eacde76543 - Show all commits

View File

@ -76,7 +76,7 @@ class Quests
if (db::c()->getAffectedRows()) { if (db::c()->getAffectedRows()) {
$tms = (time() + 60 * 60 * $pl['time']); $tms = (time() + 60 * 60 * $pl['time']);
db::c()->query('INSERT INTO `actions` (`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`, `val`) VALUES (?i,?i,"?s",?i,"?s","?s","?s","?s")', db::c()->query('INSERT INTO `actions` (`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`, `val`) VALUES (?i,?i,"?s",?i,"?s","?s","?s","?s")',
$uid, time(), 'capitalcity', 0, 'start_quest' . $id, $_SERVER['HTTP_X_REAL_IP'], 'go', $tms); $uid, time(), 'capitalcity', 0, 'start_quest' . $id, $_SERVER['REMOTE_ADDR'], 'go', $tms);
return 'Вы успешно получили задание "' . $pl['name'] . '"'; return 'Вы успешно получили задание "' . $pl['name'] . '"';
} else { } else {
return 'Не удалось получить данное задание ...'; return 'Не удалось получить данное задание ...';

View File

@ -444,7 +444,7 @@ HTML;
function addActions($time, $vars, $vls, $uid) function addActions($time, $vars, $vls, $uid)
{ {
db::c()->query('LOCK TABLES `actions` WRITE'); db::c()->query('LOCK TABLES `actions` WRITE');
$ins = db::c()->query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`,`vals`) VALUES (?i, ?i, "?s", ?i, "?s", "?s", "?s")', $uid, $time, "capitalcity", 0, $vars, $_SERVER['HTTP_X_REAL_IP'], $vls); $ins = db::c()->query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`,`vals`) VALUES (?i, ?i, "?s", ?i, "?s", "?s", "?s")', $uid, $time, "capitalcity", 0, $vars, $_SERVER['REMOTE_ADDR'], $vls);
db::c()->query('UNLOCK TABLES'); db::c()->query('UNLOCK TABLES');
return $ins; return $ins;
} }