-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 代码重构 2. API restful 3. 更新 SDK
- Loading branch information
Showing
491 changed files
with
51,456 additions
and
17,478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Plugin Name: Jacky AliCDN Helper | ||
* Plugin Name: Aliyun CDN Helper | ||
* Plugin URI: https://github.com/0xJacky/aliyun_cdn_helper | ||
* Description: 阿里云 CDN 辅助工具。Aliyun CDN auxiliary tool for wordpress. | ||
* Version: 2.1 | ||
|
@@ -10,7 +10,7 @@ | |
*/ | ||
|
||
/** | ||
* Jacky AliCDN Helper | ||
* Aliyun CDN Helper | ||
* Copyright 2017 0xJacky (email : [email protected]) | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
|
@@ -27,25 +27,19 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
/*ini_set( 'display_errors', 1 ); | ||
ini_set( 'display_startup_errors', 1 ); | ||
error_reporting( - 1 );*/ | ||
|
||
namespace CDN\WP; | ||
|
||
define( 'ALIYUN_CDN_PATH', dirname( __FILE__ ) ); | ||
require( ALIYUN_CDN_PATH . '/autoload.php' ); | ||
|
||
use CDN\WP\Config; | ||
|
||
Config::init( ALIYUN_CDN_PATH ); | ||
load_plugin_textdomain( 'aliyun-cdn', false, Config::$plugin_path . '/languages' ); | ||
load_plugin_textdomain( Config::identifier, false, Config::$plugin_path . '/languages' ); | ||
|
||
new Api; | ||
|
||
try { | ||
new CDN\WP\Init(); | ||
new CDN\WP\Settings(); | ||
new CDN\WP\Api(); | ||
} catch ( ServerException $e ) { | ||
//echo $e->getMessage(); | ||
register_activation_hook( __FILE__, function () { | ||
add_option( 'alicdn_options', Config::$originOptions, '', 'yes' ); //autoload | ||
} ); | ||
if ( is_admin() ) { | ||
new Init; | ||
new Settings; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"alibabacloud/client": "^1.5" | ||
} | ||
} |
Oops, something went wrong.