X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Making Contact Us Form Secure (https://forum.x-cart.com/showthread.php?t=14619)

wjbrewer 06-16-2005 12:54 PM

Making Contact Us Form Secure
 
Does anyone know the best way to make the contact us form link to https. I realize I could hard code all of the links, but I thought that there may be an easier way.

Thanks.

MythNReality 06-18-2005 09:10 PM

Re: Making Contact Us Form Secure
 
Quote:

Originally Posted by wjbrewer
Does anyone know the best way to make the contact us form link to https. I realize I could hard code all of the links, but I thought that there may be an easier way.

Thanks.


I like the idea too...love to find out. :)

wjbrewer 06-24-2005 02:44 PM

With help from tech support here is the solution.

Edit the "https.php" file located in your x-cart root directory. Near the top find this line:

Code:

$https_scripts = array();

Then add any pages you want to be loaded as https to the list. For the contact us page it would be changed to

Code:

$https_scripts = array("help.php?section=contactus");

Now the Contact Us page is loaded under https. This is just a small detail, but I guess every little bit of customer confidence helps.

Bill

MythNReality 06-26-2005 08:44 PM

Quote:

Originally Posted by wjbrewer
With help from tech support here is the solution.

Edit the "https.php" file located in your x-cart root directory. Near the top find this line:

Code:

$https_scripts = array();

Then add any pages you want to be loaded as https to the list. For the contact us page it would be changed to

Code:

$https_scripts = array("help.php?section=contactus");

Now the Contact Us page is loaded under https. This is just a small detail, but I guess every little bit of customer confidence helps.

Bill


Thank you very much Bill, it works wonderfully.

EnriqueHavoc 06-27-2005 05:25 AM

thanks very much, this looks quite useful

what would you put if you wanted more than one script? seperate them by commas?

cotc2001 07-10-2005 03:38 AM

or find this bit and then just add in more pages which means you can switch them on or off with the setting in general settings

Code:

$https_scripts[] = "secure_login.php";
if ($config["General"]["use_https_login"] == "Y") {
        $https_scripts[] = "register.php";
        $https_scripts[] = "registration.php";
        $https_scripts[] = array("cart.php", "mode=checkout");
        $https_scripts[] = array("cart.php", "mode=auth");
}


So just add extra $https_scripts[] = "XXXXXXX.php"; in


All times are GMT -8. The time now is 06:00 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.