📄 index.php
字号:
<?php
error_reporting(7);
require("./global.php");
if ($redirect!="") {
$redirect=ereg_replace("sessionhash=[a-z0-9]{32}&","",$redirect);
$redirect=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$redirect);
$redirect=ereg_replace("s=[a-z0-9]{32}&","",$redirect);
$redirect=ereg_replace("\\?s=[a-z0-9]{32}","",$redirect);
if (strpos($redirect,"?")>0) {
$redirect.="&s=$session[dbsessionhash]";
} else {
$redirect.="?s=$session[dbsessionhash]";
}
cpheader("<meta http-equiv=\"Refresh\" content=\"0; URL=$redirect\">");
echo "<p>请稍等</p>";
cpfooter();
exit;
}
if (isset($action)==0) {
$action="frames";
}
if ($action=="phpinfo") {
phpinfo();
}
if ($action=="frames") {
cpheader("<title>".$webtitle." 控制面板</title>",0);
?>
<BODY SCROLL="NO">
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%">
<TBODY>
<TR>
<TD align=middle id=frmTitle noWrap vAlign=center name="frmTitle"><IFRAME
scrolling=auto frameBorder=0 id=BoardTitle name=BoardTitle src="index.php?s=<?php echo $session[sessionhash]; ?>&action=nav&cpnavjs=<?php echo $cpnavjs; ?>"
style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 150; Z-INDEX: 2"></IFRAME>
<TD bgColor=#40364D style="WIDTH: 10pt">
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%">
<TBODY>
<TR>
<TD onclick=switchSysBar() style="HEIGHT: 100%"><SPAN class=navPoint
id=switchPoint title=关闭/打开左栏>3</SPAN> </TR></TBODY></TABLE></TD>
<TD style="WIDTH: 100%"><IFRAME frameBorder=0 id=frmright name=frmright
scrolling=yes src="<?php
if ($loc!="") {
echo $loc;
} else {
echo "index.php?s=$session[sessionhash]&action=home";
}
?>" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME></TD></TR></TBODY></TABLE>
</head>
</html><?php
}
if ($action=="home") {
cpheader("<script language='javascript'> function jumpto(url) { if (url != '') { window.open(url); } } </script>");
?>
<BODY SCROLL="NO">
<?php
doformheader("user","find");
maketableheader("控制面板说明");
?>
<tr class="firstalt">
<td><b>欢迎使用 [足迹]音乐系统特别版 管理员控制面板</b><br><BR>
<font size='1'>软件开发 <a href="http://www.zjstudio.org" target="_blank">足迹工作室</a></font><BR><BR>
<font size='1'>在这里, 你可以控制你所有的系统设置. 请选择左边你要进行管理的链接.</font></td>
</tr>
</table>
</td></tr></table>
</form>
<?php
doformheader("user","find");
maketableheader("有用的管理选项");
?>
<tr class="firstalt">
<td>快速查找用户</td>
<td><input type="text" name="ausername" size="30"> <span id="submitrow"><input type="submit" value="立即查找"></span></td>
</tr>
</table>
</td></tr></table>
</form>
<p align="center"><font size='1'>© 2002 - 2003 <a href="http://www.zjstudio.org" target="_blank">足迹工作室</a>.<br>
</font></p>
</body>
</html>
<?php
}
if ($action=="nav") {
?>
<html><head>
<link rel="stylesheet" href="./cp.css">
</head>
<body leftmargin="0" topmargin="15" marginwidth="0" marginheight="0" id="navbody" SCROLL="auto">
<base target="frmright">
<form>
<center><a href="index.php?s=<?php echo $session[sessionhash]; ?>&action=home">控制面板首页</a></center><BR>
<center><a href="../index.php?s=<?php echo $session[sessionhash]; ?>" target="_blank">网站首页</a></center>
<table width="100%" border="0" cellspacing="0" cellpadding="<?php echo iif($cpnavjs,2,5); ?>" id="navtable">
<tr><td><hr></td></tr>
<?php
// *************************************************
if ($getperms[canadminoption]==1) {
makenavoption("常规选项","options.php?t=0","<br>");
makenavselect("选项","<hr>");
}
// *************************************************
if ($getperms[canadminmusicclass]==1) {
makenavoption("添加","class.php?action=add","|");
makenavoption("修改","class.php?action=modify");
makenavselect("分类");
}
// ***
if ($getperms[canadminmusicsinger]==1) {
makenavoption("添加","singer.php?action=add","|");
makenavoption("修改","singer.php?action=modify","<br />");
makenavselect("歌手");
}
// ***
if ($getperms[canadminmusicalbum]==1) {
makenavoption("添加","album.php?action=add","|");
makenavoption("修改","album.php?action=modify","<br />");
makenavselect("专辑");
}
// ***
if ($getperms[canadminmusicsong]==1) {
makenavoption("添加","music.php?action=add","|");
makenavoption("修改","music.php?action=modify","<br />");
makenavselect("歌曲");
}
// ***
if ($getperms[canadminmusiclyric]==1) {
makenavoption("添加","lyric.php?action=add","|");
makenavoption("修改","lyric.php?action=modify","|");
makenavoption("认证","lyric.php?action=moderate","<br />");
makenavselect("歌词","<hr />");
}
// *************************************************
if ($getperms[canadminuser]==1) {
makenavoption("添加","user.php?action=add","|");
makenavoption("查找","user.php?action=modify","|");
makenavoption("认证","user.php?action=moderate","<br />");
makenavselect("用户","<hr>");
}
// *************************************************
if ($getperms[canadmindatabase]==1) {
makenavoption("备份数据库","backup.php?action=choose","<br>");
makenavselect("数据库维护","<hr>");
}
// *************************************************
?>
</table>
</form></BODY></HTML>
<?php
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -