我是菜鸟,问下如何隐藏 下载地址,你那代码看不明白。能给代码最好老大。
discuzcode.func.php 的代码如下如何修改。谢谢。- //additional plugin code
- function rayfilecode($code)
- {
- global $discuzcodes;
- $discuzcodes['pcodecount']++;
- $codecount=$discuzcodes['pcodecount'];
- $searcharray = explode("|", $code);//Split [rayfile] tag's content
- $rayfile_url = str_replace("[url]", "", str_replace("[/url]", "", $searcharray[2]));//Get the Rayfile File page url
- $rayfile_code = str_replace("/", "", str_replace("http://www.rayfile.com/files/", "", $rayfile_url));//Get the Rayfile code
- $searcharray_filetype = strtolower(substr(strrchr($searcharray[0], '.'), 1, 5));//Get the extension name of the upload file
- $searcharray_description = $searcharray_wmpnote = $searcharray_wmp = "";//Description of the upload file
- $view= "<br /><img src="images/attachicons/rayfile.gif" border="0" class="absmiddle" alt="" /> <span style="white-space: nowrap" id="attach_".$rayfile_code."" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"><a target="_blank" href="".$rayfile_url.""><strong>".$searcharray[0]."</strong></a></strong></a></span>";
- if ($searcharray[1] != $searcharray[0]) $searcharray_description = "(".$searcharray[1].")";
- if($searcharray_filetype == "mp3" || $searcharray_filetype == "wma" || $searcharray_filetype == "mid" || $searcharray_filetype == "wav"){
- $searcharray_wmpnote = ",下为本曲试听";
- $searcharray_wmp = "<p>".parseaudio("getrayfileurl.php?rayfilecode=".$rayfile_code."&type=.mp3", 400, 0)."</p>";
- }
- $view.= $searcharray_description."<div class="t_attach" id="attach_".$rayfile_code."_menu" style="position: absolute; display: none">点击进入Rayfile下载页".$searcharray_wmpnote."</div>".$searcharray_wmp;
- $discuzcodes['codehtml'][$discuzcodes['pcodecount']] = "$view";
- $discuzcodes['codecount']++;
- return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
- }
复制代码 |