本帖最后由 cdcman 于 2009-5-19 13:40 编辑
这是在将动网论坛转换为Discuz论坛时dv7xacc-dz500/convertinc/common.php文件里的一段代码,因为原动网论坛使用的Access数据库有个数据表(用户ID)编码是从7000开始的,我想知道如何更改上面这代码里的参数让它也是从7000(默认是从1)开始转换数据。
顺便请帮忙解释一下这段PHP代码的含义
$timestamp = time();
$start = isset($_GET['start']) && $_GET['start'] > 1 ? $_GET['start'] : 1;
$limit_start = $start - 1;
$end = $start + $rpp - 1;
$stay = isset($_GET['stay']) ? $_GET['stay'] : 0;
$converted = 0;
$totalrows = isset($_GET['totalrows']) ? $_GET['totalrows'] : 0;
$convertedrows = isset($_GET['convertedrows']) ? $_GET['convertedrows'] : 0;
$action = array(
'1'=>'转换会员数据',
'2'=>'转换版区与管理团队数据',
'3'=>'转换主题与投票数据',
'4'=>'转换附件数据',
'5'=>'转换帖子数据',
'6'=>'转换联盟论坛数据',
'7'=>'转换短消息数据',
'8'=>'转换论坛好友数据',
'9'=>'转换主题分类数据',
'10'=>'添加管理员',
);
$step = isset($_GET['step']) ? $_GET['step'] : 0;
$steps = count($action);
$actionnow = isset($action[$step]) ? $action[$step] : '结束';
$maxid = isset($_GET['maxid']) ? $_GET['maxid'] : 0;
$tableid = isset($_GET['tableid']) ? $_GET['tableid'] : 1;
谢谢! |