1、關於帝國cms目錄許可權不為0777的問題
在win2003中對存放上傳文件的目錄要進行要許可權設置的:允許公網訪問並設置共享.
2、帝國CMS怎樣修改目錄許可權為0777
在linux 下把目錄許可權修改成777
在windows下 把目錄許可權改成讀 寫
3、帝國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;
?>