/[corp_html]/inc/conn.inc
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 /inc/conn.inc

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

revision 1.1 by dpavlin, Thu Feb 1 11:43:20 2001 UTC revision 1.5 by dpavlin, Sat Mar 3 12:56:37 2001 UTC
# Line 3  Line 3 
3          $db="corp";          $db="corp";
4          $dbh = new DBI("dbi:pg:$db","dpavlin","");          $dbh = new DBI("dbi:pg:$db","dpavlin","");
5    
6            if (!$WAP && ( strstr($accept,"text/vnd.wap.wml") || strstr($accept,"hdml;version=3.0") ) ) {
7                    Header("Location: wap.php");
8                    header("Content-type: text/vnd.wap.wml");
9                    exit;
10            }
11    
12            $url=basename($PHP_SELF)."?$QUERY_STRING";
13            $sth = $dbh->prepare("select item from menu where url = '$url'");
14            $sth->execute();
15            global $menu_item;
16            if ($row=$sth->fetchrow_hash()) {
17                    $menu_item=$row[0];
18            }
19    
20  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26