/[docman]/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.2 by dpavlin, Wed Jul 26 11:46:19 2000 UTC revision 1.3 by dpavlin, Thu Aug 3 19:35:44 2000 UTC
# Line 96  TODO: Line 96  TODO:
96          $gblPw    = "";          $gblPw    = "";
97    
98          if ($gblAuth) {          if ($gblAuth) {
99                  $htusers=fopen(dirname($SCRIPT_FILENAME)."/.htusers","r");                  $htusers_file=dirname($SCRIPT_FILENAME)."/.htusers";
100                    if (! file_exists($htusers_file)) {
101                            $htusers=fopen($htusers_file,"a+");
102                            fputs($htusers,"# Change owner of $htusers_file to root !!\n");
103                            fputs($htusers,"demo:full name:md5_hash\n");
104                            fclose($htusers);
105                    }
106                    $htusers=fopen($htusers_file,"r");
107                  while($user = fgetcsv($htusers,255,":")) {                  while($user = fgetcsv($htusers,255,":")) {
108                          if ($user[0] == $GLOBALS["PHP_AUTH_USER"]) {                          if ($user[0] == $GLOBALS["PHP_AUTH_USER"]) {
109                                  $gblUserName=$user[1];                                  $gblUserName=$user[1];
# Line 124  TODO: Line 131  TODO:
131          // the directory below should be /icons/ or /icons/small/          // the directory below should be /icons/ or /icons/small/
132          // on Apache; a set of icons is included in the distribution          // on Apache; a set of icons is included in the distribution
133    
134          $gblIconLocation = "icons/" ;          $gblIconLocation = "/icons/" ;
135    
136          // files you want to be able to edit in text mode          // files you want to be able to edit in text mode
137          // and view with (primitive) syntax highlighting          // and view with (primitive) syntax highlighting
# Line 628  function Navigate($fsRoot,$relDir) { Line 635  function Navigate($fsRoot,$relDir) {
635          // start navigation page          // start navigation page
636          $text  = "Use this page to add, delete";          $text  = "Use this page to add, delete";
637          if (! isset($show_deleted)) {          if (! isset($show_deleted)) {
638                  $text .= ", <a href=$PHP_SELF?show_deleted=1>undelete</a>";                  $text .= ", <a href=".$GLOBALS[PHP_SELF]."?D=".urlencode($relDir)."&show_deleted=1>undelete</a>";
639          }          }
640          $text .= " or revise files on this web site." ;          $text .= " or revise files on this web site." ;
641          StartHTML("(Navigate)",$text) ;          StartHTML("(Navigate)",$text) ;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26