コード例 #1
0
ファイル: submit.php プロジェクト: severnaya99/Sg-2010
         $story->setApproved($_POST['approve']);
     }
 } else {
     $story->setNohtml = 1;
 }
 //Display breadcrumbs
 if ($edit) {
     echo $story->getPath(true) . " > " . _EDIT . " " . $story->title();
 }
 //Display post preview
 $p_title = $story->title("Preview");
 $p_hometext = $story->hometext("Preview");
 $p_hometext .= "<br />" . $story->bodytext("Preview");
 $topversion = $story->revision == 0 && $story->revisionminor == 0 ? 1 : 0;
 $topicalign = isset($story->topicalign) ? 'align="' . $story->topicalign() . '"' : "";
 $p_hometext = $xt->topic_imgurl() != '' && $story->topicdisplay() ? '<img src="images/topics/' . $xt->topic_imgurl() . '" ' . $story->topicalign() . ' alt="" />' . $p_hometext : $p_hometext;
 //Added  in AMS 2.50 Final. replace deprecated themecenterposts function
 if (file_exists(XOOPS_ROOT_PATH . "/Frameworks/xoops22/class/xoopsformloader.php")) {
     if (!@(include_once XOOPS_ROOT_PATH . "/Frameworks/xoops22/class/xoopsformloader.php")) {
         include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
     }
 } else {
     include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
 }
 $pform = new XoopsThemeForm($p_title, "previewform", XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/submit.php');
 $pform->display();
 print "{$p_hometext}";
 $story->uname();
 $author = $story->uname;
 //Display post edit form
 include 'include/storyform.inc.php';