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

HACKING ATTEMPT !!! HOW TO FIX IT???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-29-2003, 11:04 AM
 
MOC MOC is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 171
 

Default HACKING ATTEMPT !!! HOW TO FIX IT???

Hi,
i have changed the anonymous_checkout.tpl. There i placed my design including the auth.tpl code.

Eveyting works great. But instead the image buttons i want to use standard form buttons. Now i wanted to change the REGISTER LINK to a button: so i removed the text link and placed that code into it

Code:
<form action="register.php" method="post"> <input type="submit" class="core-button" value="New Customer Registration"> </form>

If i click on that button, i get an error HACKING ATTEMPT. What did i wrong?

Thanks
Saskia

Version: 3.5.1
Reply With Quote
  #2  
Old 12-30-2003, 03:36 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

This has happened to me several times and each tim ei fix it I vow to record what I did, but each time I forget.

The culprit is :

Code:
if ($current_area != "A" && $current_area!=$usertype && $mode!="checkout") { echo "Hacking attempt!!!!"; exit; }

in include/register.php

1) Have you got a hidden field in the form that is named 'mode'?
2) Does it do this if you clear your cookies? - it might be because you are registering as a customer and the usertype recorded in the session is admin.

If all else fails, you could comment out that code and it will go away.
__________________
ex x-cart guru
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 11:01 PM.

   

 
X-Cart forums © 2001-2020