View file love/foto.php

File size: 3.07Kb
<?
include "ini.php";
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";

$text = file("../local/profil/$log.prof");
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provlog=trim($udata[0]);
$provpar=trim($udata[1]);
$privat=trim($udata[10]);}
//////////////////////////////////////////////////////////////////////////////////////
$kont=$_GET['kont'];
//////////////////////////////////////////////////////////////////////////////////////

echo '<div class="b"><img src="lovers.png" alt="" /> Фотографии '.$kont.'</div>';
if (!file_exists("../local/datalove/prof/$log.prof")){header ("Location: index.php?".SID."");exit;}
$datalove=@file("../local/datalove/prof/$log.prof");
$datalove=explode(":||:", $datalove[0]);
if (!file_exists("../local/datalove/prof/$kont.prof")){header ("Location: index.php?".SID."");exit;}
$datakont=@file("../local/datalove/prof/$kont.prof");
$datakont=explode(":||:", $datakont[0]);
if ($datakont[13]==0 || $datakont[13]==''){header ("Location: index.php?".SID."");exit;}
if (isset($_GET['page']) && $_GET['page']!='')
{$page=intval($_GET['page']);}
if ($page<=0 || $page>$datakont[13] || $page==''){$page=1;}

if ($page!=1 && $page<=$datakont[13])
{$page_p=$page-1;echo "<a href=\"foto.php?page=$page_p&amp;kont=$kont&amp;".SID."\">Пред</a>";}
if ($page!=1 && $page!=0 && $page<$datakont[13])
{echo " || ";}
if ($page!=0 && $page<$datakont[13])
{$page_n=$page+1;echo "<a href=\"foto.php?page=$page_n&amp;kont=$kont&amp;".SID."\">След</a>";}
echo "<br />\r\n";
$g_foto=$page+13;
$foto=$datakont[$g_foto];
$act=explode(".",$foto);
$image=base64_encode("../local/datalove/foto/$foto");
echo "<img  src=\"prew.php?full&amp;act=$act[1]&amp;image=$image&amp;".SID."\" alt=\"Фото\" /><br />\r\n";
if ($page!=1 && $page<=$datakont[13])
{$page_p=$page-1;echo "<a href=\"foto.php?page=$page_p&amp;kont=$kont&amp;".SID."\">Пред</a>";}
if ($page!=1 && $page!=0 && $page<$datakont[13])
{echo " || ";}
if ($page!=0 && $page<$datakont[13])
{$page_n=$page+1;echo "<a href=\"foto.php?page=$page_n&amp;kont=$kont&amp;".SID."\">След</a>";}
echo "<br />\r\n";

echo "Фото $page из $datakont[13]";
echo "<br />\r\n";







echo "<br />\r\n&laquo; <a href=\"kont.php?kont=$kont&amp;".SID."\">К анкете</a><img src=\"i.gif\" alt=\"\" /><br />\r\n";
echo "&laquo; <a href=\"kab.php?".SID."\">Личный кабинет</a><img src=\"kab.gif\" alt=\"\" /><br />\r\n";
echo "&laquo; <a href=\"index.php?".SID."\" >Главная</a><img src=\"glav.gif\" alt=\"\" /><br />\r\n";
echo "<hr />\r\n";
echo "&laquo; <a href=\"../index.php?".SID."\">На главную</a><br />\r\n";
include_once"../themes/$config_themes/foot.php";
?>