Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

更新 #65

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
9 changes: 9 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "music",
"description": "music[Written in PHP]",
"website": "https://github.com/maicong/music",
"repository": "https://github.com/maicong/music",
"success_url": "index.php",
"env":{
}
}
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"require": {
"php": "7.2.12",
"ext-gd": "*",
"ext-mbstring": "*",
"ext-sqlite3": "*",
"ext-imagick": "*"
}
}
23 changes: 23 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
define('MC_PROXYUSERPWD', false);

// 服务器是否在国内
define('MC_INTERNAL', 1);
define('MC_INTERNAL', 0);

// PHP 版本判断
if (version_compare(phpversion(), '5.4', '<')) {
Expand All @@ -43,6 +43,14 @@
exit;
}

// 判断是否启用 Curl
if (!extension_loaded('curl')) {
header('Content-type:text/html;charset=utf-8');
echo '<h3>程序运行失败:</h3><blockquote>请启用 Curl 模块</blockquote>';
exit;
}


include_once MC_CORE_DIR . '/music.php';

// 支持的网站
Expand Down