One Hat Cyber Team
Your IP :
216.73.216.24
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
nosc
/
public_html
/
users
/
View File Name :
forgotpass.php
<? /** * ForgotPass.php * * This page is for those users who have forgotten their * password and want to have a new password generated for * them and sent to the email address attached to their * account in the database. The new password is not * displayed on the website for security purposes. * * Note: If your server is not properly setup to send * mail, then this page is essentially useless and it * would be better to not even link to this page from * your website. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 26, 2004 */ //require("../auth/auth.php"); //require("header_users.php"); include("../login/include/session.php"); require_once("functions_admin.php"); require("../auth/auth.php"); if (!is_valid_language($lang = take_variable('lang'))) $lang= languify($_SESSION['lang']); ?> <? require_once("../charset.php"); ?> <!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html"; CHARSET="<? echo $_charset;?>"> <html> <LINK REL="STYLESHEET" HREF="style_users.css"> <title><? echo enruua("Generation of a new password","Создание нового пароля","Створення нового пароля");?></title> <body> <? echo "<table STYLE=\"width: 100%;\">"; echo "<td style=\"text-align: right;\">\n"; echo "<B style=\"text-transform: uppercase; font-variant: normal;\">"; echo enruua("The Journal","Журнал","Журнал")." "; echo journal_webpage_link($lang,TRUE); echo "</B>"; echo "</td>\n"; echo "<td>"; echo "</td>"; echo "<td>"; echo language_select("FLAG","small"); echo "</td>"; echo "</table>"; echo "<div class=metabody_admin>"; ?> <? /** * Forgot Password form has been submitted and no errors * were found with the form (the username is in the database) */ if(isset($_SESSION['forgotpass'])){ /** * New password was generated for user and sent to user's * email address. */ if($_SESSION['forgotpass']){ echo "<h1>New Password Generated</h1>"; echo "<p>Your new password has been generated " ."and sent to the email <br>associated with your account. " ."<a href=\"main.php\">Main</a>.</p>"; } /** * Email could not be sent, therefore password was not * edited in the database. */ else{ echo "<h1>New Password Failure</h1>"; echo "<p>There was an error sending you the " ."email with the new password,<br> so your password has not been changed. " ."<a href=\"main.php\">Main</a>.</p>"; } unset($_SESSION['forgotpass']); } else{ /** * Forgot password form is displayed, if error found * it is displayed. */ ?> <h1><? echo enruua("You have forgotten your password","Вы забыли свой пароль","Ви забули свій пароль")."...";?></h1> <? echo enruua("A new password will be generated for you and sent to the email address associated with your account, all you have to do is enter your login.","Новый пароль будет автоматически сгенерирован и отправлен Вам электронной почтой. Для этого введите свой код пользователя и подтвердите Ваш запрос нажатием соответствующей кнопки.","Новий пароль буде автоматично сгенеровано та надіслано Вам електронною поштою. Для цього введіть свій код користувача та підтвердіть Ваш запит натисненням відповідної кнопки."); ?> <br><br> <? echo $form->error("user"); ?> <form action="forgotpass_reget.php" method="POST"> <b><? echo enruua("Login","Код пользователя","Код користувача")?>:</b> <input type="text" name="author_id" maxlength="30" value="<? echo $form->value("user"); ?>"> <input type="hidden" name="subforgot" value="1"> <input type="submit" value="<? echo enruua("Get new password", "Получить новый пароль","Отримати новий пароль");?>"> </form> <? echo "<A HREF=\"index.php\">" . enruua("Try to login again","Попробовать войти еще раз","Спробувати увійти ще раз"). "</A>\n"; } require_once("footer_users.php"); ?>