--- docman.php 2001/02/23 11:51:39 1.34 +++ docman.php 2001/03/11 15:36:51 1.35 @@ -1058,7 +1058,7 @@ function safe_rename($fromdir,$fromfile,$tofile) { function try_rename($from,$to) { print "$from -> $to\n"; - if (file_exists($from) && is_writable(dirname($to))) { + if (file_exists($from) && is_writeable(dirname($to))) { rename($from,$to); } } @@ -1166,7 +1166,7 @@ $htusers_file=dirname($SCRIPT_FILENAME)."/.htusers"; if (! file_exists($htusers_file)) { - if (is_writable(dirname($SCRIPT_FILENAME))) { + if (is_writeable(dirname($SCRIPT_FILENAME))) { $htusers=fopen($htusers_file,"a+"); fputs($htusers,"# Change owner of $htusers_file to root !!\n"); fputs($htusers,"demo:full name:[md5_hash|auth_*]:e-mail\n"); @@ -1321,7 +1321,7 @@ // this functionality is doubled in DetailView(). // better keep it here altogether // chmod perms to $gblFilePerms - if ( file_exists($path) && !is_writable($path) ) + if ( file_exists($path) && !is_writeable($path) ) Error("File not writable", $relPath) ; $fh = fopen($path, "w+") ; if ($fh) {