Вход Регистрация
Файл: make.php
Строк: 37
<?php
error_reporting
(0);
include(
"config.inc.php");
include(
"leng.inc.php");
include (
"$yaz");
?>
<html>
<head>
<title><?=$title;?> - <?=$addmaketitle;?></title>
<script>
function init()
{
setTimeout('close()',2000)
}
onload=init
</script>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$kodirovka_of_phpmailer;?>">
<body><br><br><Br><center>
<?php
if (ereg("^photo",$QUERY_STRING) || ereg("^ftalb",$QUERY_STRING))
{ if (
$make==|| $make==|| $make==|| $make==|| $make==5)
{
$remoteIP $HTTP_SERVER_VARS["REMOTE_ADDR"];
$data_arrai file("data/album.dat");
                foreach(
$data_arrai as $i=>$string)
                        {
                        list(
$albom[],$alname[])= explode("::","$string");
                        }
                
$data_array file("data/$albom[$ftalb]/make.dat");
                foreach(
$data_array as $i=>$string)
                        {
                        list(
$foto_dll[],$all_maksl[],$maks1l[],$maks2l[],$maks3l[],$maks4l[],$maks5l[],$ip_maksl[])= explode("::","$string");
                        if (
$photo==$i)
                        {                         
end;
                        }
                        }

$ip_off=1;
$remIP="$remoteIP".'|';
$foto_dl=$foto_dll[$photo];
$all_maks=$all_maksl[$photo];
$maks1=$maks1l[$photo];
$maks2=$maks2l[$photo];
$maks3=$maks3l[$photo];
$maks4=$maks4l[$photo];
$maks5=$maks5l[$photo];
$ip_maks=$ip_maksl[$photo];
                        
$ip_off=1;
                        if (
ereg("$remoteIP",$ip_maks))
                        {
$ip_off=0;
                        }

                if (
$ip_off==1)
{
    if (
$make==1) {$maks1=$maks1+1;}
elseif (
$make==2) {$maks2=$maks2+1;}
elseif (
$make==3) {$maks3=$maks3+1;}
elseif (
$make==4) {$maks4=$maks4+1;}
elseif (
$make==5) {$maks5=$maks5+1;}
$all_maks=$all_maks+1;
$ip_maks="$ip_maks"."$remoteIP".'|';
                        
//echo "$foto_dl,$all_maks,$maks1,$maks2,$maks3,$maks4,$maks5,$ip_maks";
                
if ($data_array != ""):
                                
$data_array[$photo] = "$foto_dl::$all_maks::$maks1::$maks2::$maks3::$maks4::$maks5::$ip_maks::rn";
                        
$write=fopen("data/$albom[$ftalb]/make.dat","w");
                        
flock($write,2);
                        foreach (
$data_array as $i=>$string)
                                {
                                
fputs($write,"$string");
                                }
                        
flock($write,3);
                        
fclose($write);
                endif;
echo 
"<b>$error_make[0]</b>";
                }
                else
                {                 echo 
"<b>$error_make[4]</b><br><font color=red><li>$error_make[1]</font>";
                }
}
else
{ echo 
"<b>$error_make[4]</b><br><font color=red><li>$error_make[2]</font>";
}
}
else
{ echo 
"<b>$error_make[4]</b><br><font color=red><li>$error_make[3]</font>";
}

?></center>
</body>
</html>
Онлайн: 0
Реклама