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

Making Contact Us Form Secure

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-16-2005, 12:54 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default 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.
Reply With Quote
  #2  
Old 06-18-2005, 09:10 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default 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.
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #3  
Old 06-24-2005, 02:44 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default

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
Reply With Quote
  #4  
Old 06-26-2005, 08:44 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default

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.
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #5  
Old 06-27-2005, 05:25 AM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

thanks very much, this looks quite useful

what would you put if you wanted more than one script? seperate them by commas?
__________________
X-Cart 4.0.12
PHP 4.3.11
MySQL 4.0.23
Linux/Apache
Net::SSLeay 1.25
libCURL libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4
www.ewdhosting.com
Reply With Quote
  #6  
Old 07-10-2005, 03:38 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

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
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:47 AM.

   

 
X-Cart forums © 2001-2020