手机端 | 加入收藏 | 设为首页 | 会员中心 | 我要投稿 | RSS
您当前的位置:首页 > 下载中心 > 软件教程
1861资源网 免费发布信息
软件名称: 帝国cms定时审核代码可以设置任务自动刷新首页和栏目
文件类型:
界面语言: 简体中文
软件类型: 国产软件
运行环境:
授权方式: 共享软件
软件大小:
软件等级:
软件登陆: zywlyy
作 者 :
官方网址: 官方站
程序演示: 演示
整理时间: 2024-11-18
软件简介:
  • 在首页模板中加入下面代码,尽量放在底部。
    <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;
    ?>
下载地址:
下载帮助: 发表评论 加入收藏夹 错误报告
相关软件: 无相关信息
下载说明: ⊙推荐使用网际快车下载本站软件,使用 WinRAR v3.10 以上版本解压本站软件。
⊙如果这个软件总是不能下载的请点击报告错误,谢谢合作!!
⊙下载本站资源,如果服务器暂不能下载请过一段时间重试!
⊙如果遇到什么问题,请到本站去咨寻,我们将在那里提供更多 、更好的资源!
⊙本站提供的一些商业软件是供学习研究之用,如用于商业用途,请购买正版。
免责说明:

免责声明
免责声明:以上所展示的信息由会员自行提供,内容的真实性、准确性和合法性由发布会员负责,www.zywlyy.cn 对此不承担任何责任。如有侵犯您的权益,请来信通知删除。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐下载
最后更新
热门点击
返回顶部