isAdmin()) { doError('Insufficient Permissions.'); } include_libs('PLUGINADMIN.php'); // some functions function SE_unlockLogin($login) { DB::execute('DELETE FROM '.sql_table('plug_securityenforcer').' WHERE login='.DB::quoteValue($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 '