Changeset 361
- Timestamp:
- 05/23/06 02:17:04 (3 years ago)
- Files:
-
- devel/config-dist.php (modified) (1 diff)
- devel/lib/elgglib.php (modified) (1 diff)
- devel/lib/setup.php (modified) (1 diff)
- devel/lib/uploadlib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/config-dist.php
r310 r361 35 35 // This should be OUTSIDE your wwwroot. 36 36 $CFG->dataroot = ''; 37 // You may change th is valueto something else but you must ensure that38 // the user runs the web server process beable to read and write under39 // th is permission.37 // You may change these values to something else but you must ensure that 38 // the user the web server process runs as is able to read and write under 39 // these permissions. 40 40 //$CFG->directorypermissions = 0777; 41 //$CFG->filepermissions = 0666; 41 42 42 43 $CFG->dbtype = 'mysql'; // for now devel/lib/elgglib.php
r343 r361 3741 3741 umask(0000); 3742 3742 if (copy($from_file,$to_file)) { 3743 chmod($to_file,$CFG-> directorypermissions);3743 chmod($to_file,$CFG->filepermissions); 3744 3744 return true; 3745 3745 } devel/lib/setup.php
r356 r361 95 95 } 96 96 97 /// Files might not want all the permissions that directories have, e.g. +x or g+s, 98 /// so using a separate setting for files 99 if (empty($CFG->filepermissions)) { 100 $CFG->filepermissions = 0666; // Must be octal 101 } 102 97 103 if (!is_writable($CFG->dataroot)) { 98 104 $messages[] = gettext("Your current dataroot directory, $CFG->dataroot is not writable by the webserver!"); devel/lib/uploadlib.php
r344 r361 212 212 } 213 213 if (move_uploaded_file($this->files[$i]['tmp_name'], $destination.'/'.$this->files[$i]['name'])) { 214 chmod($destination .'/'. $this->files[$i]['name'], $CFG-> directorypermissions);214 chmod($destination .'/'. $this->files[$i]['name'], $CFG->filepermissions); 215 215 $this->files[$i]['fullpath'] = $destination.'/'.$this->files[$i]['name']; 216 216 $this->files[$i]['uploadlog'] .= "\n".gettext('File uploaded successfully');
