Home > php教程 > php手册 > 用于一键更新destoon 5.0各模型信息的点击数

用于一键更新destoon 5.0各模型信息的点击数

WBOY
Release: 2016-06-06 19:36:59
Original
1993 people have browsed it

无详细内容 DESTOON ?php/*作者:iiwork演示地址:http://www.47595.com请勿用作商业用途!*/@set_time_limit(0);define('DT_ADMIN', true);define('DT_MEMBER', true);require 'common.inc.php';error_reporting("E_ALL");$query=$db-query("select * from "

DESTOON
<?php
/*

作者:iiwork
演示地址:http://www.47595.com
请勿用作商业用途!

*/
@set_time_limit(0);
define('DT_ADMIN', true);
define('DT_MEMBER', true);
require 'common.inc.php';
error_reporting("E_ALL");
$query=$db->query("select * from ".$DT_PRE."module where disabled=0 and moduleid>=5");
while($r=$db->fetch_array($query)){
     $table = get_table($r['moduleid']);
     $db->query("update {$table} set hits=ROUND(RAND()*5000+2000) where hits<800"); 
     echo $table."更新成功!<br />"   ;  
}
?>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template