private function sysCheck() { $success = true; $to_check = array(CS_PATH_SITE => 'Document Root Writable', CS_INSTALL_DIR . DIR_SEP . 'cron_jobs' => 'Cron Jobs Writable', CS_PATH_CONFIG => 'Configuration Files Writable', CS_PATH_TEMPLATES => 'Templates Folder Writable', CS_PATH_SITE . DIR_SEP . 'cache' => 'Cache Folder Writable', CS_PATH_SITE . DIR_SEP . 'plugins' => 'Plugins Folder Writable', CS_PATH_SITE . DIR_SEP . 'backup' => 'Backup Folder Writable', CS_PATH_SITE . DIR_SEP . 'images' => 'Images Folder Writable', CS_PATH_SITE . DIR_SEP . 'images' . DIR_SEP . 'thumbnails' => 'Thumbnails Folder Writable', CS_PATH_SITE . DIR_SEP . 'files' => 'Attachments Folder Writable', CS_PATH_SITE . DIR_SEP . 'videos' => 'Videos Folder Writable'); foreach ($to_check as $path => $tag) { $isWritable = CampInstallationViewHelper::CheckDirWritable($path); $success = $isWritable == 'Yes' ? $success : false; $sysRequirements[] = array('tag' => $tag, 'exists' => $isWritable, 'path' => $path); } $this->m_lists['sysRequirements'] = $sysRequirements; return $success; }
private function sysCheck() { $success = true; $to_check = array( CS_PATH_SITE => 'Document Root Writable', CS_INSTALL_DIR.DIR_SEP.'cron_jobs' => 'Cron Jobs Writable', CS_PATH_CONFIG => 'Configuration Files Writable', CS_PATH_TEMPLATES => 'Templates Folder Writable', CS_PATH_SITE.DIR_SEP.'templates_cache' => 'Templates Cache Writable', CS_PATH_SITE.DIR_SEP.'plugins' => 'Plugins Folder Writable', CS_PATH_SITE.DIR_SEP.'backup' => 'Backup Folder Writable', ); foreach ($to_check as $path => $tag) { $isWritable = CampInstallationViewHelper::CheckDirWritable($path); $success = ($isWritable == 'Yes') ? $success : false; $sysRequirements[] = array( 'tag' => $tag, 'exists' => $isWritable, 'path' => $path ); } if (CampInstallation::GetHostOS() == 'windows') { $sysRequirements[] = array( 'tag' => 'Apache mod_rewrite enabled', 'exists' => '<a href="#" onmouseover="domTT_activate(this, event, \'caption\', \'What is this?\', \'content\', \''.wordwrap('As you are installing Newscoop on a Windows server you will need to have the Apache mod_rewrite module enabled in order to be able to use friendly short names URLs.<br /><br />This, however, is not mandatory, as you still will can run Newscoop by using template path URLs.', 60, '<br />', true).'\', \'trail\', true, \'delay\', 0);">?</a>' ); } $this->m_lists['sysRequirements'] = $sysRequirements; return $success; } // fn sysCheck