📄 function.php
字号:
<?
function getHtmlMusic($html)
{
$r_out='';
$j =0;
$rr='/(http|ftp|Http|Ftp|HTTP|FTP)+[^\"\'\| ]*(\.wma|\.WMA|\.Wma|\.mp3|\.Mp3|\.MP3|\.mP3|\.WMa|\.wMa|\.wmA|\.mp3)/';
//$rr='/( src=(\'|")(http)+[^\"\']*(\.jpg|\.gif|\.png))(\'|")/';
preg_match_all($rr,$html, $out, PREG_PATTERN_ORDER);
$out =array_unique($out[0]);
//$out =$out[0];
foreach($out as $a)
{
$r_out.=' '.$j.'.<a href="javascript:void(0)" onclick="testTing(\''.$_GET['d'].'\',\''.$_GET['d'].'_'.$j.'\')"><img src="img/micon_von.gif" alt="试听" border="0"/>试听</a>
<a href="'.$a.'" onclick="return musicDown();"><img src="img/micon_7on.gif" alt="下载" border="0"/>下载</a>
<img src="img/micon_2on.gif" alt="添加到我音乐" border="0"/>网址:<a href="javascript:void(0)" onclick="testTing(\''.$_GET['d'].'\',\''.$_GET['d'].'_'.$j.'\')" id="'.$_GET['d'].'_'.$j.'" target="foot_win">'.$a.'</a><span id="'.$_GET['d'].'_'.$j.'_a"></span><span id="'.$_GET['d'].'_'.$j.'_t"></span>
<br />';
$j++;
}
return $r_out;
}
function OutXmlStr($str)
{
return "<?xml version=\"1.0\" encoding=\"GB2312\"?>\n<data>\n\t<![CDATA[".$str."]]>\n</data>";
}
function getHtmlContent($str,$b,$e,$k=0)
{
$a =array("'","\"");
$str =explode($b,$str);
$str =explode($e,$str[1]);
if($k)
{
$str =str_replace($a,"",$str[0]);
}else
{
$str =$str[0];
}
return $str;
}
function a_replace($a)
{
return preg_replace("/\<(a|A)(.*?)>/",'<a href="javascript:void(0);" onclick="load_list_p(this.innerHTML,\'1\')">',$a);
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -