本帖最后由 miven 于 2017-8-1 16:20 编辑
- <?php
- $news_table = "news"; //新闻表
- define ( 'EmpireCMSAdmin', '1' );
- require ("../class/connect.php");
- require ("../class/db_sql.php");
- require ("../class/functions.php");
- require ("../class/t_functions.php");
- require ("../data/dbcache/class.php");
- require ("../data/dbcache/MemberLevel.php");
- $link = db_connect ();
- $empire = new mysqlquery ();
- $i=0;
- $res = $empire->query ("select * from {$dbtbpre}ecms_".$news_table);
- while ($infor = $empire->fetch ( $res ) ) {
- GetHtml ( $infor ['classid'], $infor ['id'], $infor, 0 );
- ReListHtml ( $infor ['classid'], 1 );
- $i++;
- }
- ReIndex();
- die("Done ,Make ".$i." files ");
- function ReIndex(){
- $indextemp=GetIndextemp();
- NewsBq($classid,$indextemp,1,0);
- }
- ?>
复制代码
放到e/admin 目录下保存为 XX.php
php XX.PHP
|