$formInfo = $gContent->mInfo; $formInfo['edit'] = !empty($gContent->mInfo['data']) ? $gContent->mInfo['data'] : ''; } $cat_type = BITPAGE_CONTENT_TYPE_GUID; if (isset($_REQUEST["preview"])) { // get files from all packages that process this data further foreach ($gBitSystem->getPackageIntegrationFiles('form_processor_inc.php', TRUE) as $package => $file) { if ($gBitSystem->isPackageActive($package)) { include_once $file; } } $gBitSmarty->assign('preview', 1); $gBitSmarty->assign('title', $_REQUEST["title"]); $parsed = $gContent->parseData($formInfo['edit'], !empty($_REQUEST['format_guid']) ? $_REQUEST['format_guid'] : (isset($gContent->mInfo['format_guid']) ? $gContent->mInfo['format_guid'] : 'tikiwiki')); $gBitSmarty->assign_by_ref('parsed', $parsed); $gContent->invokeServices('content_preview_function'); } else { $gContent->invokeServices('content_edit_function'); } // Pro if (isset($_REQUEST["fCancel"])) { if (!empty($gContent->mContentId)) { header("Location: " . $gContent->getDisplayUrl()); } else { header("Location: " . CITIZEN_PKG_URL); } die; } elseif (isset($_REQUEST["fSaveCitizen"])) { if ($gContent->store($_REQUEST)) { header("Location: " . $gContent->getDisplayUrl()); } else {