Hi,
I have a zencart store on domain
www.cigear.com
Now the problem is admin login is suddenly stopped working. It also not giving error message like "Invalid username/password"
Also password forget tool is not working.
When i try to login it gives me same page named login.php
I have cleared my browsers cache memory and cookies.
Also tried changing password from database manually. I know the encryption and decryption topics.
I also debug the file login.php putting and found that script is not reach at this line (find the code above)
Code:
require('includes/application_top.php');
$message = false;
echo 'test1'; // Display echo test here
if (isset($_POST['submit'])) {
echo 'test2'; // echo doesnt work here
$admin_name = zen_db_prepare_input($_POST['admin_name']);
$admin_pass = zen_db_prepare_input($_POST['admin_pass']);
$sql = "select admin_id, admin_name, admin_pass from " . TABLE_ADMIN . " where admin_name = '" . zen_db_input($admin_name) . "'";
$result = $db->Execute($sql);
if (!($admin_name == $result->fields['admin_name'])) {
$message = true;
$pass_message = ERROR_WRONG_LOGIN;
}
if (!zen_validate_password($admin_pass, $result->fields['admin_pass'])) {
$message = true;
$pass_message = ERROR_WRONG_LOGIN;
}
if ($message == false) {
$_SESSION['admin_id'] = $result->fields['admin_id'];
if (SESSION_RECREATE == 'True') {
zen_session_recreate();
}
zen_redirect(zen_href_link(FILENAME_DEFAULT, '', 'SSL'));
}
}
I also put some values into the text-box and then press login button. i mean to say i submit some values to form.
Please Help me in this if anyone know what issue might causes this.
Bookmarks