Skip to content

Commit 1108e24

Browse files
author
bnu
committed
Merge branch 'hotfix/1.7.12'
2 parents 656e378 + 8563c7d commit 1108e24

File tree

6 files changed

+43
-3
lines changed

6 files changed

+43
-3
lines changed

config/config.inc.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@
2929
/**
3030
* Display XE's full version.
3131
*/
32-
define('__XE_VERSION__', '1.7.11');
32+
define('__XE_VERSION__', '1.7.12');
3333
define('__XE_VERSION_ALPHA__', (stripos(__XE_VERSION__, 'alpha') !== false));
3434
define('__XE_VERSION_BETA__', (stripos(__XE_VERSION__, 'beta') !== false));
3535
define('__XE_VERSION_RC__', (stripos(__XE_VERSION__, 'rc') !== false));
3636
define('__XE_VERSION_STABLE__', (!__XE_VERSION_ALPHA__ && !__XE_VERSION_BETA__ && !__XE_VERSION_RC__));
3737

38+
define('__XE_MIN_PHP_VERSION__', '5.3.0');
39+
3840
/**
3941
* @deprecated __ZBXE_VERSION__ will be removed. Use __XE_VERSION__ instead.
4042
*/

modules/admin/admin.class.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class admin extends ModuleObject
1313
{
1414

1515
private $adminMenuName = '__ADMINMENU_V17__';
16-
1716
public function getAdminMenuName()
1817
{
1918
return $this->adminMenuName;

modules/admin/tpl/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,20 @@ <h2>{$lang->available_new_version}</h2>
7979
<include target="./_dashboard_default.html" />
8080
</block>
8181
</div>
82+
83+
<div class="message error" cond="version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '<')">
84+
<h2>안전하지 않은 PHP 버전 경고</h2>
85+
<p>이 서버는 안전하지 않은 PHP 버전을 사용하고 있으며, PHP를 최신 안정 버전으로의 업그레이드를 권장합니다.</p>
86+
<p>이 서버의 PHP 버전 : <strong>{phpversion()}</strong></p>
87+
<p><a href="http://php.net/downloads.php" target="_blank">PHP 최신 안정버전 확인하기</a></p>
88+
89+
<ul>
90+
<li>매우 심각한 PHP 보안 문제 및 공격에 노출될 수 있습니다.</li>
91+
<li>XE 최신 버전을 사용할 수 없습니다.</li>
92+
<li>XE 최신 버전 이상을 지원하는 확장 기능을 사용할 수 없습니다.</li>
93+
<li>일부 확장 기능이 동작하지 않거나, 이로 인해 장애가 발생할 수 있습니다.</li>
94+
</ul>
95+
</div>
8296
</div>
8397
<include target="./_footer.html" />
8498

modules/autoinstall/autoinstall.admin.model.php

+2
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ public function getInstallInfo($packageSrl)
306306
if($dep->path === '.')
307307
{
308308
$package->contain_core = TRUE;
309+
$package->contain_core_version = $dep->version;
309310
}
310311
}
311312
else
@@ -327,6 +328,7 @@ public function getInstallInfo($packageSrl)
327328
if($package->path === '.')
328329
{
329330
$package->contain_core = TRUE;
331+
$package->contain_core_version = $package->version;
330332
}
331333
}
332334

modules/autoinstall/autoinstall.admin.view.php

+8
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,14 @@ function dispAutoinstallAdminInstall()
362362

363363
Context::set("package", $package);
364364
Context::set('contain_core', $package->contain_core);
365+
Context::set('contain_core_version', $package->contain_core_version);
366+
367+
$does_not_update_xecore = FALSE;
368+
if($package->contain_core_version && version_compare($package->contain_core_version, '1.8.0', '>=') && version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '<'))
369+
{
370+
$does_not_update_xecore = TRUE;
371+
}
372+
Context::set('does_not_update_xecore', $does_not_update_xecore);
365373

366374
if(!$_SESSION['ftp_password'])
367375
{

modules/autoinstall/tpl/install.html

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
<load target="js/waiting.js" usecdn="true" />
33

44
<h2>{$package->title} ver. {$package->version}</h2>
5+
6+
<div class="message error" cond="version_compare(PHP_VERSION, __XE_MIN_PHP_VERSION__, '<')">
7+
<h2>안전하지 않은 PHP 버전 경고</h2>
8+
<p>이 서버는 안전하지 않은 PHP 버전을 사용하고 있으며, PHP를 최신 안정 버전으로의 업그레이드를 권장합니다.</p>
9+
<p>이 서버의 PHP 버전 : <strong>{phpversion()}</strong></p>
10+
<p><a href="http://php.net/downloads.php" target="_blank">PHP 최신 안정버전 확인하기</a></p>
11+
12+
<ul>
13+
<li>매우 심각한 PHP 보안 문제 및 공격에 노출될 수 있습니다.</li>
14+
<li>XE 최신 버전을 사용할 수 없습니다.</li>
15+
<li>XE 최신 버전 이상을 지원하는 확장 기능을 사용할 수 없습니다.</li>
16+
<li>일부 확장 기능이 동작하지 않거나, 이로 인해 장애가 발생할 수 있습니다.</li>
17+
</ul>
18+
</div>
19+
520
<div cond="$contain_core" class="x_alert x_alert-block">
621
<h4>{$lang->msg_update_core_title}</h4>
722
<p>{$lang->msg_update_core}</p>
@@ -24,7 +39,7 @@ <h4>{$lang->msg_update_core_title}</h4>
2439
</ul>
2540
</div>
2641

27-
<block cond="!$package->installed || $package->need_update">
42+
<block cond="!$does_not_update_xecore && (!$package->installed || $package->need_update)">
2843
<div cond="!$directModuleInstall->toBool() || $show_ftp_note" class="x_well x_clearfix">
2944
<block cond="!$directModuleInstall->toBool()">
3045
<p>{$lang->msg_direct_install_not_supported}</p>

0 commit comments

Comments
 (0)