if(!defined('GAME')) { die(); } session_start(); $rang = ''; if(floor($u->info['align'])==1) { $rang = 'Паладин'; }elseif(floor($u->info['align'])==3) { $rang = 'Тарман'; }elseif($u->info['admin']>0){ $rang = 'Ангел'; }else{ $rang = 'Неизвестное существо'; } /* if($u->info['admin'] == 0) { if( ($u->info['city'] == 'capitalcity' && $rang == 'Тарман') || ($u->info['city'] == 'newcapitalcity' && $rang == 'Паладин') ) { die('
Редактирование обучающих квестов |
if($u->info['admin']>0){ ?> } ?> if($p['trPass']!=''){ ?> } ?> |
if($merror!='')
{
echo ''.$merror.'';
}
?>
$sx = array('Мужской','Женский','Общий');
if(isset($_GET['eq'])) {
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `an_quest` WHERE `id` = "'.mysql_real_escape_string($_GET['eq']).'" LIMIT 1'));
if(isset($pl['id'])) {
if(isset($_POST['pl_name'])) {
$pl['name'] = $_POST['pl_name'];
$pl['sex'] = $_POST['pl_sex'];
$pl['ico_bot'] = $_POST['pl_ico_bot'];
$pl['name_bot'] = $_POST['pl_name_bot'];
$pl['info'] = $_POST['pl_info'];
$pl['act'] = $_POST['pl_act'];
$pl['next'] = $_POST['pl_next'];
$pl['win'] = $_POST['pl_win'];
$pl['data'] = $_POST['pl_data'];
$pl['room'] = $_POST['pl_room'];
$pl['module'] = $_POST['pl_module'];
mysql_query('UPDATE `an_quest` SET
`name` = "'.mysql_real_escape_string($pl['name']).'",
`sex` = "'.mysql_real_escape_string($pl['sex']).'",
`ico_bot` = "'.mysql_real_escape_string($pl['ico_bot']).'",
`name_bot` = "'.mysql_real_escape_string($pl['name_bot']).'",
`info` = "'.mysql_real_escape_string($pl['info']).'",
`act` = "'.mysql_real_escape_string($pl['act']).'",
`next` = "'.mysql_real_escape_string($pl['next']).'",
`win` = "'.mysql_real_escape_string($pl['win']).'",
`data` = "'.mysql_real_escape_string($pl['data']).'",
`room` = "'.mysql_real_escape_string($pl['room']).'",
`module` = "'.mysql_real_escape_string($pl['module']).'"
WHERE `id` = "'.$pl['id'].'" LIMIT 1');
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `an_quest` WHERE `id` = "'.mysql_real_escape_string($_GET['eq']).'" LIMIT 1'));
}
?>
}else{
echo ' '; if(isset($_GET['del'])) { mysql_query('DELETE FROM `an_quest` WHERE `id` = "'.mysql_real_escape_string($_GET['del']).'" LIMIT 1'); }elseif(isset($_GET['add'])) { mysql_query('INSERT INTO `an_quest` (`sex`) VALUES ("0") '); } $sp = mysql_query('SELECT * FROM `an_quest`'); while( $pl = mysql_fetch_array($sp) ) { echo ' '; } } ?> |
Редактор заданий |
if($p['trPass']!=''){ ?> } ?> | ||
|
Функции управления |
if($u->info['admin']>0){ ?> } ?> if($p['trPass']!=''){ ?> } ?> | |||||
if($merror!='')
{
echo ''.$merror.'';
}
?>
|
if($u->info['admin']>0 || ($u->info['align']>1 && $u->info['align']<2) || ($u->info['align']>3 && $u->info['align']<4)){ ?>
Панель if($a==1){ echo 'Паладина'; }elseif($a==3){ echo 'Тармана'; }else{ echo 'Ангела'; } ?>}else{ ?>Панель if($u->info['align']==1){ echo 'Света'; }elseif($u->info['align']==3){ echo 'Тьмы'; } ?>} ?> |
if($u->info['admin']>0){ ?> } ?> if($p['trPass']!=''){ ?> } ?> |