Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    39
    Plugin Contributions
    0

    Default Admin Login Problem in Internet Explorer

    Not sure If this is the right place but...

    I have a problem logging into the admin panel in Internet Explorer.
    It doesnt do anything, I type in the username and password (which are both correct) and after pressing enter, nothing happens. The username and password are still typed, but the page doesnt login into the admin section.

    It works fine in FireFox.

    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    //  $Id: login.php 6522 2007-06-20 23:34:31Z wilt $
    //

      
    require('includes/application_top.php');

      
    $message false;
      if (isset(
    $_POST['submit'])) {
        
    $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 ((!isset(
    $_SESSION['securityToken']) || !isset($_POST['securityToken'])) || ($_SESSION['securityToken'] !== $_POST['securityToken'])) {
         
    $message true;
          
    $pass_message ERROR_SECURITY_ERROR;
        }
        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'));
        }
      }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>">
    <title><?php echo TITLE?></title>
    <link href="includes/stylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    <body id="login" onload="document.getElementById('admin_name').focus()">
    <form name="login" action="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>" method = "POST">
      <fieldset>
        <legend><?php echo HEADING_TITLE?></legend>
        <label class="loginLabel" for="admin_name"><?php echo TEXT_ADMIN_NAME?></label>
    <input style="float: left" type="text" id="admin_name" name="admin_name" value="<?php echo zen_output_string($admin_name); ?>" />
    <br class="clearBoth" />
        <label  class="loginLabel" for="admin_pass"><?php echo TEXT_ADMIN_PASS?></label>
    <input style="float: left" type="password" id="admin_pass" name="admin_pass" value="<?php echo zen_output_string($admin_pass); ?>" />
    <br class="clearBoth" />
        <?php echo $pass_message?>
       <p> <input type="hidden" name="securityToken" value="<?php echo $_SESSION['securityToken']; ?>">
        <input type="image" src="../includes/templates/template_default/buttons/english/button_login.gif" name="submit" alt="Submit" class="button" value="Login" /><br />
        <?php echo '<a href="' zen_href_link(FILENAME_PASSWORD_FORGOTTEN'''SSL') . '">' TEXT_PASSWORD_FORGOTTEN '</a>'?></p>

      </fieldset>
    </form>
    </body>
    </html>
    <?php require('includes/application_bottom.php'); ?>
    Code is above.

    Any ideas would be much appreciated

  2. #2
    Join Date
    Mar 2008
    Posts
    39
    Plugin Contributions
    0

    Default Re: Admin Login Problem in Internet Explorer

    All sorted now.

    Admin can delete this topic

  3. #3
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Admin Login Problem in Internet Explorer

    Please post answer to this. I am having the same issue.

 

 

Similar Threads

  1. Internet Explorer Blank Page at login
    By milagromac in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 6 Dec 2012, 05:26 AM
  2. Internet Explorer prob with login
    By steverucker in forum General Questions
    Replies: 8
    Last Post: 2 Apr 2012, 08:21 PM
  3. Internet Explorer Login problem
    By andytho in forum General Questions
    Replies: 7
    Last Post: 30 Sep 2008, 11:44 AM
  4. Internet Explorer 6 Problem
    By jruyle in forum General Questions
    Replies: 2
    Last Post: 1 May 2007, 05:14 AM
  5. Internet Explorer problem...
    By TIMETODOIT in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Feb 2007, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg