| // +---------------------------------------------------------------------------+ define('EOL', "\n"); // dependency types define('SGL_NEUTRAL', 0); define('SGL_RECOMMENDED', 1); define('SGL_REQUIRED', 2); define('SGL_FORBIDDEN', 3); require_once dirname(__FILE__) . '/../Request.php'; require_once dirname(__FILE__) . '/../Task.php'; function bool2words($key) { return ($key === true || $key === 1) ? 'Yes' : 'No'; } function bool2int($key) { return ($key === true || $key === 1) ? 1 : 0; } function ini_get2($key) { return (ini_get($key) == '1' || $key === true ? 1 : 0); } /** * @package Task */ class SGL_EnvSummaryTask extends SGL_Task { var $aData = array(); var $aErrors = array(); var $aRequirements = array(); var $title = ''; var $mandatory = false; function render() { $html = '
'.$this->title.' | '.EOL; // check if in "php.ini Settings" portion of environment detection if (array_key_exists('register_globals', $this->aData)) { $cfg_file_path = (get_cfg_var("cfg_file_path")) ? get_cfg_var("cfg_file_path") : "php.ini not available"; $html .= '||||||
---|---|---|---|---|---|---|
Note: Your php configuration file (php.ini) is located at: ' . $cfg_file_path . ' | ||||||
Warning: ' . 'This server seems to be using the open_basedir php setting to limit ' . 'all file operations to the following directory: ' . $open_basedir . '. ' . 'This may cause your installation and application ' . 'to work incorrectly. | ||||||
Recommended | Actual | |||||
'.SGL_Inflector::getTitleFromCamelCase($k).' | '; if (is_array($v)) { $html .= ''.$this->createComboBox($v).' | '; } elseif ($this->mandatory) { $html .= ''.$this->processDependency($this->aRequirements[$k], @$this->aErrors[$k], $k, $v).$discoveredValue.' | '; } else { $html .= ''.$this->processRecommended($this->aRequirements[$k]).' | '; $html .= ''.$this->processDependency($this->aRequirements[$k], @$this->aErrors[$k], $k, $v).$discoveredValue.' | '; } $html .= '