File size: 1.44Kb
<?
////////////////////////////////////////////////////////////////////////////
//// Автор скрипта: Трофимов Дмитрий Сергеевич aka dimidrol //
//// E-mail: [email protected] //
//// Home pages: http://www.trofimov.com.ru //
//// WAP SAIT: http://trofimov.com.ru/wap/ //
////////////////////////////////////////////////////////////////////////////
$text = "$url::$naz::$kateg";
$text=strip_tags($text);
$naz=str_replace(':', ':', $naz);
if ($url == "http://" or $naz == "") { print"<p>Zapolnite vse polia!</p>"; exit;}
if ($kateg == "portal") { $fp=@fopen("por.txt","a"); fputs($fp,"$text \r\n"); @fclose($fp); }
if ($kateg == "mobil") { $fp=@fopen("mob.txt","a"); fputs($fp,"$text \r\n"); @fclose($fp); }
if ($kateg == "lice") { $fp=@fopen("lic.txt","a"); fputs($fp,"$text \r\n"); @fclose($fp); }
if ($kateg == "raznoe") { $fp=@fopen("raz.txt","a"); fputs($fp,"$text \r\n"); @fclose($fp); }
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\">
<wml>
<card id=\"tes\" title=\"TROportal\">
<p>Вы добавлены в каталог!</p>
</card>
</wml>";
?>