如果只要快车应该如何搞呢? 我现在是这样的,实现了,但是看源代码并没有发现我的快车联盟ID。不知道会不会有效。。。
// by yingnt QQ 415204 // 承接模板定制,二次开发,http://www.ecmsjz.cn //快车加密 function FlashgetEncode($t_url,$uid) { $prefix= "Flashget://"; $FlashgetURL=$prefix.base64_encode("[FLASHGET]".$t_url."[FLASHGET]")."&".$uid; return $FlashgetURL; }
function user_echouniondown($xlid=0,$kcid=0){ global $empire,$public_r,$class_r,$navinfor,$dbtbpre; $path_r=explode("\r\n",$navinfor[downpath]); $pathid='0'; $showdown_r=explode("::::::",$path_r[$pathid]); $urlid=$showdown_r[4]; if($urlid!=='0'){ $r=$empire->fetch1("select urlid,url from {$dbtbpre}enewsdownurlqz where urlid='".$urlid."' limit 1;"); } $Url = $r[url].$showdown_r[1]; $flashgetUrl = FlashgetEncode($Url,$kcid); ?> <script> function ConvertURL2FG(url,fUrl,uid) { try{ FlashgetDown(url,uid); }catch(e){location.href = fUrl;} } function Flashget_SetHref(obj,uid){obj.href = obj.fg;} </script> <? echo '</script><script src="http://ufile.kuaiche.com/Flashget_union.php?fg_uid='.$kcid.'"></script><a href="#" onClick="ConvertURL2FG(\''.$flashgetUrl.'\',\'\','.$kcid.')" oncontextmenu="Flashget_SetHref(this)" fg="'.$flashgetUrl.'">[快车专用高速下载]</a>'; }
|