Function Getvis (& $pagesid,& $retime) {
Global $err, $conf, $HTTP _cookie_vars,$_cookie;
if (isset ($_cookie[' ant ')) $cot =$_cookie[' ant '];
ElseIf (isset ($HTTP _cookie_vars[' ant ')) $cot = $HTTP _cookie_vars[' ant '];
else $cot = ';
$cos =preg_split ("/x/", $cot);
$max =sizeof ($cos);
for ($c =0; $c < $max; $c + +) {
if (strlen ($cos [$c]) ==10) {
$id =substr ($cos [$c],0,2);
Eval ("$id =0x$id;");
$anct [$id]= $cos [$c];
}
}
if (isset ($_cookie[' anm ')) $com =$_cookie[' ANM '];
ElseIf (isset ($HTTP _cookie_vars[' anm ')) $com = $HTTP _cookie_vars[' anm '];
Else $com = ';
$cos =preg_split ("/x/", $com);
$max =sizeof ($cos);
for ($c =0 $c < $max $c + +) {
if (strlen ($cos [$c]) ==10) {
$id =substr ($cos [$c],0,2);
eval ("$id =0x$id;");
$tim =substr ($cos [$c],2,8);
eval ("$tim =0x$tim;");
if ($tim >= $conf->mtime) $ANCM [$id]= $cos [$c];
}
}
if (isset ($_cookie[' anw ')) $cow =$_cookie[' anw '];
ElseIf (isset ($HTTP _cookie_vars[' anw ')) $cow = $HTTP _cookie_vars[' anw '];
Else $cow = ';
$cos =preg_split ("/x/", $cow);
$max =sizeof ($cos);
for ($c =0 $c < $max $c + +) {
if (strlen ($cos [$c]) ==10) {
$id =substr ($cos [$c],0,2);
eval ("$id =0x$id;");
$tim =substr ($cos [$c],2,8);
eval ("$tim =0x$tim;");
if ($tim >= $conf->wtime) $ANCW [$id]= $cos [$c];
}
}
if (isset ($_cookie[' an1 ')) $co 1=$_cookie[' An1 '];
ElseIf (isset ($HTTP _cookie_vars[' an1 ')) $co 1= $HTTP _cookie_vars[' an1 '];
Else $co 1 = ';
$cos =preg_split ("/x/", $co 1);
$max =sizeof ($cos);
for ($c =0 $c < $max $c + +) {
if (strlen ($cos [$c]) ==10) {
$id =substr ($cos [$c],0,2);
eval ("$id =0x$id;");
$tim =substr ($cos [$c],2,8);
eval ("$tim =0x$tim;");
if ($tim >= $conf->dtime) $anc 1[$id]= $cos [$c];
}
}
//current time in HEX
if ($conf->ctime>0x7fffffff) {
$t 1= $conf-> CTIME/16;
$t 2= $conf->ctime&0xf;
$ctimestr =sprintf ("%07x%01x", $t 1, $t 2);
}
Else {
$ctimestr =sprintf ("%08x", $conf->ctime);
}
Reset ($PAGESID);
while ($e =each ($pagesid)) {
$k = $e [0];
if (Isset ($anct [$k])) {
$pagesid [$k].= ' |];
if (strlen ($anct [$k]) ==10) {
$tim =substr ($anct [$k],2,8);
Eval ("$tim =0x$tim;");
$retime [$k]= $tim;
}
}
else {
$pagesid [$k].= ' |1 ';
$anct [$k]=sprintf ("%02x%s", $k, $CTIMESTR);
}
if (Isset ($ANCM [$k])) $pagesid [$k].= ' |];
else {
$pagesid [$k].= ' |1 ';
$ANCM [$k]=sprintf ("%02x%s", $k, $CTIMESTR);
}
if (Isset ($ANCW [$k])) $pagesid [$k].= ' |];
else {
$pagesid [$k].= ' |1 ';
$ANCW [$k]=sprintf ("%02x%s", $k, $CTIMESTR);
}
if (Isset ($anc 1[$k]) $pagesid [$k].= ' |];
else {
$pagesid [$k].= ' |1 ';
$anc 1[$k]=sprintf ("%02x%s", $k, $CTIMESTR);
}
}
$cot =join (' x ', $anct);
$com =join (' x ', $ANCM);
$cow =join (' x ', $ANCW);
$co 1=join (' x ', $anc 1);
//get path
$path = $conf->url
$path =preg_replace ("/^ (http://) ([^/]+)/I", ", $path);
$path. = ' aa.php ';
//set Cookies
Setcookie (' Ant ', $cot, Time () + ($conf->time1*3000), $path);
Setcookie (' Anm ', $com, Time () + ($conf->time1*31), $path);
Setcookie (' Anw ', $cow, Time () + ($conf->time1*7), $path);
Setcookie (' An1 ', $co 1,time () + $conf->time1, $path);
}