/[docman2]/docman.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 /docman.php

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

revision 1.38 by dpavlin, Mon May 5 15:28:26 2003 UTC revision 1.39 by dpavlin, Wed Jun 11 02:32:50 2003 UTC
# Line 23  Line 23 
23          error_reporting(E_ALL) ;                // how verbose ?          error_reporting(E_ALL) ;                // how verbose ?
24    
25          // from where to include auth_*.php modules?          // from where to include auth_*.php modules?
26          $gblIncDir = "/data/docman2";          // this is defined in global configuration file /etc/docman.conf
27            //$gblIncDir = "/data/docman2";
28    
29          // force download on view (so it won't open in associated application)          // force download on view (so it won't open in associated application)
30          $gblForceDownload = 0;          $gblForceDownload = 0;
# Line 74  Line 75 
75  //////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////
76    
77          $gblTitle = "Document Manager";          $gblTitle = "Document Manager";
78          $gblVersion = "2.0-pre3";          $gblVersion = "2.0-pre4";
79    
80          $secHash    = "";          $secHash    = "";
81    
         // location of html files  
         $html = $gblIncDir."/html";  
   
82          // load language          // load language
83          if (isset($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"])) {          if (isset($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"])) {
84                  LoadLanguage($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]);                  LoadLanguage($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]);
# Line 123  function StartHTML($title,$text="") { Line 121  function StartHTML($title,$text="") {
121          $self  = $HTTP_SERVER_VARS["PHP_SELF"] ;          $self  = $HTTP_SERVER_VARS["PHP_SELF"] ;
122    
123          if (file_exists("$fsDocumentRoot/docman.css")) {          if (file_exists("$fsDocumentRoot/docman.css")) {
124                  $css=dirname($self)."/docman.css";                  $css = "";
125                    $d = dirname($self);
126                    if ($d != "/") $css = $d;
127                    $css .= "/docman.css";
128          } else {          } else {
129                  $css=$self."?STYLE=get";                  $css=$self."?STYLE=get";
130          }          }
   
131          include("$html/head.html");          include("$html/head.html");
132  }  }
133    
# Line 1588  function isBlank($file,$what = "filename Line 1588  function isBlank($file,$what = "filename
1588          $docman_conf = "/etc/docman.conf";          $docman_conf = "/etc/docman.conf";
1589          if (! file_exists($docman_conf)) {          if (! file_exists($docman_conf)) {
1590                  $error = "Can't find master configuration file <tt>$docman_conf</tt>. See <tt>docman2/doc/upgrade.html#docman_conf</tt> for more informations";                  $error = "Can't find master configuration file <tt>$docman_conf</tt>. See <tt>docman2/doc/upgrade.html#docman_conf</tt> for more informations";
1591                    
1592                  error_log("docman: $error");                  error_log("docman: $error");
1593                  Error("docman not installed completly",$error);                  Error("docman not installed completly",$error);
1594          }          }
1595          include($docman_conf);          include($docman_conf);
1596    
1597            // location of html files
1598            $html = $gblIncDir."/html";
1599    
1600            // set fsRealmDir
1601          if (! isset($fsRealmDir)) {          if (! isset($fsRealmDir)) {
1602                  $fsRealmDir = "$gblIncDir/realm";                  $fsRealmDir = "$gblIncDir/realm";
1603          }          }

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.26