Skip to content

Commit

Permalink
init code
Browse files Browse the repository at this point in the history
Signed-off-by: lzcykevin <[email protected]>
  • Loading branch information
lzcykevin committed Dec 26, 2017
1 parent 3715581 commit b17c92d
Show file tree
Hide file tree
Showing 144 changed files with 3,314 additions and 0 deletions.
77 changes: 77 additions & 0 deletions api/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!--
- Accelerider.Web.share
- made by zishuo
- date 12/26/2017
- ver 1.0.1
-->
<?php
header('Content-Type:application/json; charset=utf-8');
$url = 'http://api.usmusic.cn/';//shareid=6W5sohavmJaV&pass=xx
$in = in();
if(!empty($in)){
$shareid = empty($in['shareid'])?'':$in['shareid'];
$token = empty($in['token'])?'':$in['token'];
$pass = empty($in['pass'])?'':$in['pass'];
$path = empty($in['path'])?'/':$in['path'];
$path = str_replace('//','/',urldecode($path));
$filename = empty($in['filename'])?'':$in['filename'];
$filename = str_replace('//','/',urldecode($filename));
if($token && $filename){
$str = file_get_contents($url."cloud/sharelink?token={$token}&web=1&path=".urlencode($filename));
}elseif($token){
$str = file_get_contents($url."cloud/sharefiles?token={$token}&path=".urlencode($path));
}else{
$str = file_get_contents($url."cloud/sharefiles?shareid={$shareid}&pass=".urlencode($pass));
}
if($str){
$str = json_decode($str,true);
if($str['errno'] == 0 && !$token){
$data = $str;
}elseif($str['errno'] == 0 && $filename){
$data = $str;
}elseif($str['errno'] == 0 && $token){
foreach ($str['list'] as $vo) {
if($vo['dir'] == 1){
$data['DIR'][] = $vo['fileName'].';'.$vo['size'].';'.$vo['ctime'].';;;';
}else{
$data['FILES'][] = $vo['fileName'].';'.$vo['size'].';'.$vo['ctime'].';;;';
}

if(empty($data['DIR'])){
$data['DIR']=[];
}
if(empty($data['FILES'])){
$data['FILES']=[];
}
}
$data['PATH']=$path;
}else{
$data = $str;
}
}else{
$data['errno'] = 1;
$data['shareid']= $shareid;
$data['errmsg'] = 'errno';
}
}else{
$data['errno'] = 1;
$data['errmsg'] = '缺少必要的参数';

}
function stripslashes_deep($a)
{
$a = is_array($a) ? array_map('stripslashes_deep', $a) : (isset($a) ? stripslashes($a) : null);
return $a;
}
function in()
{
global $_GET, $_POST, $_COOKIE;
$_COOKIE = stripslashes_deep($_COOKIE);
$_GET = stripslashes_deep($_GET);
$_POST = stripslashes_deep($_POST);
$f = array();
$f = array_merge($_GET, $_POST);
return $f;
}
$data = json_encode($data);
exit($data);
1 change: 1 addition & 0 deletions static/css/login.css

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

23 changes: 23 additions & 0 deletions static/css/site.css

Large diffs are not rendered by default.

Binary file added static/images/ico-ts-cpu-active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-disk-active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-disk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-mem-active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-mem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-score.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-score.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-score1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-score2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/ico-ts-score3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/move.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/Detailsbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/DrawRecordord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/apache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico-close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico-computer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico-copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico-success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico/ico-access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico/ico-apk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/ico/ico-avi.png
Binary file added static/img/ico/ico-bmp.png
Binary file added static/img/ico/ico-bt.png
Binary file added static/img/ico/ico-c.png
Binary file added static/img/ico/ico-cdr.png
Binary file added static/img/ico/ico-cpp.png
Binary file added static/img/ico/ico-cs.png
Binary file added static/img/ico/ico-doc.png
Binary file added static/img/ico/ico-docx.png
Binary file added static/img/ico/ico-flv.png
Binary file added static/img/ico/ico-gif.png
Binary file added static/img/ico/ico-htm.png
Binary file added static/img/ico/ico-html.png
Binary file added static/img/ico/ico-java.png
Binary file added static/img/ico/ico-jpeg.png
Binary file added static/img/ico/ico-jpg.png
Binary file added static/img/ico/ico-js.png
Binary file added static/img/ico/ico-ltr.png
Binary file added static/img/ico/ico-mht.png
Binary file added static/img/ico/ico-mkv.png
Binary file added static/img/ico/ico-mov.png
Binary file added static/img/ico/ico-mp4.png
Binary file added static/img/ico/ico-mpeg.png
Binary file added static/img/ico/ico-mpg.png
Binary file added static/img/ico/ico-pdf.png
Binary file added static/img/ico/ico-php.png
Binary file added static/img/ico/ico-png.png
Binary file added static/img/ico/ico-pptx.png
Binary file added static/img/ico/ico-psd.png
Binary file added static/img/ico/ico-rm.png
Binary file added static/img/ico/ico-rmvb.png
Binary file added static/img/ico/ico-rocket.gif
Binary file added static/img/ico/ico-swf.png
Binary file added static/img/ico/ico-url.png
Binary file added static/img/ico/ico-webm.png
Binary file added static/img/ico/ico-webp.png
Binary file added static/img/ico/ico-wma.png
Binary file added static/img/ico/ico-wmv.png
Binary file added static/img/ico/ico-xls.png
Binary file added static/img/ico/ico-xlsx.png
Binary file added static/img/ico/ico-xml.png
Binary file added static/img/ico/menu_icon_control.png
Binary file added static/img/ico/menu_icon_control_active.gif
Binary file added static/img/ico/menu_icon_control_active.png
Binary file added static/img/ico/menu_icon_data.png
Binary file added static/img/ico/menu_icon_data_active.gif
Binary file added static/img/ico/menu_icon_data_active.png
Binary file added static/img/ico/menu_icon_day.png
Binary file added static/img/ico/menu_icon_day_active.gif
Binary file added static/img/ico/menu_icon_day_active.png
Binary file added static/img/ico/menu_icon_exit.png
Binary file added static/img/ico/menu_icon_exit_active.gif
Binary file added static/img/ico/menu_icon_exit_active.png
Binary file added static/img/ico/menu_icon_firewall.png
Binary file added static/img/ico/menu_icon_firewall_active.gif
Binary file added static/img/ico/menu_icon_firewall_active.png
Binary file added static/img/ico/menu_icon_folder.png
Binary file added static/img/ico/menu_icon_folder_active.gif
Binary file added static/img/ico/menu_icon_folder_active.png
Binary file added static/img/ico/menu_icon_ftp.png
Binary file added static/img/ico/menu_icon_ftp_active.gif
Binary file added static/img/ico/menu_icon_ftp_active.png
Binary file added static/img/ico/menu_icon_home.png
Binary file added static/img/ico/menu_icon_home_active.gif
Binary file added static/img/ico/menu_icon_home_active.png
Binary file added static/img/ico/menu_icon_log.png
Binary file added static/img/ico/menu_icon_log_active.png
Binary file added static/img/ico/menu_icon_set.png
Binary file added static/img/ico/menu_icon_set_active.gif
Binary file added static/img/ico/menu_icon_set_active.png
Binary file added static/img/ico/menu_icon_soft.png
Binary file added static/img/ico/menu_icon_soft_active.gif
Binary file added static/img/ico/menu_icon_soft_active.png
Binary file added static/img/ico/menu_icon_web.png
Binary file added static/img/ico/menu_icon_web_active.gif
Binary file added static/img/ico/menu_icon_web_active.png
Binary file added static/img/ico/rocket_min.png
Binary file added static/img/ico_line.png
Binary file added static/img/icon3.png
Binary file added static/img/icon4.png
Binary file added static/img/ing.gif
Binary file added static/img/ings.gif
Binary file added static/img/loading.gif
Binary file added static/img/morebtn.png
Binary file added static/img/shang/alipay.jpg
Binary file added static/img/shang/alipayimg.png
Binary file added static/img/shang/close.jpg
Binary file added static/img/shang/code-bg.jpg
Binary file added static/img/shang/cy-reward-title-bg.jpg
Binary file added static/img/shang/radio1.jpg
Binary file added static/img/shang/radio2.jpg
Binary file added static/img/shang/wechat.jpg
Binary file added static/img/shang/weipayimg.png
Loading

0 comments on commit b17c92d

Please sign in to comment.