// Первая часть кода ------------------------------------------------------------------------------------------------------------------------- require_once("../nastroiki/nastroiki.php"); //require_once("../stat/vxod.php"); require_once("proba.php"); require_once('zad.php'); if (!isset($table)) $table=first; if (($table=="first")or($table=="fird")or($table=="four")or($table=="five")) { if ($table=="fird") { $sql="SELECT * FROM first where idfirst=$num "; $result = mysql_query($sql, $conn); $r=mysql_fetch_array($result); if ($r) { } else { header("HTTP/1.0 404 Not Found"); header("Location: ../error404.htm"); exit(); } //$row=mysql_fetch_array($result); } if ($table=="four") { $sql="SELECT * FROM fird where idfird=$num2"; $result = mysql_query($sql, $conn); $r=mysql_fetch_array($result); if ($r) { } else { header("HTTP/1.0 404 Not Found"); header("Location: ../error404.htm"); exit(); } //$row=mysql_fetch_array($result); } if ($table=="five") { if (($clas=="sred")or($clas=="min")or($clas=="max")) { } else { header("HTTP/1.0 404 Not Found"); header("Location: ../error404.htm"); exit(); } $sql="SELECT * FROM four where idfour=$num3"; $result = mysql_query($sql, $conn); $r=mysql_fetch_array($result); if ($r) { } else { header("HTTP/1.0 404 Not Found"); header("Location: ../error404.htm"); exit(); } //$row=mysql_fetch_array($result); } } else { header("HTTP/1.0 404 Not Found"); header("Location: ../error404.htm"); exit(); } $opis=2; $opisopis=3; $glav=5; if ($clas=="sred") { $min="src='../galereya/minus.jpg'"; $max="src='../galereya/plus.jpg'"; $min1="a"; $sred1="b"; $max1="c"; $min2="min"; $max2="max"; $plus=0; $min_i=7; $max_i=12; $sql="SELECT * FROM five where idfivefive=$num3"; $result = mysql_query($sql, $conn); $rowww=mysql_fetch_array($result); } if ($clas=="min") { $min="src='../galereya/plus.jpg'"; $max="src='../galereya/2plus_prav2.jpg'"; $min1="b"; $sred1="a"; $max1="c"; $min2="sred"; $max2="max"; $plus=5; $min_i=2; $max_i=12; $sql="SELECT * FROM five where idfivefive=$num3"; $result = mysql_query($sql, $conn); $rowww=mysql_fetch_array($result); } if ($clas=="max") { $min="src='../galereya/2minus_lev2.jpg'"; $max="src='../galereya/minus.jpg'"; $min1="a"; $sred1="c"; $max1="b"; $min2="min"; $max2="sred"; $plus=10; $min_i=7; $max_i=2; $sql="SELECT * FROM five where idfivefive=$num3"; $result = mysql_query($sql, $conn); $rowww=mysql_fetch_array($result); } $opis=$opis+$plus; $opisopis=$opisopis+$plus; $glav=$glav+$plus; if ($table=="first") $title="Фотогалерея"; if ($table=="fird") { $sql="SELECT * FROM first where idfirst=$num"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $title=$row[1]." ".$row[3]; } if ($table=="four") { $sql="SELECT * FROM fird where idfird=$num2"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $title=$row[1]." ".$row[4]; } if ($table=="five") { $sql="SELECT * FROM four where idfour=$num3"; $result = mysql_query($sql, $conn); $row=mysql_fetch_array($result); $title=$row[3].", ".$rowww[$opis]; $title2=$row[3]; $title_min=$row[3]." ".$rowww[$min_i]; $title_max=$row[3]." ".$rowww[$max_i]; } // Третья часть кода --------------------------------------------------------------------------------------------------------------------------------------- $body0=""; if (!isset($table)) $table=first; if($table=='first') { $body0=$body0."
|
";
$prav_kav="";
if ($mass[2]!="")
{
$prav_kav="...";
$sql="SELECT * FROM four where fourfour='$mass[2]'";
$result = mysql_query($sql, $conn);
$r=mysql_fetch_array($result);
$body0=$body0."
![]() |
|
Подпись: | $row[3] | |
Описание: | $rowww[$opisopis] | |
Дата: | $row5[2] | |
Просмотров: | $col | |
Размеры фото: | $size[0]x$size[1] | |
Размеры файла: | $ob kb | |
Автор: | administrator | |
Комментарии: | ||
Дополнительная информация: | $lev_kav$opisss$prav_kav |