[php]代码库
<?php if(!file_exists("config.php")){
die("<meta http-equiv=\"Refresh\" content=\"0;URL=install.php\" />");
}else{
if(file_exists("install.php"))die("请删除安装文件");
}
include("config.php");
$date="v 1.0 正式版";
$files1 = 'include/alltop.txt';//要取得的文件
$files2 = 'include/top10.txt';//要取得的文件
if ((file_exists($files1))||(file_exists($files2))) {
if (time()-filemtime($files1)>86400) {
unlink("$files1");
unlink("$files2");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="images/style.css" />
<link rel="stylesheet" type="text/css" href="images/lrc.css" />
<title><?php echo $webname;?>Power By 争乐<?php echo $date;?></title>
<script type="text/javascript" src="js/cookie.js"></script>
<script type="text/javascript" src="js/musicbox.js"></script>
<script type="text/javascript" src="js/bingo.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/lrc.js"></script>
</head>
<body onload="top();s2();listbox();">
<div class="wraper">
<div class="header">
<div class="msg right">欢迎光临 <a href="./"><?php echo $webname;?></a> 多叫朋友来哟!</div>
<div class="left"><img alt="" src="<?php echo $weblogo?>" /></div>
<div id="guanxin" class="msg" style="display:none"><img alt="" src="images/msg.gif" />温馨提示:如果无法正常试听,请在左边选择试听点。</div>
<div id="msg" class="msg msg2" style="display:none"><img alt="" src="images/loading.gif" />请稍后数据加载中...</div>
</div>
<div class="content">
<div class="right list">
<div class="listtitle"><strong><img src="images/listmng.gif" onclick="showhide('toplist')" width="9" height="5" alt="缩展" /> 新歌TOP10</strong> (所有数据都来自<a href="http://mp3.baidu.com" target="_blank">百度音乐搜索</a>)</div>
<div class="listcontent" id="toplist">
<div class="msg msg2"><img alt="" src="images/loading.gif" />请稍后数据加载中...</div>
</div>
<div class="listtitle"><strong><img src="images/listmng.gif" onclick="showhide('topalllist')" width="9" height="5" alt="缩展" /> 试听TOP10</strong></div>
<div class="listcontent" id="topalllist">
<div class="msg msg2"><img alt="" src="images/loading.gif" />请稍后数据加载中...</div>
</div>
<div class="listtitle"><strong><img src="images/listmng.gif" onclick="showhide('data')" width="9" height="5" alt="缩展" /> 版权信息</strong></div>
<div class="listcontent" id="data">
<ul>
<li>当前版本: <?php echo $date;?></li>
<li>正版授权给 <?php echo "<a href=$weburl>$webname</a>";?> 使用</li>
<li>本程序是由(<a href="http://www.czyhx.cn" target="_blank">杨争</a>)程序开发 (<a href="http://www.ofcn.cn" target="_blank">xuon</a>)CSS样式模板开发</li>
<li>当前已有 <script type="text/javascript" src="count.php?id=m"></script> 位朋友访问本站</li>
<li>争乐官方: <a href="http://www.tingela.cn" target="_blank">www.tingela.cn</a></li>
</ul>
</div>
</div>
<div class="left list">
<div class="listtitle"><strong><img src="images/listmng.gif" onclick="showhide('list')" width="9" height="5" alt="缩展" /> 试听节点</strong> (如果无法试听请选择其他试听点)</div>
<div class="listcontent" id="list">请输入关键词进行搜索</div>
</div>
<div class="musicbox">
<div class="listtitle">歌曲地址:<span id="wmaurl"></span></div>
<div id="players">
<object id="MPlayer" width="318" height="64" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param name="AutoStart" value="1" />
<param name="URL" value="" />
<param name="PlayCount" value="100" />
<param name="EnableContextMenu" value="0" />
<param name="Volume" value="100" />
</object>
</div>
<div id="lrc" class="lrc2"><img alt="" src="images/lrc.gif" /> 点击这里查看歌词</div>
<div class="listtitle"><strong><img src="images/listmng.gif" onclick="showhide('search')" width="9" height="5" alt="缩展" /> 搜索</strong> (请最好以“歌曲名 歌手名”的形式进行搜索)</div>
<div class="listcontent" id="search">
<input name="name" type="text" class="input" id="name" value="" />
<input class="sub" type="button" name="Submit" value=" 搜索 " onclick="getname('')" />
</div>
<div class="listtitle"><strong><img src="images/listmng.gif" onclick="showhide('boxlist')" width="9" height="5" alt="缩展" /> 临时歌库</strong> (临时保留您的试听数据)</div>
<div class="listcontent" id="boxlist">
<div class="msg msg2"><img alt="" src="images/loading.gif" />请稍后数据加载中...</div>
</div>
</div>
</div>
</div>
</body>
</html>
[源代码打包下载]