File size: 1.18Kb
<?
require("inc.php");
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);
require("version.php");
include("obolochka.php");
$kom = @file("genmat/kakoj.dat");
$total = count($kom);
$kom2 = @file("genmat/kto.dat");
$total2 = count($kom2);
$all=$total2+$total;
$text=file("genmat/kto.dat");
$top=rand(0,count($text)-1);
$out1=explode("|||",$text[$top]);
echo"$out1[1]";
$text=file("genmat/kakoj.dat");
$top=rand(0,count($text)-1);
$out2=explode("|||",$text[$top]);
echo"$out2[1]";
print "<hr/><i>Страниц: <u>$all</u></i><br/><br/>";
echo "<a href=\"genmat_copy.php?ver=$ver&id=$id&ps=$ps&ref=$ref&m1=$out1[1]&m2=$out2[1]\"><b>Скопировать мат</b></a><br/>";
if($ver!=="wml"){echo "<div class=\"d1\">";}
echo "<center><a href=\"$PHP_SELF?ver=$ver&id=$id&ps=$ps&ref=$ref\"><b>Следующий</b></a><br/></center>";
if($ver!=="wml"){echo "</div>";}
echo"<br/><hr/>";
if (isset ($rm)){echo" <a href=\"chat.php?$ses&rm=$rm$takep\"><b>В чат</b></a><br/>";}
echo"<a href=\"enter.php?ver=$ver&id=$id&ps=$ps&ref=$ref\"><b>Прихожая</b></a>";
require_once"foot.php";
?>