isAdmin()) doError('Insufficient Permissions.'); include($DIR_LIBS . 'PLUGINADMIN.php'); // some functions function SE_unlockLogin($login) { sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE login='".addslashes($login)."'"); } // checks // create the admin area page $oPluginAdmin = new PluginAdmin('SecurityEnforcer'); // add styles to the
$oPluginAdmin->start(''); // if form to unlock is posted if(postVar('action') == 'unlock') { if (!$manager->checkTicket()) doError('Invalid Ticket'); $logins = postVar('unlock'); $message = ''; if(is_array($logins)) { foreach ($logins as $entity) { SE_unlockLogin($entity); $message .= '"; echo $message; echo "
"; } // generate table from all entries in the database echo '