From 28cef71bf446915e75a4810e425c44b42769152e Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 8 Jul 2022 19:58:25 +0800 Subject: [PATCH] up --- plugins/php-apt/js/php.js | 6 ++++-- plugins/php-yum/js/php.js | 6 ++++-- plugins/php/js/php.js | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/php-apt/js/php.js b/plugins/php-apt/js/php.js index b4fea5398..fd6e14003 100755 --- a/plugins/php-apt/js/php.js +++ b/plugins/php-apt/js/php.js @@ -431,20 +431,22 @@ function getPHPInfo(version) { phpPostCallbak('get_php_info', version, {}, function(data){ if (!data.status){ layer.msg(rdata.msg, { icon: 2 }); + return; } layer.open({ type: 1, title: "PHP-" + version + "-PHPINFO", - area: ['90%', '90%'], + area: ['70%', '90%'], closeBtn: 2, shadeClose: true, - content: data.data + content: data.data.replace('a:link {color: #009; text-decoration: none; background-color: #fff;}', '').replace('a:link {color: #000099; text-decoration: none; background-color: #ffffff;}', '') }); }) } + function phpLibConfig(version){ phpPost('get_lib_conf', version, '', function(data){ diff --git a/plugins/php-yum/js/php.js b/plugins/php-yum/js/php.js index 24fb24788..e059e3a36 100755 --- a/plugins/php-yum/js/php.js +++ b/plugins/php-yum/js/php.js @@ -431,20 +431,22 @@ function getPHPInfo(version) { phpPostCallbak('get_php_info', version, {}, function(data){ if (!data.status){ layer.msg(rdata.msg, { icon: 2 }); + return; } layer.open({ type: 1, title: "PHP-" + version + "-PHPINFO", - area: ['90%', '90%'], + area: ['70%', '90%'], closeBtn: 2, shadeClose: true, - content: data.data + content: data.data.replace('a:link {color: #009; text-decoration: none; background-color: #fff;}', '').replace('a:link {color: #000099; text-decoration: none; background-color: #ffffff;}', '') }); }) } + function phpLibConfig(version){ phpPost('get_lib_conf', version, '', function(data){ diff --git a/plugins/php/js/php.js b/plugins/php/js/php.js index bcc007261..1485d6c2c 100755 --- a/plugins/php/js/php.js +++ b/plugins/php/js/php.js @@ -437,10 +437,10 @@ function getPHPInfo(version) { layer.open({ type: 1, title: "PHP-" + version + "-PHPINFO", - area: ['90%', '90%'], + area: ['70%', '90%'], closeBtn: 2, shadeClose: true, - content: data.data + content: data.data.replace('a:link {color: #009; text-decoration: none; background-color: #fff;}', '').replace('a:link {color: #000099; text-decoration: none; background-color: #ffffff;}', '') }); }) }