From bf4408d6daf87ca0cd8255129e21f9519170839e Mon Sep 17 00:00:00 2001 From: joyqi Date: Wed, 1 Nov 2017 00:05:57 +0800 Subject: [PATCH] remove ACE support --- install/Mysql.php | 26 ---------------------- var/Typecho/Http/Client/Adapter/Socket.php | 2 +- var/Widget/Init.php | 5 ----- 3 files changed, 1 insertion(+), 32 deletions(-) diff --git a/install/Mysql.php b/install/Mysql.php index 64e27b26..fec90dbd 100644 --- a/install/Mysql.php +++ b/install/Mysql.php @@ -7,8 +7,6 @@ if (defined('SAE_MYSQL_DB') && SAE_MYSQL_DB != "app_") { $engine = 'SAE'; } else if (!!getenv('HTTP_BAE_ENV_ADDR_SQL_IP')) { $engine = 'BAE'; -} else if (ini_get('acl.app_id') && class_exists('Alibaba')) { - $engine = 'ACE'; } else if (isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'],'Google App Engine') !== false) { $engine = 'GAE'; } @@ -71,30 +69,6 @@ $baeDbPassword = "getenv('HTTP_BAE_ENV_SK')"; )" /> - - - -
  • - - -

    -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • diff --git a/var/Typecho/Http/Client/Adapter/Socket.php b/var/Typecho/Http/Client/Adapter/Socket.php index 219598f5..3895cd94 100644 --- a/var/Typecho/Http/Client/Adapter/Socket.php +++ b/var/Typecho/Http/Client/Adapter/Socket.php @@ -28,7 +28,7 @@ class Typecho_Http_Client_Adapter_Socket extends Typecho_Http_Client_Adapter */ public static function isAvailable() { - return function_exists("ini_get") && ini_get('allow_url_fopen'); + return function_exists("fsockopen"); } /** diff --git a/var/Widget/Init.php b/var/Widget/Init.php index 8ad50b4e..bd377e3c 100644 --- a/var/Widget/Init.php +++ b/var/Widget/Init.php @@ -70,11 +70,6 @@ class Widget_Init extends Typecho_Widget $this->response->setCharset($options->charset); $this->response->setContentType($options->contentType); - /** 默认时区 */ - if (function_exists("ini_get") && !ini_get("date.timezone") && function_exists("date_default_timezone_set")) { - @date_default_timezone_set('UTC'); - } - /** 初始化时区 */ Typecho_Date::setTimezoneOffset($options->timezone);