打开crons/modpay.inc.php
找到:
$db->query("INSERT INTO {$tablepre}threads (fid,author, authorid, subject, dateline, lastpost, lastposter)
VALUES ('$listforum','$discuz_user', '$listauthor', '$subject', '$timestamp', '$timestamp', '$discuz_user')");
$tid = $db->insert_id();
$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, subject, dateline, message)
VALUES ('$listforum', '$tid', '1', '$discuz_user', '$listauthor', '$subject', '$timestamp', '$message')");
$pid = $db->insert_id();
$lastpost = "$tid\t$subject\t$timestamp\t$discuz_user";
$db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost', threads=threads+1, posts=posts+1, todayposts=todayposts+1 WHERE fid='$listforum'", 'UNBUFFERED');
}
替换成:
$discuz='yourname'; //填写你的名字
$db->query("INSERT INTO {$tablepre}threads (fid,author, authorid, subject, dateline, lastpost, lastposter)
VALUES ('$listforum','$discuz', '$listauthor', '$subject', '$timestamp', '$timestamp', '$discuz_user')");
$tid = $db->insert_id();
$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, subject, dateline, message)
VALUES ('$listforum', '$tid', '1', '$discuz', '$listauthor', '$subject', '$timestamp', '$message')");
$pid = $db->insert_id();
$lastpost = "$tid\t$subject\t$timestamp\t$discuz";
$db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost', threads=threads+1, posts=posts+1, todayposts=todayposts+1 WHERE fid='$listforum'", 'UNBUFFERED');
} |