Page 6 of 21 FirstFirst ... 4567816 ... LastLast
Results 51 to 60 of 210
  1. #51
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,367
    Plugin Contributions
    94

    Default Re: Encrypted Master Password support

    Danielle, to make sure that errors are properly being logged (i.e. the DIR_FS_LOGS constant and associated permissions are correct), you could "force" an error on the login page by adding the bit in red (just make sure to remove it after you've verified that a debug-log file is created!)
    Code:
          // Check that password is good
    //-bof-Encrypted Master Password by stagebrace *** 1/1
          //- Start modifications by lat9:
    //-bof-a-v1.6.0
        } elseif ($emp_login === true &&) {
          $ProceedToLogin = true;
          $_SESSION['emp_admin_login'] = true;
          $_SESSION['emp_admin_id'] = (int)$_POST['aID'];
    //-bof-a-v1.7.0
    /*
          $sql_data_array = array( 'access_date' => 'now()',
                                   'admin_id' => $_SESSION['emp_admin_id'],
                                   'page_accessed' => 'login.php',
                                   'page_parameters' => '',
                                   'ip_address' => substr($_SERVER['REMOTE_ADDR'],0,45),
                                   'gzpost' => gzdeflate( json_encode( array ( 'action' => 'emp_admin_login' )), 7),
                                   'flagged' => 0,
                                   'attention' => '',
                                   );
          zen_db_perform(TABLE_ADMIN_ACTIVITY_LOG, $sql_data_array);
    */
    //-eof-a-v1.7.0
    //-eof-a-v1.6.0
          
        } else {
          //--- Either specific admin ID or an admin within a specific admin profile can use their password to login.
          if (!defined('EMP_LOGIN_ADMIN_ID')) define ('EMP_LOGIN_ADMIN_ID', 1);  /*lat9-a/c*/
          $get_admin_query = "SELECT admin_id, admin_pass
                              FROM " . TABLE_ADMIN . "
                              WHERE admin_id = " . (int)EMP_LOGIN_ADMIN_ID;  /*lat9-c*/
          $check_administrator = $db->Execute($get_admin_query);
          $customer = (zen_validate_password($password, $check_customer->fields['customers_password']));
          $administrator = (zen_validate_password($password, $check_administrator->fields['admin_pass']));
          if ($customer) {
            $ProceedToLogin = true;
            
          } elseif ($administrator) {
              $ProceedToLogin = true;
              $_SESSION['emp_admin_login'] = true;  /*lat9-a*/
              $_SESSION['emp_admin_id'] = EMP_LOGIN_ADMIN_ID;
              
          } else {
    //-bof-lat9-a
            if (!defined('EMP_LOGIN_ADMIN_PROFILE_ID')) define ('EMP_LOGIN_ADMIN_PROFILE_ID', 1);  /*lat9-a*/
            $admin_profile_query = "SELECT admin_id, admin_pass 
                                      FROM " . TABLE_ADMIN . " 
                                      WHERE admin_profile = " . (int)EMP_LOGIN_ADMIN_PROFILE_ID;
            $admin_profiles = $db->Execute($admin_profile_query);
    //-eof-lat9-a
            $ProceedToLogin = false;
    //-bof-lat9-a
            while (!$admin_profiles->EOF && !$ProceedToLogin) {
              $ProceedToLogin = zen_validate_password($password, $admin_profiles->fields['admin_pass']);
              if ($ProceedToLogin) {
                $_SESSION['emp_admin_login'] = true;
                $_SESSION['emp_admin_id'] = $admin_profiles->fields['admin_id'];
              }
              $admin_profiles->MoveNext();
            }
    //-eof-lat9-a
          }
        }
          if (!($ProceedToLogin)) {
    //-eof-Encrypted Master Password by stagebrace *** 1/1

  2. #52
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    No, I am still getting the blank login page and no debug logs.

    Quote Originally Posted by lat9 View Post
    Danielle, on a hunch, could/would you try commenting out a couple of lines in the /includes/modules/pages/login/header_php.php and let me know if that corrects the issue?
    Code:
          // Check that password is good
    //-bof-Encrypted Master Password by stagebrace *** 1/1
          //- Start modifications by lat9:
    //-bof-a-v1.6.0
        } elseif ($emp_login === true) {
          $ProceedToLogin = true;
          $_SESSION['emp_admin_login'] = true;
          $_SESSION['emp_admin_id'] = (int)$_POST['aID'];
    //-bof-a-v1.7.0
    /*
          $sql_data_array = array( 'access_date' => 'now()',
                                   'admin_id' => $_SESSION['emp_admin_id'],
                                   'page_accessed' => 'login.php',
                                   'page_parameters' => '',
                                   'ip_address' => substr($_SERVER['REMOTE_ADDR'],0,45),
                                   'gzpost' => gzdeflate( json_encode( array ( 'action' => 'emp_admin_login' )), 7),
                                   'flagged' => 0,
                                   'attention' => '',
                                   );
          zen_db_perform(TABLE_ADMIN_ACTIVITY_LOG, $sql_data_array);
    */
    //-eof-a-v1.7.0
    //-eof-a-v1.6.0
          
        } else {
          //--- Either specific admin ID or an admin within a specific admin profile can use their password to login.
          if (!defined('EMP_LOGIN_ADMIN_ID')) define ('EMP_LOGIN_ADMIN_ID', 1);  /*lat9-a/c*/
          $get_admin_query = "SELECT admin_id, admin_pass
                              FROM " . TABLE_ADMIN . "
                              WHERE admin_id = " . (int)EMP_LOGIN_ADMIN_ID;  /*lat9-c*/
          $check_administrator = $db->Execute($get_admin_query);
          $customer = (zen_validate_password($password, $check_customer->fields['customers_password']));
          $administrator = (zen_validate_password($password, $check_administrator->fields['admin_pass']));
          if ($customer) {
            $ProceedToLogin = true;
            
          } elseif ($administrator) {
              $ProceedToLogin = true;
              $_SESSION['emp_admin_login'] = true;  /*lat9-a*/
              $_SESSION['emp_admin_id'] = EMP_LOGIN_ADMIN_ID;
              
          } else {
    //-bof-lat9-a
            if (!defined('EMP_LOGIN_ADMIN_PROFILE_ID')) define ('EMP_LOGIN_ADMIN_PROFILE_ID', 1);  /*lat9-a*/
            $admin_profile_query = "SELECT admin_id, admin_pass 
                                      FROM " . TABLE_ADMIN . " 
                                      WHERE admin_profile = " . (int)EMP_LOGIN_ADMIN_PROFILE_ID;
            $admin_profiles = $db->Execute($admin_profile_query);
    //-eof-lat9-a
            $ProceedToLogin = false;
    //-bof-lat9-a
            while (!$admin_profiles->EOF && !$ProceedToLogin) {
              $ProceedToLogin = zen_validate_password($password, $admin_profiles->fields['admin_pass']);
              if ($ProceedToLogin) {
                $_SESSION['emp_admin_login'] = true;
                $_SESSION['emp_admin_id'] = $admin_profiles->fields['admin_id'];
              }
              $admin_profiles->MoveNext();
            }
    //-eof-lat9-a
          }
        }
          if (!($ProceedToLogin)) {
    //-eof-Encrypted Master Password by stagebrace *** 1/1
    Danielle

  3. #53
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,367
    Plugin Contributions
    94

    Default Re: Encrypted Master Password support

    Quote Originally Posted by lat9 View Post
    Danielle, to make sure that errors are properly being logged (i.e. the DIR_FS_LOGS constant and associated permissions are correct), you could "force" an error on the login page by adding the bit in red (just make sure to remove it after you've verified that a debug-log file is created!)
    Code:
          // Check that password is good
    //-bof-Encrypted Master Password by stagebrace *** 1/1
          //- Start modifications by lat9:
    //-bof-a-v1.6.0
        } elseif ($emp_login === true &&) {
          $ProceedToLogin = true;
          $_SESSION['emp_admin_login'] = true;
          $_SESSION['emp_admin_id'] = (int)$_POST['aID'];
    //-bof-a-v1.7.0
    /*
          $sql_data_array = array( 'access_date' => 'now()',
                                   'admin_id' => $_SESSION['emp_admin_id'],
                                   'page_accessed' => 'login.php',
                                   'page_parameters' => '',
                                   'ip_address' => substr($_SERVER['REMOTE_ADDR'],0,45),
                                   'gzpost' => gzdeflate( json_encode( array ( 'action' => 'emp_admin_login' )), 7),
                                   'flagged' => 0,
                                   'attention' => '',
                                   );
          zen_db_perform(TABLE_ADMIN_ACTIVITY_LOG, $sql_data_array);
    */
    //-eof-a-v1.7.0
    //-eof-a-v1.6.0
          
        } else {
          //--- Either specific admin ID or an admin within a specific admin profile can use their password to login.
          if (!defined('EMP_LOGIN_ADMIN_ID')) define ('EMP_LOGIN_ADMIN_ID', 1);  /*lat9-a/c*/
          $get_admin_query = "SELECT admin_id, admin_pass
                              FROM " . TABLE_ADMIN . "
                              WHERE admin_id = " . (int)EMP_LOGIN_ADMIN_ID;  /*lat9-c*/
          $check_administrator = $db->Execute($get_admin_query);
          $customer = (zen_validate_password($password, $check_customer->fields['customers_password']));
          $administrator = (zen_validate_password($password, $check_administrator->fields['admin_pass']));
          if ($customer) {
            $ProceedToLogin = true;
            
          } elseif ($administrator) {
              $ProceedToLogin = true;
              $_SESSION['emp_admin_login'] = true;  /*lat9-a*/
              $_SESSION['emp_admin_id'] = EMP_LOGIN_ADMIN_ID;
              
          } else {
    //-bof-lat9-a
            if (!defined('EMP_LOGIN_ADMIN_PROFILE_ID')) define ('EMP_LOGIN_ADMIN_PROFILE_ID', 1);  /*lat9-a*/
            $admin_profile_query = "SELECT admin_id, admin_pass 
                                      FROM " . TABLE_ADMIN . " 
                                      WHERE admin_profile = " . (int)EMP_LOGIN_ADMIN_PROFILE_ID;
            $admin_profiles = $db->Execute($admin_profile_query);
    //-eof-lat9-a
            $ProceedToLogin = false;
    //-bof-lat9-a
            while (!$admin_profiles->EOF && !$ProceedToLogin) {
              $ProceedToLogin = zen_validate_password($password, $admin_profiles->fields['admin_pass']);
              if ($ProceedToLogin) {
                $_SESSION['emp_admin_login'] = true;
                $_SESSION['emp_admin_id'] = $admin_profiles->fields['admin_id'];
              }
              $admin_profiles->MoveNext();
            }
    //-eof-lat9-a
          }
        }
          if (!($ProceedToLogin)) {
    //-eof-Encrypted Master Password by stagebrace *** 1/1
    How about forcing an error to make sure that logs will be written? Did you try that?

  4. #54
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    No, no log files are generated I cannot understand it. I have tried every permissions setting on the log directory. The logs directory in configure.php is set correctly. Not sure how else to troubleshoot this. I have never seen a site where the log files just don't work.

    Quote Originally Posted by lat9 View Post
    Danielle, to make sure that errors are properly being logged (i.e. the DIR_FS_LOGS constant and associated permissions are correct), you could "force" an error on the login page by adding the bit in red (just make sure to remove it after you've verified that a debug-log file is created!)
    Code:
          // Check that password is good
    //-bof-Encrypted Master Password by stagebrace *** 1/1
          //- Start modifications by lat9:
    //-bof-a-v1.6.0
        } elseif ($emp_login === true &&) {
          $ProceedToLogin = true;
          $_SESSION['emp_admin_login'] = true;
          $_SESSION['emp_admin_id'] = (int)$_POST['aID'];
    //-bof-a-v1.7.0
    /*
          $sql_data_array = array( 'access_date' => 'now()',
                                   'admin_id' => $_SESSION['emp_admin_id'],
                                   'page_accessed' => 'login.php',
                                   'page_parameters' => '',
                                   'ip_address' => substr($_SERVER['REMOTE_ADDR'],0,45),
                                   'gzpost' => gzdeflate( json_encode( array ( 'action' => 'emp_admin_login' )), 7),
                                   'flagged' => 0,
                                   'attention' => '',
                                   );
          zen_db_perform(TABLE_ADMIN_ACTIVITY_LOG, $sql_data_array);
    */
    //-eof-a-v1.7.0
    //-eof-a-v1.6.0
          
        } else {
          //--- Either specific admin ID or an admin within a specific admin profile can use their password to login.
          if (!defined('EMP_LOGIN_ADMIN_ID')) define ('EMP_LOGIN_ADMIN_ID', 1);  /*lat9-a/c*/
          $get_admin_query = "SELECT admin_id, admin_pass
                              FROM " . TABLE_ADMIN . "
                              WHERE admin_id = " . (int)EMP_LOGIN_ADMIN_ID;  /*lat9-c*/
          $check_administrator = $db->Execute($get_admin_query);
          $customer = (zen_validate_password($password, $check_customer->fields['customers_password']));
          $administrator = (zen_validate_password($password, $check_administrator->fields['admin_pass']));
          if ($customer) {
            $ProceedToLogin = true;
            
          } elseif ($administrator) {
              $ProceedToLogin = true;
              $_SESSION['emp_admin_login'] = true;  /*lat9-a*/
              $_SESSION['emp_admin_id'] = EMP_LOGIN_ADMIN_ID;
              
          } else {
    //-bof-lat9-a
            if (!defined('EMP_LOGIN_ADMIN_PROFILE_ID')) define ('EMP_LOGIN_ADMIN_PROFILE_ID', 1);  /*lat9-a*/
            $admin_profile_query = "SELECT admin_id, admin_pass 
                                      FROM " . TABLE_ADMIN . " 
                                      WHERE admin_profile = " . (int)EMP_LOGIN_ADMIN_PROFILE_ID;
            $admin_profiles = $db->Execute($admin_profile_query);
    //-eof-lat9-a
            $ProceedToLogin = false;
    //-bof-lat9-a
            while (!$admin_profiles->EOF && !$ProceedToLogin) {
              $ProceedToLogin = zen_validate_password($password, $admin_profiles->fields['admin_pass']);
              if ($ProceedToLogin) {
                $_SESSION['emp_admin_login'] = true;
                $_SESSION['emp_admin_id'] = $admin_profiles->fields['admin_id'];
              }
              $admin_profiles->MoveNext();
            }
    //-eof-lat9-a
          }
        }
          if (!($ProceedToLogin)) {
    //-eof-Encrypted Master Password by stagebrace *** 1/1
    Danielle

  5. #55
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,367
    Plugin Contributions
    94

    Default Re: Encrypted Master Password support

    Would you post the definition for DIR_FS_LOGS from your /includes/configure.php file?

  6. #56
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    Sure:

    define('DIR_FS_LOGS', '/home/sites/****/public_html/logs');

    I just put in the ****, in the actual file it has the correct info there.

    Quote Originally Posted by lat9 View Post
    Would you post the definition for DIR_FS_LOGS from your /includes/configure.php file?
    Danielle

  7. #57
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,367
    Plugin Contributions
    94

    Default Re: Encrypted Master Password support

    Curious, it looks properly formed (i.e. no ending /). Permissions set to 0755? What if you change the definition to
    Code:
    define('DIR_FS_LOGS', DIR_FS_CATALOG . 'logs');

  8. #58
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    Quote Originally Posted by lat9 View Post
    Curious, it looks properly formed (i.e. no ending /). Permissions set to 0755? What if you change the definition to
    Code:
    define('DIR_FS_LOGS', DIR_FS_CATALOG . 'logs');
    Nope still no logs showing up. Permissions are 755. It's so strange!
    Danielle

  9. #59
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Encrypted Master Password support

    if you hide the EMP code what happens? and do your log files work?

    note - do not uninstall EMP
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  10. #60
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    If I hide the EMP code the login page works fine. There are no log files.

    Quote Originally Posted by twitchtoo View Post
    if you hide the EMP code what happens? and do your log files work?

    note - do not uninstall EMP
    Danielle

 

 
Page 6 of 21 FirstFirst ... 4567816 ... LastLast

Similar Threads

  1. v139h tweaking encrypted master password and cowoa
    By lankeeyankee in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Feb 2012, 08:50 PM
  2. Master Password Encrypted mod support
    By Woodymon in forum All Other Contributions/Addons
    Replies: 62
    Last Post: 16 May 2011, 02:48 AM
  3. encrypted master password stopped working
    By stagebrace in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 23 Jan 2010, 06:48 AM
  4. Master Password vs Encrypted Master Password
    By srturner47 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Apr 2008, 04:05 PM
  5. Encrypted master password probs
    By icklebits in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Jun 2007, 06:00 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR