/[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.8 by dpavlin, Tue Sep 18 10:26:46 2001 UTC revision 1.10 by dpavlin, Wed Dec 26 21:15:00 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") ) ) {          if (!$WAP && ( strstr($accept,"text/vnd.wap.wml") || strstr($accept,"hdml;version=3.0") || $GLOBALS["HTTP_HOST"] == "wap.pliva.hr" ) ) {
7                  Header("Location: wap.php");                  Header("Location: wap.php");
8                  header("Content-type: text/vnd.wap.wml");                  header("Content-type: text/vnd.wap.wml");
9                  exit;                  exit;
# Line 24  Line 24 
24          }          }
25    
26          // parse /preview URL          // parse /preview URL
27            
28            global $is_preview,$visible_is_true;
29    
30          $preview_url="/preview";          $preview_url="/preview";
31          if (substr($GLOBALS[REQUEST_URI],0,strlen($preview_url)) == $preview_url) {          if (substr($GLOBALS[REQUEST_URI],0,strlen($preview_url)) == $preview_url) {
32                  $is_preview=1;                  $is_preview=1;
                 $visible_is_true = "visible is true";  
         } else {  
33                  $visible_is_true = "true";      // visible can be true or false                  $visible_is_true = "true";      // visible can be true or false
34            } else {
35                    $visible_is_true = "visible is true"; // limit output just to visible
36          }          }
37    
38    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.26