某咕php

<-?php
$id = isset($_GET['id'])?$_GET['id']:'cctv1';
$n = array(
'cctv1' => '608807420',
'cctv2' => '631780532',
'cctv3' => '624878271',
'cctv4' => '631780421',
'cctv4a' => '608807416',
'cctv4o' => '608807419',
'cctv5' => '641886683',
'cctv5p' => '641886773',
'cctv6' => '624878396',
'cctv7' => '673168121',
'cctv8' => '624878356',
'cctv9' => '673168140',
'cctv10' => '624878405',
'cctv11' => '667987558',
'cctv12' => '673168185',
'cctv13' => '608807423',
'cctv14' => '624878440',
'cctv15' => '673168223',
'cctv16' => '722193822',
'cctv17' => '673168256',

'fxzl' => '624878970',
'zxs' => '708869532',

'cgtn' => '609017205', //CGTN
'cgtnjl' => '609006487', //CGTN纪录
'cgtna' => '609154345', //CGTN阿拉伯语
'cgtnf' => '609006476', //CGTN法语
'cgtne' => '609006450', //CGTN西班牙语
'cgtnr' => '609006446', //CGTN俄语

'hljws' => '630287540', //黑龙江卫视
'jlws' => '630288397', //吉林卫视
'lnws' => '630291707', //辽宁卫视高清
'qhws' => '630287272', //青海卫视
'hubws' => '630292423', //湖北卫视高清
'jxws' => '630290852', //江西卫视高清
'jsws' => '623899368', //江苏卫视高清
'gdws' => '608831231', //广东卫视高清
'nfws' => '608917627', //南方卫视
'gxws' => '634055160', //广西卫视
'ynws' => '630291417', //云南卫视
'gzws' => '631094827', //贵州卫视

'shdy' => '721355039', //四海钓鱼
'shxwzh' => '651632657', //上海新闻综合高清
'dycj' => '608780988', //第一财经
'dfys' => '617290047', //东方影视高清
'dfds' => '674934424', //东方都市高清
'shjsrw' => '617289997', //上视纪实人文高清
'shics' => '618954688', //上海ICS
'hhxd' => '651638619', //哈哈炫动
'fztd' => '631095330', //法治天地
'hxjc' => '623674859', //欢笑剧场
'xfc' => '623674815', //幸福彩
'qjs' => '623674483', //全纪实

'lttv' => '668225749', //临洮电视台
'hzxwzh' => '650216404', //汉中新闻综合
'hzgg' => '650217163', //汉中公共
'lbtv' => '651810498', //汉中留坝电视台
'gczh' => '716233075', //城固电视台
'yxzh' => '716593482', //洋县电视台

'nqtv1' => '684005412', //宁强电视台1
'nqtv2' => '684004345', //宁强电视台2
'lytv' => '684003723', //略阳1
'zbzh' => '684004346', //镇巴综合
'lxtv' => '671521015', //陇西电视台

'sdjy' => '609154353', //SDETV山东教育

'jyjs' => '623604663', //金鹰纪实

'jscs' => '626064714', //江苏城市
'jsgg' => '626064693', //江苏公共新闻
'jsty' => '626064707', //江苏体育休闲
'jsxx' => '626881786', //江苏学习
'hxgw' => '626064668', //好享购物
'jslz' => '626064675', //江苏靓妆
'ymkt' => '626064703', //优漫卡通

'czxwzh' => '639731892', //常州新闻综合
'szxwzh' => '639731952', //苏州新闻综合
'sqxwzh' => '639731832', //宿迁新闻综合
'haxwzh' => '639731826', //淮安新闻综合

'jjkt' => '614952364', //嘉佳卡通

'hjjc' => '625155140', //黄金剧场
'jljc' => '625643517', //军旅剧场
'kzlp' => '625542372', //抗战老片
'xjlm' => '637444830', //喜剧联盟
'rjlb' => '629943613', //热剧联播
'gqdp' => '629943678', //高清大片
'jsjc' => '627033504', //僵尸剧场
'sljc' => '625526423', //少林剧场
'smjc' => '625759558', //深夜失眠剧场
'dzjc' => '634274665', //红色谍战剧场
'khdy' => '625204865', //每日科幻电影
'zjsn' => '617432318', //追剧少女
'hjlp' => '621640582', //怀旧老片
'wxjc' => '627198822', //武侠剧场
'jdys' => '627198751', //经典影视速看
'jqjc' => '627198692', //假期剧场
'gjjc' => '625542365', //国际剧场
'jdfyt' => '685902551', //经典放映厅
'gfyy' => '627198191', //高分影院
'xpfyt' => '619495952', //新片放映厅
'clzpj' => '707671890', //成龙作品集
'zxcyy' => '623338112', //周星驰影院
'ldhyy' => '659315648', //刘德华影院
'jdhsp' => '625774662', //经典贺岁片
'gtlyy' => '627198610', //古天乐影院
'lyfys' => '639528386', //刘亦菲影视展播
'glnz' => '625133682', //古力娜扎影视展播
'jypd' => '625774640', //金庸频道
'glzpj' => '639528313', //古龙作品集
'gfcyy' => '639528330', //郭富城影院
'zgryy' => '707689526', //张国荣影院
'cuva' => '712723873', //CUVA频道
'stdrj' => '625574493', //神探狄仁杰
'hljc' => '625498432', //红楼剧场
'aqgy' => '625681367', //爱情公寓
'ysdyy' => '625703337', //云上电影院
'dmffl' => '625525181', //盗墓方法论
'zyxc' => '621640581', //综艺现场
'snh48jcgy' => '617432328', //SNH48剧场公演
'sszjd' => '646596895', //赛事最经典
'mcdzz' => '639528180', //萌宠大作战
'sddh' => '637483721', //试胆大会
'xsxpjx' => '625133682', //相声小品精选
'zqzyp' => '629942228', //最强综艺趴
'imode' => '665063310', //Imode时尚频道
'jkzg' => '685902423', //健康中国
'yxels' => '713599117', //影像俄罗斯
'hslbt' => '713600957', //红色轮播台
);
$d = file_get_contents('http://www.miguvideo.com/playurl/v1/play/playurlh5?&rateType=3&contId='.$n[$id]);
$e = json_decode($d)->body->urlInfo->url;
$userid = str_split("");
$timestamp =str_split(explode('=',explode('&',$e)[6])[1]);
$ProgramID =str_split ($n[$id]);
$Channel_ID = str_split("0116_25000000-99000-100300010010001");
$puData =str_split (explode('=',explode('&',$e)[21])[1]);
$number =str_split("2624");
$s=count($puData);
for($v=0;$v<$s/2;$v++){
$arr_key[]=$puData[$s-$v-1];
$arr_key[]=$puData[$v];
switch ($v){
case 1:
$chars= $userid[$number[0]];
$arr_key[]=arrkey($chars,$v);
break;
case 2:
$chars= $timestamp[$number[1]];
$arr_key[]=arrkey($chars,$v);
break;
case 3:
$chars= $ProgramID[$number[2]];
$arr_key[]=arrkey($chars,$v);
break;
case 4:
$chars=$Channel_ID[count($Channel_ID)-$number[3]];
$arr_key[]=arrkey($chars,$v);
break;
}
}
$ddCalcu=join($arr_key);

function arrkey($chars,$v){
$put=['e','t','c','n'];
if($chars!==null){
$mark=$chars;
}else{
$mark=$put[$v-1];
}
return $mark;
}
$playurl = $e."&ddCalcu=".$ddCalcu;
header('Location:'.$playurl);
//echo $playurl ;
?->