<?php header("Content-type: text/vnd.wap.wml"); header("Cache-control: no-store,no-cache,must-revalidate"); echo'<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml><card id="index" title="Sveciu knyga"><p align="center"><small><b>&#171;==-----------==&#187;</b></small><br/><small><b>&#171;Slapyvardis&#187;</b></small><br/><input name="vardas" size="11"/><br/><small><b>&#171;Komentaras&#187;</b></small><br/><input name="komentaras" size="11"/><br/><small><b><anchor>&#171;Prideti komentara&#187;<go href="Sveciu_knyga.php?id=raso" method="post"><postfield name="vardas" value="$(vardas)"/><postfield name="komentaras" value="$(komentaras)"/></go></anchor></b></small><br/><small><b>&#171;==-----------==&#187;</b></small></p>'; if($id==raso) { $msg=@file_get_contents("msg.txt"); $name=@file_get_contents("name.txt"); $sub=substr(strtolower($vardas),0,3); $tik=@ereg("$komentaras",$msg,$j); $vardas=str_replace("|","?",$vardas); $a=true; if((empty($vardas)) || (empty($komentaras)) || ($tik==true) || ($sub=="Pirmos trys nicko raides")) { $a=false; } if($a==true) { $vardas=str_replace("Admin_pass","Admin_vardas",$vardas); $komentaras=str_replace("|","@#",$komentaras); if($komentaras=="Valymo_pass") { $fo=fopen("msg.txt","w"); fwrite($fo,"Adminas isvale sveciu knyga"); fclose($fo); $ft=fopen("name.txt","w"); fwrite($ft,"Sistema"); fclose($ft); } else { $fp=fopen("name.txt","w"); flock($fp,LOCK_EX); fwrite($fp,"$vardas|$name"); flock($fp,LOCK_UN); fclose($fp); $f=fopen("msg.txt","w"); flock($f,LOCK_EX); fwrite($f,"$komentaras|$msg"); flock($f,LOCK_UN); fclose($f); } } } $nickas=explode("|",@htmlspecialchars(file_get_contents("txt/name.txt"))); $m=htmlspecialchars(file_get_contents("msg.txt")); $m=ereg_replace("http://[A-Za-z0-9._/?=&amp;-]+","<a href=\"\\0\">\\0</a>",$m); $m=ereg_replace("Http://[A-Za-z0-9._/?=&amp;-]+","<a href=\"\\0\">\\0</a>",$m); $m=ereg_replace("HTTP://[A-Za-z0-9._/?=&amp;-]+","<a href=\"\\0\">\\0</a>",$m); $m=str_replace("(c)","&#169;",$m); $m=str_replace("(r)","&#174;",$m); $m=str_replace("@#","&brvbar;",$m); $zinute=explode("|",$m); $sk=count($nickas); if(empty($psl)) { $psl=1; } $puslapiu=ceil($sk/10); $psl=ceil($psl); $nuo=$psl*10-10; $iki=$psl*10; for($i=$nuo; $i<$iki; $i++) { if(!empty($nickas[$i])) { echo"<p align=\"center\"><small><b>&#171;$nickas[$i]&#187;</b></small></p><p><small>$zinute[$i]</small></p><p align=\"center\"><small><b>&#171;==-----------==&#187;</b></small></p>"; } } echo"<p align=\"center\">"; if($psl<$puslapiu) { $pl=$psl+1; echo"<small><b><a href=\"Sveciu_knyga.php?psl=$pl\">&#171;Toliau&#187;</a></b></small><br/>"; } if($psl>1) { $ps=$psl-1; echo"<small><b><a href=\"Sveciu_knyga.php?psl=$ps\">&#171;Atgal&#187;</a></b></small><br/>"; } echo"<small><b>&#171;Puslapis $psl/<a href=\"Sveciu_knyga.php?psl=$puslapiu\">$puslapiu</a>&#187;</b></small><br/><small><b>&#171;Zinuciu:$sk&#187;</b></small><br/><small><b>&#171;==-----------==&#187;</b></small><br/><img src=\"http://gd2u.net/cnt.php\" alt=\"Skaitliukas\" width=\"96\" height=\"36\"/><br/><small><b>&#171;==-----------==&#187;</b></small><br/><small><b><a href=\"index.php\">&#171;Grizti pradzion&#187;</a></b></small></p></card></wml>"; ?>
---
[^] Atgal
[«] Skaitykla

* * Gen. time: 0.0246
* © xneox.com