This commit is contained in:
lopar 2019-01-18 21:58:17 +02:00
parent 645c6cb600
commit f3634fd3ca

View File

@ -10,7 +10,7 @@ session_start();
if (!isset($_SESSION['uid'])) header("Location: index.php"); if (!isset($_SESSION['uid'])) header("Location: index.php");
require_once 'functions.php'; require_once 'functions.php';
if (!empty($_GET['teeleport']) 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']); 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'); header('location: city.php?cp');
die(); die();