📄 index.php
字号:
<?php
/************************************************************************
Dream Fly GuestBook 3.2 for Text (v20050206)
版 本:3.1.23
程序设计:浪 者
版权所有:(C)1999-2003 酷虫工作室
创 建:2003/11/20 11:22:00
最后修改: 2005/02/06
演 示:http://xpower.jsphome.com
说明:本软件由酷虫工作室及其作者版权所有。任何人都可以免费获得
本软件,但必须保留版权声明。
*************************************************************************/
require_once '_inc/config.php';
require_once 'include/global.php';
define ('INDEX_POST',1);
session_start();
if($_GET || $_POST){
unset($_GET[submit]); // 预防非法提交
foreach($_GET as $k=>$v)
$$k = $v;
foreach($_POST as $k=>$v)
$$k = $v;
}
// 读取皮肤信息
if(empty($_SESSION[skin_url]) || empty($_SESSION[skin_name]) ){
require_once 'include/theme.php';
$board_css = $cfg[board_css];
if(is_array($Themes[$board_css])){
$_SESSION[skin_url] = $Themes[$board_css][0];
$_SESSION[skin_name] = $Themes[$board_css][1];
}else{
$_SESSION[skin_url] = 'skin/style.css';
$_SESSION[skin_name] = '默认样式';
}
}
// 判断斑竹
unset($ADMIN);
$ADMIN = ($_COOKIE[AdminName] == $cfg[user_name] && $_COOKIE[AdminPass] == $cfg[user_pass]);
// 头部
ob_start();
?>
<html>
<head>
<meta name="keywords" content="酷虫在线,原创作品,Dream Fly XP 留言本,免费下载,http://hotage.myrice.com">
<meta name="Description" content="酷虫在线 http://hotage.myrice.com/ http://xpower.jsphome.com/ 追求卓越 自有我风采 Programmes are still different. 酷虫工作室 荣誉出品">
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<title><?=$cfg[board_name] ?></title>
<link rel=stylesheet type=text/css href="<?=$_SESSION[skin_url] ?>">
<script language="JavaScript" src="function.js"></script>
<style type="text/css">
<!--
.booktext {TABLE-LAYOUT: fixed; WORD-BREAK: break-all; WORD-WRAP: break-word; overflow: hidden; width:550px;}
-->
</style>
</head>
<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
<center><div align=center>
<!-- 头部 -->
<table border=0 cellpadding=0 cellspacing=0 width=730>
<tr>
<td class=MenuBar_B rowspan=8 width=1></td>
<td height=8 class=MenuBar_B></td>
<td class=MenuBar_B rowspan=8 width=1></td>
</tr>
<tr><td height=2></td></tr>
<tr><td height=1 class=MenuBar_B></td></tr>
<tr><td height=74>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td> <img src=images/logo.gif width=225 height=60></td>
<td align=right><a href=http://hotage.myrice.com/><img src=images/ad.gif width=468 height=60 border=0></a> </td>
</tr>
</table>
</td></tr>
<tr><td height=1 class=MenuBar_B></td></tr>
<tr><td height=2></td></tr>
<tr><td height=6 class=MenuBar_B></td></tr>
<tr><td>
<table border=0 width=728 cellspacing=0 cellpadding=0 class=MenuBar>
<tr>
<td valign=middle id=MenuBar>
<div>
<a href="<?=$cfg[board_url] ?>">返回首页</a> ┊
<? echo ($ADMIN) ? '<a href=index.php?MOD=system>控制面板</a> · <a href=index.php?MOD=logout>退出管理</a> ┊' : '<a href=index.php?MOD=login>斑竹登录</a> ┊'; ?>
<a href=index.php>查看留言</a> ┊
<a href="JavaScript:location.reload();">页面刷新</a> ┊
<a href=index.php?MOD=help>使用帮助</a>
</div>
</td>
<td align=right id=MenuBar>风格:<?=$_SESSION[skin_name] ?> </td>
</tr>
</table>
</td></tr>
</table>
<br>
<?
// 中部,预防刷新过快系统
if(time()-$_COOKIE[refurTime] >= $cfg[time_load]){
require_once (file_exists("./mods/$MOD.php")) ? "./mods/$MOD.php" : './mods/main.php';
}else{
$jumptime = 2;
ShowMsg('为防止恶意刷新页面,' .$jumptime. ' 秒后自动跳转页面。<br><br>请等待……',MSG_INF,array('[ <a href="javascript:history.go(0);">继续执行操作</a> ]'));
JumpUrl(0, $jumptime);
}
setcookie('refurTime',time());
// 尾部
ob_end_flush();
?>
<!-- 版权说明 -->
<hr size=1 width=730 align=center>
<table cellpadding=0 cellspacing=0 height=35 width=728>
<tr>
<td align=center height=34>
<?=$cfg[copyright] ?>
<!-- DreamFly 作者版权声明,请不要改变 http://hotage.myrice.com/ http://xpower.jsphome.com/ -->
<br>技术支持:<a href=http://xpower.jsphome.com/ target=_blank><font color=#000000>酷<font color=red>虫</font>在线 ™</font></a> 版本:<a href=http://hotage.myrice.com/ target=_blank><font color=#000000>Dream Fly <?=SOFT_VER ?></font></a>
<!-- DO NOT change author's copyright! http://hotage.myrice.com/ http://xpower.jsphome.com/ -->
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -