/[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.31 by dpavlin, Tue Jan 30 16:48:36 2001 UTC revision 1.32 by dpavlin, Thu Feb 15 21:20:53 2001 UTC
# Line 1121  function DisplayChangeLog($day) { Line 1121  function DisplayChangeLog($day) {
1121    
1122          $htusers_file=dirname($SCRIPT_FILENAME)."/.htusers";          $htusers_file=dirname($SCRIPT_FILENAME)."/.htusers";
1123          if (! file_exists($htusers_file)) {          if (! file_exists($htusers_file)) {
1124                  if (is_writable($htuser_file)) {                  if (is_writable(dirname($SCRIPT_FILENAME))) {
1125                          $htusers=fopen($htusers_file,"a+");                          $htusers=fopen($htusers_file,"a+");
1126                          fputs($htusers,"# Change owner of $htusers_file to root !!\n");                          fputs($htusers,"# Change owner of $htusers_file to root !!\n");
1127                          fputs($htusers,"demo:full name:[md5_hash|auth_*]:e-mail\n");                          fputs($htusers,"demo:full name:[md5_hash|auth_*]:e-mail\n");
1128                          fclose($htusers);                          fclose($htusers);
1129                            Error("Proto user file created!","Please edit <tt>$htusers_file</tt> and set it correct permissions (<B>not writable by web server as it is now!</b>). You can add users using <tt>adduser.pl</tt> script!");
1130                            exit;
1131                  } else {                  } else {
1132                          Error("Can't create proto user file!","Please make directory <tt>".dirname($htusers_file)."</tt> writable or create <tt>.htusers</tt> file by hand using <tt>adduser.pl</tt> script!");                          Error("Can't create proto user file!","Please make directory <tt>".dirname($htusers_file)."</tt> writable or create <tt>.htusers</tt> file by hand using <tt>adduser.pl</tt> script!");
1133                          exit;                          exit;

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.26