File size: 1.3Kb
<?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";
$text = @file("../local/profil/$log.prof");
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provlog=trim($udata[0]);
$provpar=trim($udata[1]);
$privat=trim($udata[10]);}
$file = @file("$sex.txt");
$total = count($file);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
$file = @file("$sex.txt");
$file = array_reverse($file);
$data = explode(":::",$file[$i]);
$id = $data[3];
print "<a href=\"look_user.php?id=$id\">$data[1]</a> <b>$data[2]</b> <br>";
}
print "-----<br>";
if ($start != 0) echo " <a href=\"look.php?sex=$sex&start=".($start - 10)."\">Назад</a>|";
if ($total > $start + 10) echo " <a href=\"look.php?sex=$sex&start=".($start + 10)."\">Далее</a> \n";
//end
include_once"../themes/$config_themes/foot.php";
?>