Просмотр файла wievWWW.php

Размер файла: 2.16Kb
<?





 

 header("Content-type:text/vnd.wap.wml;charset=utf-8");

print "<?xml version=\"1.0\"?>

<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";





  print "<wml>\n";

  print "<card title=\"&#x410;&#x43D;&#x43A;&#x435;&#x442;&#x44B; (&#x43C;&#x443;&#x436;&#x447;&#x438;&#x43D;&#x44B;)\">\n";

  

 // $text = "$name::$mail::$mess::$file_o";

//$text=strip_tags($file_o);



 

//  $xfile = fopen($file_o, "r") ;



$xfile = @file("guestWW.dat");







  $p = 20;



  if ($npage == ""){$npage = "1";}

  $first = count($xfile) - ($p * ($npage - 1));

  $second = count($xfile) - ($p * $npage) + 1;

  if ($second < 1) {$second = 1;}

  $npages = (int)(count($xfile) / $p);

  if ($news_limiter>((int) ($npages*$p))) $npages = $npages+1;

  if ($npage <= $npages and $npage>1) $gline_rew = "<a href=\"wievWWW.php?npage=".($npage-1)."\">&#x43D;&#x430;&#x437;&#x430;&#x434;</a>";

  if ($npages > 1 and $npage<$npages) $gline_next = "<a href=\"wievWWW.php?npage=".($npage+1)."\">&#x434;&#x430;&#x43B;&#x435;&#x435;</a>"; 

//  $line = " | ";

 

 // for ($p = 1; $p <= $npages; $p++) {

//   if ($p != $npage) { $line .= "<a href=\"wiev.php?npage=$p\"> $p </a>|";}

//   if ($p == $npage) { $line .= "$p |"; }

//  }



//  print $line;

for ($i = $first-1; $i >= $second-1; $i--) {

   $ii = $i;

   $ii++;

   $udata = explode("::",$xfile[$i]);



//   print "$udata[0]";





if ($udata[9]=="1") {

print "

<p><img src=\"icon7.jpg\" /><anchor>

$udata[0]

                 <go href=\"wievWW2.php\" method=\"post\">

				 <postfield name=\"anketa\" value=\"$udata[0]\"/>

				 <postfield name=\"id2\" value=\"$udata[10]\"/>

				 </go>

                </anchor></p>";





}

  }



print "<br/>";

print "<p>".$gline_next."</p>";

print "<p>".$gline_rew."</p>";

print "<br/>";





print "

<p><a href=\"znakWW.wml\">&#x41A; &#x430;&#x43D;&#x43A;&#x435;&#x442;&#x430;&#x43C;</a></p>

<p><a href=\"http://wap.91km.ru/index.php\">&#x41D;&#x430; &#x433;&#x43B;&#x430;&#x432;&#x43D;&#x443;&#x44E;</a></p>



</card>

</wml>";





?>