Просмотр файла f_update.dat

Размер файла: 968B
  1. // когда обновляем игру
  2.  
  3. header("Content-type:text/vnd.wap.wml;charset=utf-8");
  4. echo "<?xml version=\"1.0\"?>\n";
  5. echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
  6. setlocale (LC_CTYPE, 'ru_RU.CP1251');
  7. function win2unicode ( $s ) { if ( (ord($s)>=192) & (ord($s)<=255) ) $hexvalue=dechex(ord($s)+848); if ($s=="Ё") $hexvalue="401"; if ($s=="ё") $hexvalue="451"; return("&#x0".$hexvalue.";");}
  8. function translate($s) {return(preg_replace("/[А-яЁё]/e","win2unicode('\\0')",$s));}
  9. ob_start("translate");
  10. echo "<wml>\n<head>\n<meta forua=\"true\" http-equiv=\"Cache-Control\" content=\"must-revalidate\"/>\n<meta forua=\"true\" http-equiv=\"Cache-Control\" content=\"no-cache\"/>\n<meta forua=\"true\" http-equiv=\"Cache-Control\" content=\"no-store\"/>\n</head>\n<card title=\"$game_title\">\n<p>Игра обновляется, зайдите через несколько минут</p></card></wml>";
  11. ob_end_flush();
  12. die("");