Просмотр файла sdark.mobi/adm_root/user2.php

Размер файла: 3.34Kb
<?
require_once '../core/system.php';
echo admin();
$header = 'Редактор Игрока';
require_once H.'core/head.php';
/* if($user['prava'] < 5){
header('Location: /index.php');
}   */
if (isset($_GET['id']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '".intval($_GET['id'])."'"),0) == true){
$ank = mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`  = '".intval($_GET['id'])."'"));
}
echo "<div class='foot'><form  method='post' action='user3.php?id=$ank[id]'>";
echo 'Введите ник<br /><input class="text large" value="'.$ank['nick'].'" type="text" name="nick" /><br />
e-mail<br /><input class="text large" value="'.$ank['email'].'" type="text" name="email" /><br />
Пол (1 - m; 0 - w)<br /><input class="text large" value="'.$ank['pol'].'" type="text" name="pol" /><br />
Империя (ogn - Кадар; mol - Сарма)<br /><input class="text large" value="'.$ank['plem'].'" type="text" name="plem" /><br />
Золото <br /><input class="text large" value="'.$ank['gold'].'" type="text" name="gold" /><br />
Права (2 - [m]; 3 - [M]; 4 - [a]; 5 - [A])<br /><input class="text large" value="'.$ank['prava'].'" type="text" name="prava" /><br />
Клан (id клана)<br /><input class="text large" value="'.$ank['clan'].'" type="text" name="clan" /><br />
Уровень<br /><input class="text large" value="'.$ank['level'].'" type="text" name="level" /><br />
Опыт<br /><input class="text large" value="'.$ank['exp'].'" type="text" name="exp" /><br />
Цвет ника<br /><input class="text large" value="'.$ank['font'].'" type="text" name="font" /><br />
Здоровье<br /><input class="text large" value="'.$ank['max_health'].'" type="text" name="max_health" /><br />
Сила<br /><input class="text large" value="'.$ank['sila'].'" type="text" name="sila" /><br />
Защита<br /><input class="text large" value="'.$ank['zashit'].'" type="text" name="zashit" /><br />
Параметры<br /><input class="text large" value="'.$ank['param'].'" type="text" name="param" /><br />
Звание<br /><input class="text large" value="'.$ank['zvan'].'" type="text" name="zvan" /><br />
Место<br /><input class="text large" value="'.$ank['mesto'].'" type="text" name="mesto" /><br />
Сундук<br /><input class="text large" value="'.$ank['sunduk'].'" type="text" name="sunduk" /><br />
Сапфиры<br /><input class="text large" value="'.$ank['sapfyr'].'" type="text" name="sapfyr" /><br />
Изумруды<br /><input class="text large" value="'.$ank['izumrud'].'" type="text" name="izumrud" /><br />
Топазы<br /><input class="text large" value="'.$ank['topaz'].'" type="text" name="topaz" /><br />
Рубины<br /><input class="text large" value="'.$ank['rubyn'].'" type="text" name="rubyn" /><br />
Алмазы<br /><input class="text large" value="'.$ank['almaz'].'" type="text" name="almaz" /><br />
Макс. урон<br /><input class="text large" value="'.$ank['max_uron'].'" type="text" name="max_uron" /><br />
Ip персонажа<br /><input class="text large" value="'.$ank['ip'].'" type="text" name="ip" /><br />';

echo '<input class="inpc-ar form-submit" type="submit" value="Изменить">';
echo "</form></div><div class='line'></div><div class='but-list-light'><a href='/adm_root/'><img src='/images/icon/r.png'> Админ-Панель</a></div>";
require_once H.'core/foot.php';
?>