Guest Posted June 24, 2004 Posted June 24, 2004 Ok. Ive backed up my site anyway as I didnt really understand the readme file for this mod, and attempted the installation. Now, this is the problem when I click on the "login" link: http://www.cs-repz.com/catalog/login.php What part of the installation would I have had to mess up for that to happen? Any ideas? ################################################### Chaveiro at catus dot net # 11-05-2004 ################################################## ### ## Autologin Secure 2.01 # What this does is to alow client to set a checkbox and will be remembered in that pc for up to 14 days of inactivity. The information is saved client side in a cookie with an md5 hash from the username, encripted password, userid and current user ip. This hash warants an highly security metode even if someone steals your cookie hash as he will have to use a connection from the same ip address as you did. If client changes email or password on other computer will have to login again on other computer he might use. Module folows oscommerce codding style and use tep functions when available. DO THE FOLOWING MODS : ################################################################################ #################### MYSQL Add ################################################################################ #################### INSERT INTO configuration VALUES ('','Allow AutoLogon Cookie','ALLOW_AUTOLOGON','true','Allow registered users to save their login-info into a cookie so they are automatically logged in upon return to the shop.',15,0,'2004-05-11 18:14:50','2004-05-11 15:11:31',NULL,'tep_cfg_select_option(array(\'true\', \'false\'),'); ################################################################################ #################### Copy autologin.php to /includes/functions ################################################################################ #################### ################################################################################ #################### includes/application_top.php Modification ################################################################################ #################### define('WARN_SESSION_AUTO_START', 'true'); define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'); // #CHAVEIRO14# Autologon require('includes/functions/autologin.php'); if ($session_started == true) { if (ALLOW_AUTOLOGON == 'true') { // Is Autologon enabled? if (basename($PHP_SELF) != FILENAME_LOGIN) { // yes if (!tep_session_is_registered('customer_id')) { tep_doautologin(); } } } else { tep_autologincookie(false); } } // #CHAVEIRO14# Autologon END ?> ################################################################################ #################### includes/languages/english.php Modification ################################################################################ #################### // #CHAVEIRO14# Autologon define('ENTRY_REMEMBER_ME','Remember me'); // #CHAVEIRO14# Autologon END ################################################################################ #################### account_edit.php Modification ################################################################################ #################### tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array, 'update', "customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$customer_default_address_id . "'"); // #CHAVEIRO14# Autologon tep_autologincookie(true); // #CHAVEIRO14# Autologon END // reset the session variables $customer_first_name = $firstname; $messageStack->add_session('account', SUCCESS_ACCOUNT_UPDATED, 'success'); ################################################################################ #################### account_password.php Modification ################################################################################ #################### tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_account_last_modified = now() where customers_info_id = '" . (int)$customer_id . "'"); // #CHAVEIRO14# Autologon tep_autologincookie(true); // #CHAVEIRO14# Autologon END $messageStack->add_session('account', SUCCESS_PASSWORD_UPDATED, 'success'); tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); } else { ################################################################################ #################### login.php Modification ################################################################################ #################### tep_session_register('customer_id'); tep_session_register('customer_default_address_id'); tep_session_register('customer_first_name'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); // #CHAVEIRO14# Autologon if ((ALLOW_AUTOLOGONLOGON == 'false') || ($HTTP_POST_VARS['remember_me'] == '')) { tep_autologincookie(false); } else { tep_autologincookie(true); } // #CHAVEIRO14# Autologon END tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'"); ################################################################################ #################### login.php Modification 2 ################################################################################ #################### <tr> <td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td> <td class="main"><?php echo tep_draw_password_field('password'); ?></td> </tr> <?php // #CHAVEIRO14# Autologon if ( (ALLOW_AUTOLOGON == 'true') && ((isset($HTTP_COOKIE_VARS['cookie_test']) && (SESSION_FORCE_COOKIE_USE == 'True')) || (SESSION_FORCE_COOKIE_USE != 'True')) ) { ?> <tr> <td> </td> <td align="left" class="smalltext"><?php echo tep_draw_checkbox_field('remember_me','on', (($password == '') ? false : true)) . ' ' . ENTRY_REMEMBER_ME; ?></td> </tr> <?php } // #CHAVEIRO14# Autologon END ?> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> ################################################################################ #################### logoff.php Modification ################################################################################ #################### require('includes/application_top.php'); // #CHAVEIRO14# Autologon tep_autologincookie(false); // #CHAVEIRO14# Autologon END require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGOFF); $breadcrumb->add(NAVBAR_TITLE); Quote
Guest Posted July 13, 2004 Posted July 13, 2004 Your link is dead. What is your autologin problem? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.