/[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.14 by dpavlin, Sun Jul 28 12:14:18 2002 UTC revision 1.15 by dpavlin, Sun Jul 28 13:08:21 2002 UTC
# Line 1548  function check_filename($file) { Line 1548  function check_filename($file) {
1548          }          }
1549    
1550          // if no password, or empty password logout          // if no password, or empty password logout
1551            $relogin = $HTTP_GET_VARS[relogin];
1552            $force_login = $HTTP_GET_VARS[force_login];
1553          if (          if (
1554                  isset($gblLogin) && (                  isset($gblLogin) && (
1555                          !isset($relogin) || (                          !isset($relogin) || (
# Line 1875  function check_filename($file) { Line 1877  function check_filename($file) {
1877          case "I" :          case "I" :
1878                  if (! isset($F) || $F == "")                  if (! isset($F) || $F == "")
1879                          Error("Can't find file to include","Your request didn't specify file to include which should be in variable <tt>F</tt> like <tt>$HTTP_SERVER_VARS[REQUEST_URI]<b>&F=include_php_file</b></tt>",1);                          Error("Can't find file to include","Your request didn't specify file to include which should be in variable <tt>F</tt> like <tt>$HTTP_SERVER_VARS[REQUEST_URI]<b>&F=include_php_file</b></tt>",1);
1880                  if (file_exists("$gblIncDir/include_php/$F.php")) {                  $inc_file="$fsRealmDir/$realm".$realm_sep.$F.".php";
1881                          $inc_file="$gblIncDir/include_php/${F}.php";                  if (! file_exists($inc_file)) {
1882                  } elseif (file_exists("$fsRealmDir/$realm/$F.php")) {                          Error("Can't find file to include","Can't find include file <tt>$F.php</tt> in <tt>$fsRealmDir/$realm/</tt>. Meybe you should copy <tt>$gblIncDir/include_php/$F.php</tt> to <tt>$inc_file<tt> ?",1);
                         $inc_file="$fsRealmDir/$realm/${F}.php";  
                 } else {  
                         Error("Can't find file to include","Can't find include file <tt>$F.php</tt> in <tt>$gblIncDir/include_php/<tt> nor <tt>$fsRealmDir/$realm/</tt>",1);  
1883                  }                  }
1884                  if (!is_readable($inc_file))                  if (!is_readable($inc_file))
1885                          Error("Read access to include file denied","Can't read PHP include file <tt>$inc_file</tt>. Fix permissions on it.");                          Error("Read access to include file denied","Can't read PHP include file <tt>$inc_file</tt>. Fix permissions on it.",1);
1886                  $text  = "Your include file should define \$text variable which holds this text and \$title variable which is page title";                  $text  = "Your include file should define \$text variable which holds this text and \$title variable which is page title";
1887                  $title = "You should define \$title variable with page title";                  $title = "You should define \$title variable with page title";
1888                  include($inc_file);                  include($inc_file);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.26