1 Star 0 Fork 4

luckypoem / IXCDN

forked from Howard Liu / IXCDN 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 600 Bytes
一键复制 编辑 原始数据 按行查看 历史
Howard Liu 提交于 2016-04-03 00:41 . Lots of changes
<?php
/**
* This file is part of IXCDN
* Published under MIT License
* Copyright (c) Howard Liu, 2016
* Please refer to LICENSE file for more information
*/
require 'vendor/autoload.php';
use App\Main;
if (isset($_GET['link'])) {
$cdn = new Main(str_ireplace('link=', '', ($pos = stripos($_SERVER['QUERY_STRING'], '&'))
? substr_replace(
$_SERVER['QUERY_STRING'],
'?',
$pos,
1
)
: $_SERVER['QUERY_STRING']), 'cdn.ixnet.work', '*');
echo $cdn->handler();
} else {
header('HTTP/1.1 403 Access Denied');
exit('403: Invalid Access');
}
PHP
1
https://gitee.com/luckypoem/IXCDN.git
git@gitee.com:luckypoem/IXCDN.git
luckypoem
IXCDN
IXCDN
master

搜索帮助