} } else { General::redirect(URL . "/symphony/?page=/publish/section/new/&_sid=" . $section_id); } } else { General::redirect(URL . "/symphony/?page=/publish/section/new/&_sid=" . $section_id); } if (isset($_GET['_f'])) { switch ($_GET['_f']) { case "saved": $Admin->pageAlert("saved-time", array("Entry", date("h:i:sa", $date->get(true, false)))); break; } } if (defined("__SYM_ENTRY_MISSINGFIELDS__")) { $Admin->pageAlert("required", array(@implode(", ", $entryManager->fetchEntryRequiredFields($section_id, true))), false, 'error'); } elseif (defined("__SYM_ENTRY_VALIDATION_ERROR__")) { $Admin->pageAlert("validation", __SYM_ENTRY_VALIDATION_ERROR__, false, 'error'); } elseif (defined("__SYM_ENTRY_FIELD_XSLT_ERROR__")) { $Admin->pageAlert("xslt-validation", __SYM_ENTRY_FIELD_XSLT_ERROR__, false, 'error'); } else { $TFM = new TextformatterManager(array('parent' => &$Admin)); $about = $TFM->about($fields['formatter']); $entry_formatter = $about['name']; $about = $TFM->about($Admin->getAuthorTextFormatter()); $author_formatter = $about['name']; unset($TFM); if ($entry_formatter != $author_formatter) { $Admin->pageAlert("diff-formatter", array($entry_formatter ? $entry_formatter : "raw XHTML", $author_formatter ? $author_formatter : "raw XHTML"), false, 'error'); } }
$code .= "</select></label>" . CRLF; break; } $code .= CRLF; } } return $code; } include_once TOOLKIT . "/class.entrymanager.php"; $entryManager = new EntryManager($Admin); if (!($section = $DB->fetchRow(0, "SELECT * FROM `tbl_sections` WHERE `id` = '" . intval($_REQUEST['_sid']) . "' LIMIT 1"))) { $Admin->fatalError("Unknown Section", "<p>The Section you are looking for could not be found.</p>", true, true); } $GLOBALS['pageTitle'] = $section['name'] . " > Untitled"; if (defined("__SYM_ENTRY_MISSINGFIELDS__")) { $Admin->pageAlert("required", array(@implode(", ", $entryManager->fetchEntryRequiredFields($_REQUEST['_sid'], true))), false, 'error'); } elseif (defined("__SYM_ENTRY_VALIDATION_ERROR__")) { $Admin->pageAlert("validation", __SYM_ENTRY_VALIDATION_ERROR__, false, 'error'); } elseif (defined("__SYM_ENTRY_FIELD_XSLT_ERROR__")) { $Admin->pageAlert("xslt-validation", __SYM_ENTRY_FIELD_XSLT_ERROR__, false, 'error'); } $date = $Admin->getDateObj(); $specify_date = NULL; if (isset($_REQUEST['date']) && isset($_REQUEST['month']) && isset($_REQUEST['year'])) { $fields['publish_date'] = $_REQUEST['date'] . " " . $_REQUEST['month'] . " " . $_REQUEST['year']; $specify_date = true; } if (isset($_POST['fields'])) { $fields = $_POST['fields']; $specify_date = $_POST['specify_date']; }