From f804a42ea15b4a4271bb120649d215ceb91c5c8c Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Sat, 17 Nov 2018 19:05:55 +0800 Subject: [PATCH 1/8] Update index.php --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9ae55b9..6440c43 100644 --- a/index.php +++ b/index.php @@ -31,7 +31,7 @@ define('MC_PROXYUSERPWD', false); // 服务器是否在国内 -define('MC_INTERNAL', 1); +define('MC_INTERNAL', 0); // PHP 版本判断 if (version_compare(phpversion(), '5.4', '<')) { From 4a825f4fd988ede1a1399867447a76924631fb27 Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Sat, 17 Nov 2018 19:34:37 +0800 Subject: [PATCH 2/8] Add files via upload --- app.json | 9 +++++++++ composer.json | 9 +++++++++ composer.lock | 23 +++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 app.json create mode 100644 composer.json create mode 100644 composer.lock diff --git a/app.json b/app.json new file mode 100644 index 0000000..f69fdbc --- /dev/null +++ b/app.json @@ -0,0 +1,9 @@ +{ + "name": "IPinfo", + "description": "IPinfo[Written in PHP]", + "website": "https://github.com/helloxz/IPinfo", + "repository": "https://github.com/helloxz/IPinfo", + "success_url": "index.php", + "env":{ + } +} \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..5e42724 --- /dev/null +++ b/composer.json @@ -0,0 +1,9 @@ +{ + "require": { + "php": "7.2.10", + "ext-gd": "*", + "ext-mbstring": "*", + "ext-sqlite3": "*", + "ext-imagick": "*" + } +} \ No newline at end of file diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..a70d694 --- /dev/null +++ b/composer.lock @@ -0,0 +1,23 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "content-hash": "d6c4d4be96929af0666b45317da8140e", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": "7.2.10", + "ext-gd": "*", + "ext-mbstring": "*", + "ext-sqlite3": "*", + "ext-imagick": "*" + }, + "platform-dev": [] +} From 9cfec9888287fc59482797f33f9fc949c96bef3f Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Sat, 17 Nov 2018 19:35:25 +0800 Subject: [PATCH 3/8] Update app.json --- app.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app.json b/app.json index f69fdbc..e3e8dcb 100644 --- a/app.json +++ b/app.json @@ -1,9 +1,9 @@ { - "name": "IPinfo", - "description": "IPinfo[Written in PHP]", - "website": "https://github.com/helloxz/IPinfo", - "repository": "https://github.com/helloxz/IPinfo", + "name": "music", + "description": "music[Written in PHP]", + "website": "https://github.com/maicong/music", + "repository": "https://github.com/maicong/music", "success_url": "index.php", "env":{ } -} \ No newline at end of file +} From bb3692420003b3c9b49cad614867e5371d497117 Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Sat, 17 Nov 2018 19:36:00 +0800 Subject: [PATCH 4/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 06d2d1c..dace705 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # 音乐搜索器 - +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) [![GitHub release](https://img.shields.io/github/release/maicong/music.svg?style=flat-square)](https://github.com/maicong/music/releases) [![PHP version](https://img.shields.io/badge/php-%3E%205.4-orange.svg)](https://github.com/php-src/php) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](#LICENSE) From 3c2cbdcf06e85537c850dd4917f16014883cacf9 Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Thu, 6 Dec 2018 05:09:36 +0800 Subject: [PATCH 5/8] Update index.php --- index.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 6440c43..2fd2514 100644 --- a/index.php +++ b/index.php @@ -31,7 +31,7 @@ define('MC_PROXYUSERPWD', false); // 服务器是否在国内 -define('MC_INTERNAL', 0); +define('MC_INTERNAL', 1); // PHP 版本判断 if (version_compare(phpversion(), '5.4', '<')) { @@ -43,6 +43,14 @@ exit; } +// 判断是否启用 Curl +if (!extension_loaded('curl')) { + header('Content-type:text/html;charset=utf-8'); + echo '

程序运行失败:

请启用 Curl 模块
'; + exit; +} + + include_once MC_CORE_DIR . '/music.php'; // 支持的网站 From e09f776437793005e182f5afff020eab6ddfab4b Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Thu, 6 Dec 2018 05:16:20 +0800 Subject: [PATCH 6/8] Update composer.lock --- composer.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.lock b/composer.lock index a70d694..16171e7 100644 --- a/composer.lock +++ b/composer.lock @@ -13,7 +13,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "7.2.10", + "php": "7.2.12", "ext-gd": "*", "ext-mbstring": "*", "ext-sqlite3": "*", From 383d31db54848ebba3365fcafba23a4ba05e02e0 Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Thu, 6 Dec 2018 05:16:45 +0800 Subject: [PATCH 7/8] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5e42724..ec1d7bd 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { "require": { - "php": "7.2.10", + "php": "7.2.12", "ext-gd": "*", "ext-mbstring": "*", "ext-sqlite3": "*", "ext-imagick": "*" } -} \ No newline at end of file +} From 8d644a6698794f3aa90f21a213db5191aba5dd45 Mon Sep 17 00:00:00 2001 From: 0080004 <32374971+0080004@users.noreply.github.com> Date: Wed, 5 Dec 2018 21:39:43 +0000 Subject: [PATCH 8/8] Update index.php --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 2fd2514..26a1d9d 100644 --- a/index.php +++ b/index.php @@ -31,7 +31,7 @@ define('MC_PROXYUSERPWD', false); // 服务器是否在国内 -define('MC_INTERNAL', 1); +define('MC_INTERNAL', 0); // PHP 版本判断 if (version_compare(phpversion(), '5.4', '<')) {