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]; |
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 |
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) ; |