View file anekdot/index.php

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 "&#x0410;&#x043D;&#x0435;&#x043A;&#x0434;&#x043E;&#x0442;&#x044B;<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&amp;list=0'>$file[$i]</a>($total2)<br/>";
     }
   print "&#x412;&#x441;&#x435;&#x433;&#x43E;: $total";
  }
else
  {
   print "&#x41D;&#x435;&#x442; &#x440;&#x443;&#x431;&#x440;&#x438;&#x43A;!";
  }

print "</p>";

print "</card></wml>";


//////////////////////////////////////////////////////////////////


}}
require_once"../templates/foot.php";
?>