/[pliva-si]/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.5 by dpavlin, Thu Sep 20 09:50:24 2001 UTC revision 1.7 by dpavlin, Tue Nov 20 08:48:14 2001 UTC
# Line 1  Line 1 
1  <?  <?
2          require('class.DBI');  //      require('class.DBI');
3            require("dbi_pgsql.php");
4    
5          $db="plivasi";          $db="plivasi";
6          $dbh = new DBI("dbi:pg:$db","dpavlin","");          $dbh = new DBI($db,"dpavlin","");
7    
8          if (!$WAP && ( strstr($accept,"text/vnd.wap.wml") || strstr($accept,"hdml;version=3.0") ) ) {          if (!$WAP && ( strstr($accept,"text/vnd.wap.wml") || strstr($accept,"hdml;version=3.0") ) ) {
9                  Header("Location: wap.php");                  Header("Location: wap.php");
# Line 20  Line 22 
22          $sth->execute();          $sth->execute();
23          global $menu_item;          global $menu_item;
24          if ($row=$sth->fetchrow_hash()) {          if ($row=$sth->fetchrow_hash()) {
25                  $menu_item=$row[0];                  $menu_item=str_replace("\\n"," ",$row[0]);
26          }          }
27    
28          // generate random numbers of pictures on top-right corner          // generate random numbers of pictures on top-right corner

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

  ViewVC Help
Powered by ViewVC 1.1.26