Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Creating a login page without SSL?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 02-15-2010, 08:44 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default Re: Creating a login page without SSL?

It's just trying to post to a secure page for the login, correct?

In your security options in the admin do you have this turned on?
Use HTTPS for users' login and registration:

That's my best guess without seeing it.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:35 PM.

   

 
X-Cart forums © 2001-2020