导航:首页 > 万维百科 > 帝国cms重复提交

帝国cms重复提交

发布时间:2020-10-24 05:18:12

1、帝国cms调用如何过滤重复的。

去重是sql语句来实现的,和帝国本身无关。你可以这样写SQL查询试试看
select *, count(distinct supplier) from phome_ecms_proct group by supplier

2、帝国cms有没有什么方法快速删除标题重复的文章

我给你一点思路,你先查出重复的信息,然后把展示的位置调整到100条,点击下面的对勾,删除,意思就是管理信息展示100条,可以调整的,你试试哈

3、帝国CMS一直重复在登陆成功的跳转页面,怎么办

你检查下是不是数据库的原因造成 你复制到另外服务器数据导入是否正确了 重复试一次看看,不要遗漏

4、帝国CMS域名重复

如果后台域名是正确的,检查一下你的模板里面带链接的标签那里,是不是写上域名了。

5、帝国cms信息反馈页面怎么样才能让一个ip提交一次

找到e/class/q_functions.php文件,查到if($br['groupid']),在上面加入以下代码

//IP是否存在
$sip=egetip();
$sbr=$empire->fetch1("select ip from {$dbtbpre}enewsfeedback where ip='$sip';");
if(!empty($sbr['ip']))
{
printerror("ReDoForPl","history.go(-1)",1);
}

具体操作可以参考拾月素材里的帝国cms教程
http://www.shiyuesucai.com/ecms/143700691116.html

6、100分,帝国cms问题,不一样的代码,怎么一次性循环调用出来?

你不用去固定图片的大小,直接用语句调用就可以。因为你这个图片路径也不是固定的吧。

7、帝国cms 批量定时审核 代码 或者插件 我知道帝国cms 可以设置任务自动刷新首页和栏目

在首页模板中加入下面代码,尽量放在底部。
<script language="javascript" type="text/javascript" src="/e/htmlindex/index_html.php"></script>

在 /e/ 建立文件夹 htmlindex 并设置 777权限

将下面代码保存在 /e/htmlindex/index_html.php

修改刷新时间,将文件中1200改为你想要的时间,单位为秒。

<?php
require("../class/connect.php");
include("../class/db_sql.php");
include("../class/config.php");
include("../class/functions.php");
include("../class/t_functions.php");
require LoadLang("pub/fun.php");
require("../data/dbcache/class.php");
require("../data/dbcache/MemberLevel.php");
include("../class/chtmlfun.php"); 
$link=db_connect();
$empire=new mysqlquery();
$filepath_s="indexhtmlhc.txt";
$time=time();
@$filemtime=(int)filemtime($filepath_s)+1200;
/*
函数解释
file_exists() 函数检查文件或目录是否存在。
mkdir() 函数创建目录。
time() 函数返回当前时间的 Unix 时间戳。
filemtime() 函数返回文件内容上次的修改时间。
*/
if (!file_exists($filepath_s)){
fopen($filepath_s, 'w');
@chmod($filepath_s, 0777);
ReIndex();
}elseif(!file_exists($filepath_s) || (filemtime($filepath_s)+1200)<time()){
fopen($filepath_s, 'w');
@chmod($filepath_s, 0777);
ReIndex();
}else{
// do nothing
}
db_close();
$empire=null;
?>

与帝国cms重复提交相关的知识