Php generates a tornado link for Thunder Express .? Phpfunctionzhuanhuan () {$ urloddexplode (, $ _ GET [url], 2); divide the link into two sections. The first section is the first section, followed by the second section $ headstrtolower ($ urlodd [0]); PHP for large
-
- Function zhuanhuan (){
- $ Urlodd = explode (//, $ _ GET ["url"], 2); // divide the link into 2 segments. // The first segment is followed by the second segment.
- $ Head = strtolower ($ urlodd [0]); // PHP is case sensitive, which is first converted to lowercase. otherwise, HtTp: or ThUNDER: is not easy to handle.
- $ Behind = $ urlodd [1];
- If ($ head = "thunder :"){
- $ Url = substr (base64_decode ($ behind), 2,-2); // base64 decryption, remove the preceding AA and the following ZZ
- } Elseif ($ head = "flashget :"){
- $ Url1 = explode (&, $ behind, 2 );
- $ Url = substr (base64_decode ($ url1 [0]), 10,-10); // base64 decryption, remove the previous [FLASHGET]
- } Elseif ($ head = "qqdl :"){
- $ Url = base64_decode ($ behind); // base64 decryption
- } Elseif ($ head = "http:" | $ head = "ftp:" | $ head = "mms:" | $ head = "rtsp: "| $ head =" https :"){
- $ Url = $ _ GET ["url"]; // The regular address only supports the http, https, ftp, mms, and rtsp transmission protocols. it seems that few other addresses are supported, A network disk like XX is actually based on base64, but some cannot be downloaded even after decryption.
- } Else {
- Echo "this page does not support this protocol currently ";
- }
- Return $ url;
- }
- If ($ _ GET ["url"]! = NULL ){
- $ Url = zhuanhuan ($ _ GET ["url"]);
- $ Url_thunder = "thunder: //". base64_encode ("AA". $ url. "ZZ"); // base64 encryption, the same is true for the following 2
- $ Url_flashget = "Flashget: //". base64_encode ("[FLASHGET]". $ url. "[FLASHGET]"). "& aiyh ";
- $ Url_qqdl = "qqdl: //". base64_encode ($ url );
- }
- ?>
-
Actual address :" "Target =" _ blank ">
Thunder chain :" "Target =" _ blank ">
Express chain :" "Target =" _ blank ">
Http://www.bkjia.com/PHPjc/478843.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478843.htmlTechArticle? Php function zhuanhuan () {$ urlodd = explode (//, $ _ GET [url], 2); // divide the link into two sections. // The first section is the first section, followed by the second section $ head = strtolower ($ urlodd [0]); // PHP for large...