isAdmin()) { doError('Insufficient Permissions.'); } include_libs('PLUGINADMIN.php'); // some functions function SE_unlockLogin($login) { sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE login='".sql_real_escape_string($login)."'"); } // 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 .= '{$message}
\n"; } // generate table from all entries in the database echo '