if ($story->updateVersion()) { $message = sprintf(_AMS_NW_VERSIONUPDATED, $story->version . "." . $story->revision . "." . $story->revisionminor); //redirect_header('article.php?storyid='.$story->storyid(), 3, $message); //exit(); } else { $message = $story->renderErrors(); } } else { $message = $story->renderErrors(); } redirect_header(XOOPS_URL . '/modules/AMS/article.php?storyid=' . $story->storyid(), 3, $message); break; case 'form': default: $story = new AmsStory(); $story->setTitle(''); $story->setHometext(''); $noname = 0; $story->setNohtml(0); $story->setNosmiley(0); $story->setNotifypub(1); $story->setTopicId(0); if ($approveprivilege) { $story->setTopicdisplay(0); $story->setTopicalign('R'); $story->setIhome(0); $story->setBodytext(''); $story->setApproved(1); $story->set = ''; $expired = 0; $published = 0;