2){ if (!Token::isValid($_POST['token'])) { $errors[] = 'Token is invalid.'; } } } if(empty($_GET)){ $step = (isset($_POST['step']) && !empty($_POST['step'])) ? getValue($_POST['step']) : false; $character = (isset($_POST['character']) && !empty($_POST['character'])) ? getValue($_POST['character']) : false; $option = (isset($_POST['option']) && !empty($_POST['option'])) ? getValue($_POST['option']) : false; $new_email = (isset($_POST['new_email']) && !empty($_POST['new_email'])) ? getValue($_POST['new_email']) : false; $rec_key = (isset($_POST['rec_key']) && !empty($_POST['rec_key'])) ? getValue($_POST['rec_key']) : false; switch ($step) { case '1': { { ?>

Specify your problem



I don\'t have access to my e-mail
'; else echo '
'; echo ''; ?>

We'll send authentication code to your new e-mail and then new password




'; Token::create();?>

'; Token::create();?>
=7140) //interval echo "Something went wrong"; else { $tempKey = NULL; for($i=0; $i < 25; $i++) { $cnum[$i] = $acceptedChars{mt_rand(0, 60)}; $tempKey .= $cnum[$i]; } mysql_update("UPDATE `accounts` SET `email_code` = '".$tempKey."', `email_new` = '".$new_email."', `email_new_time` = '".intval(time()+7200)."' WHERE `id` = '".$query['account_id']."';"); $thisurl = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $thisurl .= "?confirm&u=".$query['account_id']."&tempkey=".$tempKey; //Authenticate email $mailer = new Mail($config['mailserver']); $title = "Please authenticate your account at $_SERVER[HTTP_HOST]."; $body = "

Please click on the following link to authenticate your account:

"; $body .= "

$thisurl

"; $body .= "

I am an automatic no-reply e-mail. Any emails sent back to me will be ignored.

"; $mailer->sendMail($_POST['new_email'], $title, $body, $query['name']); echo 'We have sent an e-mail to your new address with link to authenticate this e-mail, please check it.'; } } else { echo 'Incorrect e-mail or recovery key.
'; } }else{ if((intval($query['email_new_time']) - time())>=7140) //interval echo "Something went wrong"; else{ $newPassword = NULL; for($i=0; $i < 10; $i++) { $cnum[$i] = $acceptedChars{mt_rand(0, 60)}; $newPassword .= $cnum[$i]; } $salt = ''; if ($config['TFSVersion'] != 'TFS_03') { // TFS 0.2 and 1.0 $password = sha1($newPassword); } else { // TFS 0.3/4 if (config('salt') === true) { $saltdata = mysql_select_single("SELECT `salt` FROM `accounts` WHERE `id` = $auid LIMIT 1;"); if ($saltdata !== false) $salt .= $saltdata['salt']; } $password = sha1($salt.$newPassword); } mysql_update("UPDATE `accounts` SET `password`='".$password."', `email_new_time` = '".intval(time()+7200)."' WHERE `id` = '".$query['account_id']."';"); echo "Your new password is: ".$newPassword."
Stay safe."; } } } else { echo output_errors($errors); echo 'This character not exist.'; } } break; default: ?>

Welcome to the Lost Account Interface!


If you have lost access to your account, this interface can help you. Of course, you need to prove that your claim to the account is justified. Enter the requested data and follow the instructions carefully. Please understand there is no way to get access to your lost account if the interface cannot help you.

Character name:

0) ? (int)$_GET['u'] : false; $tempKey = (isset($_GET['tempkey'])) ? $_GET['tempkey'] : false; $tempKeyStatus = true; for($i = 0;$i"; $body .= "

Stay safe at ".$config['mailserver']['fromName'].".

"; $body .= "

I am an automatic no-reply e-mail. Any emails sent back to me will be ignored.

"; $mailer->sendMail($query['email_new'], $title, $body, $query['name']); mysql_update("UPDATE `accounts` SET `email` = '".$query['email_new']."', `email_new` = '0', `email_code` = '0', `password` = '$password' WHERE `id` = $auid LIMIT 1;"); echo "We have sent new password to your new e-mail, have fun! :)"; }else{ echo 'Something went wrong'; } } include 'layout/overall/footer.php'; ?>