diff --git a/config/config.inc.php b/config/config.inc.php index d566e24dc..4b38f56cd 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -29,12 +29,14 @@ define('__ZBXE__', __XE__); /** * Display XE's full version. */ -define('__XE_VERSION__', '1.7.11'); +define('__XE_VERSION__', '1.7.12'); define('__XE_VERSION_ALPHA__', (stripos(__XE_VERSION__, 'alpha') !== false)); define('__XE_VERSION_BETA__', (stripos(__XE_VERSION__, 'beta') !== false)); define('__XE_VERSION_RC__', (stripos(__XE_VERSION__, 'rc') !== false)); define('__XE_VERSION_STABLE__', (!__XE_VERSION_ALPHA__ && !__XE_VERSION_BETA__ && !__XE_VERSION_RC__)); +define('__XE_MIN_PHP_VERSION__', '5.3.0'); + /** * @deprecated __ZBXE_VERSION__ will be removed. Use __XE_VERSION__ instead. */ diff --git a/modules/admin/admin.class.php b/modules/admin/admin.class.php index f467daec0..4eb9a801c 100644 --- a/modules/admin/admin.class.php +++ b/modules/admin/admin.class.php @@ -13,7 +13,6 @@ class admin extends ModuleObject { private $adminMenuName = '__ADMINMENU_V17__'; - public function getAdminMenuName() { return $this->adminMenuName; diff --git a/modules/admin/tpl/index.html b/modules/admin/tpl/index.html index 04c73e0a3..30951f890 100644 --- a/modules/admin/tpl/index.html +++ b/modules/admin/tpl/index.html @@ -79,6 +79,20 @@ + +
+

안전하지 않은 PHP 버전 경고

+

이 서버는 안전하지 않은 PHP 버전을 사용하고 있으며, PHP를 최신 안정 버전으로의 업그레이드를 권장합니다.

+

이 서버의 PHP 버전 : {phpversion()}

+

PHP 최신 안정버전 확인하기

+ + +
diff --git a/modules/autoinstall/autoinstall.admin.model.php b/modules/autoinstall/autoinstall.admin.model.php index f77f24082..e51210690 100644 --- a/modules/autoinstall/autoinstall.admin.model.php +++ b/modules/autoinstall/autoinstall.admin.model.php @@ -306,6 +306,7 @@ class autoinstallAdminModel extends autoinstall if($dep->path === '.') { $package->contain_core = TRUE; + $package->contain_core_version = $dep->version; } } else @@ -327,6 +328,7 @@ class autoinstallAdminModel extends autoinstall if($package->path === '.') { $package->contain_core = TRUE; + $package->contain_core_version = $package->version; } } diff --git a/modules/autoinstall/autoinstall.admin.view.php b/modules/autoinstall/autoinstall.admin.view.php index f639bef0b..bc5613f52 100644 --- a/modules/autoinstall/autoinstall.admin.view.php +++ b/modules/autoinstall/autoinstall.admin.view.php @@ -362,6 +362,14 @@ class autoinstallAdminView extends autoinstall Context::set("package", $package); Context::set('contain_core', $package->contain_core); + Context::set('contain_core_version', $package->contain_core_version); + + $does_not_update_xecore = FALSE; + if($package->contain_core_version && version_compare($package->contain_core_version, '1.8.0', '>=') && version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '<')) + { + $does_not_update_xecore = TRUE; + } + Context::set('does_not_update_xecore', $does_not_update_xecore); if(!$_SESSION['ftp_password']) { diff --git a/modules/autoinstall/tpl/install.html b/modules/autoinstall/tpl/install.html index d317295bf..376a2f30a 100644 --- a/modules/autoinstall/tpl/install.html +++ b/modules/autoinstall/tpl/install.html @@ -2,6 +2,21 @@

{$package->title} ver. {$package->version}

+ +
+

안전하지 않은 PHP 버전 경고

+

이 서버는 안전하지 않은 PHP 버전을 사용하고 있으며, PHP를 최신 안정 버전으로의 업그레이드를 권장합니다.

+

이 서버의 PHP 버전 : {phpversion()}

+

PHP 최신 안정버전 확인하기

+ +
    +
  • 매우 심각한 PHP 보안 문제 및 공격에 노출될 수 있습니다.
  • +
  • XE 최신 버전을 사용할 수 없습니다.
  • +
  • XE 최신 버전 이상을 지원하는 확장 기능을 사용할 수 없습니다.
  • +
  • 일부 확장 기능이 동작하지 않거나, 이로 인해 장애가 발생할 수 있습니다.
  • +
+
+

{$lang->msg_update_core_title}

{$lang->msg_update_core}

@@ -24,7 +39,7 @@
- +

{$lang->msg_direct_install_not_supported}