/** * Perform various section editing commands * * @return bool true if $section should be saved * */ static function SectionEdit($cmd, &$section, $section_num, $title, $file_stats) { global $langmessage; switch ($cmd) { case 'preview': self::PreviewSection($section, $section_num, $title, $file_stats); return false; case 'include_dialog': self::IncludeDialog($section); return false; case 'inlineedit': includeFile('tool/ajax.php'); gpAjax::InlineEdit($section); die; case 'save': return gp_edit::SectionFromPost($section, $section_num, $title, $file_stats); } message($langmessage['OOPS'] . '(Uknown Command)'); return false; }