$story->subject, abstract => $story->abstract, body => $story->article, section => $story->section, timestamp => $story->timestamp, votes => $story->votes, score => $stort->score, author => $story->author, type => "story"); if ($story->status == 2) $node[status] = $status[posted]; if ($story->status == 1) $node[status] = $status[queued]; if ($story->status == 0) $node[status] = $status[dumped]; node_save($node); } $result = db_query("SELECT * FROM faqs"); while ($faq = db_fetch_object($result)) { $node = array(title => $faq->question, author => 1, body => $faq->answer, weight => $faq->weight, status => $status[posted], type => "book"); node_save($node); } db_query("update users set history = ''"); print "Your database has been upgraded! Do NOT reload this page!"; ?>