hasPriv("admin") && !$_SESSION['current']->isMaintainer($oNote->iVersionId) && !$_SESSION['current']->isSuperMaintainer($oNote->iAppId)) util_show_error_page_and_exit("Insufficient Privileges!"); if(!empty($aClean['sSub'])) { $oNote->GetOutputEditorValues(); /* retrieve the updated values */ if ($aClean['sSub'] == 'Delete') { $oNote->delete(); } else if ($aClean['sSub'] == 'Update') { $oNote->update(); } util_redirect_and_exit(apidb_fullurl("appview.php?iVersionId={$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?iVersionId=".$oNote->iVersionId); } apidb_footer(); ?>