From e623b6ba9fd96a8d59ae5203a2208fb1e6292d72 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 7 Sep 2011 08:04:17 +0000 Subject: [PATCH] * remove the isCentOS() method. --- framework/helper.class.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/framework/helper.class.php b/framework/helper.class.php index 4ee55422d6..b5fbfd6533 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -324,20 +324,6 @@ class helper chdir($cwd); } } - - /** - * Judge the os is centos or not. - * - * @access private - * @return bool - */ - static public function isCentOS() - { - if(PHP_OS != 'Linux') return false; - $issueFile = '/etc/issue'; - if(!file_exists($issueFile) or !is_readable($issueFile)) return false; - return stripos(file_get_contents($issueFile), 'centos') !== false; - } } /**