/** * check log path * @param array form data * @return boolean */ function checkLogSetup($a_formdata) { // log path if (!$a_formdata["chk_log_status"]) { // remove trailing slash & convert backslashes to forwardslashes $log_path = preg_replace("/\\\\/", "/", ilFile::deleteTrailingSlash(ilUtil::stripSlashes($a_formdata["log_path"]))); if (empty($log_path)) { $this->error = "no_path_log"; return false; } if (!@touch($log_path)) { $this->error = "could_not_create_logfile"; return false; } } return true; }
/** * Constructor * class bas constructor and read path of directory from ilias.ini * setup an mail object * @access public */ function ilFileData() { parent::ilFile(); $this->path = CLIENT_DATA_DIR; }