php 신속 차 회오리 링크 생 성

2397 단어 PHP
<?php  
    function zhuanhuan() {  
        $urlodd=explode('//',$_GET["url"],2);//     2 ,//      ,         
        $head=strtolower($urlodd[0]);//PHP      ,        ,     HtTp:  ThUNDER:             
        $behind=$urlodd[1];  
        if($head=="thunder:"){  
            $url=substr(base64_decode($behind), 2, -2);//base64  ,     AA   ZZ  
        }elseif($head=="flashget:"){  
            $url1=explode('&',$behind,2);  
            $url=substr(base64_decode($url1[0]), 10, -10);//base64  ,      [FLASHGET]  
        }elseif($head=="qqdl:"){  
            $url=base64_decode($behind);//base64    
        }elseif($head=="http:"||$head=="ftp:"||$head=="mms:"||$head=="rtsp:"||$head=="https:"){  
            $url=$_GET["url"];//       http,https,ftp,mms,rtsp    ,       , XX         base64,              
        }else{ 
            echo "           "; 
        }  
        return $url;  
    }  
    if($_GET["url"]!=NULL){  
        $url=zhuanhuan($_GET["url"]);  
        $url_thunder="thunder://".base64_encode("AA".$url."ZZ");//base64  ,   2     
        $url_flashget="Flashget://".base64_encode("[FLASHGET]".$url."[FLASHGET]")."&aiyh";  
        $url_qqdl="qqdl://".base64_encode($url); 
    }  
?>  
    <form action=cs.php method=GET> 
    PHP100.com            ,  ,     :  
    <input type=text name="url" size="80">  
    <input type=submit value="  ">  
    </form>  
    <p>    :<a href="<?php echo $url;?>" target="_blank"><?php echo $url;?></a>  
    <p>   :<a href="<?php echo $url_thunder;?>" target="_blank"><?php echo $url_thunder;?></a>  
    <p>   :<a href="<?php echo $url_flashget;?>" target="_blank"><?php echo $url_flashget;?></a>  
    <p>   :<a href="<?php echo $url_qqdl;?>" target="_blank"><?php echo $url_qqdl;?></a> 

좋은 웹페이지 즐겨찾기