最近打算用xiuno做站,本来计划是去年甚至更早就做的,只是你懂得,男人已经到了所谓的“中年”了,各类杂事也比较多,无法专心做事,总是半途而废,浪费了准备好的服务器,以及大量域名,一直闲置,浪费比较多吧!
3.0:http://bbs.xiuno.com/thread-9238.htm
4.0:http://bbs.xiuno.com/thread-12715.htm
本文大概要分2次或者多次,目前测试成功的为3.0,4.0暂时测试不成功,由于时间有限,给出3.0的参考代码,可以结合测试,4.0注册用户这块没问题,可能是发布message这块出了问题,不多说了这里直接插入代码吧!

<?php
chdir('./');
define('DEBUG', 0);
define('APP_NAME', 'bbs');
define('IN_SAE', class_exists('SaeKV'));
$conf = (@include './conf/conf.php');
IN_SAE AND include './conf/sae.conf.php';
include './xiunophp/xiunophp.php';
include './model.inc.php';
$browser = get__browser();
check_browser($browser);
runtime_init();
online_init();

$fid = param('fid');
$subject = param('subject');
$message =$_POST['message'];
$reply = param('reply', '', FALSE);

$starttime = strtotime('2009-9-9');
$endtime = strtotime('2016-9-9');

$userinfo=getuser();

$randtime= strtotime(param('sendtime'));
$thread = array( 'fid'=>$fid, 'uid'=>$userinfo['uid'], 'subject'=>$subject, 'message'=>$message, 'seo_url'=>'', 'time'=>$randtime, 'longip'=>$longip, 'message_str'=>$message_str, );
$tid = thread_create($thread, $longip);
$messagearr = explode('|||', $reply);
$n = count($messagearr);
$step = 9900 / $n;
for($j=0; $j<$n; $j++) 
{
    $randtime2 = $randtime + rand($step * $j, $step * ($j + 1));
    $message = $messagearr[$j];
    if(empty($message)) continue;
    $post = array( 'tid'=>$tid, 'create_date'=>$randtime2, 'userip'=>$longip, 'isfirst'=>0, 'message'=>$message, );
    $pid = post_create($post, 1);
}
echo '插入完毕';

function getuser()
{
    global $_POST;
    global $db;
    $username=$_POST['username'];
    $return=array('uid'=>0,'username'=>'');
    $info=$db->find_one("select * from `bbs_user` where username='{$username}'  LIMIT 1");
$ip = ip();
$longip = ip2long($ip);
$longip < 0 AND $longip = sprintf("%u", $longip);
var_dump($info);
if (!empty($info) && is_array($info)) 
{
    $return['uid'] = $info['uid'];
    $return['username']=$info['username'];
    echo("用户存在,ID为:".$return['uid'])."<BR>";
}
else 
{
    $salt = rand(100000, 999999);
    $pwd = md5(md5("20052005").$salt);
    $email=$username.$salt."qq.com";
    $time=time();
    $gid=5;
    $state = user__create(array( 'username'=>$username, 'password'=>$pwd, 'salt'=>$salt, 'gid'=>$gid, 'email'=>$email, 'create_ip'=>$longip, 'create_date'=>$time ));
    if ($state !== FALSE) 
    {
        $info=$db->find_one("select * from `bbs_user` where username='{$username}'  LIMIT 1");
    $return['uid'] = $info['uid'];
    $return['username']=$info['username'];
    echo("注册用户,ID为:".$return['uid'])."<BR>";
}
}
return $return;
}
?>

在火车头中,发布模块就自己写一下就好了,这里就不多做说明了,fid,subject,message,reply,sendtime,username(可以随机指定,也可以采集对方,可以自动注册)!