non riesco a far funzionare questo script. Si tratta di uno script vecchio che cerco di aggiornare a register_globals=off
================================================== ===
<?php
session_start();
if (!eregi("index.php", $_SERVER['PHP_SELF']))
{
die ("You can't access this file directly...");
}
$query="select id from members where email='$_email' and password='$_password' limit 0,1";
$q->query($_query);
if ($q->nf()!=0)
{
$q->next_record();
$_SESSION['id']=$_q->f("id");
$query="select ip from members where ip='$_SERVER["REMOTE_ADDR"]' and id='$_SESSION['id']'";
$q->query($_query);
if ($q->nf()==0)
{
$query="update members set ip='$_SERVER["REMOTE_ADDR"]' where id='$_SESSION['id']'";
$q->query($query);
}
if (!isset($_id))
{
header("Location: index.php?action=member_area");
}
else
{
header("Location: track.php?id=$_id");
break;
}
else
{
$content=error_page("Your login does not exist.");
}
?>
================================================== =
Chi può aiutarmi? GRAZIE