浏览代码

优化

tags/6.1.8
tianya 2 年前
父节点
当前提交
36b9318571
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. +0
    -1
      src/install/index.php
  2. +4
    -1
      src/system/common.func.php

+ 0
- 1
src/install/index.php 查看文件

@@ -20,7 +20,6 @@ $errmsg = '';
if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
mysqli_report(MYSQLI_REPORT_OFF);
}
$moduleCacheFile = dirname(__FILE__).'/modules.tmp.inc';
define('DEDEINC',dirname(__FILE__).'/../system');
define('DEDEDATA',dirname(__FILE__).'/../data');
define('DEDEROOT',preg_replace("#[\\\\\/]install#", '', dirname(__FILE__)));


+ 4
- 1
src/system/common.func.php 查看文件

@@ -329,12 +329,15 @@ function AddFilter($channelid, $type=1, $fieldsnamef="", $defaulttid=0, $loadtyp
{
global $tid,$dsql,$id;
$tid = $defaulttid ? $defaulttid : $tid;
$id = intval($id);
$tid = intval($tid);
$channelid = intval($channelid);
if ($id!="")
{
$tidsq = $dsql->GetOne("SELECT typeid FROM `#@__archives` WHERE id='$id' ");
$tid = $tidsq["typeid"];
}
$nofilter = (isset($_REQUEST['TotalResult']) ? "&TotalResult=".$_REQUEST['TotalResult'] : '').(isset($_REQUEST['PageNo']) ? "&PageNo=".$_REQUEST['PageNo'] : '');
$nofilter = (isset($_REQUEST['TotalResult']) ? "&TotalResult=".(int)$_REQUEST['TotalResult'] : '').(isset($_REQUEST['PageNo']) ? "&PageNo=".(int)$_REQUEST['PageNo'] : '');
$filterarr = string_filter(stripos($_SERVER['REQUEST_URI'], "list.php?tid=") ? str_replace($nofilter, '', $_SERVER['REQUEST_URI']) : $GLOBALS['cfg_cmsurl']."/apps/list.php?tid=".$tid);
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' ");
$fieldset=stripslashes($cInfos['fieldset']);


正在加载...
取消
保存