info['id']); $rang = 'Модератор'; if (isset($_GET['remod'])) { if ($_GET['remod'] == 1) { $_SESSION['remod'] = 3; } else { $_SESSION['remod'] = 1; } } $zv = [1 => 'light', 2 => 'admin', 3 => 'dark']; $merror = ''; $mod_login = $u->info['login']; if ($u->info['invise'] > 0) { $mod_login = "Невидимка"; } $uer = ''; if (!empty($_POST['logingo'])) { $moderation = new ModFactory( strip_tags($_POST['logingo']), empty($_POST['modReason']) ? '' : $_POST['modReason'], $u->info['room'], ); $administration = new AdmFactory( strip_tags($_POST['logingo']) ); if (!empty($_POST['silence']) && !empty($_POST['time'])) { $moderation->silence($_POST['time']); } elseif (!empty($_POST['unsilence'])) { $moderation->unsilence(); } elseif (!empty($_POST['prison']) && !empty($_POST['time'])) { $moderation->prison($_POST['time']); } elseif (!empty($_POST['unprison'])) { $moderation->unprison(); } elseif (!empty($_POST['depersonalize']) && !empty($_POST['time'])) { $moderation->depersonalize($_POST['time']); } elseif (!empty($_POST['undepersonalize'])) { $moderation->undepersonalize(); } elseif (!empty($_POST['ban'])) { $moderation->ban(); } elseif (!empty($_POST['unban'])) { $moderation->unban(); } elseif (!empty($_POST['addmoderator'])) { $administration->addmoderator(); } elseif (!empty($_POST['deletemoderator'])) { $administration->removemoderator(); } elseif (!empty($_POST['changegender'])) { $administration->changegender(); } elseif (!empty($_POST['changelogin']) && !empty($_POST['newLogin'])) { $administration->changelogin($_POST['newLogin']); } elseif (!empty($_POST['giveitem']) && !empty($_POST['itemId'])) { $administration->additem((int)$_POST['itemId']); } elseif (!empty($_POST['kickfrombattle'])) { $administration->kickfrombattle(); } elseif (!empty($_POST['toggleinvisibility'])) { $administration->toggleinvisibility(); } if (!empty($moderation->status)) { $uer = $moderation->status; } elseif (!empty($administration->status)) { $uer = $administration->status; } } if (!empty($_POST['marrypartner1']) && !empty($_POST['marrypartner2'])) { if (!empty($_POST['marry'])) { $uer = 'marry: Not available'; } elseif (!empty($_POST['unmarry'])) { $uer = 'unmarry: Not available'; } } echo ''; $p = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1')); if (!$m->isModerator && $u->info['align'] != 1 && $u->info['align'] != 3) { return; ######################### } $a = floor($p['align']); if ($u->info['admin'] > 0) { $zv = $zv[2]; } else { $zv = $zv[$a]; } $go = 0; if (isset($_GET['go'])) { $go = round($_GET['go']); } if ($go == 3 && $u->info['admin'] > 0) { ?>
Редактирование обучающих квестов |
info['admin'] > 0) { ?> |
' . $merror . '';
}
?>
Квест не найден.';
}
} 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 ' '; } } ?> |
Редактор заданий |
|||
|
info['admin'] > 0 || ($u->info['align'] > 1 && $u->info['align'] < 2) || ($u->info['align'] > 3 && $u->info['align'] < 4)) { ?>
ПанельПанель info['align'] == 1) { echo 'Света'; } elseif ($u->info['align'] == 3) { echo 'Тьмы'; } ?> |
info['admin'] > 0) { ?> |