hasPriv("admin") && !$_SESSION['current']->isMaintainer($oNote->iVersionId) && !$_SESSION['current']->isSuperMaintainer($oNote->iAppId)) { util_show_error_page("Insufficient Privileges!"); exit; } if(!empty($aClean['sSub'])) { $oNote->GetOutputEditorValues(); /* retrieve the updated values */ if ($aClean['sSub'] == 'Delete') { $oNote->delete(); } else if ($aClean['sSub'] == 'Update') { $oNote->update(); } redirect(apidb_fullurl("appview.php?versionId={$oNote->iVersionId}")); } else /* display note */ { // show form apidb_header("Application Note"); /* if preview is set display the note for review */ if($aClean['sPreview']) { $oNote->GetOutputEditorValues(); /* retrieve the updated values */ $oNote->show(true); } echo "
\n"; /* display the editor for this note */ $oNote->OutputEditor(); echo '
'; echo ' ',"\n"; echo ' ',"\n"; echo '',"\n"; echo '
'; echo html_back_link(1,BASE."appview.php?versionId=".$oNote->iVersionId); } apidb_footer(); ?>