*/ /** * System settings verification. * * @package stUpdate * @subpackage libs */ class stServerSettings { /** * Check if php include path contain path to PEAR, * * @param string $file * @return bool */ public function isPEAR($file='PEAR.php') { $include_path=ini_get('include_path'); $paths=split(':',$include_path); foreach ($apths as $path) { $pearFile=$path.DIRECTORY_SEPARATOR.$file; if (file_exists($pearFile)) return true; else return false; } } }