View file wapcatalog/add.php

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(':', '&#58;', $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>&#x0412;&#x044B; &#x0434;&#x043E;&#x0431;&#x0430;&#x0432;&#x043B;&#x0435;&#x043D;&#x044B; &#x0432; &#x043A;&#x0430;&#x0442;&#x0430;&#x043B;&#x043E;&#x0433;!</p>

</card>
</wml>";

?>