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?