This commit is contained in:
lopar
2019-01-18 21:56:07 +02:00
parent 0d5f5c1a43
commit b8a9a0622b
6 changed files with 543 additions and 568 deletions
+12 -1
View File
@@ -10,6 +10,12 @@ session_start();
if (!isset($_SESSION['uid'])) header("Location: index.php");
require_once 'functions.php';
if (!empty($_GET['teeleport']) 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>
<html>
@@ -18,7 +24,12 @@ require_once 'functions.php';
<meta charset="utf-8">
</head>
<body>
<div style="float: right;"><input type="button" onClick="location.href='main.php';" value="Вернуться"></div>
<div style="float: right;">
<?php if ($user['admin'] == 1): ?>
<button onclick="location.href='?teleport=1'">Телепорт на ЦП</button>
<?php endif; ?>
<input type="button" onClick="location.href='main.php';" value="Вернуться">
</div>
<h2>Особые умения</h2>
<div align=center id=hint3></div>