function InlineEdit() { $title = gp_edit::CleanTitle($_REQUEST['file']); if (empty($title)) { echo 'false'; return false; } $data = array(); $data['type'] = 'text'; $data['content'] = ''; $file = $this->folder . '/' . $title . '.php'; $content = ''; if (file_exists($file)) { ob_start(); include $file; $data['content'] = ob_get_clean(); } includeFile('tool/ajax.php'); gpAjax::InlineEdit($data); }
/** * Load the inline editor for a theme image * */ function InlineEdit() { $section = array(); $section['type'] = 'image'; includeFile('tool/ajax.php'); gpAjax::InlineEdit($section); die; }
/** * Edit a post with inline editing * */ function InlineEdit() { $post_index = (int) $_REQUEST['id']; $content = $this->GetPostContent($post_index); if (!$content) { echo 'false'; return false; } $content += array('type' => 'text'); includeFile('tool/ajax.php'); gpAjax::InlineEdit($content); }
/** * 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; }
function InlineEdit() { $section = $_REQUEST['section']; if (!is_numeric($section) || !isset($this->file_sections[$section])) { echo 'false'; return false; } includeFile('tool/ajax.php'); gpAjax::InlineEdit($this->file_sections[$section]); }
/** * Edit a post with inline editing * */ function InlineEdit() { $content = $this->GetPostContent($this->post_id); if (!$content) { echo 'false'; return false; } $content += array('type' => 'text'); includeFile('tool/ajax.php'); gpAjax::InlineEdit($content); }
/** * Edit a post with inline editing * */ function InlineEdit() { if (!$this->post) { echo 'false'; return false; } $this->post += array('type' => 'text'); includeFile('tool/ajax.php'); gpAjax::InlineEdit($this->post); }