> Hi all,
>
> My website host just changed some settings for some reason. They have
turned
> magic_quotes_gpc on. Needless to say, FreeTrade does not like this. The
host
> currently runs PHP (version 3) as a CGI module. Is there a way I can turn
> off magic_quotes_gpc within the freetrade.php3 file? Or is there any other
> solution?
>
> I am under the impression that a .htaccess file will not work since they
are
> running PHP via CGI. Is this correct?
Easy. Just add this to the top of the index.php3
if(get_magic_quotes_gpc() == 1){
switch($REQUEST_METHOD){
case "POST":
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$$key = stripslashes($val);
}
break;
case "GET":
while (list ($key, $val) = each ($HTTP_GET_VARS)) {
$$key = stripslashes($val);
}
break;
}
}
and comment out the magic quote if statment and away you go.
Chuck
==============================================
Charles Williams
(Owner)
Accent Computer & Network Services
Markt 2
D-95679 Waldershof
Tel: +49 (0) 9231 972670
Fax: +49 (0) 9231 972671
http://www.acns-online.com
GB/CS/O/U d-- -p+ c+++ l++ u- e+ m+ s++/ !n h---- f !g w++ t+ r x**
==============================================
**************Email Confidentiality Footer**************
The information contained in this email and any attachments is intended
for the named recipients only. It may contain privileged and confidential
information and if you are not the intended recipient, you must not copy,
distribute or take any action in reliance on it. If you have received this
email in error, please return it to the originator advising of the error
and delete all copies from your system.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]