enabled || $cuid!=2000) { __("This page is restricted to authorized staff"); 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'); ?>