1
Веб-технологии / Помогите ! Скрипт вешает машину
« : 26 Апреля 2005, 23:01:40 »
http://www.nitonise.ru/upload/get.php?id=22&bg=&t=Серебрянная Женщина&nocas=1114541510&comm=1
вот собственно сам скрипн. с вероятностью 50 на 50 вешает мне комп ! Во время просмотра фоток курсок очень странно перемещается по экрану
! как будто что то постоянно подгружает подмигивает ! Посмотриче из за чего такое может быть ?
$title=@$_GET["title"];
$mess=@$_GET["mess"];
$name=@$_GET["name"];
$comm=@$_GET["comm"];
if (!isset($comm)) {
$comm=1;
}
?>
if (($comm)==1) { ?>
&no= time(); ?>&t= time(); ?> echo($t); ?>&name= echo($name); ?>&comm=2">comments off
}
if (($comm)==2) { ?>
&no= time(); ?>&t= time(); ?> echo($t); ?>&name= echo($name); ?>&comm=1">comments onn
}
?>
" background="dance1.gif">
echo($t); ?>
$id=$HTTP_GET_VARS["id"];
if ($id=="impu10.avi") { $path ="http://www.baranki.ru/video/".$id; }
$filename = \'pix/\'.$id.".jpg";
if (file_exists($filename)) {
$dot=".jpg";
} else {
$dot=".gif";}
$path ="pix/".$id.$dot;
if (isset($_SERVER[\'HTTP_REFERER\'])) {
$from = $_SERVER[\'HTTP_REFERER\'];
} else {
$from = "Directly Entered";
}
function getIP() {
$ip;
if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP");
else if(getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR");
else if(getenv("REMOTE_ADDR")) $ip = getenv("REMOTE_ADDR");
else $ip = "UNKNOWN";
return $ip;
}
$open=fopen("get.txt","a");
$ip=getIP();
$mess=strtr($mess,"\\r","\\n");
fwrite($open,$ip."||".$id."||".time()."||".$from."\\r\\n");
fclose($open);
//header("Location:$path");
//exit;
?>
вот собственно сам скрипн. с вероятностью 50 на 50 вешает мне комп ! Во время просмотра фоток курсок очень странно перемещается по экрану

$title=@$_GET["title"];
$mess=@$_GET["mess"];
$name=@$_GET["name"];
$comm=@$_GET["comm"];
if (!isset($comm)) {
$comm=1;
}
?>
if (($comm)==1) { ?>
&no= time(); ?>&t= time(); ?> echo($t); ?>&name= echo($name); ?>&comm=2">comments off
}
if (($comm)==2) { ?>
&no= time(); ?>&t= time(); ?> echo($t); ?>&name= echo($name); ?>&comm=1">comments onn
}
?>
" background="dance1.gif">
$id=$HTTP_GET_VARS["id"];
if ($id=="impu10.avi") { $path ="http://www.baranki.ru/video/".$id; }
$filename = \'pix/\'.$id.".jpg";
if (file_exists($filename)) {
$dot=".jpg";
} else {
$dot=".gif";}
$path ="pix/".$id.$dot;
if (isset($_SERVER[\'HTTP_REFERER\'])) {
$from = $_SERVER[\'HTTP_REFERER\'];
} else {
$from = "Directly Entered";
}
function getIP() {
$ip;
if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP");
else if(getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR");
else if(getenv("REMOTE_ADDR")) $ip = getenv("REMOTE_ADDR");
else $ip = "UNKNOWN";
return $ip;
}
$open=fopen("get.txt","a");
$ip=getIP();
$mess=strtr($mess,"\\r","\\n");
fwrite($open,$ip."||".$id."||".time()."||".$from."\\r\\n");
fclose($open);
//header("Location:$path");
//exit;
?>
$no=time(); ?> &no= echo($no); ?>&comm= echo($comm); ?>"> if (($comm)==1) { if (isset($_SERVER[\'HTTP_REFERER\'])) { $from = $_SERVER[\'HTTP_REFERER\']; } else { $from = "Directly Entered"; } if ((isset($mess)) && (strlen($name)>0) && (strlen($mess)>0)) { $open=fopen("txt/".$id.".txt","a"); $mess=strtr($mess,"\\r","\\n"); $mess=str_replace("\\n"," ",$mess); $mess=strip_tags($mess,""); $name=$name; fwrite($open,$name."||".$mess."||".time()."||".$from."\\r\\n"); fclose($open); } ?> $file=file("txt/".$id.".txt"); # будем считывать строки с файла text.txt $strings="5"; # количество считываемых строк $v=mt_rand(0,@count($file)-1); for($is=@count($file)-1;$is>-1;$is--) { $ar=explode("||",$file[$is]); if ($is==$v) { $txt=" echo ("".$ar[0]." - "."".$ar[1]." "); } echo($txt); ?> |
} else { echo("
?>
http://www.nitonise.ru/nopromono/go.php?idgroup=zaebalo">http://www.nitonise.ru/nopromono/img/za.gif" align="center">
http://www.nitonise.ru/nopromono">http://www.nitonise.ru/nopromono/img/link.gif" align="center">