導航:首頁 > 萬維百科 > 帝國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重復提交相關的知識