File size: 1.81Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);
extract($HTTP_SESSION_VARS);
session_name("SESID");
session_start();
require ("../config.php"); //Џ®¤Є«оз Ґ¬ бва®©ЄЁ б ©в . (config.php)
require ("../themes/$themes.php"); //‚бв ў«пҐ¬ бЄЁ б ©в .
if ($portal=="off") //Џа®ўҐаЄ ўЄ«озҐ Ї®ав « Ё«Ё Ґв, Ґб«Ё ўлЄ«озҐ, в® ўлў®¤Ё¬ $offmes
{
print ("<center> $offmes </center>");
}
if ($_SERVER['REMOTE_ADDR']==$ban)
{
print ("<center>‚ ¬ бо¤ Ґ«м§п!!! ‚ б § Ў Ё«Ё!!</center>");
}else{
if ($portal=="on")
{
//////////////////////////////////////////////////////////////////////////////////////
include_once('func.php');
$zag="sexafon.net";
$gl="http://sexafon.net";
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
<wml><card id=\"mas\" title=\"$zag\"><p align=\"left\" class=\"b\">";
print "Анекдоты<br/>- - - -<br/>";
$file=file("temy.txt");
$count=count($file);
if ($count!="0")
{
$total="0";
for ($i=0; $i<count($file); $i++)
{
$file[$i]=convert($file[$i]);
$file2=file("$i.txt");
$total2=count($file2);
$total=$total+$total2;
print "<a href='view.php?numer=$i&list=0'>$file[$i]</a>($total2)<br/>";
}
print "Всего: $total";
}
else
{
print "Нет рубрик!";
}
print "</p>";
print "</card></wml>";
//////////////////////////////////////////////////////////////////
}}
require_once"../templates/foot.php";
?>