Размер файла: 2.18Kb
<?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"; if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!="") { echo'<div class="b">Мои гости</div>'; if($act==""){
$file = file("../local/mygosti/$log.dat"); $file = array_reverse($file); $total = count($file); if($total<1){echo'<br><img src="../images/img/reload.gif" alt=""> <b>Не одного гостя небыло</b><br><br>';} $start = (int)$_GET['start']; if($start < 0 || $start > $total){$start = 0;} if ($total < $start + $config_bookpost){ $end = $total; } else {$end = $start + $config_bookpost; } for ($i = $start; $i < $end; $i++){ $data = explode("|",$file[$i]); $num=$total-$i-1;
$i2=round($i+1); $statwho='<font color="red">[Off]</font>'; $sublines=file("../local/online.dat"); $subcount=count($sublines); for ($b=0; $b<$subcount; $b++) {$dt=explode("#",$sublines[$b]); if ($data[1]==$dt[2]) {$statwho='<font color="#00FF00">[On]</font>';}}
echo '<img src="../images/img/chel.gif" alt=""> '.$i2.'. <b><a href="anketa.php?uz='.$data[1].'&'.SID.'">'.$data[1].'</a></b> '.user_online(check($data[1])); echo'<br>'.date_fixed($data[2]).'<br>';
} if ($start != 0) {echo '<a href="mygosti.php?start='.($start - $config_bookpost).'&'.SID.'"><-Назад </a> ';}else{echo'<-Назад ';} echo'|'; if ($total > $start + $config_bookpost) {echo ' <a href="mygosti.php?start='.($start + $config_bookpost).'&'.SID.'"> Далее-></a>';}else{echo' Далее->';} echo'<br><img src="../images/img/error.gif" alt=""/> <a href="mygosti.php?act=delvse">Очистить список</a>';}
if($act=="delvse"){ clear_files("../local/mygosti/$log.dat"); header("Location:mygosti.php?".SID); }
}else{header("Location:../index.php");}
include_once"../themes/$config_themes/foot.php"; ?>