enabled || $cuid!=2000) { $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff")); echo $msg->msg_html_all(); die(); } $fields = array ( "action" =>array ("get","string",""), ); getFields($fields); switch ($action) { case "lock": panel_lock(); break; case "unlock": panel_unlock(); break; default: die('Wrong action'); } Header('Location: /adm_panel.php'); ?>