yuri
Guest
register_globals from OFF to ON. Help!
I heve a lot of script like this:
register.php :
how i can swich OFF to ON?
I heve a lot of script like this:
register.php :
how i can swich OFF to ON?
PHP:
<?
include ('Include.php');
mysql_connect($DBhost,$DBuser,$DBpass);
@mysql_select_db("$DBName");
$username=mysql_escape_string($username);
$password=mysql_escape_string($password);
$query = "SELECT name,pass FROM gc_users WHERE name='$username' AND active=0";
$result = mysql_query($query);
if(mysql_num_rows($result)>0){
if ($password==mysql_result($result,0,"pass")){
$result=1;
} else{
$result=2;
}
}else{
$result=3;
}
print '<?xml version="1.0"?>';
print "<site>";
print '<response value="'.$result.'"/>';
print "</site>";
?>