/[corp_html]/wap.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /wap.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dpavlin, Mon Mar 5 12:02:11 2001 UTC revision 1.6 by dpavlin, Mon Mar 5 18:49:13 2001 UTC
# Line 1  Line 1 
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;
# Line 44  function fixup($html) { Line 44  function fixup($html) {
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()) {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.26