Added pipework/linework comments to each page
This commit is contained in:
@@ -69,23 +69,23 @@ class mfUpload {
|
||||
return false;
|
||||
}
|
||||
|
||||
$savepath=MFUPLOAD_FILE_SAVE_PATH;
|
||||
$savepath = MFUPLOAD_FILE_SAVE_PATH;
|
||||
if(!MFUPLOAD_FILE_SAVE_PATH) {
|
||||
$savepath="upload/";
|
||||
$savepath = "upload/";
|
||||
}
|
||||
|
||||
$this->log->debug("dirmode: ".decoct($this->dirmode));
|
||||
if(!file_exists($savepath)) {
|
||||
if(!mkdir($savepath,$this->dirmode,true)) {
|
||||
if(!mkdir($savepath, $this->dirmode,true)) {
|
||||
throw new Exception("Error creating directory $savepath.");
|
||||
}
|
||||
chmod($savepath,$this->dirmode);
|
||||
chmod($savepath, $this->dirmode);
|
||||
}
|
||||
if(!is_dir($savepath)) {
|
||||
throw new Exception("Upload save path not a directory!");
|
||||
}
|
||||
|
||||
$this->savepath=$savepath;
|
||||
$this->savepath = $savepath;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ class mfUpload {
|
||||
}
|
||||
|
||||
public function setDirmode($mode) {
|
||||
$this->dirmode=$mode;
|
||||
$this->dirmode = $mode;
|
||||
}
|
||||
|
||||
public function getFilemode() {
|
||||
|
||||
Reference in New Issue
Block a user