moving
This commit is contained in:
+12
-1
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user