Размер файла: 945B
<?php header("Content-type: text/vnd.wap.wml; charset=utf-8"); print('<?xml version="1.0" encoding="utf-8"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd"><wml><card id="main" title="Новости"><p>');Error_reporting(0);if($t==""){?><input name="t"/><a href="add_n.php?t=$(t)">ok</a><?}else{$ot=file_get_contents("news.txt");$d=date("d.m/H:i");$t=htmlspecialchars($t);$a=array("[url=","=]","[/url]");$b=array("<=\"","\">","</a>");$t=str_replace($a,$b,$t);$fp=fopen("news.txt","wb");if(fputs($fp,"$ot:[:]:$d"."[#]$t"))echo"Новость добавлена!";else echo"Ошибка!";fclose($fp);?><br/><a href="index.php?">Смотреть</a><?} ?>WEW-Porn</p></card></wml>