This commit is contained in:
lopar 2019-01-18 21:59:19 +02:00
parent f3634fd3ca
commit 5e27b18dd2
1 changed files with 2 additions and 4 deletions

View File

@ -10,11 +10,9 @@ session_start();
if (!isset($_SESSION['uid'])) header("Location: index.php");
require_once 'functions.php';
if (!empty($_GET['teleport']) AND $user['admin'] == 1) {
if (!empty($_GET['teleport']) AND $user['admin'] == 1)
db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 20,`online`.`room` = 20 WHERE `online`.`id` = `users`.`id` AND `online`.`id` = ?i', $_SESSION['uid']);
header('location: city.php?cp');
die();
}
?>
<!doctype html>