t9026 7 anos atrás
pai
commit
779e872dd9

+ 63 - 0
data/template/3_3_common_preview.tpl.php

xqd
@@ -0,0 +1,63 @@
+<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
+<!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>
+<link rel="stylesheet" type="text/css" href='<?php echo $_G['setting']['csspath'];?><?php echo $_GET['styleid'];?>_common.css?<?php echo VERHASH;?>' />
+<style type="text/css">
+body { padding: 10px; }
+.premsg { padding: 5px; background-color: <?php echo $_G['style']['commonbg'];?>; }
+.xst { font-family: <?php echo $_G['style']['threadtitlefont'];?>; font-size: <?php echo $_G['style']['threadtitlefontsize'];?>; }
+#ft { padding: 10px; text-align: center; }
+</style>
+</head>
+<body>
+
+<div id="hd" class="mbm">
+<div class="hdc cl">
+<h2><?php echo $_G['style']['boardlogo'];?></h2>
+<div id="um">
+<div class="avt y"><?php echo avatar($_G['member'],small);?></div>
+<p><strong><a href="#"><?php echo $_G['member']['username'];?></a></strong><span class="xg1"> <a href="#">设置</a></span><span class="pipe">|</span><a href="#">消息</a></p>
+<p>积分<span class="pipe">|</span>用户组</p>
+</div>
+</div>
+<div id="nv">
+<ul>
+<li><a href="#"><?php echo $_G['setting']['navs']['1']['navname'];?><span>Home</span></a></li>
+<li><a href="#"><?php echo $_G['setting']['navs']['2']['navname'];?><span>BBS</span></a></li>
+<li><a href="#"><?php echo $_G['setting']['navs']['3']['navname'];?><span>Group</span></a></li>
+<li><a href="#"><?php echo $_G['setting']['navs']['4']['navname'];?><span>Space</span></a></li>
+</ul>
+</div>
+</div>
+
+<div class="bm">
+<div class="bm_h cl">
+<h2>表头</h2>
+</div>
+<div class="bm_c">
+<div class="premsg"><a href="javascript:;" class="xi2">Crossday Discuz! Board</a> 社区系统(简称 <stong class="xw1 xi1">Discuz!</stong>)是一个采用 PHP 和 MySQL 等其他多种数据库构建的高效建站解决方案。</div>
+<table class="dt">
+<tr>
+<td class="xs0">SMALL FONT</td>
+<td><a href="javascript:;">链接文字</a></td>
+<td><a href="javascript:;" class="xi2">高亮链接</a></td>
+</tr>
+<tr>
+<td>普通文本</td>
+<td class="xg2">中等文本</td>
+<td class="xg1">浅色文字</td>
+</tr>
+<tr class="bw0_all">
+<td colspan="3" class="xst">主题列表字体</td>
+</tr>
+</table>
+</div>
+</div>
+
+<div id="ft">
+版权及页脚信息
+</div>
+
+</body>
+</html>

+ 1 - 1
uc_server/data/config.inc.php

xqd
@@ -2,7 +2,7 @@
 define('UC_DBHOST', 'localhost');
 define('UC_DBUSER', 'root');
 define('UC_DBPW', 'qq123456');
-define('UC_DBNAME', 'bbs9026');
+define('UC_DBNAME', 'zijia');
 define('UC_DBCHARSET', 'utf8');
 define('UC_DBTABLEPRE', 'pre_ucenter_');
 define('UC_COOKIEPATH', '/');

+ 4 - 0
uc_server/data/logs/201804.php

xqd
@@ -0,0 +1,4 @@
+<?PHP exit;?>	UCenterAdministrator	118.113.211.3	1523855316	login	succeed
+<?PHP exit;?>		118.113.211.3	1523855350	logout	
+<?PHP exit;?>	UCenterAdministrator	118.113.211.3	1523855370	login	succeed
+<?PHP exit;?>		106.14.215.243	1523869578	logout	

+ 226 - 0
uc_server/data/view/admin_admin.php

xqd
@@ -0,0 +1,226 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<?php if($a == 'ls') { ?>
+
+	<script src="js/common.js" type="text/javascript"></script>
+	<script src="js/calendar.js" type="text/javascript"></script>
+	<script type="text/javascript">
+		function switchbtn(btn) {
+			$('addadmindiv').className = btn == 'addadmin' ? 'tabcontentcur' : '' ;
+			$('editpwdiv').className = btn == 'addadmin' ? '' : 'tabcontentcur';
+
+			$('addadmin').className = btn == 'addadmin' ? 'tabcurrent' : '';
+			$('editpw').className = btn == 'addadmin' ? '' : 'tabcurrent';
+
+			$('addadmindiv').style.display = btn == 'addadmin' ? '' : 'none';
+			$('editpwdiv').style.display = btn == 'addadmin' ? 'none' : '';
+		}
+		function chkeditpw(theform) {
+			if(theform.oldpw.value == '') {
+				alert('请输入原创始人密码');
+				theform.oldpw.focus();
+				return false;
+			}
+			if(theform.newpw.value == '') {
+				alert('请输入新密码');
+				theform.newpw.focus();
+				return false;
+			}
+			if(theform.newpw2.value == '') {
+				alert('请重复输入新密码');
+				theform.newpw2.focus();
+				return false;
+			}
+			if(theform.newpw.value != theform.newpw2.value) {
+				alert('两次输入的密码不一致');
+				theform.newpw2.focus();
+				return false;
+			}
+			if(theform.newpw.value.length < 6 && !confirm('您的密码太短,可能会不安全,您确定设定此密码吗?')) {
+				theform.newpw.focus();
+				return false;
+			}
+			return true;
+		}
+	</script>
+
+	<div class="container">
+		<?php if($status) { ?>
+			<div class="<?php if($status > 0) { ?>correctmsg<?php } else { ?>errormsg<?php } ?>">
+				<p>
+				<?php if($status == 1) { ?> 添加 <?php echo $addname;?> 为管理员成功
+				<?php } elseif($status == -1) { ?> 添加 <?php echo $addname;?> 为管理员成功
+				<?php } elseif($status == -2) { ?> 添加 <?php echo $addname;?> 为管理员失败
+				<?php } elseif($status == -3) { ?>无此用户: <?php echo $addname;?>
+				<?php } elseif($status == -4) { ?> /data/config.inc.php 文件不可写
+				<?php } elseif($status == -5) { ?> 创始人账号密码输入错误
+				<?php } elseif($status == -6) { ?> 两次输入的密码不一致
+				<?php } elseif($status == 2) { ?> 创始人账号密码修改成功
+				<?php } ?>
+				</p>
+			</div>
+		<?php } ?>
+		<div class="hastabmenu" style="height:218px;">
+			<ul class="tabmenu">
+				<li id="addadmin" class="tabcurrent"><a href="#" onclick="switchbtn('addadmin');">添加UCenter管理员</a></li>
+				<?php if($user['isfounder']) { ?><li id="editpw"><a href="#" onclick="switchbtn('editpw');">修改UCenter创始人密码</a></li><?php } ?>
+			</ul>
+			<div id="addadmindiv" class="tabcontentcur">
+				<form action="admin.php?m=admin&a=ls" method="post">
+				<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+				<table class="dbtb">
+					<tr>
+						<td class="tbtitle">用户名:</td>
+						<td><input type="text" name="addname" class="txt" /></td>
+					</tr>
+					<tr>
+						<td valign="top" class="tbtitle">权 限:</td>
+						<td>
+							<ul class="dblist">
+								<li><input type="checkbox" name="allowadminsetting" value="1" class="checkbox" checked="checked" />允许改变设置</li>
+								<li><input type="checkbox" name="allowadminapp" value="1" class="checkbox" />允许管理应用</li>
+								<li><input type="checkbox" name="allowadminuser" value="1" class="checkbox" />允许管理用户</li>
+								<li><input type="checkbox" name="allowadminbadword" value="1" class="checkbox" checked="checked" />允许管理词语过滤</li>
+								<li><input type="checkbox" name="allowadmintag" value="1" class="checkbox" checked="checked" />允许管理TAG</li>
+								<li><input type="checkbox" name="allowadminpm" value="1" class="checkbox" checked="checked" />允许管理短消息</li>
+								<li><input type="checkbox" name="allowadmincredits" value="1" class="checkbox" checked="checked" />允许管理积分</li>
+								<li><input type="checkbox" name="allowadmindomain" value="1" class="checkbox" checked="checked" />允许管理域名解析</li>
+								<li><input type="checkbox" name="allowadmindb" value="1" class="checkbox" />允许管理数据</li>
+								<li><input type="checkbox" name="allowadminnote" value="1" class="checkbox" checked="checked" />允许管理数据列表</li>
+								<li><input type="checkbox" name="allowadmincache" value="1" class="checkbox" checked="checked" />允许管理缓存</li>
+								<li><input type="checkbox" name="allowadminlog" value="1" class="checkbox" checked="checked" />允许查看日志</li>
+							</ul>
+						</td>
+					</tr>
+					<tr>
+						<td></td>
+						<td>
+							<input type="submit" name="addadmin" value="提 交" class="btn" />
+						</td>
+					</tr>
+				</table>
+				</form>
+			</div>
+			<?php if($user['isfounder']) { ?>
+			<div id="editpwdiv" class="tabcontent" style="display:none;">
+				<p class="i">此处密码仅为UCenter后台创始人登陆密码,与各应用管理员密码无关更不会自动同步更改,请务必妥善保存此密码</p>
+				<form action="admin.php?m=admin&a=ls" onsubmit="return chkeditpw(this)" method="post">
+				<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+				<table class="dbtb" style="height:123px;">
+					<tr>
+						<td class="tbtitle">旧密码:</td>
+						<td><input type="password" name="oldpw" class="txt" /></td>
+					</tr>
+					<tr>
+						<td class="tbtitle">新密码:</td>
+						<td><input type="password" name="newpw" class="txt" /></td>
+					</tr>
+					<tr>
+						<td class="tbtitle">重复新密码:</td>
+						<td><input type="password" name="newpw2" class="txt" /></td>
+					</tr>
+					<tr>
+						<td></td>
+						<td>
+							<input type="submit" name="editpwsubmit" value="提 交" class="btn" />
+						</td>
+					</tr>
+				</table>
+				</form>
+			</div>
+			<?php } ?>
+		</div>
+		<h3>管理员列表</h3>
+		<div class="mainbox">
+			<?php if($userlist) { ?>
+				<form action="admin.php?m=admin&a=ls" onsubmit="return confirm('您确定删除吗?');" method="post">
+				<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+				<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
+					<tr>
+						<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" value="1" class="checkbox" /><label for="chkall">删除</label></th>
+						<th>用户名</th>
+						<th>Email</th>
+						<th>注册日期</th>
+						<th>注册IP</th>
+						<th>资料</th>
+						<th>权限</th>
+					</tr>
+					<?php foreach((array)$userlist as $user) {?>
+						<tr>
+							<td class="option"><input type="checkbox" name="delete[]" value="<?php echo $user['uid'];?>" value="1" class="checkbox" /></td>
+							<td class="username"><?php echo $user['username'];?></td>
+							<td><?php echo $user['email'];?></td>
+							<td class="date"><?php echo $user['regdate'];?></td>
+							<td class="ip"><?php echo $user['regip'];?></td>
+							<td class="ip"><a href="admin.php?m=user&a=edit&uid=<?php echo $user['uid'];?>&fromadmin=yes">资料</a></td>
+							<td class="ip"><a href="admin.php?m=admin&a=edit&uid=<?php echo $user['uid'];?>">权限</a></td>
+						</tr>
+					<?php } ?>
+					<tr class="nobg">
+						<td><input type="submit" value="提 交" class="btn" /></td>
+						<td class="tdpage" colspan="4"><?php echo $multipage;?></td>
+					</tr>
+				</table>
+				</form>
+			<?php } else { ?>
+				<div class="note">
+					<p class="i">目前没有相关记录!</p>
+				</div>
+			<?php } ?>
+		</div>
+	</div>
+	<?php if($_POST['editpwsubmit']) { ?>
+		<script type="text/javascript">
+		switchbtn('editpw');
+		</script>
+	<?php } else { ?>
+		<script type="text/javascript">
+		switchbtn('addadmin');
+		</script>
+	<?php } ?>
+
+<?php } else { ?>
+	<div class="container">
+		<h3 class="marginbot">编辑管理员权限<a href="admin.php?m=admin&a=ls" class="sgbtn">返回管理员列表</a></h3>
+		<?php if($status == 1) { ?>
+			<div class="correctmsg"><p>编辑管理员权限成功</p></div>
+		<?php } elseif($status == -1) { ?>
+			<div class="correctmsg"><p>编辑管理员权限失败</p></div>
+		<?php } else { ?>
+			<div class="note">请谨慎开放“管理应用”,“管理用户”、“管理数据”权限</div>
+		<?php } ?>
+		<div class="mainbox">
+			<form action="admin.php?m=admin&a=edit&uid=<?php echo $uid;?>" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+				<table class="opt">
+					<tr>
+						<th>管理员 <?php echo $admin['username'];?>:</th>
+					</tr>
+					<tr>
+						<td>
+							<ul>
+								<li><input type="checkbox" name="allowadminsetting" value="1" class="checkbox" <?php if($admin['allowadminsetting']) { ?> checked="checked" <?php } ?>/>允许改变设置</li>
+								<li><input type="checkbox" name="allowadminapp" value="1" class="checkbox" <?php if($admin['allowadminapp']) { ?> checked="checked" <?php } ?>/>允许管理应用</li>
+								<li><input type="checkbox" name="allowadminuser" value="1" class="checkbox" <?php if($admin['allowadminuser']) { ?> checked="checked" <?php } ?>/>允许管理用户</li>
+								<li><input type="checkbox" name="allowadminbadword" value="1" class="checkbox" <?php if($admin['allowadminbadword']) { ?> checked="checked" <?php } ?>/>允许管理词语过滤</li>
+								<li><input type="checkbox" name="allowadmintag" value="1" class="checkbox" <?php if($admin['allowadmintag']) { ?> checked="checked" <?php } ?>/>允许管理TAG</li>
+								<li><input type="checkbox" name="allowadminpm" value="1" class="checkbox" <?php if($admin['allowadminpm']) { ?> checked="checked" <?php } ?>/>允许管理短消息</li>
+								<li><input type="checkbox" name="allowadmincredits" value="1" class="checkbox" <?php if($admin['allowadmincredits']) { ?> checked="checked" <?php } ?>/>允许管理积分</li>
+								<li><input type="checkbox" name="allowadmindomain" value="1" class="checkbox" <?php if($admin['allowadmindomain']) { ?> checked="checked" <?php } ?>/>允许管理域名解析</li>
+								<li><input type="checkbox" name="allowadmindb" value="1" class="checkbox" <?php if($admin['allowadmindb']) { ?> checked="checked" <?php } ?>/>允许管理数据</li>
+								<li><input type="checkbox" name="allowadminnote" value="1" class="checkbox" <?php if($admin['allowadminnote']) { ?> checked="checked" <?php } ?>/>允许管理数据列表</li>
+								<li><input type="checkbox" name="allowadmincache" value="1" class="checkbox" <?php if($admin['allowadmincache']) { ?> checked="checked" <?php } ?>/>允许管理缓存</li>
+								<li><input type="checkbox" name="allowadminlog" value="1" class="checkbox" <?php if($admin['allowadminlog']) { ?> checked="checked" <?php } ?>/>允许查看日志</li>
+							</ul>
+						</td>
+					</tr>
+				</table>
+				<div class="opt"><input type="submit" name="submit" value=" 提 交 " class="btn" tabindex="3" /></div>
+			</form>
+		</div>
+	</div>
+
+<?php } ?>
+
+<?php include $this->gettpl('footer');?>

+ 95 - 0
uc_server/data/view/admin_badword.php

xqd
@@ -0,0 +1,95 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<script src="js/common.js" type="text/javascript"></script>
+<script type="text/javascript">
+	function switchbtn(btn) {
+		$('srchuserdiv').style.display = btn == 'srch' ? '' : 'none';
+		$('srchuserdiv').className = btn == 'srch' ? 'tabcontentcur' : '' ;
+		$('srchuserbtn').className = btn == 'srch' ? 'tabcurrent' : '';
+		$('adduserdiv').style.display = btn == 'srch' ? 'none' : '';
+		$('adduserdiv').className = btn == 'srch' ? '' : 'tabcontentcur';
+		$('adduserbtn').className = btn == 'srch' ? '' : 'tabcurrent';
+		$('tmenu').style.height = btn == 'srch' ? '80'+'px' : '280'+'px';
+	}
+</script>
+<div class="container">
+	<?php if($status) { ?>
+		<div class="correctmsg"><p><?php if($status == 2) { ?>词语过滤成功更新。<?php } elseif($status == 1) { ?>词语过滤添加成功。<?php } ?></p></div>
+	<?php } ?>
+	<div id="tmenu" class="hastabmenu">
+		<ul class="tabmenu">
+			<li id="srchuserbtn" class="tabcurrent"><a href="#" onclick="switchbtn('srch');">添加词语过滤</a></li>
+			<li id="adduserbtn"><a href="#" onclick="switchbtn('add');">批量添加</a></li>
+		</ul>
+		<div id="adduserdiv" class="tabcontent" style="display:none;">
+			<form action="admin.php?m=badword&a=ls" method="post">
+				<ul class="tiplist">
+					<li>每行一组,不良词语和替换词语之间使用“=”进行分割。</li>
+					<li>如果想将某个词语直接替换成 **,只输入词语即可。</li>
+					<li><strong>例如:</strong></li>
+					<li>toobad</li>
+					<li>badword=good</li>
+				</ul>
+				<textarea name="badwords" class="bigarea"></textarea>
+				<ul class="optlist">
+					<li><input type="radio" name="type" value="2" id="badwordsopt2" class="radio" checked="checked" /><label for="badwordsopt2">当冲突时,跳过原来的词表</label></li>
+					<li><input type="radio" name="type" value="1" id="badwordsopt1" class="radio" /><label for="badwordsopt1">当冲突时,覆盖原来的词表</label></li>
+					<li><input type="radio" name="type" value="0" id="badwordsopt0" class="radio" /><label for="badwordsopt0">清空当前词表,后导入新词语(此操作不可恢复,建议首先<a href="admin.php?m=badword&a=export" target="_blanks">导出词表</a>,做好备份)</label></li>
+				</ul>
+				<input type="submit" name="multisubmit" value="提 交" class="btn" />
+			</form>
+
+		</div>
+		<div id="srchuserdiv" class="tabcontentcur">
+			<form action="admin.php?m=badword&a=ls" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+			<table>
+				<tr>
+					<td>不良词语:</td>
+					<td><input type="text" name="findnew" class="txt" /></td>
+					<td>替换为:</td>
+					<td><input type="text" name="replacementnew" class="txt" /></td>
+					<td><input type="submit" value="提 交"  class="btn" /></td>
+				</tr>
+			</table>
+			</form>
+		</div>
+	</div>
+	<br />
+	<h3>词语过滤</h3>
+	<div class="mainbox">
+		<?php if($badwordlist) { ?>
+			<form action="admin.php?m=badword&a=ls" method="post">
+				<table class="datalist fixwidth">
+					<tr>
+						<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">删除</label></th>
+						<th style="text-align:right;padding-right:11px;">不良词语</th>
+						<th></th>
+						<th>替换为</th>
+						<th>操作人</th>
+					</tr>
+					<?php foreach((array)$badwordlist as $badword) {?>
+						<tr>
+							<td class="option"><input type="checkbox" name="delete[]" value="<?php echo $badword['id'];?>" class="checkbox" /></td>
+							<td class="tdinput"><input type="text" name="find[<?php echo $badword['id'];?>]" value="<?php echo $badword['find'];?>" title="点击编辑,提交后保存" class="txtnobd" onblur="this.className='txtnobd'" onfocus="this.className='txt'" /></td>
+							<td class="tdarrow">&gt;</td>
+							<td class="tdinput"><input type="text" name="replacement[<?php echo $badword['id'];?>]" value="<?php echo $badword['replacement'];?>" title="点击编辑,提交后保存" class="txtnobd"  onblur="this.className='txtnobd'" onfocus="this.className='txt'" style="text-align:left;" /></td>
+							<td><?php echo $badword['admin'];?></td>
+						</tr>
+					<?php } ?>
+					<tr class="nobg">
+						<td><input type="submit" value="提 交" class="btn" /></td>
+						<td class="tdpage" colspan="4"><?php echo $multipage;?></td>
+					</tr>
+				</table>
+			</form>
+		<?php } else { ?>
+			<div class="note">
+				<p class="i">目前没有相关记录!</p>
+			</div>
+		<?php } ?>
+	</div>
+</div>
+
+<?php include $this->gettpl('footer');?>

+ 31 - 0
uc_server/data/view/admin_cache.php

xqd
@@ -0,0 +1,31 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<script src="js/common.js" type="text/javascript"></script>
+
+<div class="container">
+	<h3>更新缓存</h3>
+	<?php if($updated) { ?>
+		<div class="correctmsg"><p>更新成功。</p></div>
+	<?php } ?>
+	<div class="mainbox">
+		<form action="admin.php?m=cache&a=update" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+			<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
+				<tr>
+					<td class="option"><input type="checkbox" name="type[]" value="data" class="checkbox" checked="checked" /></td>
+					<td>更新数据缓存</td>
+				</tr>
+				<tr>
+					<td class="option"><input type="checkbox" name="type[]" value="tpl" class="checkbox" /></td>
+					<td>更新模板缓存</td>
+				</tr>
+				<tr class="nobg">
+					<td colspan="2"><input type="submit" value="提 交" class="btn" /></td>
+				</tr>
+			</table>
+		</form>
+	</div>
+</div>
+
+<?php include $this->gettpl('footer');?>

+ 106 - 0
uc_server/data/view/admin_credit.php

xqd
@@ -0,0 +1,106 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<script src="js/common.js" type="text/javascript"></script>
+<div class="container">
+
+	<div class="note">
+		<p class="i">点击“同步应用的积分设置”可以获取应用的积分设置,并且把当前设置结果通知给应用</p>
+	</div>
+
+	<?php if($status) { ?>
+		<div class="<?php if($status > 0) { ?>correctmsg<?php } else { ?>errormsg<?php } ?>"><p><?php if($status == 1) { ?>成功更新积分兑换方案。<?php } elseif($status == -1) { ?>兑换前后应用相同,请重新设置。<?php } ?></p></div>
+	<?php } ?>
+	<div class="hastabmenu">
+		<ul class="tabmenu">
+			<li class="tabcurrent"><a href="#" class="tabcurrent">更新积分兑换方案</a></li>
+		</ul>
+		<div class="tabcontentcur">
+			<form id="creditform" action="admin.php?m=credit&a=ls&addexchange=yes" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+			<table class="dbtb">
+				<tr>
+					<td class="tbtitle">兑换方向:</td>
+					<td>
+						<select onchange="switchcredit('src', this.value)" name="appsrc">
+							<option>请选择</option><?php echo $appselect;?>
+						</select><span id="src"></span>
+						&nbsp;&gt;&nbsp;
+						<select onchange="switchcredit('desc', this.value)" name="appdesc">
+							<option>请选择</option><?php echo $appselect;?>
+						</select><span id="desc"></span>
+					</td>
+				</tr>
+				<tr>
+					<td class="tbtitle">兑换比率:</td>
+					<td>
+						<input name="ratiosrc" size="3" value="<?php echo $ratiosrc;?>" class="txt" style="margin-right:0" />
+						&nbsp;:&nbsp;
+						<input name="ratiodesc" size="3" value="<?php echo $ratiodesc;?>" class="txt" />
+					</td>
+				</tr>
+				<tr>
+					<td></td>
+					<td>
+						<input type="submit" value="提 交" class="btn" /> &nbsp;
+						<input type="button" value="同步应用的积分设置" class="btn" onclick="location.href='admin.php?m=credit&a=sync&sid=<?php echo $sid;?>'" />
+					</td>
+				</tr>
+			</table>
+			<div style="display: none">
+			<script type="text/javascript">
+			var credit = new Array();
+			<?php foreach((array)$creditselect as $select) {?><?php echo $select;?><?php } ?>
+			<?php if($appsrc) { ?>
+				setselect($('creditform').appsrc, <?php echo $appsrc;?>);
+				switchcredit('src', <?php echo $appsrc;?>);
+			<?php } ?>
+			<?php if($appdesc) { ?>
+				setselect($('creditform').appdesc, <?php echo $appdesc;?>);
+				switchcredit('desc', <?php echo $appdesc;?>);
+			<?php } ?>
+			<?php if($creditsrc) { ?>
+				setselect($('creditform').creditsrc, <?php echo $creditsrc;?>);
+			<?php } ?>
+			<?php if($creditdesc) { ?>
+				setselect($('creditform').creditdesc, <?php echo $creditdesc;?>);
+			<?php } ?>
+			</script>
+			</div>
+			</form>
+		</div>
+	</div>
+	<br />
+	<h3>积分兑换</h3>
+	<div class="mainbox">
+		<?php if($creditexchange) { ?>
+			<form action="admin.php?m=credit&a=ls&delexchange=yes" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+			<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
+				<tr>
+					<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">删除</label></th>
+					<th style="padding-right: 11px; text-align: right">兑换方向</th>
+					<th></th>
+					<th style="text-align: center">兑换比率</th>
+				</tr>
+				<?php foreach((array)$creditexchange as $key => $exchange) {?>
+					<tr>
+						<td class="option"><input type="checkbox" name="delete[]" value="<?php echo $key;?>" class="checkbox" /></td>
+						<td align="right"><?php echo $exchange['appsrc'];?> <?php echo $exchange['creditsrc'];?></td>
+						<td>&nbsp;&gt;&nbsp;<?php echo $exchange['appdesc'];?> <?php echo $exchange['creditdesc'];?></td>
+						<td align="center"><?php echo $exchange['ratiosrc'];?> : <?php echo $exchange['ratiodesc'];?></td>
+					</tr>
+				<?php }?>
+				<tr class="nobg">
+					<td><input type="submit" value="提 交" class="btn" /></td>
+				</tr>
+			</table>
+			</form>
+		<?php } else { ?>
+			<div class="note">
+				<p class="i">目前没有相关记录!</p>
+			</div>
+		<?php } ?>
+</div>
+
+<?php include $this->gettpl('footer');?>

+ 179 - 0
uc_server/data/view/admin_db.php

xqd
@@ -0,0 +1,179 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<script src="js/common.js" type="text/javascript"></script>
+
+<div class="container">
+	<?php if($operate == 'list') { ?>
+		<h3 class="marginbot">
+			<a href="admin.php?m=db&a=ls&o=export" class="sgbtn">数据备份</a>
+			数据恢复
+		</h3>
+		<div class="note fixwidthdec">
+			<p class="i">根据备份日期选择要恢复的备份,点击“详情”进入之后选择要恢复的应用备份</p>
+		</div>
+		<div class="mainbox">
+			<form id="theform">
+				<table class="datalist" onmouseover="addMouseEvent(this);">
+					<tr>
+						<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('operate[]')" class="checkbox" /><label for="chkall">删除</label></th>
+						<th nowrap="nowrap">备份所在目录</th>
+						<th nowrap="nowrap">备份日期</th>
+						<th nowrap="nowrap">操作</th>
+						<th nowrap="nowrap">&nbsp;</th>
+						<th nowrap="nowrap">&nbsp;</th>
+					</tr>
+					<?php foreach((array)$baklist as $bak) {?>
+						<tr>
+							<td width="50"><input type="checkbox" name="operate[]" value="<?php echo $bak['name'];?>" class="checkbox" /></td>
+							<td width="200"><a href="admin.php?m=db&a=ls&o=view&dir=<?php echo $bak['name'];?>"><?php echo $bak['name'];?></a></td>
+							<td width="120"><?php echo $bak['date'];?></td>
+							<td><a href="admin.php?m=db&a=ls&o=view&dir=<?php echo $bak['name'];?>">详情</a></td>
+							<td id="db_operate_<?php echo $bak['name'];?>"></td>
+							<td><iframe id="operate_iframe_<?php echo $bak['name'];?>" style="display:none" width="0" height="0"></iframe></td>
+						</tr>
+					<?php } ?>
+					<tr class="nobg">
+						<td colspan="6"><input type="button" value="提 交" onclick="db_delete($('theform'))" class="btn" /></td>
+					</tr>
+				</table>
+			</form>
+		</div>
+	<?php } elseif($operate == 'view') { ?>
+		<h3 class="marginbot">
+			<a href="admin.php?m=db&a=ls&o=export" class="sgbtn">数据备份</a>
+			数据恢复
+		</h3>
+		<div class="note fixwidthdec">
+			<p class="i">在需要恢复的应用前面勾选,之后点击“提交”按钮即可恢复备份数据</p>
+		</div>
+		<div class="mainbox">
+			<form id="theform">
+			<table class="datalist" onmouseover="addMouseEvent(this);">
+				<tr>
+					<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('operate[]')" class="checkbox" /><label for="chkall">导入</label></th>
+					<th nowrap="nowrap">ID</th>
+					<th nowrap="nowrap">应用名称</th>
+					<th nowrap="nowrap">应用的主 URL</th>
+					<th nowrap="nowrap">&nbsp;</th>
+					<th nowrap="nowrap">&nbsp;</th>
+				</tr>
+				<tr>
+					<td width="50"><input type="checkbox" name="operate_uc" class="checkbox" /></td>
+					<td width="35"></td>
+					<td><strong>UCenter</strong></td>
+					<td></td>
+					<td id="db_operate_0"><img src="images/correct.gif" border="0" class="statimg" /><span class="green">备份存在</span></td>
+					<td><iframe id="operate_iframe_0" style="display:none" width="0" height="0"></iframe></td>
+				</tr>
+				<?php foreach((array)$applist as $app) {?>
+					<tr>
+						<td width="50"><input type="checkbox" name="operate[]" value="<?php echo $app['appid'];?>" class="checkbox" /></td>
+						<td width="35"><?php echo $app['appid'];?></td>
+						<td width="160"><a href="admin.php?m=app&a=detail&appid=<?php echo $app['appid'];?>"><strong><?php echo $app['name'];?></strong></a></td>
+						<td><a href="<?php echo $app['url'];?>" target="_blank"><?php echo $app['url'];?></a></td>
+						<td id="db_operate_<?php echo $app['appid'];?>"></td>
+						<td><iframe id="operate_iframe_<?php echo $app['appid'];?>" src="admin.php?m=db&a=ls&o=ping&appid=<?php echo $app['appid'];?>&dir=<?php echo $dir;?>" style="display:none" width="0" height="0"></iframe></td>
+					</tr>
+				<?php } ?>
+				<tr class="nobg">
+					<td colspan="6"><input type="button" value="提 交" onclick="db_operate($('theform'), 'import')" class="btn" /></td>
+				</tr>
+			</table>
+			</form>
+		</div>
+	<?php } else { ?>
+		<h3 class="marginbot">
+			数据备份
+			<a href="admin.php?m=db&a=ls&o=list" class="sgbtn">数据恢复</a>
+		</h3>
+		<div class="mainbox">
+			<form id="theform">
+			<table class="datalist" onmouseover="addMouseEvent(this);">
+				<tr>
+					<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" checked="checked" onclick="checkall('operate[]')" class="checkbox" /><label for="chkall">数据备份</label></th>
+					<th nowrap="nowrap">ID</th>
+					<th nowrap="nowrap">应用名称</th>
+					<th nowrap="nowrap">应用的主 URL</th>
+					<th nowrap="nowrap">&nbsp;</th>
+					<th nowrap="nowrap">&nbsp;</th>
+				</tr>
+				<tr>
+					<td width="50"><input type="checkbox" name="operate_uc" disabled="disabled" checked="checked" class="checkbox" /></td>
+					<td width="35"></td>
+					<td><strong>UCenter</strong></td>
+					<td></td>
+					<td id="db_operate_0"></td>
+					<td><iframe id="operate_iframe_0" style="display:none" width="0" height="0"></iframe></td>
+				</tr>
+				<?php foreach((array)$applist as $app) {?>
+					<tr>
+						<td width="50"><input type="checkbox" name="operate[]" value="<?php echo $app['appid'];?>" checked="checked" class="checkbox" /></td>
+						<td width="35"><?php echo $app['appid'];?></td>
+						<td width="160"><a href="admin.php?m=app&a=detail&appid=<?php echo $app['appid'];?>"><strong><?php echo $app['name'];?></strong></a></td>
+						<td><a href="<?php echo $app['url'];?>" target="_blank"><?php echo $app['url'];?></a></td>
+						<td id="db_operate_<?php echo $app['appid'];?>"></td>
+						<td><iframe id="operate_iframe_<?php echo $app['appid'];?>" style="display:none" width="0" height="0"></iframe></td>
+					</tr>
+				<?php } ?>
+				<tr class="nobg">
+					<td colspan="6"><input type="button" value="提 交" onclick="db_operate($('theform'), 'export')" class="btn" /></td>
+				</tr>
+			</table>
+			</form>
+		</div>
+	<?php } ?>
+</div>
+
+<script type="text/javascript">
+var import_status = new Array();
+function db_delete(theform) {
+	var lang_tips = '开始删除备份数据,请等待,请勿关闭浏览器';
+	if(!confirm('删除数据库备份会同时删除UCenter 下所有应用的同目录下的备份,您确定要删除吗?')) {
+		return;
+	}
+	for(i = 0; theform[i] != null; i++) {
+		ele = theform[i];
+		if(/^operate\[/.test(ele.name) && ele.type == "checkbox" && ele.checked) {
+			show_status(ele.value, lang_tips);
+			$('operate_iframe_'+ele.value).src = 'admin.php?m=db&a=delete&backupdir='+ele.value;
+		}
+	}
+}
+
+function db_operate(theform, operate) {
+	operate = operate == 'import' ? 'import' : 'export';
+	if(operate == 'export') {
+		var lang_tips = '开始备份数据,请等待,请勿关闭浏览器';
+	} else {
+		if(!confirm('导入备份数据会覆盖现有的数据,您确定导入吗?')) {
+			return;
+		}
+		if(theform.operate_uc.checked && !confirm('导入备份数据将会覆盖现有用户中心的数据,您确定导入吗?')) {
+			return;
+		}
+		var lang_tips = '开始恢复数据,请等待,请勿关闭浏览器';
+	}
+
+	if(theform.operate_uc.checked) {
+		show_status(0, lang_tips);
+		$('operate_iframe_0').src = 'admin.php?m=db&a=operate&t='+operate+'&appid=0&backupdir=<?php echo $dir;?>&sid=<?php echo $sid;?>';
+	}
+	for(i = 0; theform[i] != null; i++) {
+		ele = theform[i];
+		if(/^operate\[\]$/.test(ele.name) && ele.type == "checkbox" && ele.checked) {
+			if(operate != 'import' || import_status[ele.value] != false) {
+				show_status(ele.value, lang_tips);
+				$('operate_iframe_'+ele.value).src = 'admin.php?m=db&a=operate&t='+operate+'&appid='+ele.value+'&backupdir=<?php echo $dir;?>&sid=<?php echo $sid;?>';
+			}
+		}
+	}
+}
+
+function show_status(extid, msg) {
+	var o = $('db_operate_'+extid);
+	o.innerHTML = msg;
+}
+</script>
+
+<?php include $this->gettpl('footer');?>

+ 60 - 0
uc_server/data/view/admin_domain.php

xqd
@@ -0,0 +1,60 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<script src="js/common.js" type="text/javascript"></script>
+<div class="container">
+	<?php if($status) { ?>
+		<div class="<?php if($status > 0) { ?>correctmsg<?php } else { ?>errormsg<?php } ?>"><p><?php if($status == 2) { ?>域名解析列表成功更新。<?php } elseif($status == 1) { ?>域名解析添加成功。<?php } ?></p></div>
+	<?php } ?>
+	<div class="hastabmenu">
+		<ul class="tabmenu">
+			<li class="tabcurrent"><a href="#" class="tabcurrent">添加域名解析</a></li>
+		</ul>
+		<div class="tabcontentcur">
+			<form action="admin.php?m=domain&a=ls" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+			<table>
+				<tr>
+					<td>域名:</td>
+					<td><input type="text" name="domainnew" class="txt" /></td>
+					<td>IP:</td>
+					<td><input type="text" name="ipnew" class="txt" /></td>
+					<td><input type="submit" value="提 交"  class="btn" /></td>
+				</tr>
+			</table>
+			</form>
+		</div>
+	</div>
+	<h3>域名解析列表</h3>
+	<div class="mainbox">
+		<?php if($domainlist) { ?>
+			<form action="admin.php?m=domain&a=ls" method="post">
+				<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+				<table class="datalist fixwidth">
+					<tr>
+						<th width="10%"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">删除</label></th>
+						<th width="60%">域名</th>
+						<th width="30%">IP</th>
+					</tr>
+					<?php foreach((array)$domainlist as $domain) {?>
+					<tr>
+						<td><input type="checkbox" name="delete[]" value="<?php echo $domain['id'];?>" class="checkbox" /></td>
+						<td><input type="text" name="domain[<?php echo $domain['id'];?>]" value="<?php echo $domain['domain'];?>" title="点击编辑,提交后保存" class="txtnobd" onblur="this.className='txtnobd'" onfocus="this.className='txt'" style="text-align:left;" /></td>
+						<td><input type="text" name="ip[<?php echo $domain['id'];?>]" value="<?php echo $domain['ip'];?>" title="点击编辑,提交后保存" class="txtnobd" onblur="this.className='txtnobd'" onfocus="this.className='txt'" style="text-align:left;" /></td>
+					</tr>
+					<?php } ?>
+					<tr class="nobg">
+						<td><input type="submit" value="提 交" class="btn" /></td>
+						<td class="tdpage" colspan="2"><?php echo $multipage;?></td>
+					</tr>
+				</table>
+			</form>
+		<?php } else { ?>
+			<div class="note">
+				<p class="i">目前没有相关记录!</p>
+			</div>
+		<?php } ?>
+	</div>
+</div>
+
+<?php include $this->gettpl('footer');?>

+ 41 - 0
uc_server/data/view/admin_feed.php

xqd
@@ -0,0 +1,41 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<script src="js/common.js" type="text/javascript"></script>
+<div class="container">
+	<h3 class="marginbot">
+		事件列表
+		<?php if($user['allowadminnote'] || $user['isfounder']) { ?><a href="admin.php?m=note&a=ls" class="sgbtn">通知列表</a><?php } ?>
+		<?php if($user['allowadminlog'] || $user['isfounder']) { ?><a href="admin.php?m=log&a=ls" class="sgbtn">日志列表</a><?php } ?>
+		<a href="admin.php?m=mail&a=ls" class="sgbtn">邮件队列</a>
+	</h3>
+	<div class="mainbox">
+		<?php if($feedlist) { ?>
+			<form action="admin.php?m=note&a=ls" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+			<table class="datalist" style="table-layout:fixed">
+				<tr>
+					<th width="100">时间</th>
+					<th>&nbsp;</th>
+				</tr>
+				<?php foreach((array)$feedlist as $feed) {?>
+					<tr>
+						<td><?php echo $feed['dateline'];?></td>
+						<td><?php echo $feed['title_template'];?></td>
+					</tr>
+				<?php } ?>
+				<tr class="nobg">
+					<td></td>
+					<td class="tdpage"><?php echo $multipage;?></td>
+				</tr>
+			</table>
+			</form>
+		<?php } else { ?>
+			<div class="note">
+				<p class="i">目前没有相关记录!</p>
+			</div>
+		<?php } ?>
+	</div>
+</div>
+
+<?php include $this->gettpl('footer');?>

+ 1 - 1
uc_server/data/view/admin_login.php

xqd
@@ -63,5 +63,5 @@ function changeuser(user) {
 	}
 }
 </script>
-<div class="footer">Powered by UCenter <?php echo UC_SERVER_VERSION;?> &copy; 2001 - 2011 <a href="http://www.comsenz.com/" target="_blank">Comsenz</a> Inc.</div>
+<div class="footer">Powered by UCenter <?php echo UC_SERVER_VERSION;?> &copy; 2001 - 2017 <a href="http://www.comsenz.com/" target="_blank">Comsenz</a> Inc.</div>
 <?php include $this->gettpl('footer');?>

+ 95 - 0
uc_server/data/view/admin_pm_search.php

xqd
@@ -0,0 +1,95 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+
+<script src="js/common.js" type="text/javascript"></script>
+<script src="js/calendar.js" type="text/javascript"></script>
+
+<div class="container">
+	<div class="hastabmenu" style="height: 200px;">
+		<ul class="tabmenu">
+			<li class="tabcurrent"><a href="javascript:;" class="tabcurrent">短消息搜索</a></li>
+			<li><a href="admin.php?m=pm&a=clear">清空短消息</a></li>
+		</ul>
+		<div id="searchpmdiv" class="tabcontentcur">
+			<form action="admin.php?m=pm&a=ls" method="post">
+				<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+				<table class="dbtb">
+					<tr>
+						<th class="tbtitle">发件人:</th>
+						<td><input type="text" name="srchauthor" class="txt" value="<?php echo $srchauthor;?>" /></td>
+					</tr>
+					<tr>
+						<th class="tbtitle">消息内容:</th>
+						<td><input type="text" name="srchmessage" class="txt" value="<?php echo $srchmessage;?>" /></td>
+					</tr>
+					<tr>
+						<th class="tbtitle">时间范围:</th>
+						<td><input type="text" name="srchstarttime" class="txt" style="margin-right: 0;" value="<?php echo $srchstarttime;?>" onclick="showcalendar();" /> - <input type="text" name="srchendtime" class="txt" value="<?php echo $srchendtime;?>" onclick="showcalendar();" /></td>
+					</tr>
+					<tr>
+						<th class="tbtitle">选择分表:</th>
+						<td>
+							<select name="srchtablename">
+								<option value="0"<?php if($srchtablename === 0) { ?> selected="selected"<?php } ?>>pm_messages_0</option>
+								<option value="1"<?php if($srchtablename == 1) { ?> selected="selected"<?php } ?>>pm_messages_1</option>
+								<option value="2"<?php if($srchtablename == 2) { ?> selected="selected"<?php } ?>>pm_messages_2</option>
+								<option value="3"<?php if($srchtablename == 3) { ?> selected="selected"<?php } ?>>pm_messages_3</option>
+								<option value="4"<?php if($srchtablename == 4) { ?> selected="selected"<?php } ?>>pm_messages_4</option>
+								<option value="5"<?php if($srchtablename == 5) { ?> selected="selected"<?php } ?>>pm_messages_5</option>
+								<option value="6"<?php if($srchtablename == 6) { ?> selected="selected"<?php } ?>>pm_messages_6</option>
+								<option value="7"<?php if($srchtablename == 7) { ?> selected="selected"<?php } ?>>pm_messages_7</option>
+								<option value="8"<?php if($srchtablename == 8) { ?> selected="selected"<?php } ?>>pm_messages_8</option>
+								<option value="9"<?php if($srchtablename == 9) { ?> selected="selected"<?php } ?>>pm_messages_9</option>
+							</select>
+							 短消息中心消息总数: <?php echo $pmnum;?>
+						</td>
+					</tr>
+					<tr>
+						<th></th>
+						<td><input type="submit" value="提 交" class="btn" name="searchpmsubmit" /></td>
+					</tr>
+				</table>
+			</form>
+		</div>
+	</div>
+
+	<h3>短消息列表</h3>
+	<div class="mainbox">
+		<?php if($pmlist) { ?>
+			<form action="admin.php?m=pm&a=delete" onsubmit="return confirm('该操作不可恢复,您确认要删除这些短消息吗?');" method="post">
+			<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>">
+			<input type="hidden" name="srchtablename" value="<?php echo $srchtablename;?>">
+			<input type="hidden" name="srchauthor" value="<?php echo $srchauthor;?>">
+			<input type="hidden" name="srchstarttime" value="<?php echo $srchstarttime;?>">
+			<input type="hidden" name="srchendtime" value="<?php echo $srchendtime;?>">
+			<input type="hidden" name="srchmessage" value="<?php echo $srchmessage;?>">
+			<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
+				<tr>
+					<th width="60"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('deletepmid[]')" class="checkbox" /><label for="chkall">删除</label></th>
+					<th width="150">发起者</th>
+					<th width="120">时间</th>
+					<th>消息内容</th>
+				</tr>
+				<?php foreach((array)$pmlist as $pm) {?>
+					<tr>
+						<td><input type="checkbox" name="deletepmid[]" value="<?php echo $pm['pmid'];?>" class="checkbox" /></td>
+						<td><img src="avatar.php?uid=<?php echo $pm['authorid'];?>&size=small" align="absmiddle" width="20" /> <strong><?php echo $pm['author'];?></strong></td>
+						<td><?php echo $pm['dateline'];?></td>
+						<td><?php echo $pm['message'];?></td>
+					</tr>
+				<?php } ?>
+				<tr class="nobg">
+					<td><input type="submit" value="提 交" class="btn" /></td>
+					<td class="tdpage" colspan="3"><?php echo $multipage;?></td>
+				</tr>
+			</table>
+			</form>
+		<?php } else { ?>
+			<div class="note">
+				<p class="i">目前没有相关记录!</p>
+			</div>
+		<?php } ?>
+	</div>
+</div>
+
+<?php include $this->gettpl('footer');?>

+ 18 - 0
uc_server/data/view/plugin_filecheck.php

xqd
@@ -0,0 +1,18 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('plugin_header');?>
+<?php if($modifiedfiles > 0) { ?>
+	<a href="###" onclick="showresult('modify')"><em class="edited">被修改: <?php echo $modifiedfiles;?></em></a>&nbsp;&nbsp;
+<?php } ?>
+<?php if($deletedfiles > 0) { ?>
+	<a href="###" onclick="showresult('del')"><em class="edited">被删除: <?php echo $deletedfiles;?></em></a>&nbsp;&nbsp;
+<?php } ?>
+<?php if($unknownfiles > 0) { ?>
+	<a href="###" onclick="showresult('add')"><em class="edited">未知: <?php echo $unknownfiles;?></em></a>&nbsp;&nbsp;
+<?php } ?>
+<?php if($doubt > 0) { ?>
+	<a href="###" onclick="showresult('doubt')"><em class="edited">一周内被修改: <?php echo $doubt;?></em></a>&nbsp;&nbsp;
+<?php } ?>
+
+<?php echo $result;?>
+
+<?php include $this->gettpl('plugin_footer');?>

+ 5 - 0
uc_server/data/view/plugin_footer.php

xqd
@@ -0,0 +1,5 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+
+</div>
+</div>
+<?php include $this->gettpl('footer');?>

+ 22 - 0
uc_server/data/view/plugin_header.php

xqd
@@ -0,0 +1,22 @@
+<?php if(!defined('UC_ROOT')) exit('Access Denied');?>
+<?php include $this->gettpl('header');?>
+<style>
+
+.tabhead {width: 100%; clear: both; background: url(images/bg_tab_line.gif) repeat-x bottom;}
+.tabhead li{line-height: 1.2em; display:block; padding:5px 7px 2px 7px; border:1px solid #CCC; border-bottom:0px solid #B5CFD9; color:#666;  float:left; margin-right:5px;}
+.tabhead li.checked{background:#F2F9FD; font-weight: 800}
+.tabbody {padding: 1em; clear: both; border:1px solid #B5CFD9; border-top: 0px; background:#F2F9FD; }
+
+</style>
+<script src="js/common.js" type="text/javascript"></script>
+<div class="container">
+<?php if($plugin['tips']) { ?>
+	<div class="note fixwidthdec"><p class="i"><?php echo $plugin['tips'];?></p></div>
+<?php } ?>
+	<ul class="tabhead">
+		<?php foreach((array)$plugins as $v) {?>
+			<li id="nav_action_<?php echo $v['dir'];?>"><a href="admin.php?m=plugin&a=<?php echo $v['dir'];?>"><?php echo $v['name'];?></a></li>
+		<?php } ?>
+		<script type="text/javascript">document.getElementById('nav_action_<?php echo $_GET['a'];?>').className = 'checked';</script>
+	</ul>
+	<div class="tabbody">