> This is for NinjaFirewall v2.x & v3.x << |
=====================================================================+
| 1. Rename this file to "pro2-reset.php". |
| 2. Upload it into your NinjaFirewall's folder. |
| 3. Go to http://YOUR WEBSITE/FOLDER/pro2-reset.php |
| 4. Delete it afterwards. |
+=====================================================================+
*/
if (! file_exists('./conf/options.php')) {
die('Error #001 : I cannot find ['.dirname( dirname(__FILE__) ).'/conf/options.php] file.
aborting.');
}
$msg = '';
$mid = @$_POST['mid'];
if ($mid == 1) {
$admin = @$_POST['admin'];
if (! preg_match('/^\w{6,20}$/D', $admin) ) {
summary('Error #002 : ['. htmlspecialchars($admin) .'] is not a correct username.', 1);
exit;
}
reset_pass($admin);
} else {
summary($msg, 0);
}
exit;
/* ================================================================ */
function summary($msg, $type) {
global $version;
echo '
'; } else { echo '
'; } echo $msg .'
This script allows you to reset your NinjaFirewall admin password.
The new password will be sent to the admin address email you gave during the install process.