View Single Post
  #1  
Old 02-14-2010, 06:08 PM
 
gatordp gatordp is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 72
 

Default Creating a login page without SSL?

I am trying to make a login page.

I've made a file in main catalog root "mainlogin.php" that I used the code from secure_login.php and commented out the following.


Code:
<?php require "./auth.php"; /* if (!empty($_GET[$XCART_SESSION_NAME])) { if (empty($_COOKIE[$XCART_SESSION_NAME])) $_COOKIE[$XCART_SESSION_NAME] = $XCARTSESSID; func_header_location("secure_login.php"); } */ require $xcart_dir."/include/categories.php"; $location[] = array(func_get_langvar_by_name("lbl_authentication"), ""); x_session_register("login_antibot_on"); x_session_register("username"); //if ($active_modules["Manufacturers"]) // include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php"; # # Assign Smarty variables and show template # if ($login_antibot_on) { $smarty->assign("login_antibot_on", $login_antibot_on); } $smarty->assign("username", $username); $smarty->assign("main", "secure_login_form"); # Assign the current location line $smarty->assign("location", $location); func_display("customer/home.tpl",$smarty); ?>


It displays the form fine but on login tries to go secure (https) and we don't have an ssl and don't plan on using one at this time... how do I bypass the secure login stuff?
__________________
X-Cart Gold 4.5.4
Reply With Quote