|
|
是在参考版主在置顶贴里的讯雷地址转换方法改了一下加入了快车地址的转换。
刚看了点php的教程,比较费劲啊。
- <?php
- if($LabelName == '下载地址')
- {
- $txt1=trim($LabelContent);
- $downth = substr_count($txt1,thunder);
- $downfl = substr_count($txt1,flashget);
- if ($downth>0)
- {
- echo substr(base64_decode(str_ireplace("thunder://","",$txt1)),2,-2);
- }
- else
- {
- echo substr(base64_decode(str_ireplace("flashget://","",$txt1)),10,-10);
- }
- }
- else echo $LabelContent;
- ?>
复制代码 |
评分
-
1
查看全部评分
-
|