| @@ -538,7 +538,7 @@ else if ($dopost == 'quickEdit') { | |||||
| <td class='bline'> | <td class='bline'> | ||||
| <input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>'> | <input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>'> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY `sortid` ASC"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($trow = $dsql->GetObject()) { | while ($trow = $dsql->GetObject()) { | ||||
| if ($trow->att == 'j' || $trow->att == 'p') continue; | if ($trow->att == 'j' || $trow->att == 'p') continue; | ||||
| @@ -566,7 +566,7 @@ else if ($dopost == 'quickEdit') { | |||||
| <?php echo $arcRow["rankname"] ?> </option> | <?php echo $arcRow["rankname"] ?> </option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE adminrank<='$urank'"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `adminrank`<='$urank'"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | echo "<option value='".$row->rank."'>".$row->membername."</option>"; | ||||
| @@ -843,7 +843,7 @@ else if ($dopost == 'attsDlg') { | |||||
| <td class='bline'> | <td class='bline'> | ||||
| <input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>'> | <input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>'> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY `sortid` ASC"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($trow = $dsql->GetObject()) { | while ($trow = $dsql->GetObject()) { | ||||
| if ($trow->att == 'j' || $trow->att == 'p') continue; | if ($trow->att == 'j' || $trow->att == 'p') continue; | ||||
| @@ -156,29 +156,29 @@ else if ($dopost == 'save') { | |||||
| //跳转网址的文档强制为动态 | //跳转网址的文档强制为动态 | ||||
| if (preg_match("#j#", $flag)) $ismake = -1; | if (preg_match("#j#", $flag)) $ismake = -1; | ||||
| //更新数据库的SQL语句 | //更新数据库的SQL语句 | ||||
| $query = "UPDATE #@__archives SET | |||||
| typeid='$typeid', | |||||
| typeid2='$typeid2', | |||||
| sortrank='$sortrank', | |||||
| flag='$flag', | |||||
| click='$click', | |||||
| ismake='$ismake', | |||||
| arcrank='$arcrank', | |||||
| money='$money', | |||||
| title='$title', | |||||
| color='$color', | |||||
| writer='$writer', | |||||
| source='$source', | |||||
| litpic='$litpic', | |||||
| pubdate='$pubdate', | |||||
| notpost='$notpost', | |||||
| description='$description', | |||||
| keywords='$keywords', | |||||
| shorttitle='$shorttitle', | |||||
| filename='$filename', | |||||
| dutyadmin='$adminid', | |||||
| weight='$weight' | |||||
| WHERE id='$id'; "; | |||||
| $query = "UPDATE `#@__archives` SET | |||||
| `typeid`='$typeid', | |||||
| `typeid2`='$typeid2', | |||||
| `sortrank`='$sortrank', | |||||
| `flag`='$flag', | |||||
| `click`='$click', | |||||
| `ismake`='$ismake', | |||||
| `arcrank`='$arcrank', | |||||
| `money`='$money', | |||||
| `title`='$title', | |||||
| `color`='$color', | |||||
| `writer`='$writer', | |||||
| `source`='$source', | |||||
| `litpic`='$litpic', | |||||
| `pubdate`='$pubdate', | |||||
| `notpost`='$notpost', | |||||
| `description`='$description', | |||||
| `keywords`='$keywords', | |||||
| `shorttitle`='$shorttitle', | |||||
| `filename`='$filename', | |||||
| `dutyadmin`='$adminid', | |||||
| `weight`='$weight' | |||||
| WHERE `id`='$id'; "; | |||||
| if (!$dsql->ExecuteNoneQuery($query)) { | if (!$dsql->ExecuteNoneQuery($query)) { | ||||
| ShowMsg('更新数据库archives表时出错,请检查', -1); | ShowMsg('更新数据库archives表时出错,请检查', -1); | ||||
| exit(); | exit(); | ||||
| @@ -66,7 +66,7 @@ else if ($dopost == 'add') { | |||||
| ShowMsg("关键字已存在库中!", "-1"); | ShowMsg("关键字已存在库中!", "-1"); | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| $inquery = "INSERT INTO `#@__keywords`(keyword,rank,sta,rpurl) VALUES ('$keyword','$rank','1','$rpurl');"; | |||||
| $inquery = "INSERT INTO `#@__keywords`(`keyword`,`rank`,`sta`,`rpurl`) VALUES ('$keyword','$rank','1','$rpurl');"; | |||||
| $dsql->ExecuteNoneQuery($inquery); | $dsql->ExecuteNoneQuery($inquery); | ||||
| ShowMsg("成功增加一个关键字!", $ENV_GOBACK_URL); | ShowMsg("成功增加一个关键字!", $ENV_GOBACK_URL); | ||||
| exit(); | exit(); | ||||
| @@ -78,7 +78,7 @@ if (empty($keyword)) { | |||||
| $addquery = " WHERE keyword LIKE '%$keyword%' "; | $addquery = " WHERE keyword LIKE '%$keyword%' "; | ||||
| } | } | ||||
| $sql = "SELECT * FROM `#@__keywords` $addquery ORDER BY rank DESC"; | |||||
| $sql = "SELECT * FROM `#@__keywords` $addquery ORDER BY `rank` DESC"; | |||||
| $dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
| $dlist->pageSize = 20; | $dlist->pageSize = 20; | ||||
| $dlist->SetParameter("keyword", $keyword); | $dlist->SetParameter("keyword", $keyword); | ||||
| @@ -68,7 +68,7 @@ if ($dopost == 'analyse') { | |||||
| if (strlen($k) > 20) { | if (strlen($k) > 20) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $dsql->SetQuery("INSERT INTO `#@__keywords`(keyword,rank,sta,rpurl) VALUES('".addslashes($k)."','$v','1','')"); | |||||
| $dsql->SetQuery("INSERT INTO `#@__keywords`(keyword,`rank`,sta,rpurl) VALUES('".addslashes($k)."','$v','1','')"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| } | } | ||||
| echo "完成关键字的导入!<br/>\r\n"; | echo "完成关键字的导入!<br/>\r\n"; | ||||
| @@ -35,7 +35,7 @@ function GetArchives($dsql, $ordertype) | |||||
| } else { | } else { | ||||
| $ordersql = " ORDER BY click DESC "; | $ordersql = " ORDER BY click DESC "; | ||||
| } | } | ||||
| $query = "SELECT id,title,click,scores FROM #@__archives $swhere $ordersql LIMIT 0,20 "; | |||||
| $query = "SELECT id,title,click,scores FROM `#@__archives` $swhere $ordersql LIMIT 0,20 "; | |||||
| $dsql->SetQuery($query); | $dsql->SetQuery($query); | ||||
| $dsql->Execute('ga'); | $dsql->Execute('ga'); | ||||
| while ($row = $dsql->GetObject('ga')) { | while ($row = $dsql->GetObject('ga')) { | ||||
| @@ -29,7 +29,7 @@ $sortkey = empty($sortkey) ? 'mid' : preg_replace("#[^a-z]#i", '', $sortkey); | |||||
| $staArr = array(-2 => '限制用户(禁言)', -1 => '未通过审核', 0 => '审核通过,提示填写完整信息', 1 => '没填写详细资料', 2 => '正常使用状态'); | $staArr = array(-2 => '限制用户(禁言)', -1 => '未通过审核', 0 => '审核通过,提示填写完整信息', 1 => '没填写详细资料', 2 => '正常使用状态'); | ||||
| $staArrmatt = array(1 => '被推荐', 0 => '非普通 '); | $staArrmatt = array(1 => '被推荐', 0 => '非普通 '); | ||||
| $MemberTypes = array(); | $MemberTypes = array(); | ||||
| $dsql->SetQuery("Select rank,membername From `#@__arcrank` where rank>0 "); | |||||
| $dsql->SetQuery("Select `rank`,`membername` From `#@__arcrank` where `rank`>0 "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
| $MemberTypes[$row->rank] = $row->membername; | $MemberTypes[$row->rank] = $row->membername; | ||||
| @@ -26,7 +26,7 @@ if ($dopost == 'save') { | |||||
| $scores = ${"scores_".$startID}; | $scores = ${"scores_".$startID}; | ||||
| if (isset(${"check_".$startID})) { | if (isset(${"check_".$startID})) { | ||||
| if ($rank > 0) { | if ($rank > 0) { | ||||
| $query = "UPDATE `#@__arcrank` SET membername='$name',money='$money',rank='$rank',scores='$scores' WHERE id='$id' "; | |||||
| $query = "UPDATE `#@__arcrank` SET membername='$name',money='$money',`rank`='$rank',scores='$scores' WHERE id='$id' "; | |||||
| } | } | ||||
| } else { | } else { | ||||
| $query = "DELETE FROM `#@__arcrank` WHERE id='$id' AND rank<>10"; | $query = "DELETE FROM `#@__arcrank` WHERE id='$id' AND rank<>10"; | ||||
| @@ -47,6 +47,6 @@ if ($dopost == 'del') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE rank>0 ORDER BY rank"); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank`>0 ORDER BY `rank`"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| include DedeInclude('templets/member_rank.htm'); | include DedeInclude('templets/member_rank.htm'); | ||||
| @@ -26,10 +26,10 @@ if ($dopost == "save") { | |||||
| $exptime = ${'exptime_'.$startID}; | $exptime = ${'exptime_'.$startID}; | ||||
| if (isset(${'check_'.$startID})) { | if (isset(${'check_'.$startID})) { | ||||
| if ($pname != '') { | if ($pname != '') { | ||||
| $query = "UPDATE #@__member_type SET pname='$pname',money='$money',rank='$rank',exptime='$exptime' WHERE aid='$aid'"; | |||||
| $query = "UPDATE `#@__member_type` SET `pname`='$pname',`money`='$money',`rank`='$rank',`exptime`='$exptime' WHERE `aid`='$aid'"; | |||||
| } | } | ||||
| } else { | } else { | ||||
| $query = "DELETE FROM #@__member_type WHERE aid='$aid' "; | |||||
| $query = "DELETE FROM `#@__member_type` WHERE `aid`='$aid' "; | |||||
| } | } | ||||
| if ($query != '') { | if ($query != '') { | ||||
| $dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
| @@ -38,14 +38,14 @@ if ($dopost == "save") { | |||||
| //增加新记录 | //增加新记录 | ||||
| if (isset($check_new) && $pname_new != '') { | if (isset($check_new) && $pname_new != '') { | ||||
| $query = "INSERT INTO #@__member_type(rank,pname,money,exptime) VALUES('{$rank_new}','{$pname_new}','{$money_new}','{$exptime_new}');"; | |||||
| $query = "INSERT INTO `#@__member_type`(`rank`,`pname`,`money`,`exptime`) VALUES('{$rank_new}','{$pname_new}','{$money_new}','{$exptime_new}');"; | |||||
| $dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
| } | } | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | header("Content-Type: text/html; charset={$cfg_soft_lang}"); | ||||
| echo "<script> alert('成功更新会员产品分类表!'); </script>"; | echo "<script> alert('成功更新会员产品分类表!'); </script>"; | ||||
| } | } | ||||
| $arcranks = array(); | $arcranks = array(); | ||||
| $dsql->SetQuery("SELECT * FROM #@__arcrank WHERE rank>10 "); | |||||
| $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank`>10 "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($row = $dsql->GetArray()) { | while ($row = $dsql->GetArray()) { | ||||
| $arcranks[$row['rank']] = $row['membername']; | $arcranks[$row['rank']] = $row['membername']; | ||||
| @@ -13,7 +13,7 @@ require(dirname(__FILE__)."/config.php"); | |||||
| CheckPurview('member_Edit'); | CheckPurview('member_Edit'); | ||||
| $ENV_GOBACK_URL = isset($_COOKIE['ENV_GOBACK_URL']) ? "member_main.php" : ''; | $ENV_GOBACK_URL = isset($_COOKIE['ENV_GOBACK_URL']) ? "member_main.php" : ''; | ||||
| $id = preg_replace("#[^0-9]#", "", $id); | $id = preg_replace("#[^0-9]#", "", $id); | ||||
| $row = $dsql->GetOne("select * from #@__member where mid='$id'"); | |||||
| $row = $dsql->GetOne("select * from `#@__member` where mid='$id'"); | |||||
| $staArr = array( | $staArr = array( | ||||
| -10 => '等待验证邮件', | -10 => '等待验证邮件', | ||||
| @@ -16,12 +16,12 @@ setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | |||||
| if (empty($rank)) $rank = ''; | if (empty($rank)) $rank = ''; | ||||
| else $rank = " WHERE CONCAT(#@__admin.usertype)='$rank' "; | else $rank = " WHERE CONCAT(#@__admin.usertype)='$rank' "; | ||||
| $dsql->SetQuery("SELECT rank,typename FROM `#@__admintype` "); | |||||
| $dsql->SetQuery("SELECT `rank`,`typename` FROM `#@__admintype` "); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
| $adminRanks[$row->rank] = $row->typename; | $adminRanks[$row->rank] = $row->typename; | ||||
| } | } | ||||
| $query = "SELECT #@__admin.*,#@__arctype.typename FROM #@__admin LEFT JOIN #@__arctype ON #@__admin.typeid = #@__arctype.id $rank "; | |||||
| $query = "SELECT `#@__admin`.*,`#@__arctype`.typename FROM `#@__admin` LEFT JOIN `#@__arctype` ON `#@__admin`.typeid = `#@__arctype`.id $rank "; | |||||
| $dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
| $dlist->SetTemplet(DEDEADMIN."/templets/sys_admin_user.htm"); | $dlist->SetTemplet(DEDEADMIN."/templets/sys_admin_user.htm"); | ||||
| $dlist->SetSource($query); | $dlist->SetSource($query); | ||||
| @@ -244,7 +244,7 @@ else if ($dopost == 'uninstall') { | |||||
| ShowMsg("删除成功!", "sys_payment.php"); | ShowMsg("删除成功!", "sys_payment.php"); | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| $sql = "SELECT * FROM `#@__payment` ORDER BY rank ASC"; | |||||
| $sql = "SELECT * FROM `#@__payment` ORDER BY `rank` ASC"; | |||||
| $dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
| $dlist->SetTemplet(DEDEADMIN."/templets/sys_payment.htm"); | $dlist->SetTemplet(DEDEADMIN."/templets/sys_payment.htm"); | ||||
| $dlist->SetSource($sql); | $dlist->SetSource($sql); | ||||
| @@ -284,7 +284,7 @@ $i = 0; | |||||
| <td class='bline'> | <td class='bline'> | ||||
| <select name="corank" id="corank" style="width:100px"> | <select name="corank" id="corank" style="width:100px"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where rank >= 0"); | |||||
| $dsql->SetQuery("Select * from `#@__arcrank` where `rank` >= 0"); | |||||
| $dsql->Execute('cc'); | $dsql->Execute('cc'); | ||||
| while($row = $dsql->GetObject('cc')) | while($row = $dsql->GetObject('cc')) | ||||
| { | { | ||||
| @@ -249,7 +249,7 @@ $i = 0; | |||||
| <td class='bline' height="26" style="padding-left:10px;">浏览权限:</td> | <td class='bline' height="26" style="padding-left:10px;">浏览权限:</td> | ||||
| <td class='bline'> <select name="corank" id="corank" style="width:100"> | <td class='bline'> <select name="corank" id="corank" style="width:100"> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from #@__arcrank where rank >= 0"); | |||||
| $dsql->SetQuery("Select * from #@__arcrank where `rank` >= 0"); | |||||
| $dsql->Execute('cc'); | $dsql->Execute('cc'); | ||||
| while($row = $dsql->GetObject('cc')) | while($row = $dsql->GetObject('cc')) | ||||
| { | { | ||||
| @@ -9,6 +9,7 @@ | |||||
| <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | ||||
| <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
| <link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
| <script src="js/ieemu.js"></script> | |||||
| <script language="javascript" src="js/member.js"></script> | <script language="javascript" src="js/member.js"></script> | ||||
| <style type="text/css"> | <style type="text/css"> | ||||
| .rb { | .rb { | ||||
| @@ -118,7 +118,7 @@ function checkSubmit() | |||||
| <td align="right" class='bline'>等级:</td> | <td align="right" class='bline'>等级:</td> | ||||
| <td class='bline' style="text-align:left;"><?php | <td class='bline' style="text-align:left;"><?php | ||||
| $MemberTypes = array(); | $MemberTypes = array(); | ||||
| $dsql->SetQuery("Select rank,membername From `#@__arcrank` where rank>0"); | |||||
| $dsql->SetQuery("Select `rank`,membername From `#@__arcrank` where `rank`>0"); | |||||
| $dsql->Execute('n'); | $dsql->Execute('n'); | ||||
| $MemberTypes[0] = "限制会员"; | $MemberTypes[0] = "限制会员"; | ||||
| while($nrow = $dsql->GetObject('n')){ | while($nrow = $dsql->GetObject('n')){ | ||||
| @@ -132,7 +132,7 @@ | |||||
| <option value='0'>游客</option> | <option value='0'>游客</option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank>=10"); | |||||
| $dsql->SetQuery("Select * from `#@__arcrank` where `adminrank`<='$urank' And `rank`>=10"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row2 = $dsql->GetObject()) | while($row2 = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -163,7 +163,7 @@ | |||||
| <option value='0'>游客</option> | <option value='0'>游客</option> | ||||
| <?php | <?php | ||||
| $urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
| $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank>=10"); | |||||
| $dsql->SetQuery("Select * from `#@__arcrank` where `adminrank`<='$urank' And `rank`>=10"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row2 = $dsql->GetObject()) | while($row2 = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -73,7 +73,7 @@ | |||||
| <select name='usertype' style='width:200px'> | <select name='usertype' style='width:200px'> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from `#@__admintype` order by rank asc"); | |||||
| $dsql->SetQuery("Select * from `#@__admintype` order by `rank` asc"); | |||||
| $dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
| while($myrow = $dsql->GetObject("ut")) | while($myrow = $dsql->GetObject("ut")) | ||||
| { | { | ||||
| @@ -52,7 +52,7 @@ | |||||
| <td style="text-align:left;"> | <td style="text-align:left;"> | ||||
| <select name='usertype' style='width:200px'> | <select name='usertype' style='width:200px'> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select * from #@__admintype order by rank asc"); | |||||
| $dsql->SetQuery("Select * from #@__admintype order by `rank` asc"); | |||||
| $dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
| while($myrow = $dsql->GetObject("ut")) | while($myrow = $dsql->GetObject("ut")) | ||||
| { | { | ||||
| @@ -34,7 +34,7 @@ | |||||
| <td width="35%">管理</td> | <td width="35%">管理</td> | ||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| $dsql->SetQuery("Select rank,typename,system From #@__admintype"); | |||||
| $dsql->SetQuery("Select `rank`,`typename`,`system` From #@__admintype"); | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
| { | { | ||||
| @@ -53,6 +53,9 @@ if (version_compare(PHP_VERSION, '5.4.0', '>=')) { | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (version_compare(PHP_VERSION, '8.0.0', '>=')) { | |||||
| mysqli_report(MYSQLI_REPORT_OFF); | |||||
| } | |||||
| //是否启用mb_substr替换cn_substr来提高效率 | //是否启用mb_substr替换cn_substr来提高效率 | ||||
| $cfg_is_mb = $cfg_is_iconv = FALSE; | $cfg_is_mb = $cfg_is_iconv = FALSE; | ||||
| if (function_exists('mb_substr')) $cfg_is_mb = TRUE; | if (function_exists('mb_substr')) $cfg_is_mb = TRUE; | ||||