Просмотр файла worldtimeservis/timereg.php

Размер файла: 1.1Kb
  1. <?php
  2. header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
  3. echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
  4. echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
  5. \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
  6. echo "<!-- 2005 - 2008 gscorpy@gmail.com -->\n";
  7.  
  8.  
  9. echo "<wml>";
  10. echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>";
  11.  
  12. echo "<card title=\"Registration\">";
  13. echo "<p>\n";
  14. echo "\n";
  15.  
  16. $sitereg = str_replace ("http://", "", $sitereg);
  17. $sitereg = str_replace ("Http://", "", $sitereg);
  18. $sitereg = str_replace ("HTTP://", "", $sitereg);
  19.  
  20. $tiednim= fopen('timesites.txt', 'a');
  21. $lisnim=$sitereg.'
  22. ';
  23. fputs($tiednim, $lisnim);
  24. fclose($tiednim);
  25.  
  26. echo "Registration success!<br/>Put this link to your site: <br/><br/>http://yoursite.com/folder/yourtime.php?site=$sitereg<br/>";
  27.  
  28. echo "<a href=\"yourtime.php?site=$sitereg\">Look your page</a><br/><br/>";
  29. echo "<a href=\"http://gscorpy.net\">Gscorpy Portal</a><br/>";
  30. echo "<a href=\"timereg.wml\">Back</a><br/>";
  31.  
  32. echo "\n";
  33. echo "</p>";
  34. echo "</card>";
  35. echo "</wml>";
  36. ?>