1 |
<? |
<? |
2 |
|
|
3 |
require("Smarty.class.php"); |
#$accept=strtolower($HTTP_ACCEPT); |
4 |
|
#if ($WAP || strstr($accept,"text/vnd.wap.wml") || strstr($accept,"hdml;version=3.0")) { |
5 |
if ($WAP || strstr($accept,"text/vnd.wap.wml") || strstr($accept,"hdml;version=3.0")) { |
# header("Content-Type: text/vnd.wap.wml"); |
6 |
header("Content-Type: text/vnd.wap.wml"); |
#} |
7 |
} |
header("Content-Type: text/vnd.wap.wml"); |
8 |
|
|
9 |
global $WAP; |
global $WAP; |
10 |
$WAP=1; |
$WAP=1; |
44 |
return utf8_encode(htmlspecialchars($tmp)); |
return utf8_encode(htmlspecialchars($tmp)); |
45 |
} |
} |
46 |
|
|
47 |
|
require("Smarty.class.php"); |
48 |
$smarty = new Smarty; |
$smarty = new Smarty; |
49 |
|
|
50 |
while ($row=$sth->fetchrow_hash()) { |
while ($row=$sth->fetchrow_hash()) { |