Browse Source

调整选择自定义字段样式,会员分页10条数据,空格优化

tags/6.2.0
xushubieli 2 years ago
parent
commit
64f1f370fb
32 changed files with 54 additions and 171 deletions
  1. +1
    -1
      src/admin/file_manage_control.php
  2. +2
    -2
      src/admin/index_body.php
  3. +1
    -1
      src/admin/templets/file_manage_main.htm
  4. +2
    -6
      src/admin/templets/index.htm
  5. +1
    -1
      src/admin/templets/shops_operations.htm
  6. +1
    -1
      src/admin/templets_one_add.php
  7. +1
    -1
      src/admin/templets_one_edit.php
  8. +1
    -1
      src/static/web/css/admin.css
  9. +1
    -1
      src/system/archive/taglist.class.php
  10. +1
    -2
      src/system/common.func.php
  11. +1
    -1
      src/system/common.inc.php
  12. +6
    -6
      src/system/customfields.func.php
  13. +1
    -1
      src/system/database/dedesqlite.class.php
  14. +0
    -9
      src/system/datalistcp.class.php
  15. +1
    -1
      src/system/dedevote.class.php
  16. +1
    -1
      src/system/enums.func.php
  17. +3
    -6
      src/system/helpers/cache.helper.php
  18. +6
    -8
      src/system/libraries/fixtures/headers.php
  19. +1
    -1
      src/system/memberlogin.class.php
  20. +0
    -98
      src/system/sitemap.class.php
  21. +10
    -10
      src/system/taglib/infolink.lib.php
  22. +2
    -2
      src/system/userlogin.class.php
  23. +1
    -1
      src/user/archives_sg_add.php
  24. +1
    -1
      src/user/content_list.php
  25. +1
    -1
      src/user/content_sg_list.php
  26. +1
    -1
      src/user/inc/archives_check.php
  27. +1
    -1
      src/user/mypay.php
  28. +1
    -1
      src/user/mystow.php
  29. +1
    -1
      src/user/operation.php
  30. +1
    -1
      src/user/pm.php
  31. +1
    -1
      src/user/shops_orders.php
  32. +1
    -1
      src/user/shops_products.php

+ 1
- 1
src/admin/file_manage_control.php View File

@@ -106,7 +106,7 @@ else if ($fmdo == "upload") {
$upfile = ${$upfile};
$upfile_name = ${$upfile_name};
if (is_uploaded_file($upfile)) {
// 检查文件类型
//检查文件类型
$mime = get_mime_type($upfile);
if (preg_match("#^unknow#", $mime)) {
ShowMsg("系统不支持fileinfo组件,建议php.ini中开启", -1);


+ 2
- 2
src/admin/index_body.php View File

@@ -132,8 +132,8 @@ else if ($dopost == 'setskin') {
));
exit;
} elseif ($dopost == 'safe_mode') {
$safemsg = "当前系统环境运行模式为【安全模式】,安全模式下将无法使用后台“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能,如果您需要使用上述功能,可在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`值更改为`FALSE`";
$unsafemsg = "当前系统环境运行模式为【非安全模式】,系统中“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能使用不当会存在一定的安全风险,建议您在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`值更改为`TRUE`";
$safemsg = "当前系统环境运行模式为【安全模式】,安全模式下将无法使用后台“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能,如果您需要使用上述功能,可在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`后面TRUE更改为FALSE";
$unsafemsg = "当前系统环境运行模式为【非安全模式】,系统中“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能使用不当会存在一定的安全风险,建议您在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`后面FALSE更改为TRUE";
$modeStr = DEDEBIZ_SAFE_MODE? $safemsg : $unsafemsg;
ShowMsg($modeStr, "javascript:;");
exit;


+ 1
- 1
src/admin/templets/file_manage_main.htm View File

@@ -65,7 +65,7 @@ foreach ($dh as $file)
}
else if(is_dir("$inpath/$file"))
{
if(preg_match("#^_(.*)$#i",$file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录
if(preg_match("#^_(.*)$#i",$file)) continue;
if(preg_match("#^\.(.*)$#i",$file)) continue;
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">
<td>


+ 2
- 6
src/admin/templets/index.htm View File

@@ -12,10 +12,6 @@
<script src="../static/web/js/jquery.min.js"></script>
<script src="js/frame.js"></script>
<style>
.safemode {
padding: 2px 5px!important;
transform:scale(0.8);
}
#skinlist {
display: block;
height: 10px;
@@ -92,9 +88,9 @@
<span class="top_dedebiz"><a target="main" href="index_body.php"><?php echo $cfg_webname; ?>系统</a></span>
<span class="top_version">V<?php echo $cfg_version_detail; ?></span>
<?php if(DEDEBIZ_SAFE_MODE) {?>
<a target="main" class="btn btn-primary btn-sm safemode" href="index_body.php?dopost=safe_mode">安全</a>
<a target="main" class="btn btn-primary btn-sm" href="index_body.php?dopost=safe_mode">安全</a>
<?php } else {?>
<a target="main" class="btn btn-warning btn-sm safemode" href="index_body.php?dopost=safe_mode">非安全</a>
<a target="main" class="btn btn-warning btn-sm" href="index_body.php?dopost=safe_mode">非安全</a>
<?php }?>
</div>
<div class="top_link">


+ 1
- 1
src/admin/templets/shops_operations.htm View File

@@ -135,7 +135,7 @@
{/dede:datalist}
</form>
<tr>
<td colspan="11" bgcolor="#f8f8f8" style="padding-top:10px">&nbsp;
<td bgcolor="#f8f8f8" colspan="11">
<button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
<button type="button" onClick="DelSel();" class="btn btn-danger btn-sm">删除</button>
<button type="button" onClick="UpSel();" class="btn btn-success btn-sm">设为已付款状态</button>


+ 1
- 1
src/admin/templets_one_add.php View File

@@ -16,7 +16,7 @@ if ($dopost == "save") {
$uptime = time();
$body = str_replace('&quot;', '\\"', $body);
$filename = preg_replace("#^\/#", "", $nfilename);
if (DEDEBIZ_SAFE_MODE) $ismake = 0; // 安全模式不允许编译
if (DEDEBIZ_SAFE_MODE) $ismake = 0; //安全模式不允许编译
if (!preg_match('#\.htm$#i', trim($template))) {
ShowMsg("您指定的文件名被系统禁止", "javascript:;");
exit();


+ 1
- 1
src/admin/templets_one_edit.php View File

@@ -17,7 +17,7 @@ if ($dopost == "saveedit") {
$uptime = time();
$body = str_replace('&quot;', '\\"', $body);
$filename = preg_replace("#^\/#", "", $nfilename);
if (DEDEBIZ_SAFE_MODE) $ismake = 0; // 安全模式不允许编译
if (DEDEBIZ_SAFE_MODE) $ismake = 0; //安全模式不允许编译
if (!preg_match('#\.htm$#i', trim($template))) {
ShowMsg("您指定的文件名被系统禁止", "javascript:;");
exit();


+ 1
- 1
src/static/web/css/admin.css
File diff suppressed because it is too large
View File


+ 1
- 1
src/system/archive/taglist.class.php View File

@@ -171,7 +171,7 @@ class TagList
$this->ParseDMFields($this->PageNo, 0);
}
$this->dtp->Display();
// $this->Close();
//$this->Close();
}
/**
* 解析模板,对固定的标记进行初始给值


+ 1
- 2
src/system/common.func.php View File

@@ -19,7 +19,7 @@ define('ALERT_COLORS', array(
ALERT_LIGHT => array('#fefefe','#fdfdfe','#636464'),
ALERT_DARK => array('#d3d3d4','#bcbebf','#141619'),
));
define("ALERT_TPL", '<div style="width: 98%;margin: 0 auto;"><div style="font-size:12px;margin:1rem auto;color:~color~;background:~background~;border-color:~border~;position:relative;padding:.75rem 1.25rem;border:1px solid transparent;border-radius:.2rem">~content~</div></div>');
define("ALERT_TPL", '<div style="width:98%;margin:0 auto"><div style="font-size:12px;margin:1rem auto;color:~color~;background:~background~;border-color:~border~;position:relative;padding:.75rem 1.25rem;border:1px solid transparent;border-radius:.2rem">~content~</div></div>');
//$content:内容 $type:alert类型
function DedeAlert($content, $type = ALERT_PRIMARY)
{
@@ -92,7 +92,6 @@ function get_mime_type($filename)
if (!function_exists('finfo_open')) {
return 'unknow/octet-stream';
}

$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mimeType = finfo_file($finfo, $filename);
finfo_close($finfo);


+ 1
- 1
src/system/common.inc.php View File

@@ -6,7 +6,7 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
// V6安全模式,如果启用安全模式,后台将禁用例如:模板管理、标签管理、数据库管理等存在较高安全风险的功能
//V6安全模式,如果启用安全模式,后台将禁用例如:模板管理、标签管理、数据库管理等存在较高安全风险的功能
define('DEDEBIZ_SAFE_MODE', TRUE);
//生产环境使用`production`,如果采用`dev`模式,会有一些php的报错信息提示,便于开发调试
if (!defined('DEDE_ENVIRONMENT')) {


+ 6
- 6
src/system/customfields.func.php View File

@@ -68,7 +68,7 @@ function GetFormItem($ctag, $admintype = 'admin')
foreach ($items as $v) {
$v = trim($v);
if ($v != '') {
$myformItem .= ($i == 0 ? "<div class='form-check'><label><input type='radio' name='$fieldname' class='np form-check-input' value='$v' checked> $v</label></div>" : "<div class='form-check'><label><input type='radio' name='$fieldname' class='np form-check-input' value='$v'> $v</label></div>");
$myformItem .= ($i == 0 ? "<div class='form-check form-check-inline'><input type='radio' name='$fieldname' class='form-check-input' value='$v' checked><label class='form-check-label'>$v</label></div>" : "<div class='form-check form-check-inline'><input type='radio' name='$fieldname' class='form-check-input' value='$v'><label class='form-check-label'>'$v</label></div>");
$i++;
}
}
@@ -80,9 +80,9 @@ function GetFormItem($ctag, $admintype = 'admin')
$v = trim($v);
if ($v != '') {
if ($admintype == 'membermodel') {
$myformItem .= "<div class='form-check'><label><input type='checkbox' name='{$fieldname}[]' class='np form-check-input' value='$v'> $v</label></div>";
$myformItem .= "<div class='form-check form-check-inline'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v'><label class='form-check-label'>$v</label></div>";
} else {
$myformItem .= "<div class='form-check'><label><input type='checkbox' name='{$fieldname}[]' class='np form-check-input' value='$v'> $v</label></div>";
$myformItem .= "<div class='form-check form-check-inline'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v'><label class='form-check-label'>$v</label></div>";
}
}
}
@@ -352,7 +352,7 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '')
foreach ($items as $v) {
$v = trim($v);
if ($v == '') continue;
$myformItem .= ($fvalue == $v ? "<div class='form-check'><label><input type='radio' name='$fieldname' class='np form-check-input' value='$v' checked='checked' /> $v</label></div>" : "<div class='form-check'><label><input type='radio' name='$fieldname' class='np form-check-input' value='$v' /> $v</label></div>");
$myformItem .= ($fvalue == $v ? "<div class='form-check form-check-inline'><input type='radio' name='$fieldname' class='form-check-input' value='$v' checked='checked'><label class='form-check-label'>$v</label></div>" : "<div class='form-check form-check-inline'><input type='radio' name='$fieldname' class='form-check-input' value='$v'><label class='form-check-label'>$v</label></div>");
}
}
$innertext = $myformItem;
@@ -368,9 +368,9 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '')
continue;
}
if (in_array($v, $fvalues)) {
$myformItem .= "<div class='form-check'><label><input type='checkbox' name='{$fieldname}[]' class='np form-check-input' value='$v' checked='checked' /> $v</label></div>";
$myformItem .= "<div class='form-check form-check-inline'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v' checked='checked'><label class='form-check-label'>$v</label></div>";
} else {
$myformItem .= "<div class='form-check'><label><input type='checkbox' name='{$fieldname}[]' class='np form-check-input' value='$v' /> $v</label></div>";
$myformItem .= "<div class='form-check form-check-inline'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v'><label class='form-check-label'>$v</label></div>";
}
}
}


+ 1
- 1
src/system/database/dedesqlite.class.php View File

@@ -123,7 +123,7 @@ class DedeSqlite
//为了防止采集等需要较长运行时间的程序超时,在运行这类程序时设置系统等待和交互时间
function SetLongLink()
{
// @mysqli_query("SET interactive_timeout=3600, wait_timeout=3600 ;", $this->linkID);
//@mysqli_query("SET interactive_timeout=3600, wait_timeout=3600 ;", $this->linkID);
}
//获得错误描述
function GetError()


+ 0
- 9
src/system/datalistcp.class.php View File

@@ -2,15 +2,6 @@
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 动态分页类
* 说明:数据量不大的数据分页,使得数据分页处理变得更加简单化
* 使用方法:
* $dl = new DataListCP(); //初始化动态列表类
* $dl->pagesize = 30; //设定每页显示记录数(默认25条)
* $dl->SetParameter($key,$value); //设定get字符串的变量
* //这两句的顺序不能更换
* $dl->SetTemplate($tplfile); //载入模板
* $dl->SetSource($sql); //设定查询SQL
* $dl->Display(); //显示
*
* @version $Id: datalistcp.class.php 3 17:02 2010年7月9日Z tianya $
* @package DedeBIZ.Libraries


+ 1
- 1
src/system/dedevote.class.php View File

@@ -98,7 +98,7 @@ class DedeVote
{
//省略参数
if ($lineheight == "") {
$lineheight = 24;
$lineheight = 26;
}
if ($tablewidth == "") {
$tablewidth = "100%";


+ 1
- 1
src/system/enums.func.php View File

@@ -88,7 +88,7 @@ function GetEnumsForm($egroup, $evalue = 0, $formid = '', $seltitle = '')
$formid = $egroup;
}
$forms = "<select name='$formid' id='$formid' class='enumselect form-control'>\r\n";
$forms .= "\t<option value='0' selected='selected'>--请选择--{$seltitle}</option>\r\n";
$forms .= "\t<option value='0' selected='selected'>请选择{$seltitle}</option>\r\n";
foreach (${'em_'.$egroup.'s'} as $v => $n) {
$prefix = ($v > 500 && $v % 500 != 0) ? '└─ ' : '';
if (preg_match("#\.#", $v)) $prefix = ' &nbsp;&nbsp;└── ';


+ 3
- 6
src/system/helpers/cache.helper.php View File

@@ -23,7 +23,7 @@ if (!function_exists('GetCache')) {
global $cfg_bizcore_appid, $cfg_bizcore_key, $cfg_bizcore_hostname, $cfg_bizcore_port;
$key = md5($key);
// 商业组件缓存
//商业组件缓存
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
$client->appid = $cfg_bizcore_appid;
@@ -62,8 +62,7 @@ if (!function_exists('SetCache')) {
{
global $cfg_bizcore_appid, $cfg_bizcore_key, $cfg_bizcore_hostname, $cfg_bizcore_port;
$key = md5($key);
// 商业组件缓存
//商业组件缓存
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
$client->appid = $cfg_bizcore_appid;
@@ -94,10 +93,8 @@ if (!function_exists('DelCache')) {
function DelCache($prefix, $key)
{
global $cfg_bizcore_appid, $cfg_bizcore_key, $cfg_bizcore_hostname, $cfg_bizcore_port;
$key = md5($key);
// 商业组件缓存
//商业组件缓存
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
$client->appid = $cfg_bizcore_appid;


+ 6
- 8
src/system/libraries/fixtures/headers.php View File

@@ -8,9 +8,7 @@ if (!defined('DEDEINC')) exit('dedebiz');
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

require_once(DEDEINC."/libraries/fixtures/abstractprovider.php");

class Headers extends AbstractProvider
{
/**
@@ -19,19 +17,19 @@ class Headers extends AbstractProvider
* @var array
*/
protected $data = array(
// The default User-Agent string.
//The default User-Agent string.
'HTTP_USER_AGENT',
// Header can occur on devices using Opera Mini.
//Header can occur on devices using Opera Mini.
'HTTP_X_OPERAMINI_PHONE_UA',
// Vodafone specific header: http://www.seoprinciple.com/mobile-web-community-still-angry-at-vodafone/24/
//Vodafone specific header: http://www.seoprinciple.com/mobile-web-community-still-angry-at-vodafone/24/
'HTTP_X_DEVICE_USER_AGENT',
'HTTP_X_ORIGINAL_USER_AGENT',
'HTTP_X_SKYFIRE_PHONE',
'HTTP_X_BOLT_PHONE_UA',
'HTTP_DEVICE_STOCK_UA',
'HTTP_X_UCBROWSER_DEVICE_UA',
// Sometimes, bots (especially Google) use a genuine user agent, but fill this header in with their email address
//Sometimes, bots (especially Google) use a genuine user agent, but fill this header in with their email address
'HTTP_FROM',
'HTTP_X_SCANNER', // Seen in use by Netsparker
'HTTP_X_SCANNER', //Seen in use by Netsparker
);
}
}

+ 1
- 1
src/system/memberlogin.class.php View File

@@ -397,7 +397,7 @@ class MemberLogin
return -1;
} else {
if (empty($row['pwd_new']) && function_exists('password_hash')) {
// 升级密码
//升级密码
$newpwd = password_hash($loginpwd, PASSWORD_BCRYPT);
$inquery = "UPDATE `#@__member` SET pwd='',pwd_new='{$newpwd}' WHERE mid='".$row['mid']."'";
$dsql->ExecuteNoneQuery($inquery);


+ 0
- 98
src/system/sitemap.class.php View File

@@ -1,98 +0,0 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 网站地图(sitemap类)
*
* @version $Id: sitemap.class.php 1 15:21 2010年7月5日Z tianya $
* @package DedeBIZ.Libraries
* @copyright Copyright (c) 2022, DedeBIZ.COM
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
require_once(DEDEINC."/channelunit.func.php");
/**
* 网站地图(sitemap类)
*
* @package TypeLink
* @subpackage DedeBIZ.Libraries
* @link https://www.dedebiz.com
*/
class SiteMap
{
var $dsql;
var $artDir;
var $baseDir;
//php5构造函数
function __construct()
{
$this->idCounter = 0;
$this->artDir = $GLOBALS['cfg_arcdir'];
$this->baseDir = $GLOBALS['cfg_cmspath'].$GLOBALS['cfg_basedir'];
$this->idArrary = "";
$this->dsql = $GLOBALS['dsql'];
}
function SiteMap()
{
$this->__construct();
}
//清理类
function Close()
{
}
/**
* 获取网站地图
*
* @access public
* @param string $maptype 地图类型 site:站点 rss:rss
* @return string
*/
function GetSiteMap($maptype = "site")
{
$mapString = "";
if ($maptype == "rss") {
$this->dsql->SetQuery("SELECT id,typedir,isdefault,defaultname,typename,ispart,namerule2,moresite,siteurl,sitepath FROM #@__arctype WHERE ishidden<>1 AND reid=0 AND ispart<>2 ORDER BY sortrank");
} else {
$this->dsql->SetQuery("SELECT id,typedir,isdefault,defaultname,typename,ispart,namerule2,siteurl,sitepath,moresite,siteurl,sitepath FROM #@__arctype WHERE reid=0 AND ishidden<>1 ORDER BY sortrank");
}
$this->dsql->Execute(0);
while ($row = $this->dsql->GetObject(0)) {
if ($maptype == "site") {
$typelink = GetTypeUrl($row->id, MfTypedir($row->typedir), $row->isdefault, $row->defaultname, $row->ispart, $row->namerule2, $row->moresite, $row->siteurl, $row->sitepath);
} else {
$typelink = $GLOBALS['cfg_cmsurl']."/static/rss/".$row->id.".xml";
}
$mapString .= "<div class=\"linkbox\">\r\n<h3><a href='$typelink'>".$row->typename."</a></h3>";
$mapString .= "\t<ul class=\"f6\">\t\t\r".$this->LogicListAllSunType($row->id, $maptype)."\t\n</ul></div>\r\n";
}
return $mapString;
}
/**
* 获得子类目的递归调用
*
* @access public
* @param int $id 栏目ID
* @param string $maptype 地图类型
* @return string
*/
function LogicListAllSunType($id, $maptype)
{
$fid = $id;
$mapString = "";
if ($maptype == "rss") {
$this->dsql->SetQuery("SELECT id,typedir,isdefault,defaultname,typename,ispart,namerule2,moresite,siteurl,sitepath FROM #@__arctype WHERE reid='".$id."' AND ishidden<>1 AND ispart<>2 ORDER BY sortrank");
} else {
$this->dsql->SetQuery("SELECT id,typedir,isdefault,defaultname,typename,ispart,namerule2,moresite,siteurl,sitepath FROM #@__arctype WHERE reid='".$id."' AND ishidden<>1 ORDER BY sortrank");
}
$this->dsql->Execute($fid);
while ($row = $this->dsql->GetObject($fid)) {
if ($maptype == "site") {
$typelink = GetTypeUrl($row->id, MfTypedir($row->typedir), $row->isdefault, $row->defaultname, $row->ispart, $row->namerule2, $row->moresite, $row->siteurl, $row->sitepath);
} else {
$typelink = $GLOBALS['cfg_cmsurl']."/static/rss/".$row->id.".xml";
}
$mapString .= "<li><a href='$typelink'>".$row->typename."</a></li>\n\t\t";
$mapString .= $this->LogicListAllSunType($row->id, $maptype);
}
return $mapString;
}
}

+ 10
- 10
src/system/taglib/infolink.lib.php View File

@@ -64,14 +64,14 @@ function lib_infolink(&$ctag, &$refObj)
$fields['nativeplace'] .= " <a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$eid}&infotype={$infotype}'>{$em}</a>\r\n";
}
} else {
$sontype = (($nativeplace % 500 != 0) ? $nativeplace : 0); // 子集
$toptype = (($nativeplace % 500 == 0) ? (int)$nativeplace : (int)($nativeplace - ($nativeplace % 500))); // 顶级联动分类
$sontype = (($nativeplace % 500 != 0) ? $nativeplace : 0); //子集
$toptype = (($nativeplace % 500 == 0) ? (int)$nativeplace : (int)($nativeplace - ($nativeplace % 500))); //顶级联动分类
$fields['nativeplace'] = "<a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$toptype}&infotype={$infotype}'> {$em_nativeplaces[$toptype]}</a> &gt;";
if ($nativeplace % 500 == 0) {
// 1级分类
//1级分类
foreach ($em_nativeplaces as $eid => $em) {
if ($eid < $toptype + 1 || $eid > $toptype + 499) continue;
if (is_str_float($eid)) continue; // 仅显示2级
if (is_str_float($eid)) continue; //仅显示2级
if ($eid == $nativeplace) {
$fields['nativeplace'] .= " {$em}\r\n";
} else {
@@ -79,7 +79,7 @@ function lib_infolink(&$ctag, &$refObj)
}
}
} else if(!is_str_float($nativeplace)) {
// 2级分类
//2级分类
$fields['nativeplace'] .= "<span> {$em_nativeplaces[$sontype]}</span>";
$i = 0;
$ff = "";
@@ -99,7 +99,7 @@ function lib_infolink(&$ctag, &$refObj)
if($i > 0) $fields['nativeplace'] .= " &gt; ";
$fields['nativeplace'] .= $ff;
} else {
// 3级分类
//3级分类
$t = intval($nativeplace);
$fields['nativeplace'] .= "<a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$t}&infotype={$infotype}'> {$em_nativeplaces[$t]}</a> &gt;";
foreach ($em_nativeplaces as $eid => $em) {
@@ -131,10 +131,10 @@ function lib_infolink(&$ctag, &$refObj)
$fields['infotype'] = "<a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&infotype={$toptype}&nativeplace={$nativeplace}'>{$em_infotypes[$toptype]}</a> &gt; ";
if ($infotype % 500 == 0) {
// 1级分类
//1级分类
foreach ($em_infotypes as $eid => $em) {
if ($eid < $toptype + 1 || $eid > $toptype + 499) continue;
if (is_str_float($eid)) continue; // 仅显示2级
if (is_str_float($eid)) continue; //仅显示2级
if ($eid == $infotype) {
$fields['infotype'] .= " {$em}\r\n";
} else {
@@ -142,7 +142,7 @@ function lib_infolink(&$ctag, &$refObj)
}
}
} else if(!is_str_float($infotype)) {
// 2级分类
//2级分类
$fields['infotype'] .= "<span> {$em_infotypes[$sontype]}</span>";
$i = 0;
$ff = "";
@@ -162,7 +162,7 @@ function lib_infolink(&$ctag, &$refObj)
if($i > 0) $fields['infotype'] .= " &gt; ";
$fields['infotype'] .= $ff;
} else {
// 3级分类
//3级分类
$t = intval($infotype);
$fields['infotype'] .= "<a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$nativeplace}&infotype={$t}'> {$em_infotypes[$t]}</a> &gt;";
foreach ($em_infotypes as $eid => $em) {


+ 2
- 2
src/system/userlogin.class.php View File

@@ -90,7 +90,7 @@ function CheckCatalog($cid, $msg)
return TRUE;
}
if (!in_array($cid, $admin_catalogs)) {
ShowMsg(" $msg <br><br><a href='javascript:history.go(-1);'>点击返回上一页&gt;</a>", 'javascript:;');
ShowMsg(" $msg <br><br><a href='javascript:history.go(-1);'>点击返回上一页</a>", 'javascript:;');
exit();
}
return TRUE;
@@ -224,7 +224,7 @@ class userLogin
}else {
$upsql = "";
if (empty($row->pwd_new) && function_exists('password_hash')) {
// 升级密码
//升级密码
$newpwd = password_hash($this->userPwd, PASSWORD_BCRYPT);
$upsql .= ",pwd='',pwd_new='{$newpwd}'";
}


+ 1
- 1
src/user/archives_sg_add.php View File

@@ -50,7 +50,7 @@ function _SaveArticle(){ }
else if ($dopost == 'save') {
include_once(DEDEINC."/image.func.php");
include_once(DEDEINC."/libraries/oxwindow.class.php");
// 游客需要校验验证码
//游客需要校验验证码
if ($cfg_ml->M_ID === 0) {
$svali = GetCkVdValue();
if (strtolower($vdcode) != $svali || $svali == '') {


+ 1
- 1
src/user/content_list.php View File

@@ -74,7 +74,7 @@ $query = "SELECT arc.id,arc.typeid,arc.senddate,arc.flag,arc.ismake,arc.channel,
left join `#@__channeltype` ch on ch.id=arc.channel
$whereSql order by arc.senddate desc ";
$dlist = new DataListCP();
$dlist->pagesize = 30;
$dlist->pagesize = 10;
$dlist->SetParameter("dopost", "listArchives");
$dlist->SetParameter("keyword", $keyword);
$dlist->SetParameter("cid", $cid);


+ 1
- 1
src/user/content_sg_list.php View File

@@ -61,7 +61,7 @@ $query = "SELECT arc.aid,arc.aid as id,arc.typeid,arc.senddate,arc.channel,arc.c
$whereSql
ORDER BY arc.aid desc ";
$dlist = new DataListCP();
$dlist->pagesize = 30;
$dlist->pagesize = 10;
$dlist->SetParameter("dopost", "listArchives");
$dlist->SetParameter("keyword", $keyword);
$dlist->SetParameter("cid", $cid);


+ 1
- 1
src/user/inc/archives_check.php View File

@@ -11,7 +11,7 @@
if (!defined('DEDEMEMBER')) exit('dedebiz');
include_once(DEDEINC.'/image.func.php');
include_once(DEDEINC.'/libraries/oxwindow.class.php');
// 游客需要校验验证码
//游客需要校验验证码
if ($cfg_ml->M_ID === 0) {
$svali = GetCkVdValue();
if (strtolower($vdcode) != $svali || $svali == '') {


+ 1
- 1
src/user/mypay.php View File

@@ -18,7 +18,7 @@ if (!isset($dopost)) $dopost = '';
if ($dopost == '') {
$query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' order by aid desc";
$dlist = new DataListCP();
$dlist->pagesize = 30;
$dlist->pagesize = 10;
$dlist->SetTemplate(DEDEMEMBER.'/templets/mypay.htm');
$dlist->SetSource($query);
$dlist->Display();


+ 1
- 1
src/user/mystow.php View File

@@ -28,7 +28,7 @@ while ($row = $dsql->GetArray('nn')) {
$rows[] = $row;
}
$dlist = new DataListCP();
$dlist->pagesize = 30;
$dlist->pagesize = 10;
$dlist->SetTemplate(DEDEMEMBER."/templets/mystow.htm");
$dlist->SetSource($sql);
$dlist->Display();

+ 1
- 1
src/user/operation.php View File

@@ -30,7 +30,7 @@ function GetSta($sta)
if ($dopost == '') {
$sql = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' AND product<>'archive' ORDER BY aid DESC";
$dlist = new DataListCP();
$dlist->pagesize = 30;
$dlist->pagesize = 10;
$dlist->SetTemplate(DEDEMEMBER."/templets/operation.htm");
$dlist->SetSource($sql);
$dlist->Display();


+ 1
- 1
src/user/pm.php View File

@@ -90,7 +90,7 @@ else {
}
$query = "SELECT * FROM `#@__member_pms` WHERE $wsql ORDER BY sendtime DESC";
$dlist = new DataListCP();
$dlist->pagesize = 30;
$dlist->pagesize = 10;
$dlist->SetParameter("dopost", $dopost);
$dlist->SetTemplate(DEDEMEMBER.'/templets/pm-main.htm');
$dlist->SetSource($query);


+ 1
- 1
src/user/shops_orders.php View File

@@ -38,7 +38,7 @@ function GetSta($sta, $oid)
if ($dopost == '') {
$sql = "SELECT * FROM `#@__shops_orders` WHERE userid='".$cfg_ml->M_ID."' ORDER BY stime DESC";
$dl = new DataListCP();
$dl->pagesize = 30;
$dl->pagesize = 10;
//这两句的顺序不能更换
$dl->SetTemplate(dirname(__FILE__)."/templets/shops_orders.htm"); //载入模板
$dl->SetSource($sql); //设定查询SQL


+ 1
- 1
src/user/shops_products.php View File

@@ -44,7 +44,7 @@ if ($dopost == '') {
}
$sql = "SELECT * FROM `#@__shops_products` WHERE userid='".$cfg_ml->M_ID."' $addsql ORDER BY aid ASC";
$dl = new DataListCP();
$dl->pagesize = 30;
$dl->pagesize = 10;
if (!empty($oid)) $dl->SetParameter('oid', $oid);
//这两句的顺序不能更换
$dl->SetTemplate(dirname(__FILE__)."/templets/shops_products.htm"); //载入模板


Loading…
Cancel
Save