@@ -4,9 +4,7 @@ define('DEDEADMIN', str_replace("\\", '/', dirname(__FILE__))); | |||
require_once(DEDEADMIN.'/../system/common.inc.php'); | |||
require_once(DEDEINC.'/userlogin.class.php'); | |||
AjaxHead(); | |||
$action = isset($action) && in_array($action, array('is_need_check_code'))? $action : ''; | |||
if ($action === 'is_need_check_code') { | |||
$cuserLogin = new userLogin(); | |||
$isNeed = $cuserLogin->isNeedCheckCode($userid); | |||
@@ -18,4 +16,5 @@ if ($action === 'is_need_check_code') { | |||
), | |||
)); | |||
exit; | |||
} | |||
} | |||
?> |
@@ -118,15 +118,15 @@ function LoadServer() { | |||
</tr> | |||
<tr> | |||
<td width="90">文件1:</td> | |||
<td>/system/database/dedesqlite.class.php</td> | |||
<td>.../system/database/1.php</td> | |||
</tr> | |||
<tr> | |||
<td>文件2:</td> | |||
<td>/system/database/dedesqlite.class.php</td> | |||
<td>.../system/database/2.php</td> | |||
</tr> | |||
<tr> | |||
<td>文件3:</td> | |||
<td>/system/database/dedesqlite.class.php</td> | |||
<td>.../system/database/3.php</td> | |||
</tr> | |||
</table> | |||
<table class="table table-borderless w-100"> | |||
@@ -1,17 +0,0 @@ | |||
$(document).ready(function () { | |||
$("#iptUserid").focusout(function () { | |||
let userid = $(this).val(); | |||
if (userid !== '') { | |||
$.get("api.php?action=is_need_check_code&userid=" + userid, function (data) { | |||
let rs = JSON.parse(data); | |||
if (rs.code === 0) { | |||
if (rs.data.isNeed) { | |||
$("#vdimgck").show(); | |||
} else { | |||
$("#vdimgck").hide(); | |||
} | |||
} | |||
}); | |||
} | |||
}) | |||
}) |
@@ -29,8 +29,8 @@ if (is_dir(dirname(__FILE__).'/../install')) { | |||
} | |||
//检测后台目录是否更名 | |||
$cururl = GetCurUrl(); | |||
if (preg_match('/admin\/login/i', $cururl)) { | |||
$redmsg = '<div class="alert alert-warning">您的管理目录的名称中包含默认名称admin,建议把它修改为其它名称,那样会更安全</div>'; | |||
if (preg_match('/admin/', $cururl)) { | |||
$redmsg = '<div class="alert alert-warning">安全提示:后台管理目录名称中包含默认名称admin,建议把它修改为其它名称</div>'; | |||
} else { | |||
$redmsg = ''; | |||
} | |||
@@ -50,29 +50,28 @@ if ($dopost == 'login') { | |||
exit; | |||
} | |||
} | |||
$res = $cuserLogin->checkUser($userid, $pwd); | |||
if ($res == 1) { | |||
$cuserLogin->keepUser(); | |||
if (!empty($gotopage)) { | |||
ShowMsg('成功登录,正在转向管理管理主页', $gotopage); | |||
ShowMsg('成功登录,正在跳转管理管理主页', $gotopage); | |||
exit(); | |||
} else { | |||
ShowMsg('成功登录,正在转向管理管理主页', 'index.php'); | |||
ShowMsg('成功登录,正在跳转管理管理主页', 'index.php'); | |||
exit(); | |||
} | |||
} else if ($res == -1) { | |||
ResetVdValue(); | |||
ShowMsg('您的账号不存在', 'login.php', 0, 1000); | |||
ShowMsg('管理员账号不存在', 'login.php', 0, 1000); | |||
exit; | |||
} else { | |||
ResetVdValue(); | |||
ShowMsg('您的密码错误', 'login.php', 0, 1000); | |||
ShowMsg('管理员密码错误', 'login.php', 0, 1000); | |||
exit; | |||
} | |||
} else { | |||
ResetVdValue(); | |||
ShowMsg('用户和密码没填写完整', 'login.php', 0, 1000); | |||
ShowMsg('管理员账号和密码没填完整', 'login.php', 0, 1000); | |||
exit; | |||
} | |||
} | |||
@@ -167,7 +167,7 @@ else if ($dopost == 'save') { | |||
} | |||
$notelist .= "{dede:specnote imgheight=\\'$imgheight\\' imgwidth=\\'$imgwidth\\' | |||
infolen=\\'$infolen\\' titlelen=\\'$titlelen\\' col=\\'$col\\' idlist=\\'$okids\\' | |||
name=\\'$notename\\' noteid=\\'$noteid\\' isauto=\'$isauto\' rownum=\\'$rownum\\' | |||
name=\\'$notename\\' noteid=\\'$noteid\\' isauto=\'$isauto\' rownum=\\'$rownum\\' | |||
keywords=\\'$keywords\\' typeid=\\'$ttypeid\\'} | |||
$listtmp | |||
{/dede:specnote}\r\n"; | |||
@@ -43,7 +43,7 @@ | |||
<td>管理</td> | |||
</tr> | |||
{dede:datalist empty='<tr><td colspan="7" align="center">暂无文档</td></tr>'} | |||
<tr align="center" onmousemove="javascript:this.bgColor='#e9ecef';"onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<tr align="center" onmousemove="javascript:this.bgColor='#e9ecef';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td>{dede:field.aid/}</td> | |||
<td>{dede:field.clsname function='TestType(@me,1)'/}</td> | |||
<td>{dede:field.adname/}</td> | |||
@@ -185,7 +185,7 @@ | |||
} | |||
?> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="90">需要金币:</td> | |||
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -178,7 +178,7 @@ | |||
?> | |||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>')" title="快捷选择"></i> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="90">需要金币:</td> | |||
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -170,7 +170,7 @@ | |||
} | |||
?> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="90">需要金币:</td> | |||
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -164,7 +164,7 @@ | |||
?> | |||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid')" title="快捷选择" style="cursor:pointer"></i> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="90">需要金币:</td> | |||
<td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -164,7 +164,7 @@ | |||
} | |||
?> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="90">需要金币:</td> | |||
<td><input type="text" name="money" id="money" value="0" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -161,7 +161,7 @@ | |||
?> | |||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>')" title="快捷选择"></i> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="90">需要金币:</td> | |||
<td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -17,7 +17,7 @@ | |||
</tr> | |||
<tr bgcolor="#e9ecef"> | |||
<td width="30%" align="center">产品名称</td> | |||
<td width="27%" align="center">点数(金币数)</td> | |||
<td width="27%" align="center">金币点数</td> | |||
<td width="30%" align="center">价格</td> | |||
<td width="17%" align="center">状态</td> | |||
</tr> | |||
@@ -76,7 +76,7 @@ | |||
<form name="form2"> | |||
{dede:datalist empty='<div class="text-center py-2">暂无文档</div>'} | |||
<table cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | |||
<tr align="center"> | |||
<tr align="center"> | |||
<td width="6%"><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | |||
<td width="6%">{dede:field.id/}</td> | |||
<td width="30%" align="left"> | |||
@@ -90,7 +90,7 @@ | |||
<td width="6%">{dede:field.arcrank function='GetRankName(@me)'/}</td> | |||
<td width="6%">{dede:field.mid function=GetMemberName(@me)/}</td> | |||
<td> | |||
<a href="javascript:;" title="属性" onClick="QuickEdit({dede:field.id/},event,this);" class="btn btn-success btn-sm"><i class="fa fa-cogs"></i></a> | |||
<a href="javascript:;" title="属性" onClick="QuickEdit({dede:field.id/},event,this);" class="btn btn-success btn-sm"><i class="fa fa-window-maximize"></i></a> | |||
<a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives" title="修改" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i></a> | |||
</td> | |||
</tr> | |||
@@ -105,7 +105,7 @@ | |||
<a href="javascript:updateArc(0)" class="btn btn-success btn-sm">更新</a> | |||
<a href="javascript:checkArc(0)" class="btn btn-success btn-sm">审核</a> | |||
<a href="javascript:adArc(0)" class="btn btn-success btn-sm">推荐</a> | |||
<a href="javascript:;"onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>)" class="btn btn-success btn-sm">移动</a> | |||
<a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>)" class="btn btn-success btn-sm">移动</a> | |||
<a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a> | |||
<a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="btn btn-success btn-sm">增加属性</a> | |||
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="btn btn-danger btn-sm">删除属性</a> | |||
@@ -91,7 +91,7 @@ | |||
<td>{dede:field.arcrank function="GetRankName(@me)"/}</td> | |||
<td>{dede:field.mid function=GetMemberName(@me)/}</td> | |||
<td> | |||
<a href="javascript:;" title="属性" class="btn btn-success btn-sm" onClick="QuickEdit('{dede:field.id/}',event,this);"><i class="fa fa-cogs"></i></a> | |||
<a href="javascript:;" title="属性" class="btn btn-success btn-sm" onClick="QuickEdit('{dede:field.id/}',event,this);"><i class="fa fa-window-maximize"></i></a> | |||
<a href="javascript:;" title="修改" class="btn btn-success btn-sm" onClick="editArc({dede:field.id/});"><i class="fa fa-pencil-square-o"></i></a> | |||
<a href="javascript:;" title="预览" class="btn btn-success btn-sm" onClick="viewArc({dede:field.id/});"><i class="fa fa-eye"></i></a> | |||
</td> | |||
@@ -81,7 +81,7 @@ | |||
<td>属性</td> | |||
</tr> | |||
{dede:datalist empty='<tr><td colspan="9" align="center">暂无文档</td></tr>'} | |||
<tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';"> | |||
<tr align="center" onmousemove="javascript:this.bgColor='#e9ecef';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | |||
<td>{dede:field.id/}</td> | |||
<td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td> | |||
@@ -70,7 +70,7 @@ | |||
<td width="15%">修改建议</td> | |||
</tr> | |||
{dede:datalist empty='<tr><td colspan="8" align="center">暂无文档</td></tr>'} | |||
<tr align="center" onMouseMove="javascript:this.bgColor='#e9ecef';" onmousemove="javascript:this.bgColor='#e9ecef';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<tr align="center" onmousemove="javascript:this.bgColor='#e9ecef';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td> | |||
<td>{dede:field.id/}</td> | |||
<td>{dede:field.mid function='username(@me)'/}</td> | |||
@@ -138,7 +138,7 @@ | |||
} | |||
else if (preg_match("#\.(mp3|wma)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
$line = "\n<tr onmousemove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_music.png'>$file</a></td> | |||
<td>$filesize KB</td> | |||
<td align='center'>$filetime</td> | |||
@@ -10,7 +10,7 @@ | |||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/login.min.css"> | |||
<script src="../static/web/js/jquery.min.js"></script> | |||
<script src="js/login.js"></script> | |||
<script src="../static/web/js/login.js"></script> | |||
</head> | |||
<body> | |||
<?php if (preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT']) || preg_match('/Trident/i',$_SERVER['HTTP_USER_AGENT'])) {?> | |||
@@ -33,23 +33,23 @@ | |||
<div class="login-from"> | |||
<?php echo $redmsg;?> | |||
<div class="login-area shadow-sm"> | |||
<h2 class="text-center mb-3">后台登录</h2> | |||
<h2 class="text-center mb-3">管理登录</h2> | |||
<form name="form1" method="post" action="login.php"> | |||
<input type="hidden" name="gotopage" value="<?php if (!empty($gotopage)) echo RemoveXSS($gotopage);?>"> | |||
<input type="hidden" name="dopost" value="login"> | |||
<input type="hidden" name="adminstyle" value="newDedeBIZ"> | |||
<div class="form-group"> | |||
<label for="iptUserid">账号</label> | |||
<input type="text" name="userid" id="iptUserid" class="form-control"> | |||
<input type="text" name="userid" id="iptUserid" class="form-control" placeholder="请输入管理员账号"> | |||
</div> | |||
<div class="form-group"> | |||
<label for="iptPassword">密码</label> | |||
<input type="password" name="pwd" id="iptPassword" class="form-control"> | |||
<input type="password" name="pwd" id="iptPassword" class="form-control" placeholder="请输入管理员密码"> | |||
</div> | |||
<div id="vdimgck" class="form-group" style="display: none;"> | |||
<div id="vdimgck" class="form-group" style="display:none"> | |||
<label for="iptValidate">验证码</label> | |||
<div class="input-group"> | |||
<input type="text" name="validate" id="iptValidate" class="form-control text-uppercase"> | |||
<input type="text" name="validate" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | |||
<img src="../apps/vdimgck.php" onclick="this.src='../apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码" id="validateimg"> | |||
</div> | |||
</div> | |||
@@ -47,7 +47,7 @@ | |||
<table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | |||
<form name="forms" method="post" action="media_main.php"> | |||
<tr bgcolor="#f5f5f5"> | |||
<td width="380" align="center"><input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="<?php echo $keyword?>" class="admin-input-md"></td> | |||
<td width="380" align="center"><input type="text" name="keyword" id="keyword" placeholder="请输入关键词" value="<?php echo $keyword?>" class="admin-input-md"></td> | |||
<td width="170"> | |||
<select name="mediatype" class="admin-input-sm"> | |||
<option value="0">文件类型</option> | |||
@@ -86,8 +86,7 @@ | |||
</tr> | |||
<form name="form1"> | |||
{dede:datalist empty='<tr><td colspan="7" align="center">暂无文档</td></tr>'} | |||
<tr align="center" onmousemove="javascript:this.bgColor='#e9ecef';" | |||
onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<tr align="center" onmousemove="javascript:this.bgColor='#e9ecef';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td><input type="checkbox" name="aids" id="aids{dede:field.aid/}" value="{dede:field.aid/}"></td> | |||
<td><a href="{dede:field.url/}" title="{dede:field.url/}" target="_blank">{dede:field.title/}</a> | |||
</td> | |||
@@ -126,7 +126,7 @@ | |||
</tr> | |||
<?php if ($mhasDay!=0){ $mhasDay=($mhasDay>0)? $mhasDay : '<span class="text-primary">该会员已经到期</span>';?> | |||
<tr> | |||
<td class="admin-td">会员剩余天数:</td> | |||
<td class="admin-td">剩余天数:</td> | |||
<td class="admin-td"><?php echo $mhasDay;?></td> | |||
</tr> | |||
<tr> | |||
@@ -82,7 +82,7 @@ | |||
<td>操作</td> | |||
</tr> | |||
{dede:datalist empty='<tr><td colspan="7" align="center">暂无文档</td></tr>'} | |||
<tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';"> | |||
<tr align="center" onmousemove="javascript:this.bgColor='#e9ecef';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td>{dede:field.id/}</td> | |||
<td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | |||
<td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td> | |||
@@ -180,7 +180,7 @@ | |||
} | |||
?> | |||
</td> | |||
<td width="90" align="center">消费金币:</td> | |||
<td width="90" align="center">需要金币:</td> | |||
<td><input type="text" name="needmoney" id="needmoney" value="<?php echo $softconfig['dfywboy'];?>" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -169,7 +169,7 @@ | |||
?> | |||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>')" title="快捷选择"></i> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="90">需要金币:</td> | |||
<td><input type="text" name="needmoney" id="needmoney" value="<?php echo $needmoney;?>" class="admin-input-sm"></td> | |||
</tr> | |||
</table> | |||
@@ -191,8 +191,8 @@ | |||
<label><input type="checkbox" name="iszip" id="iszip" value="1" checked="1"> 完成后压缩成ZIP</label> | |||
<?php }?> | |||
<button name="b1" type="button" id="b1" class="btn btn-success btn-sm" onClick="SelAll()">全选</button> | |||
<button name="b2" type="button" id="b2" class="btn btn-success btn-sm" onClick="ReSel()">反选</button> | |||
<button name="b3" type="button" id="b3" class="btn btn-success btn-sm" onClick="NoneSel()">取消</button> | |||
<button name="b2" type="button" id="b2" class="btn btn-success btn-sm" onClick="ReSel()">反选</button> | |||
<button name="b3" type="button" id="b3" class="btn btn-success btn-sm" onClick="NoneSel()">取消</button> | |||
<button type="submit" name="Submit" class="btn btn-success btn-sm">提交</button> | |||
</td> | |||
</tr> | |||
@@ -74,7 +74,7 @@ if ($action == 'post') { | |||
if ($diy->public == 2) | |||
{ | |||
$goto = "diy.php?action=list&diyid={$diy->diyid}"; | |||
$bkmsg = '发布成功,现在转向表单列表页'; | |||
$bkmsg = '发布成功,现在跳转表单列表页'; | |||
} else { | |||
$goto = !empty($cfg_cmspath) ? $cfg_cmspath : '/'; | |||
$bkmsg = '发布成功,请等待管理员处理'; | |||
@@ -152,7 +152,7 @@ else if ($open == 2) { | |||
//读取文档信息,判断权限 | |||
$arcRow = GetOneArchive($id); | |||
if ($arcRow['aid'] == '') { | |||
ShowMsg('无法获取未知文档的信息!', '-1'); | |||
ShowMsg('无法获取未知文档的信息', '-1'); | |||
exit(); | |||
} | |||
extract($arcRow, EXTR_SKIP); | |||
@@ -172,7 +172,7 @@ else if ($open == 2) { | |||
} | |||
$memberTypes[0] = "游客"; | |||
$msgtitle = "您没有权限下载软件:{$arctitle}"; | |||
$moremsg = "这个软件需要<span class='text-primary'>".$memberTypes[$needRank]."</span> 才能下载,您目前是:<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span> "; | |||
$moremsg = "这个软件需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能下载,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | |||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||
exit(); | |||
} | |||
@@ -186,7 +186,7 @@ else if ($open == 2) { | |||
//没有足够的金币 | |||
if ($needMoney > $cfg_ml->M_Money || $cfg_ml->M_Money == '') { | |||
$msgtitle = "您没有权限下载软件:{$arctitle}"; | |||
$moremsg = "这个软件需要<span class='text-primary'>".$needMoney." 金币</span> 才能下载,您目前拥有金币:<span class='text-primary'>".$cfg_ml->M_Money." 个</span> "; | |||
$moremsg = "这个软件需要<span class='text-primary'>".$needMoney."金币</span>才能下载,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."个</span>"; | |||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||
exit(0); | |||
} | |||
@@ -46,7 +46,7 @@ if ($tinfos['issystem'] == -1) { | |||
} | |||
$memberTypes[0] = "游客或没权限会员"; | |||
$msgtitle = "您没有权限浏览栏目:{$lv->Fields['typename']} "; | |||
$moremsg = "这个栏目需要<span class='text-primary'>".$memberTypes[$lv->Fields['corank']]."</span> 才能访问,您目前是:<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span> "; | |||
$moremsg = "这个栏目需要<span class='text-primary'>".$memberTypes[$lv->Fields['corank']]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | |||
include_once(DEDETEMPLATE.'/plus/view_msg_catalog.htm'); | |||
exit(); | |||
} | |||
@@ -44,7 +44,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||
} | |||
$memberTypes[0] = "游客或没权限会员"; | |||
$msgtitle = "您没有权限浏览文档:{$arctitle} "; | |||
$moremsg = "这篇文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span> 才能访问,您目前是:<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | |||
$moremsg = "文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | |||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||
exit(); | |||
} | |||
@@ -56,7 +56,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||
if (!is_array($row)) { | |||
if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) { | |||
$msgtitle = "您没有权限浏览文档:{$arctitle} "; | |||
$moremsg = "这篇文档需要<span class='text-primary'>".$needMoney." 金币</span> 才能访问,您目前拥有金币:<span class='text-primary'>".$cfg_ml->M_Money." 个</span>"; | |||
$moremsg = "文档需要<span class='text-primary'>".$needMoney."金币</span>才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."个</span>"; | |||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||
$arc->Close(); | |||
exit(); | |||
@@ -69,7 +69,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||
showmsg('购买失败, 请返回', -1); | |||
exit; | |||
} | |||
showmsg('购买成功,购买扣点不会重扣金币,谢谢', '/plus/view.php?aid='.$aid); | |||
showmsg('购买成功,购买扣点不会重扣金币', '/plus/view.php?aid='.$aid); | |||
exit; | |||
} else { | |||
showmsg('购买失败,请返回', -1); | |||
@@ -77,7 +77,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||
} | |||
} | |||
$msgtitle = "扣金币购买阅读"; | |||
$moremsg = "阅读该文档需要付费<br>这篇文档需要<span class='text-primary'>".$needMoney." 金币</span> 才能访问,您目前拥有金币<span class='text-primary'>".$cfg_ml->M_Money." </span>个<br>确认阅读请点 [<a href='/plus/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>]"; | |||
$moremsg = "浏览该文档需要付费<br>文档需要<span class='text-primary'>".$needMoney."金币</span>才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>个<br><a href='/plus/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>"; | |||
include_once($cfg_basedir.$cfg_templets_dir."/plus/view_msg.htm"); | |||
$arc->Close(); | |||
exit(); | |||
@@ -559,7 +559,7 @@ INSERT INTO `#@__member_stowtype` VALUES ('sys','系统收藏','archives_do.php' | |||
INSERT INTO `#@__payment` VALUES ('2','bank','银行汇款/转帐','0','银行名称\t\n收款人信息:全称 ××× ;帐号或地址 ××× ;开户行 ×××\t\n注意事项:办理电汇时,请在电汇单“汇款用途”一栏处注明您的订单号','4','a:0:{}','1','1','0'), | |||
('1','cod','货到付款','0','开通城市:×××\t\n货到付款区域:×××','3','a:0:{}','1','1','0'); | |||
INSERT INTO `#@__softconfig` VALUES ('0','1','1','1','http://www.aaa.com | 下载地址一\t\nhttp://www.bbb.com | 下载地址二\t\nhttp://www.ccc.com | 下载地址三\t\n','<p>如果这个软件总是不能下载的请点击报告错误,谢谢合作<br>\t\n下载本站资源,如果服务器暂不能下载请过一段时间重试<br>\t\n如果遇到什么问题,请联系我们,我们将在那里提供更多,更好的资源</p>','0','0','0','0'); | |||
INSERT INTO `#@__softconfig` VALUES ('0','1','1','1','http://www.aaa.com | 下载地址一\t\nhttp://www.bbb.com | 下载地址二\t\nhttp://www.ccc.com | 下载地址三\t\n','<p>如果这个软件总是不能下载的请点击报告错误合作<br>\t\n下载本站资源,如果服务器暂不能下载请过一段时间重试<br>\t\n如果遇到什么问题,请联系我们,我们将在那里提供更多,更好的资源</p>','0','0','0','0'); | |||
INSERT INTO `#@__stepselect` VALUES ('1','血型','blood','1','1'), | |||
('2','体型','bodytype','1','1'), | |||
@@ -64,25 +64,86 @@ form.search { | |||
.spec .card-body { | |||
padding:.25rem | |||
} | |||
ul.spec > li > a > img,.article-spec > a > img { | |||
width:120px | |||
} | |||
ul.spec .border-bottom-dashed { | |||
.spec .border-bottom-dashed { | |||
border-bottom:dashed 1px #929292 | |||
} | |||
ul.spec > li .title a { | |||
.spec > li .title h4 { | |||
display:inline | |||
} | |||
.spec > li .title a { | |||
color:#212529 | |||
} | |||
ul.spec > li .title h4 { | |||
display:inline | |||
.spec > li > a > img,.article-spec > a > img { | |||
width:120px | |||
} | |||
ul.spec > li .title .label { | |||
padding:0 5px; | |||
.spec > li .title .label { | |||
padding:0 10px; | |||
color:#1eb867; | |||
background:#b7e9b4; | |||
border-radius:.25rem | |||
} | |||
ul.spec > li .description,ul.spec > li .description a { | |||
.ddcard,.ddcard-normal { | |||
border:none | |||
} | |||
.ddcard > .card-header { | |||
padding:0; | |||
background:#fff; | |||
border-bottom:solid 4px #1eb867 | |||
} | |||
.ddcard-normal > .card-header { | |||
padding:10px; | |||
background:#fff; | |||
border-bottom:0 | |||
} | |||
.ddcard-normal > .card-header .caption,.ddcard > .card-header .caption { | |||
font-size:18px; | |||
font-weight:600 | |||
} | |||
.ddcard > .card-header .more a,.ddcard-normal > .card-header .more a { | |||
font-size:14px; | |||
color:#1eb867 | |||
} | |||
.ddcard > ul > li,.ddcard > ol > li,.ddcard-normal > ul > li,.ddcard-normal > ol > li { | |||
padding-bottom:10px; | |||
color:#c0c0c0; | |||
overflow:hidden; | |||
text-overflow:ellipsis; | |||
white-space:nowrap | |||
} | |||
.ddcard > ul > li:nth-child(1),.ddcard > ol > li:nth-child(1) { | |||
margin-top:10px | |||
} | |||
.ddcard > ul > li:last-child,.ddcard > ol > li:last-child,.ddcard-normal > ul > li:last-child,.ddcard-normal > ol > li:last-child { | |||
padding-bottom:0 | |||
} | |||
.ddcard > .card-header .caption span { | |||
display:inline-block; | |||
padding:6px 12px; | |||
color:#fff; | |||
background:#1eb867; | |||
border-radius:.2rem .2rem 0 0 | |||
} | |||
.ddcard-normal > .list-group > li i { | |||
color:#1eb867 | |||
} | |||
.ddcard-normal { | |||
padding:0; | |||
box-shadow:0 .125rem .25rem rgba(0,0,0,.075) | |||
} | |||
.ddcard-normal ul { | |||
padding:10px | |||
} | |||
.title::before { | |||
margin-right:10px; | |||
padding:2px; | |||
content:" "; | |||
background:#1eb867; | |||
border-radius:.2rem | |||
} | |||
.breadcrumb { | |||
margin-bottom:0 | |||
} | |||
.spec > li .description,.spec > li .description a { | |||
line-height:30px; | |||
font-size:16px; | |||
color:#868686; | |||
@@ -91,7 +152,7 @@ ul.spec > li .description,ul.spec > li .description a { | |||
-webkit-box-orient:vertical; | |||
overflow:hidden | |||
} | |||
ul.items > li .type { | |||
.items > li .type { | |||
position:relative; | |||
padding:0 5px; | |||
margin-right:10px; | |||
@@ -102,7 +163,7 @@ ul.items > li .type { | |||
color:#fff; | |||
background:#1eb867 | |||
} | |||
ul.items > li .pane { | |||
.items > li .pane { | |||
display:inline-block; | |||
margin-right:10px; | |||
margin-bottom:10px; | |||
@@ -111,15 +172,15 @@ ul.items > li .pane { | |||
background:#1eb867; | |||
vertical-align:middle | |||
} | |||
ul.items > li .caption { | |||
.items > li .caption { | |||
line-height:30px | |||
} | |||
ul.items > li .title,ul.items > li .caption a { | |||
.items > li .title,.items > li .caption a { | |||
display:inline; | |||
line-height:18px; | |||
color:#212529 | |||
} | |||
ul.items > li .description,ul.items > li .description a,ul.items > li .addinfo { | |||
.items > li .description,.items > li .description a,.items > li .addinfo { | |||
color:#868686; | |||
display:-webkit-box; | |||
-webkit-line-clamp:3; | |||
@@ -128,13 +189,13 @@ ul.items > li .description,ul.items > li .description a,ul.items > li .addinfo { | |||
line-height:30px; | |||
word-break:break-all | |||
} | |||
ul.items .border-bottom-dashed { | |||
.items .border-bottom-dashed { | |||
border-bottom:dashed 1px #929292 | |||
} | |||
ul.items img { | |||
.items img { | |||
max-width:100px | |||
} | |||
ul.items > li .label { | |||
.items > li .label { | |||
margin-left:10px; | |||
padding:0 5px; | |||
color:#fff840; | |||
@@ -146,70 +207,9 @@ ul.items > li .label { | |||
border-radius:.25rem; | |||
text-decoration-line:none | |||
} | |||
ul.items > li .label:hover { | |||
.items > li .label:hover { | |||
color:#fff | |||
} | |||
.ddcard,.ddcard-normal { | |||
border:none | |||
} | |||
.ddcard-normal { | |||
padding:0; | |||
box-shadow:1px 0px 5px 5px #f5f5f5 | |||
} | |||
.ddcard-normal ul { | |||
padding:10px | |||
} | |||
.ddcard > .card-header { | |||
padding:0; | |||
background:#fff; | |||
border-bottom:solid 5px #1eb867 | |||
} | |||
.ddcard-normal > .card-header { | |||
padding:10px; | |||
background:#fff; | |||
border-bottom:0 | |||
} | |||
.ddcard-normal > .card-header .caption,.ddcard > .card-header .caption { | |||
font-size:18px; | |||
font-weight:600 | |||
} | |||
.ddcard > .card-header .more a,.ddcard-normal > .card-header .more a { | |||
font-size:14px; | |||
color:#1eb867 | |||
} | |||
.ddcard-normal > .list-group > li i { | |||
color:#1eb867 | |||
} | |||
.ddcard > ul > li,.ddcard > ol > li,.ddcard-normal > ul > li,.ddcard-normal > ol > li { | |||
padding-bottom:10px; | |||
color:#c0c0c0; | |||
overflow:hidden; | |||
text-overflow:ellipsis; | |||
white-space:nowrap | |||
} | |||
.ddcard > ul > li:nth-child(1),.ddcard > ol > li:nth-child(1) { | |||
margin-top:10px | |||
} | |||
.ddcard > ul > li:last-child,.ddcard > ol > li:last-child,.ddcard-normal > ul > li:last-child,.ddcard-normal > ol > li:last-child { | |||
padding-bottom:0 | |||
} | |||
.ddcard > .card-header .caption span { | |||
padding:6px 12px; | |||
display:inline-block; | |||
color:#fff; | |||
background:#1eb867; | |||
border-radius:.2rem .2rem 0 0 | |||
} | |||
.title::before { | |||
content:" "; | |||
background:#1eb867; | |||
padding:3px; | |||
margin-right:10px; | |||
border-radius:.2rem | |||
} | |||
.breadcrumb { | |||
margin-bottom:0 | |||
} | |||
.article-main h1,.article-main h2,.article-main h3,.article-main h4,.article-main h5,.article-main h6 { | |||
margin-bottom:1rem; | |||
font-size:24px | |||
@@ -318,10 +318,9 @@ ul.items > li .label:hover { | |||
font-size:16px; | |||
color:#fff; | |||
cursor:pointer; | |||
border:none; | |||
background:#ec982c; | |||
border-radius:.25rem; | |||
outline:0 | |||
border:0 | |||
} | |||
#btnScrollTop:hover { | |||
background:#e77817 | |||
@@ -1,17 +1,11 @@ | |||
.login-area { | |||
margin:8rem 0 | |||
margin:6rem 0 | |||
} | |||
.login-box { | |||
padding:1rem; | |||
padding:1.25rem; | |||
width:500px; | |||
background:#fff | |||
} | |||
.login-box small.des { | |||
color:#b5b5b5 | |||
} | |||
.login-box .licence a { | |||
color:#1eb867 | |||
} | |||
#validateimg { | |||
border-radius:0 .2rem .2rem 0 | |||
} | |||
@@ -490,7 +490,7 @@ class Archives | |||
if ($GLOBALS['cfg_jump_once'] == 'N') { | |||
$pageHtml = "<html>\r\n<head>\r\n<meta charset=".$GLOBALS['cfg_soft_lang']."\">\r\n<title>".$this->Fields['title']."</title>\r\n"; | |||
$pageHtml .= "<meta http-equiv=\"refresh\" content=\"3;URL=".$this->Fields['redirecturl']."\">\r\n</head>\r\n<body>\r\n"; | |||
$pageHtml .= "现在正在转向:".$this->Fields['title'].",请稍候<br><br>\r\n转向文档简介:".$this->Fields['description']."\r\n</body>\r\n</html>\r\n"; | |||
$pageHtml .= "现在正在跳转:".$this->Fields['title'].",请稍候<br><br>\r\n跳转文档简介:".$this->Fields['description']."\r\n</body>\r\n</html>\r\n"; | |||
echo $pageHtml; | |||
} else { | |||
header("location:{$this->Fields['redirecturl']}"); | |||
@@ -666,8 +666,7 @@ class Archives | |||
* 获取上一篇,下一篇链接 | |||
* | |||
* @access public | |||
* @param string $gtype 获取类型 | |||
* pre:上一篇 preimg:上一篇图片 next:下一篇 nextimg:下一篇图片 | |||
* @param string $gtype pre为上一篇 preimg为上一篇图片 next为下一篇 nextimg为下一篇图片 | |||
* @return string | |||
*/ | |||
function GetPreNext($gtype = '') | |||
@@ -675,10 +674,10 @@ class Archives | |||
$rs = ''; | |||
if (count($this->PreNext) < 2) { | |||
$aid = $this->ArcID; | |||
$preR = $this->dsql->GetOne("Select id From `#@__arctiny` where id<$aid And arcrank>-1 And typeid='{$this->Fields['typeid']}' order by id desc"); | |||
$nextR = $this->dsql->GetOne("Select id From `#@__arctiny` where id>$aid And arcrank>-1 And typeid='{$this->Fields['typeid']}' order by id asc"); | |||
$next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 '); | |||
$pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 '); | |||
$preR = $this->dsql->GetOne("SELECT id FROM `#@__arctiny` WHERE id<$aid And arcrank>-1 And typeid='{$this->Fields['typeid']}' ORDER BY id DESC"); | |||
$nextR = $this->dsql->GetOne("SELECT id FROM `#@__arctiny` WHERE id>$aid And arcrank>-1 And typeid='{$this->Fields['typeid']}' ORDER BY id ASC"); | |||
$next = (is_array($nextR) ? " WHERE arc.id={$nextR['id']} " : ' WHERE 1>2 '); | |||
$pre = (is_array($preR) ? " WHERE arc.id={$preR['id']} " : ' WHERE 1>2 '); | |||
$query = "SELECT arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath FROM `#@__archives` arc LEFT JOIN `#@__arctype` t on arc.typeid=t.id "; | |||
$nextRow = $this->dsql->GetOne($query.$next); | |||
$preRow = $this->dsql->GetOne($query.$pre); | |||
@@ -899,12 +898,12 @@ class Archives | |||
$revalue = ""; | |||
foreach ($this->SplitTitles as $k => $v) { | |||
if ($i == 1) { | |||
$revalue .= "<a href='view.php?aid=$aid&pageno=$i'>$v</a> \r\n"; | |||
$revalue .= "<a href='view.php?aid=$aid&pageno=$i'>$v</a>\r\n"; | |||
} else { | |||
if ($pageNo == $i) { | |||
$revalue .= " $v \r\n"; | |||
} else { | |||
$revalue .= "<a href='view.php?aid=$aid&pageno=$i'>$v</a> \r\n"; | |||
$revalue .= "<a href='view.php?aid=$aid&pageno=$i'>$v</a>\r\n"; | |||
} | |||
} | |||
$i++; | |||
@@ -948,12 +947,12 @@ class Archives | |||
$revalue = ""; | |||
foreach ($this->SplitTitles as $k => $v) { | |||
if ($i == 1) { | |||
$revalue .= "<a href='".$this->NameFirst.".".$this->ShortName."'>$v</a> \r\n"; | |||
$revalue .= "<a href='".$this->NameFirst.".".$this->ShortName."'>$v</a>\r\n"; | |||
} else { | |||
if ($pageNo == $i) { | |||
$revalue .= " $v \r\n"; | |||
} else { | |||
$revalue .= "<a href='".$this->NameFirst."_".$i.".".$this->ShortName."'>$v</a> \r\n"; | |||
$revalue .= "<a href='".$this->NameFirst."_".$i.".".$this->ShortName."'>$v</a>\r\n"; | |||
} | |||
} | |||
$i++; | |||
@@ -553,7 +553,7 @@ class SgListView | |||
$t1 = ExecTime(); | |||
$ids = array(); | |||
$nordersql = str_replace('.aid', '.id', $ordersql); | |||
$query = "SELECT id From `#@__arctiny` arc WHERE {$this->addSql} $nordersql LIMIT $limitstart,$row"; | |||
$query = "SELECT id FROM `#@__arctiny` arc WHERE {$this->addSql} $nordersql LIMIT $limitstart,$row"; | |||
$this->dsql->SetQuery($query); | |||
$this->dsql->Execute(); | |||
while ($arr = $this->dsql->GetArray()) { | |||
@@ -86,7 +86,6 @@ class DedeVote | |||
* 获得项目的投票表单 | |||
* | |||
* @access public | |||
* @param int $lineheight 行高 | |||
* @param string $tablewidth 表格宽度 | |||
* @param string $titlebgcolor 标题颜色 | |||
* @param string $titlebackgroup 标题背景 | |||
@@ -94,12 +93,9 @@ class DedeVote | |||
* @param string $itembgcolor 项目背景 | |||
* @return string | |||
*/ | |||
function GetVoteForm($lineheight = 30, $tablewidth = "100%", $titlebgcolor = "#edede2", $titlebackgroup = "", $tablebg = "#ffffff", $itembgcolor = "#ffffff") | |||
function GetVoteForm($tablewidth = "100%", $titlebgcolor = "#edede2", $titlebackgroup = "", $tablebg = "#ffffff", $itembgcolor = "#ffffff") | |||
{ | |||
//省略参数 | |||
if ($lineheight == "") { | |||
$lineheight = 26; | |||
} | |||
if ($tablewidth == "") { | |||
$tablewidth = "100%"; | |||
} | |||
@@ -115,23 +111,23 @@ class DedeVote | |||
if ($itembgcolor == "") { | |||
$itembgcolor = "#ffffff"; | |||
} | |||
$items = "<table width='$tablewidth' cellspacing='1' class='table' cellpadding='1' id='voteitem'>\r\n"; | |||
$items = "<table width='$tablewidth' cellspacing='1' cellpadding='1' id='voteitem' class='table'>\r\n"; | |||
$items .= "<form name='voteform' method='post' action='".$GLOBALS['cfg_phpurl']."/vote.php' target='_blank'>\r\n"; | |||
$items .= "<input type='hidden' name='dopost' value='send' />\r\n"; | |||
$items .= "<input type='hidden' name='aid' value='".$this->VoteID."' />\r\n"; | |||
$items .= "<input type='hidden' name='ismore' value='".$this->VoteInfos['ismore']."' />\r\n"; | |||
$items .= "<tr align='center'><td height='$lineheight' id='votetitle' style='border-bottom:1px dashed #999999;color:#3F7652' $titlebackgroup>".$this->VoteInfos['votename']."</td></tr>\r\n"; | |||
$items .= "<tr align='center'><td id='votetitle' $titlebackgroup>".$this->VoteInfos['votename']."</td></tr>\r\n"; | |||
if ($this->VoteCount > 0) { | |||
foreach ($this->VoteNotes as $k => $arr) { | |||
if ($this->VoteInfos['ismore'] == 0) { | |||
$items .= "<tr><td height='$lineheight' bgcolor='$itembgcolor'><label><input type='radio' name='voteitem' value='$k'> ".$arr['name']."</label></td></tr>\r\n"; | |||
$items .= "<tr><td bgcolor='$itembgcolor'><label class='mb-0'><input type='radio' name='voteitem' value='$k'> ".$arr['name']."</label></td></tr>\r\n"; | |||
} else { | |||
$items .= "<tr><td height='$lineheight' bgcolor='$itembgcolor'><label><input type=checkbox name='voteitem[]' value='$k'> ".$arr['name']."</label></td></tr>\r\n"; | |||
$items .= "<tr><td bgcolor='$itembgcolor'><label class='mb-0'><input type=checkbox name='voteitem[]' value='$k'> ".$arr['name']."</label></td></tr>\r\n"; | |||
} | |||
} | |||
$items .= "<tr><td height='$lineheight'>\r\n"; | |||
$items .= "<input type='submit' class='btn btn-success' name='vbt1' value='投票'>\r\n"; | |||
$items .= "<input type='button' class='btn btn-success' name='vbt2' value='查看结果' onClick=window.open('".$GLOBALS['cfg_phpurl']."/vote.php?dopost=view&aid=".$this->VoteID."');>"; | |||
$items .= "<tr><td>\r\n"; | |||
$items .= "<input type='submit' name='vbt1' class='btn btn-success' value='投票'>\r\n"; | |||
$items .= "<input type='button' name='vbt2' class='btn btn-success' value='查看结果' onClick=window.open('".$GLOBALS['cfg_phpurl']."/vote.php?dopost=view&aid=".$this->VoteID."');>"; | |||
$items .= "</td></tr>\r\n"; | |||
} | |||
$items .= "</form>\r\n</table>\r\n"; | |||
@@ -227,23 +223,21 @@ class DedeVote | |||
* | |||
* @access public | |||
* @param string $tablewidth 表格宽度 | |||
* @param string $lineheight 行高 | |||
* @param string $tablesplit 表格分隔 | |||
* @return string | |||
*/ | |||
function GetVoteResult($tablewidth = "600", $lineheight = "24", $tablesplit = "40%") | |||
function GetVoteResult($tablewidth = "600", $tablesplit = "40%") | |||
{ | |||
$totalcount = $this->VoteInfos['totalcount']; | |||
if ($totalcount == 0) { | |||
$totalcount = 1; | |||
} | |||
$res = "<table width='$tablewidth' class='table' cellspacing='1' cellpadding='1'>\r\n"; | |||
$res .= "<tr height='8'><td width='$tablesplit'></td><td></td></tr>\r\n"; | |||
$res = "<table width='$tablewidth' cellspacing='1' cellpadding='1' class='table'>\r\n"; | |||
$i = 1; | |||
foreach ($this->VoteNotes as $k => $arr) { | |||
$res .= "<tr height='$lineheight'><td style='border-bottom:1px solid'>".$i."、".$arr['name']."</td>"; | |||
$res .= "<tr><td width='260'>".$i."、".$arr['name']."</td>"; | |||
$c = $arr['count']; | |||
$res .= "<td style='border-bottom:1px solid'><div class='progress'><div class='progress-bar' role='progressbar' style='width: ".(($c / $totalcount) * 100)."%' aria-valuenow='".(($c / $totalcount) * 100)."' aria-valuemin='0' aria-valuemax='100'></div></div></td></tr>\r\n"; | |||
$res .= "<td><div class='progress'><div class='progress-bar' role='progressbar' style='width: ".(($c / $totalcount) * 100)."%' aria-valuenow='".(($c / $totalcount) * 100)."' aria-valuemin='0' aria-valuemax='100'></div></div></td></tr>\r\n"; | |||
$i++; | |||
} | |||
$res .= "<tr><td></td><td></td></tr>\r\n"; | |||
@@ -80,7 +80,7 @@ if (!function_exists('RndString')) { | |||
if ($emname != 'font') { | |||
$rnstr = " <$emname class='$rndstyleName'>$rnstr</$emname> "; | |||
} else { | |||
$rnstr = " <span style='$fontColor'>$rnstr</span> "; | |||
$rnstr = " <span style='$fontColor'>$rnstr</span>"; | |||
} | |||
$reString .= $rnstr.$body[$i]; | |||
$prepos = $i; | |||
@@ -46,7 +46,7 @@ function CheckUserID($uid, $msgtitle = '用户名', $ckhas = TRUE) | |||
} | |||
} else { | |||
if (preg_match("/[^0-9a-z@\.-]/i", $ck_uid[$i])) { | |||
return $msgtitle.'不能含有 [@]、[.]、[-]以外的特殊符号'; | |||
return $msgtitle.'不能含有[@]、[.]、[-]以外的特殊符号'; | |||
} | |||
} | |||
} | |||
@@ -415,7 +415,6 @@ class MemberLogin | |||
return 0; | |||
} | |||
} | |||
/** | |||
* 是否需要验证码 | |||
* | |||
@@ -427,7 +426,6 @@ class MemberLogin | |||
$num = $this->getLoginError($loginuser); | |||
return $num >= 3 ? true : false; | |||
} | |||
/** | |||
* 1分钟以内登录错误的次数 | |||
* | |||
@@ -464,7 +462,7 @@ class MemberLogin | |||
return; | |||
} | |||
$loginip = GetIP(); | |||
$inquery = "UPDATE `#@__member` SET loginip='$loginip',logintime='" . time() . "',loginerr=loginerr+1 WHERE userid='" . $loginuser . "'"; | |||
$inquery = "UPDATE `#@__member` SET loginip='$loginip',logintime='".time()."',loginerr=loginerr+1 WHERE userid='".$loginuser."'"; | |||
$dsql->ExecuteNoneQuery($inquery); | |||
} | |||
/** | |||
@@ -508,15 +506,15 @@ class MemberLogin | |||
if ($this->M_Rank == 0) { | |||
$sta .= "您目前的身份是:普通会员"; | |||
} else { | |||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$this->M_Rank."'"); | |||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$this->M_Rank."'"); | |||
$sta .= "您目前的身份是:".$row['membername']; | |||
$rs = $dsql->GetOne("Select id From `#@__admin` where userid='".$this->M_LoginID."'"); | |||
$rs = $dsql->GetOne("SELECT id FROM `#@__admin` WHERE userid='".$this->M_LoginID."'"); | |||
if (!is_array($rs)) { | |||
if ($this->M_Rank > 10 && $this->M_HasDay > 0) $sta .= " 剩余天数:<span class='text-primary'>".$this->M_HasDay."</span>天"; | |||
elseif ($this->M_Rank > 10) $sta .= "<span class='text-primary'>会员升级已经到期</span> "; | |||
if ($this->M_Rank > 10 && $this->M_HasDay > 0) $sta .= " 剩余<span class='text-primary'>".$this->M_HasDay."</span>天"; | |||
elseif ($this->M_Rank > 10) $sta .= "<span class='text-danger'>会员已到期</span>"; | |||
} | |||
} | |||
$sta .= " 拥有金币:{$this->M_Money} 个,积分:{$this->M_Scores}分"; | |||
$sta .= " 积分<span class='text-primary'>{$this->M_Scores}</span>分,金币<span class='text-primary'>{$this->M_Money}</span>个"; | |||
return $sta; | |||
} | |||
//获取能够发布文档的栏目 | |||
@@ -106,10 +106,10 @@ function CheckCatalog($cid, $msg) | |||
*/ | |||
function AddMyAddon($fid, $filename) | |||
{ | |||
$cacheFile = DEDEDATA . '/cache/addon-' . session_id() . '.inc'; | |||
$cacheFile = DEDEDATA.'/cache/addon-'.session_id().'.inc'; | |||
if (!file_exists($cacheFile)) { | |||
$fp = fopen($cacheFile, 'w'); | |||
fwrite($fp, '<' . '?php' . "\r\n"); | |||
fwrite($fp, '<'.'?php'."\r\n"); | |||
fwrite($fp, "\$myaddons = array();\r\n"); | |||
fwrite($fp, "\$maNum = 0;\r\n"); | |||
fclose($fp); | |||
@@ -133,7 +133,7 @@ function AddMyAddon($fid, $filename) | |||
function ClearMyAddon($aid = 0, $title = '') | |||
{ | |||
global $dsql; | |||
$cacheFile = DEDEDATA . '/cache/addon-' . session_id() . '.inc'; | |||
$cacheFile = DEDEDATA.'/cache/addon-'.session_id().'.inc'; | |||
$_SESSION['bigfile_info'] = array(); | |||
$_SESSION['file_info'] = array(); | |||
if (!file_exists($cacheFile)) { | |||
@@ -212,7 +212,7 @@ class userLogin | |||
$this->userName = preg_replace("/[^0-9a-zA-Z_@!\.-]/", '', $username); | |||
$this->userPwd = preg_replace("/[^0-9a-zA-Z_@!\.-]/", '', $userpwd); | |||
$pwd = substr(md5($this->userPwd), 5, 20); | |||
$dsql->SetQuery("SELECT admin.*,atype.purviews FROM `#@__admin` admin LEFT JOIN `#@__admintype` atype ON atype.`rank`=admin.usertype WHERE admin.userid LIKE '" . $this->userName . "' LIMIT 0,1"); | |||
$dsql->SetQuery("SELECT admin.*,atype.purviews FROM `#@__admin` admin LEFT JOIN `#@__admintype` atype ON atype.`rank`=admin.usertype WHERE admin.userid LIKE '".$this->userName."' LIMIT 0,1"); | |||
$dsql->Execute(); | |||
$row = $dsql->GetObject(); | |||
if (!isset($row->pwd)) { | |||
@@ -236,9 +236,9 @@ class userLogin | |||
$this->userChannel = $row->typeid; | |||
$this->userName = $row->uname; | |||
$this->userPurview = $row->purviews; | |||
$inquery = "UPDATE `#@__admin` SET loginip='$loginip',logintime='" . time() . "'{$upsql},loginerr=0 WHERE id='" . $row->id . "'"; | |||
$inquery = "UPDATE `#@__admin` SET loginip='$loginip',logintime='".time()."'{$upsql},loginerr=0 WHERE id='".$row->id."'"; | |||
$dsql->ExecuteNoneQuery($inquery); | |||
$sql = "UPDATE `#@__member` SET logintime=" . time() . ", loginip='$loginip' WHERE mid=" . $row->id; | |||
$sql = "UPDATE `#@__member` SET logintime=".time().", loginip='$loginip' WHERE mid=".$row->id; | |||
$dsql->ExecuteNoneQuery($sql); | |||
return 1; | |||
} | |||
@@ -285,7 +285,7 @@ class userLogin | |||
{ | |||
global $dsql; | |||
$loginip = GetIP(); | |||
$inquery = "UPDATE `#@__admin` SET loginip='$loginip',logintime='" . time() . "',loginerr=loginerr+1 WHERE id='" . $adminid . "'"; | |||
$inquery = "UPDATE `#@__admin` SET loginip='$loginip',logintime='".time()."',loginerr=loginerr+1 WHERE id='".$adminid."'"; | |||
$dsql->ExecuteNoneQuery($inquery); | |||
} | |||
/** | |||
@@ -328,7 +328,7 @@ class userLogin | |||
function ReWriteAdminChannel() | |||
{ | |||
//$this->userChannel | |||
$cacheFile = DEDEDATA . '/cache/admincat_' . $this->userID . '.inc'; | |||
$cacheFile = DEDEDATA.'/cache/admincat_'.$this->userID.'.inc'; | |||
//管理员管理的栏目列表 | |||
$typeid = trim($this->userChannel); | |||
if (empty($typeid) || $this->getUserType() >= 10) { | |||
@@ -343,7 +343,7 @@ class userLogin | |||
$typeids = explode(',', $typeid); | |||
$typeid = ''; | |||
foreach ($typeids as $tid) { | |||
$typeid .= ($typeid == '' ? GetSonIdsUL($tid) : ',' . GetSonIdsUL($tid)); | |||
$typeid .= ($typeid == '' ? GetSonIdsUL($tid) : ','.GetSonIdsUL($tid)); | |||
} | |||
$typeids = explode(',', $typeid); | |||
$typeidsnew = array_unique($typeids); | |||
@@ -32,8 +32,7 @@ | |||
</div> | |||
<div class="spage cbox">{dede:pagelist listsize='6'/}</div> | |||
<div class="footer cbox"> | |||
<div class="copyright">{dede:global.cfg_powerby/} {dede:global.cfg_beian/} Powered by <a href="https://www.dedebiz.com" target="_blank">DedeBIZ开发团队</a> | |||
</div> | |||
<div class="copyright">{dede:global.cfg_powerby/} {dede:global.cfg_beian/} Powered by <a href="https://www.dedebiz.com" target="_blank">DedeBIZ开发团队</a></div> | |||
</div> | |||
</body> | |||
</html> |
@@ -57,10 +57,10 @@ | |||
<div class="col-md-8"> | |||
<div class="row actbox"> | |||
<ul> | |||
<li><i class="fa fa-star-o"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
@@ -69,9 +69,17 @@ | |||
{dede:include comment='文档评论模块' file='widget_article_feedback.htm'/} | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -51,7 +51,7 @@ | |||
<table width="100%" cellpadding="1" cellspacing="1" class="table"> | |||
<tr> | |||
<td width="70%" align="center"> | |||
[field:name/] 文档:<br> | |||
[field:name/]文档:<br> | |||
模板调用标记:<br> | |||
<script> | |||
document.write("{" + "dede:field.[field:tagname/] /" + "}"); | |||
@@ -70,10 +70,10 @@ | |||
<div class="col-md-8"> | |||
<div class="row actbox"> | |||
<ul> | |||
<li><i class="fa fa-star-o"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
@@ -82,9 +82,17 @@ | |||
{dede:include comment='文档评论模块' file='widget_article_feedback.htm'/} | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -74,10 +74,10 @@ | |||
<div class="col-md-8"> | |||
<div class="row actbox"> | |||
<ul> | |||
<li><i class="fa fa-star-o"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
@@ -85,9 +85,17 @@ | |||
{dede:include comment='文档评论模块' file='widget_article_feedback.htm'/} | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -144,10 +144,10 @@ | |||
<div class="col-md-8"> | |||
<div class="row actbox"> | |||
<ul> | |||
<li><i class="fa fa-star-o"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
@@ -156,9 +156,17 @@ | |||
{dede:include comment='文档评论模块' file='widget_article_feedback.htm'/} | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -63,10 +63,10 @@ | |||
<div class="col-md-8"> | |||
<div class="row actbox"> | |||
<ul> | |||
<li><i class="fa fa-star-o"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
@@ -72,10 +72,10 @@ | |||
<div class="col-md-8"> | |||
<div class="row actbox"> | |||
<ul> | |||
<li><i class="fa fa-star-o"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | |||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onClick="window.print();">打印</a></li> | |||
</ul> | |||
</div> | |||
</div> | |||
@@ -83,9 +83,17 @@ | |||
{dede:include comment='文档评论模块' file='widget_article_feedback.htm'/} | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -48,9 +48,17 @@ | |||
<div class="clearfix"></div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -2,25 +2,16 @@ | |||
<div class="row"> | |||
<div class="col-md-12"> | |||
<div class="navbar navbar-expand-md navbar-dark bg-success shadow-sm rounded"> | |||
<div class="col-5 col-md-9"> | |||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbars" aria-controls="navbars" aria-expanded="false" aria-label="展开导航"> | |||
<span class="navbar-toggler-icon"></span> | |||
</button> | |||
<div class="collapse navbar-collapse" id="navbars"> | |||
<ul class="navbar-nav mr-auto"> | |||
<li class="nav-item"><a class="nav-link" href="{dede:global.cfg_cmsurl/}/">首页</a></li> | |||
{dede:channel type='top' row='10' currentstyle="<li class='nav-item'><a class='nav-link active' href='~typelink~' ~rel~><span>~typename~</span></a></li>"} | |||
<li class="nav-item"><a class="nav-link" href="[field:typeurl/]">[field:typename/]</a></li> | |||
{/dede:channel} | |||
</ul> | |||
</div> | |||
</div> | |||
<div class="col-7 col-md-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn btn-success"><i class="fa fa-search"></i></button> | |||
</form> | |||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbars" aria-controls="navbars" aria-expanded="false" aria-label="展开导航"> | |||
<span class="navbar-toggler-icon"></span> | |||
</button> | |||
<div class="collapse navbar-collapse" id="navbars"> | |||
<ul class="navbar-nav mr-auto"> | |||
<li class="nav-item"><a class="nav-link" href="{dede:global.cfg_cmsurl/}/">首页</a></li> | |||
{dede:channel type='top' row='10' currentstyle="<li class='nav-item'><a class='nav-link active' href='~typelink~' ~rel~><span>~typename~</span></a></li>"} | |||
<li class="nav-item"><a class="nav-link" href="[field:typeurl/]">[field:typename/]</a></li> | |||
{/dede:channel} | |||
</ul> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -32,11 +32,11 @@ | |||
</div> | |||
{/dede:arclist} | |||
</div> | |||
<a class="carousel-control-prev" href="#carouselIndex" role="button" data-slide="prev"> | |||
<a href="#carouselIndex" class="carousel-control-prev" role="button" data-slide="prev"> | |||
<span class="carousel-control-prev-icon"></span> | |||
<span class="sr-only">上一个</span> | |||
</a> | |||
<a class="carousel-control-next" href="#carouselIndex" role="button" data-slide="next"> | |||
<a href="#carouselIndex" class="carousel-control-next" role="button" data-slide="next"> | |||
<span class="carousel-control-next-icon"></span> | |||
<span class="sr-only">下一个</span> | |||
</a> | |||
@@ -67,7 +67,7 @@ | |||
</div> | |||
<div class="container py-3"> | |||
<div class="row"> | |||
<div class="col-md-9"> | |||
<div class="col-md-9 mb-3"> | |||
<div class="row spec"> | |||
<div class="col-md-12 mb-3"> | |||
<h4 class="title">图文资讯</h4> | |||
@@ -109,6 +109,15 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='投票' filename='widget_vote.htm'/} | |||
@@ -57,9 +57,17 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -57,9 +57,17 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -66,9 +66,17 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -57,9 +57,17 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-3"> | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -37,7 +37,7 @@ | |||
<li class="media border-bottom-dashed py-3"> | |||
<div class="media-body row"> | |||
<div class="col-md-12 caption"> | |||
<a href="[field:arcurl/]"><h4 class="title">[field:title/]</h4></a> | |||
<a href="[field:arcurl/]"><h4>[field:title/]</h4></a> | |||
</div> | |||
<div class="col-md-12 description"> | |||
<a href="[field:arcurl/]">[field:description/]...</a> | |||
@@ -47,17 +47,21 @@ | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<nav> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
</nav> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -47,17 +47,21 @@ | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<nav> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
</nav> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -47,17 +47,12 @@ | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<nav> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
</nav> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend_sg.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot_sg.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -35,17 +35,21 @@ | |||
<ul class="list-unstyled items"> | |||
{dede:freelist/} | |||
</ul> | |||
<nav> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
</nav> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-4"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -46,15 +46,21 @@ | |||
</div> | |||
{/dede:list} | |||
</div> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-4"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -66,12 +66,9 @@ | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-4"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
<div class="info-search card ddcard pb-3"> | |||
<div class="card-header"> | |||
<div class="row"> | |||
@@ -95,9 +92,9 @@ | |||
{/dede:infoguide} | |||
</div> | |||
</div> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend_sg.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot_sg.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -38,26 +38,31 @@ | |||
<a href="[field:arcurl/]"><img src="[field:litpic/]" alt="[field:title/]" class="mr-3"></a> | |||
<div class="media-body row"> | |||
<div class="col-md-12 title"> | |||
<a href="[field:arcurl/]"><h4 class="title">[field:title/]</h4></a> | |||
<a href="[field:arcurl/]"><h4>[field:title/]</h4></a> | |||
</div> | |||
<div class="col-md-12 description"> | |||
<a href="[field:arcurl/]">[field:description/]...</a> | |||
</div> | |||
<div class="col-md-12 addinfo">上传日期:[field:pubdate function="MyDate('Y-m-d', @me)"/] 推荐级别:[field:softrank | |||
function='GetRankStar(@me)'/] 软件语言:[field:language/]</div> | |||
<div class="col-md-12 addinfo">上传日期:[field:pubdate function="MyDate('Y-m-d', @me)"/] 推荐级别:[field:softrank function='GetRankStar(@me)'/] 软件语言:[field:language/]</div> | |||
</div> | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -38,7 +38,7 @@ | |||
<a href="[field:arcurl/]"><img src="[field:litpic/]" alt="[field:title/]" class="mr-3"></a> | |||
<div class="media-body row"> | |||
<div class="col-md-12 title"> | |||
<a href="[field:arcurl/]"><h4 class="title">[field:title/]</h4></a> | |||
<a href="[field:arcurl/]"><h4>[field:title/]</h4></a> | |||
</div> | |||
<div class="col-md-12 description"> | |||
<a href="[field:arcurl/]">[field:description/]...</a> | |||
@@ -48,15 +48,21 @@ | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
<div class="pb-3"> | |||
<form class="search" name="formsearch" action="{dede:global.cfg_cmsurl/}/apps/search.php"> | |||
<input type="hidden" name="kwtype" value="0"> | |||
<div class="input-group"> | |||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||
<button type="submit" class="btn"><i class="fa fa-search"></i></button> | |||
</div> | |||
</form> | |||
</div> | |||
{dede:include comment='栏目列表' filename='widget_channels.htm'/} | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</main> | |||
@@ -47,9 +47,7 @@ | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
@@ -36,7 +36,6 @@ | |||
<h2>{dede:field.title/}</h2> | |||
<div class="py-3">{dede:field.body/}</div> | |||
<ul class="pagination justify-content-center py-3">{dede:pagebreak/}</ul> | |||
<div class="clearfix"></div> | |||
</div> | |||
</div> | |||
</main> | |||
@@ -49,9 +49,7 @@ | |||
</li> | |||
{/dede:list} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3"> | |||
{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/} | |||
</ul> | |||
<ul class="pagination justify-content-center py-3">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | |||
</div> | |||
<div class="col-md-3"> | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
@@ -15,7 +15,7 @@ | |||
<div class="row"> | |||
<div class="col-md-12"> | |||
<h4 class="mb-3"><?php echo $voname?></h4> | |||
<div> | |||
<div class="mb-3"> | |||
投票开始时间:<?php echo $starttime;?><br> | |||
投票结束时间:<?php echo $endtime;?><br> | |||
投票人数:<?php echo $totalcount;?> | |||
@@ -174,10 +174,10 @@ function CheckRank($rank = 0, $money = 0) | |||
//如果启用注册邮件验证 | |||
if ($cfg_ml->fields['spacesta'] == '-10') { | |||
if (empty($cfg_ml->fields['email'])) { | |||
ShowMsg("邮箱地址为空,请设置一个可用的邮箱地址", "edit_email.php", 0, 5000); | |||
ShowMsg("邮箱地址为空,请设置一个邮箱地址", "edit_email.php", 0, 5000); | |||
exit; | |||
} | |||
$msg = "您尚未进行邮件验证,请到邮箱查阅</br>重新发送邮件验证 <a href='{$cfg_memberurl}/index_do.php?fmdo=sendMail'><span class='text-primary'>点击此处</span></a>"; | |||
$msg = "您未进行邮件验证,请到验证邮箱</br>重新发送邮件验证<a href='{$cfg_memberurl}/index_do.php?fmdo=sendMail' class='text-primary'>点击此处</a>"; | |||
ShowMsg($msg, "-1", 0, 5000); | |||
exit; | |||
} | |||
@@ -199,10 +199,10 @@ function CheckRank($rank = 0, $money = 0) | |||
$myname = "普通会员"; | |||
} | |||
} | |||
ShowMsg("对不起,需要<span class='text-primary'>$needname</span>才能访问本页面<br>您目前的等级是:<span class='text-primary'>$myname</span>", "-1", 0, 5000); | |||
ShowMsg("对不起,需要<span class='text-primary'>$needname</span>才能浏览本页面<br>您目前等级是<span class='text-primary'>$myname</span>", "-1", 0, 5000); | |||
exit(); | |||
} else if ($cfg_ml->M_Money < $money) { | |||
ShowMsg("对不起,需要花费金币<span class='text-primary'>$money</span>才能访问本页面<br>您目前拥有的金币是:<span class='text-primary'>".$cfg_ml->M_Money."</span>", "-1", 0, 5000); | |||
ShowMsg("对不起,需要<span class='text-primary'>$money</span>金币才能浏览本页面<br>您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>个", "-1", 0, 5000); | |||
exit(); | |||
} | |||
} | |||
@@ -151,7 +151,7 @@ else if ($fmdo == 'user') { | |||
$litmitscores = $cfg_ml->fields['scores'] - $needscores; | |||
//保存记录 | |||
$mtime = time(); | |||
$inquery = "INSERT INTO `#@__member_operation` (`buyid`,`pname`,`product`,`money`,`mtime`,`pid`,`mid`,`sta` ,`oldinfo`) VALUES ('ScoresToMoney','积分换金币操作','stc' ,'0' ,'$mtime' ,'0' ,'{$cfg_ml->M_ID}','0' ,'用 {$needscores} 积分兑了换金币:{$money} 个'); "; | |||
$inquery = "INSERT INTO `#@__member_operation` (`buyid`,`pname`,`product`,`money`,`mtime`,`pid`,`mid`,`sta` ,`oldinfo`) VALUES ('ScoresToMoney','积分换金币操作','stc' ,'0' ,'$mtime' ,'0' ,'{$cfg_ml->M_ID}','0' ,'用{$needscores}积分兑了换金币{$money}个'); "; | |||
$dsql->ExecuteNoneQuery($inquery); | |||
//修改积分与金币值 | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET `scores`=$litmitscores, money= money + $money WHERE mid='".$cfg_ml->M_ID."' "); | |||
@@ -185,7 +185,7 @@ else if ($fmdo == 'login') { | |||
$svali = GetCkVdValue(); | |||
if (strtolower($vdcode) != $svali || $svali == '') { | |||
ResetVdValue(); | |||
ShowMsg('验证码错误', 'index.php'); | |||
ShowMsg('验证码不正确', 'index.php'); | |||
exit(); | |||
} | |||
} | |||
@@ -193,11 +193,11 @@ else if ($fmdo == 'login') { | |||
$rs = $cfg_ml->CheckUser($userid, $pwd); | |||
if ($rs == 0) { | |||
ResetVdValue(); | |||
ShowMsg("用户名不存在", "index.php", 0, 2000); | |||
ShowMsg("您的账号不存在", "index.php", 0, 2000); | |||
exit(); | |||
} else if ($rs == -1) { | |||
ResetVdValue(); | |||
ShowMsg("密码错误", "index.php", 0, 2000); | |||
ShowMsg("您的密码错误", "index.php", 0, 2000); | |||
exit(); | |||
} else if ($rs == -2) { | |||
ResetVdValue(); | |||
@@ -207,10 +207,10 @@ else if ($fmdo == 'login') { | |||
//清除会员缓存 | |||
$cfg_ml->DelCache($cfg_ml->M_ID); | |||
if (empty($gourl) || preg_match("#action|_do#i", $gourl)) { | |||
ShowMsg("成功登录,正在转向用户主页", "index.php", 0, 2000); | |||
ShowMsg("成功登录,正在跳转用户主页", "index.php", 0, 2000); | |||
} else { | |||
$gourl = str_replace('^', '&', $gourl); | |||
ShowMsg("成功登录,现在转向指定页面", $gourl, 0, 2000); | |||
ShowMsg("成功登录,正在跳转指定页面", $gourl, 0, 2000); | |||
} | |||
exit(); | |||
} | |||
@@ -30,15 +30,15 @@ | |||
<input type="hidden" name="imagebody" id="imagebody" value=""> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" placeholder="请输入文档标题"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -67,7 +67,7 @@ | |||
<input name="ddmaxwidth" type="hidden" value="<?php echo $cfg_album_ddwidth;?>"> | |||
<div class="form-group"> | |||
<label>表现方式:</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于QQ表情等)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于表情等)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> 多页单图显示(幻灯)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> 多行多列显示(缩略图)</label> | |||
<div id="spagelist" style="display:none">每页图片数:<input name="pagpicnum" id="pagpicnum" size="10" value="<?php echo $cfg_album_pagesize;?>"></div> | |||
@@ -85,7 +85,7 @@ | |||
<label class="col-sm-2 col-form-label">验证码</label> | |||
<div class="col-sm-10"> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<img src="../apps/vdimgck.php" id="validateimg" onclick="this.src=this.src+'?'" title="验证码"> | |||
</div> | |||
</div> | |||
@@ -34,15 +34,15 @@ | |||
<input type="hidden" name="imagebody" id="imagebody" value=""> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标题</label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" value="<?php echo $row['title']?>" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" value="<?php echo GetTags($row['id']);?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -58,7 +58,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea class="form-control" name="description" id="description"><?php echo $row["description"];?></textarea></div> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
@@ -70,7 +70,7 @@ | |||
<input name="ddmaxwidth" type="hidden" value="<?php echo $abinfo->GetAtt('ddmaxwidth');?>"> | |||
<div class="form-group"> | |||
<label>表现方式:</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于QQ表情等)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> 多页多图显示(适用于表情等)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> 多页单图显示(幻灯)</label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> 多行多列显示(缩略图)</label> | |||
<div id="spagelist" style="<?php if ($abinfo->GetAtt('value')!=2) echo 'display:none';?>">每页图片数:<input name="pagpicnum" id="pagpicnum" value="<?php echo $abinfo->GetAtt('pagpicnum');?>"></div> | |||
@@ -28,15 +28,15 @@ | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" placeholder="请输入文档标题"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -53,7 +53,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea class="form-control" name="description" id="description"></textarea></div> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
@@ -63,7 +63,7 @@ | |||
<label class="col-sm-2 col-form-label">验证码</label> | |||
<div class="col-sm-10"> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<img src="../apps/vdimgck.php" id="validateimg" onclick="this.src=this.src+'?'" title="验证码"> | |||
</div> | |||
</div> | |||
@@ -28,15 +28,15 @@ | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标题</label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" value="<?php echo $row['title']?>" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" value="<?php echo $row['keywords'];?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo $row['keywords'];?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -52,7 +52,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea class="form-control" name="description" id="description"><?php echo $row["description"];?></textarea></div> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
@@ -28,15 +28,15 @@ | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" placeholder="请输入文档标题"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -53,7 +53,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea class="form-control" name="description" id="description"></textarea></div> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
@@ -28,11 +28,11 @@ | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标题</label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" value="<?php echo $addRow['title']?>" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $addRow['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -48,7 +48,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea class="form-control" name="description" id="description"><?php echo $row["description"];?></textarea></div> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
@@ -28,15 +28,15 @@ | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" placeholder="请输入文档标题"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -53,7 +53,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea class="form-control" name="description" id="description"></textarea></div> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
@@ -67,7 +67,7 @@ | |||
<label class="col-sm-2 col-form-label">验证码</label> | |||
<div class="col-sm-10"> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<img src="../apps/vdimgck.php" id="validateimg" onclick="this.src=this.src+'?'" title="验证码"> | |||
</div> | |||
</div> | |||
@@ -32,15 +32,15 @@ | |||
<input type="hidden" name="sortrank" value="<?php echo $row['sortrank'];?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标题</label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" class="form-control" value="<?php echo $row['title']?>" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" class="form-control" value="<?php echo $row['keywords'];?>" /></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo $row['keywords'];?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -56,7 +56,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">信息摘要</label> | |||
<div class="col-sm-10"><textarea class='form-control' name="description" id="description"><?php echo $row["description"];?></textarea></div> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"><?php echo $row["description"];?></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
@@ -30,79 +30,90 @@ | |||
<?php | |||
$canCav = floor($cfg_ml->fields['scores'] / $cfg_money_scores); | |||
?> | |||
<span>用积分兑换金币(<?php echo "兑换价格:{$cfg_money_scores}积分/个,您目前可兑换金币数量:{$canCav}个";?>)</span> | |||
<form name="formrank" action="index_do.php?dopost=money2s&fmdo=user" method="post"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<tbody> | |||
<tr> | |||
<td width="20%" align="right">兑换数量:</td> | |||
<td width="270"><input name="money" type="text" id="money" class="form-control" value="<?php echo $canCav;?>"></td> | |||
<td align="left"><button class="btn btn-success" type="submit">兑换</button></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
<div class="py-3"> | |||
<p>用积分兑换金币(<?php echo "兑换价格{$cfg_money_scores}积分/个,您目前可兑换金币数量{$canCav}个";?>)</p> | |||
<form name="formrank" action="index_do.php?dopost=money2s&fmdo=user" method="post"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<tbody> | |||
<tr> | |||
<td width="20%" align="right">兑换数量:</td> | |||
<td><input type="text" name="money" id="money" class="form-control w-25" value="<?php echo $canCav;?>"></td> | |||
</tr> | |||
<tr> | |||
<td></td> | |||
<td align="left"><button type="submit" class="btn btn-success">兑换</button></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
</div> | |||
<?php }?> | |||
<h4 class="py-3">用点卡充值</h4> | |||
<form name="formrank" action="check_card.php" method="post"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<tbody> | |||
<tr> | |||
<td width="20%" align="right">点卡密码:</td> | |||
<td><input name="cardid" type="text" id="cardid" class="form-control"></td> | |||
</tr> | |||
<tr> | |||
<td align="right">验证码</td> | |||
<td width="270"> | |||
<input name="vdcode" type="text" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<img src="../apps/vdimgck.php" title="验证码" onclick="this.src=this.src+'?'"> | |||
</td> | |||
</tr> | |||
<div class="py-3"> | |||
<h4 class="mb-3">用点卡充值</h4> | |||
<form name="formrank" action="check_card.php" method="post"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<tbody> | |||
<tr> | |||
<td width="20%" align="right">点卡密码:</td> | |||
<td><input type="text" name="cardid" id="cardid" class="form-control w-25"></td> | |||
</tr> | |||
<tr> | |||
<td align="right">验证码</td> | |||
<td> | |||
<input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<img src="../apps/vdimgck.php" title="验证码" onclick="this.src=this.src+'?'"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td align="right"></td> | |||
<td><button type="submit" class="btn btn-success">充值</button></td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
</div> | |||
<div class="py-3"> | |||
<h4 class="mb-3">购买新点卡</h4> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="card"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<tr> | |||
<td align="right"></td> | |||
<td><button class="btn btn-success" type="submit">充值</button></td> | |||
<th width="10%">选择</th> | |||
<th>点卡类型</th> | |||
<th width="16%">金币数量</th> | |||
<th width="12%">购买价格</th> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</form> | |||
<h4 class="py-3">购买新点卡</h4> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="card"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<tr style="background:#e9ecef"> | |||
<th width="10%">选择</th> | |||
<th>点卡类型</th> | |||
<th width="16%">金币数量</th> | |||
<th width="12%">购买价格</th> | |||
</tr> | |||
<tbody> | |||
<?php echo $moneycards;?> | |||
</tbody> | |||
</table> | |||
<button class="btn btn-success" type="submit">购买</button> | |||
</form> | |||
<h4 class="py-3">会员升级</h4> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="member"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<thead> | |||
<tbody> | |||
<?php echo $moneycards;?> | |||
</tbody> | |||
</table> | |||
<div class="text-center"><button type="submit" class="btn btn-success">购买</button></div> | |||
</form> | |||
</div> | |||
<div class="py-3"> | |||
<h4 class="mb-3">会员升级</h4> | |||
<form name="f1" action="buy_action.php" method="post"> | |||
<input type="hidden" name="product" value="member"> | |||
<table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
<thead> | |||
<tr> | |||
<th colspan="5">会员升级</th> | |||
</tr> | |||
</thead> | |||
<tr> | |||
<th colspan="5" style="text-align:left;padding-left:10px">会员升级</th> | |||
<th width="10%">选择</th> | |||
<th>产品名称</th> | |||
<th width="12%">会员类型</th> | |||
<th width="16%">时限(天)</th> | |||
<th width="12%">价格</th> | |||
</tr> | |||
</thead> | |||
<tr style="background:#e9ecef"> | |||
<th width="10%">选择</th> | |||
<th>产品名称</th> | |||
<th width="12%">会员类型</th> | |||
<th width="16%">时限(天)</th> | |||
<th width="12%">价格</th> | |||
</tr> | |||
<tbody> | |||
<?php echo $membertypes?> | |||
</tbody> | |||
</table> | |||
<button class="btn btn-success" type="submit">购买</button> | |||
</form> | |||
<tbody> | |||
<?php echo $membertypes?> | |||
</tbody> | |||
</table> | |||
<div class="text-center"><button type="submit" class="btn btn-success">购买</button></div> | |||
</form> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -67,7 +67,7 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptSafeanswer" class="col-sm-2 col-form-label">原问题答案</label> | |||
<div class="col-sm-10"><input name="safeanswer" type="text" class="form-control" id="iptSafeanswer"></div> | |||
<div class="col-sm-10"><input type="text" name="safeanswer" class="form-control" id="iptSafeanswer"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">新安全问题</label> | |||
@@ -80,11 +80,11 @@ | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptNewsafeanswer" class="col-sm-2 col-form-label">新问题答案</label> | |||
<div class="col-sm-10"><input name="newsafeanswer" type="text" class="form-control" id="iptNewsafeanswer"></div> | |||
<div class="col-sm-10"><input type="text" name="newsafeanswer" class="form-control" id="iptNewsafeanswer"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptEmail" class="col-sm-2 col-form-label">电子邮箱</label> | |||
<div class="col-sm-10"><input name="email" type="email" class="form-control" id="iptEmail"></div> | |||
<div class="col-sm-10"><input type="email" name="email" class="form-control" id="iptEmail"></div> | |||
<small class="offset-md-2 col-sm-8 text-muted">每个电子邮邮箱只能注册一个帐号,要修改电子邮箱必须填写正确安全问题的答案</small> | |||
</div> | |||
<div class="form-group row"> | |||
@@ -31,7 +31,7 @@ | |||
<input type="hidden" name="dopost" value="save"> | |||
<div class="form-group row"> | |||
<label for="iptUname" class="col-sm-2 col-form-label">邮箱地址</label> | |||
<div class="col-sm-10"><input name="email" type="text" id="email" size="35" class="form-control" value="<?php echo $email;?>"></div> | |||
<div class="col-sm-10"><input type="text" name="email" id="email" size="35" class="form-control" value="<?php echo $email;?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<div class="col-sm-10"><button type="submit" class="btn btn-success">设置</button></div> | |||
@@ -31,7 +31,7 @@ | |||
<input type="hidden" name="dopost" value="save"> | |||
<div class="form-group row"> | |||
<label for="iptUname" class="col-sm-2 col-form-label">手工填写网址</label> | |||
<div class="col-sm-10"><input name="faceurl" type="text" id="faceurl" size="35" class="form-control" value="<?php echo $face;?>"></div> | |||
<div class="col-sm-10"><input type="text" name="faceurl" id="faceurl" size="35" class="form-control" value="<?php echo $face;?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptValidate" class="col-sm-2 col-form-label">原来头像</label> | |||
@@ -27,7 +27,7 @@ | |||
<div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_LoginID;?></span></div> | |||
</div> | |||
<div class="col-12 col-md-8"> | |||
<p><?php echo $cfg_ml->M_MbType;?>积分:<span class="text-primary"><?php echo $cfg_ml->M_Scores;?></span> 金币:<span class="text-primary"><?php echo $cfg_ml->M_Money;?></span></p> | |||
<p><?php echo $cfg_ml->M_MbType;?>积分<span class="text-primary"><?php echo $cfg_ml->M_Scores;?></span>分,金币<span class="text-primary"><?php echo $cfg_ml->M_Money;?></span>个</p> | |||
<div><a href="<?php echo $cfg_memberurl;?>/buy.php" class="btn btn-danger">充值</a></div> | |||
</div> | |||
</div> | |||
@@ -18,17 +18,24 @@ | |||
<div class="col-md-12 text-center"> | |||
<div class="login-area d-inline-block"> | |||
<div class="login-box shadow-sm rounded text-left"> | |||
<h2 class="text-center mb-3">欢迎登录</h2> | |||
<h2 class="text-center mb-3">用户登录</h2> | |||
<form name='form1' method='POST' action='<?php echo $cfg_memberurl;?>/index_do.php'> | |||
<input type="hidden" name="fmdo" value="login"> | |||
<input type="hidden" name="dopost" value="login"> | |||
<input type="hidden" name="keeptime" value="604800"> | |||
<input type="hidden" name="gourl" value="<?php if (!empty($gourl)) echo $gourl;?>"> | |||
<div class="form-group"><input id="iptUserid" name="userid" type="text" class="form-control" placeholder="输入用户名"></div> | |||
<div class="form-group"><input name="pwd" type="password" class="form-control" id="iptPwd" placeholder="输入密码"></div> | |||
<div class="form-group" id="vdimgck" style="display: none;"> | |||
<div class="form-group"> | |||
<label for="iptUserid">账号</label> | |||
<input type="text" name="userid" id="iptUserid" class="form-control" placeholder="请输入账号"> | |||
</div> | |||
<div class="form-group"> | |||
<label for="iptPwd">密码</label> | |||
<input type="password" name="pwd" id="iptPwd" class="form-control" placeholder="请输入密码"> | |||
</div> | |||
<div class="form-group" id="vdimgck" style="display:none"> | |||
<label for="iptValidate">验证码</label> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" class="form-control text-uppercase" id="iptValidate" placeholder="请输入验证码"> | |||
<input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | |||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||
</div> | |||
</div> | |||
@@ -28,7 +28,7 @@ | |||
<th width="6%"></th> | |||
<th width="10%">id</th> | |||
<th>标题</th> | |||
<th width="20%">消费金币</th> | |||
<th width="20%">需要金币</th> | |||
<th width="20%">消费时间</th> | |||
</tr> | |||
</thead> | |||
@@ -50,7 +50,7 @@ | |||
{/dede:datalist} | |||
<tr> | |||
<td colspan="6"> | |||
<button id="checkedClick" type="button" class="btn btn-success">全选</button> | |||
<button type="button" id="checkedClick" class="btn btn-success">全选</button> | |||
<button type="button" onclick="DoSubmit()" class="btn btn-danger">删除</button> | |||
</td> | |||
</tr> | |||
@@ -47,7 +47,7 @@ | |||
{/dede:datalist} | |||
<tr> | |||
<td colspan="6"> | |||
<button id="checkedClick" type="button" class="btn btn-success">全选</button> | |||
<button type="button" id="checkedClick" class="btn btn-success">全选</button> | |||
<button type="button" onclick="DoSubmit()" class="btn btn-danger">删除</button> | |||
</td> | |||
</tr> | |||
@@ -22,18 +22,28 @@ | |||
<input type="hidden" value="regbase" name="dopost"> | |||
<input type="hidden" value="1" name="step"> | |||
<input type="hidden" value="个人" name="mtype"> | |||
<div class="form-group"><input id="iptUserid" name="userid" type="text" class="form-control" placeholder="输入用户名"></div> | |||
<div class="form-group"><input name="userpwd" type="password" class="form-control" id="iptUserpwd" placeholder="登录密码"></div> | |||
<div class="form-group"><input name="userpwdok" type="password" class="form-control" id="iptUserpwdok" placeholder="确认密码"></div> | |||
<div class="form-group"> | |||
<label for="iptUserid">账号</label> | |||
<input type="text" name="userid" id="iptUserid" class="form-control" placeholder="请输入账号"> | |||
</div> | |||
<div class="form-group"> | |||
<label for="iptUserpwd">密码</label> | |||
<input type="password" name="userpwd" id="iptUserpwd" class="form-control" placeholder="请输入密码"> | |||
</div> | |||
<div class="form-group"> | |||
<label for="iptUserpwdok">确认密码</label> | |||
<input type="password" name="userpwdok" id="iptUserpwdok" class="form-control" placeholder="请输入确认密码"> | |||
</div> | |||
<div class="form-group"> | |||
<label for="iptValidate">验证码</label> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" class="form-control text-uppercase" id="iptValidate" placeholder="请输入验证码"> | |||
<input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | |||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" onClick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||
</div> | |||
</div> | |||
<div class="form-group form-check"> | |||
<input type="checkbox" class="form-check-input" id="iptLicence"> | |||
<label class="form-check-label licence" for="iptLicence">我已阅读并接受<a href="">《用户注册条款》</a>、<a href="">《隐私保护条例》</a></label> | |||
<label class="form-check-label licence" for="iptLicence">我已阅读并接受<a href="">《用户注册条款》</a>和<a href="">《隐私保护条例》</a></label> | |||
</div> | |||
<div class="form-group"><button type="submit" class="btn btn-success w-100">注册</button></div> | |||
<div><a href="<?php echo $cfg_memberurl;?>/login.php" class="btn btn-outline-success w-100">登录</a></div> | |||
@@ -51,15 +51,16 @@ | |||
<form name="form1" method="POST" action="<?php echo $cfg_memberurl;?>/resetpassword.php"> | |||
<input type="hidden" name="dopost" value="getpwd"> | |||
<input type="hidden" name="gourl" value="<?php if (!empty($gourl)) echo $gourl;?>"> | |||
<div class="form-group"><input name="userid" type="text" class="form-control" id="txtUsername" placeholder="用户名"></div> | |||
<div class="form-group"><input name="mail" type="text" class="form-control" id="txtMail" placeholder="邮箱"></div> | |||
<div class="form-group"> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" class="form-control text-uppercase" id="iptValidate" placeholder="请输入验证码"> | |||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||
</div> | |||
<label for="txtUsername">账号</label> | |||
<input type="text" name="userid" id="txtUsername" class="form-control" placeholder="请输入账号"> | |||
</div> | |||
<div class="form-group"> | |||
<label for="txtMail">邮箱</label> | |||
<input type="text" name="mail" id="txtMail" class="form-control" placeholder="请输入邮箱"> | |||
</div> | |||
<div class="form-group"> | |||
<label for="iptValidate">找回方式</label> | |||
<div class="input-group"> | |||
<select name="type" class="form-control"> | |||
<option value="1" selected>通过邮件取回</option> | |||
@@ -67,6 +68,13 @@ | |||
</select> | |||
</div> | |||
</div> | |||
<div class="form-group"> | |||
<label for="iptValidate">验证码</label> | |||
<div class="input-group"> | |||
<input type="text" name="vdcode" class="form-control text-uppercase" id="iptValidate" placeholder="请输入验证码"> | |||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||
</div> | |||
</div> | |||
<div><button type="submit" class="btn btn-success w-100">下一步</button></div> | |||
</form> | |||
</div> | |||
@@ -21,16 +21,26 @@ | |||
<input type="hidden" name="dopost" value="getpasswd"> | |||
<input type="hidden" name="setp" value="2"> | |||
<input type="hidden" name="id" value="<?php echo $id;?>"> | |||
<div class="form-group"><input name="userid" type="text" readonly="readonly" value="<?php echo $row['membername']?>" class="form-control" id="txtUsername" placeholder="用户名"></div> | |||
<div class="form-group"> | |||
<label>账号</label> | |||
<input type="text" name="userid" readonly="readonly" id="txtUsername" class="form-control" value="<?php echo $row['membername']?>"> | |||
</div> | |||
<?php if (empty($key)) {?> | |||
<div class="form-group"><input name="pwdtmp" type="password" class="form-control" placeholder="临时登录密码"></div> | |||
<div class="form-group"> | |||
<label>临时密码</label> | |||
<input type="password" name="pwdtmp" class="form-control" placeholder="请输入临时密码"> | |||
</div> | |||
<?php } else {?> | |||
<input name="key" type="hidden" value="<?php echo $key;?>"> | |||
<?php }?> | |||
<div class="form-group"> | |||
<div class="input-group"><input name="pwd" type="password" class="form-control" placeholder="新密码"></div> | |||
<label>新密码</label> | |||
<input type="password" name="pwd" class="form-control" placeholder="请输入新密码"> | |||
</div> | |||
<div class="form-group"> | |||
<label>确认密码</label> | |||
<input type="password" name="pwdok" class="form-control" placeholder="请输入确认密码"> | |||
</div> | |||
<div class="form-group"><input placeholder="确认新密码" name="pwdok" type="password" class="form-control"></div> | |||
<div><button type="submit" class="btn btn-success w-100">下一步</button></div> | |||
</form> | |||
</div> | |||
@@ -24,10 +24,14 @@ | |||
<div class="form-group"> | |||
<?php echo GetSafequestion(0,'safequestion');?> | |||
</div> | |||
<div class="form-group"><input name="safeanswer" type="text" class="form-control" placeholder="问题答案"></div> | |||
<div class="form-group"> | |||
<label>问题答案</label> | |||
<input type="text" name="safeanswer" class="form-control" placeholder="请输入问题答案"> | |||
</div> | |||
<div class="form-group"> | |||
<label>验证码</label> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" class="form-control text-uppercase" id="iptValidate" placeholder="请输入验证码"> | |||
<input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | |||
<img src="<?php echo $cfg_cmsurl;?>/apps/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_cmsurl;?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||
</div> | |||
</div> | |||
@@ -48,15 +48,15 @@ | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['typename'];?></label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" placeholder="请输入文档标题"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" id="tags" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -156,7 +156,7 @@ | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="source">软件来源</label> | |||
<input name="source" type="text" id="source" maxlength="100" class="form-control"> | |||
<input type="text" name="source" id="source" maxlength="100" class="form-control"> | |||
</div> | |||
</div> | |||
<?php | |||
@@ -169,13 +169,13 @@ | |||
</div> | |||
<div class="form-group"> | |||
<label>下载地址:</label> | |||
<input name="softurl1" type="text" id="softurl1" class="form-control"> | |||
服务器名称:<input name="servermsg1" type="text" id="servermsg1" value="下载" class="form-control"> | |||
<input type="text" name="softurl1" id="softurl1" class="form-control"> | |||
服务器名称:<input type="text" name="servermsg1" id="servermsg1" class="form-control" value="下载"> | |||
</div> | |||
<div class="form-group"> | |||
<label>其它地址:</label> | |||
<input name="picnum" type="text" id="picnum" value="5" size="8" class="form-control d-inline-block w-25"> | |||
<button name='kkkup' type='button' id='kkkup2' onclick="MakeUpload();" class="btn btn-success">增加地址</button> | |||
<input type="text" name="picnum" id="picnum" value="5" class="form-control d-inline-block w-25"> | |||
<button type="button" name="kkkup" id="kkkup2" onclick="MakeUpload();" class="btn btn-success">增加地址</button> | |||
<button type="button" name="Submit3" id="btsh3" onclick="ShowHideAddr();" class="btn btn-success">隐藏地址</button>(最多为12个链接) | |||
</div> | |||
<div id="morelink" style="display:none"> | |||
@@ -185,7 +185,7 @@ | |||
<label class="col-sm-2 col-form-label">验证码</label> | |||
<div class="col-sm-10"> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<img src="../apps/vdimgck.php" id="validateimg" onclick="this.src=this.src+'?'" title="验证码"> | |||
</div> | |||
</div> | |||
@@ -51,15 +51,15 @@ | |||
<input type="hidden" name="sortrank" value="<?php echo $row['sortrank'];?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['typename'];?>名称</label> | |||
<div class="col-sm-10"><input name="title" type="text" id="title" value="<?php echo $row['title']?>" class="form-control" placeholder="请输入标题"></div> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标签</label> | |||
<div class="col-sm-10"><input name="tags" type="text" value="<?php echo GetTags($row['id']);?>" id="tags" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="tags" id="tags" class="form-control" value="<?php echo GetTags($row['id']);?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">作者</label> | |||
<div class="col-sm-10"><input name="writer" type="text" id="writer" value="<?php echo $cfg_ml->M_UserName?>" class="form-control"></div> | |||
<div class="col-sm-10"><input type="text" name="writer" id="writer" class="form-control" value="<?php echo $cfg_ml->M_UserName?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">发布栏目</label> | |||
@@ -164,7 +164,7 @@ | |||
</div> | |||
<div class="form-group col-md-6"> | |||
<label for="source">软件来源</label> | |||
<input name="source" type="text" id="source" value="<?php echo $row['source'] ?>" maxlength="100" class="form-control"> | |||
<input type="text" name="source" id="source" value="<?php echo $row['source'] ?>" maxlength="100" class="form-control"> | |||
</div> | |||
</div> | |||
<?php | |||
@@ -182,13 +182,13 @@ | |||
</div> | |||
<div class="form-group"> | |||
<label>下载地址:</label> | |||
<input name="softurl1" type="text" id="softurl1" class="form-control"> | |||
服务器名称:<input name="servermsg1" type="text" id="servermsg1" value="下载" class="form-control"> | |||
<input type="text" name="softurl1" id="softurl1" class="form-control"> | |||
服务器名称:<input type="text" name="servermsg1" id="servermsg1" class="form-control" value="下载"> | |||
</div> | |||
<div class="form-group"> | |||
<label>其它地址:</label> | |||
<input name="picnum" type="text" id="picnum" value="5" size="8" class="form-control d-inline-block w-25"> | |||
<button name='kkkup' type='button' id='kkkup2' onclick="MakeUpload();" class="btn btn-success">增加地址</button> | |||
<input type="text" name="picnum" id="picnum" value="5" class="form-control d-inline-block w-25"> | |||
<button type="button" name="kkkup" id="kkkup2" onclick="MakeUpload();" class="btn btn-success">增加地址</button> | |||
<button type="button" name="Submit3" id="btsh3" onclick="ShowHideAddr();" class="btn btn-success">隐藏地址</button> (最多为12个链接) | |||
</div> | |||
<div id="morelink"> | |||
@@ -14,7 +14,7 @@ | |||
<?php pasterTempletDiy('top.htm');?> | |||
<div class="container py-3"> | |||
<div class="row"> | |||
<div class="col-md-12"> | |||
<div class="col-md-12"> | |||
<div class="card"> | |||
<div class="card-header">{dede:wintitle/}</div> | |||
<div class="card-body"> | |||