<?php // +-------------------------------------------------+ // © 2002-2011 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: cms_section_delete.inc.php,v 1.1 2015-03-10 17:12:25 arenou Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) { die("no access"); } require_once $class_path . "/cms/cms_section.class.php"; require_once $class_path . "/cms/cms_editorial_tree.class.php"; if (!$cms_editorial_form_obj_id) { return false; } else { $section = new cms_section($cms_editorial_form_obj_id); $section->delete(); } print cms_editorial_tree::get_listing();
require_once $class_path . "/cms/cms_articles.class.php"; require_once $class_path . "/cms/cms_section.class.php"; require_once $class_path . "/cms/cms_article.class.php"; require_once $class_path . "/cms/cms_logo.class.php"; require_once $class_path . "/cms/cms_build.class.php"; require_once $class_path . "/cms/cms_pages.class.php"; require_once $class_path . "/cms/cms_editorial_parametres_perso.class.php"; switch ($categ) { case 'list_sections': // header('Content-type: application/json;charset=utf-8'); $sections = new cms_editorial_tree(); print $sections->get_json_list(); break; case 'update_section': header('Content-type: text/html;charset=' . $charset); $sections = new cms_editorial_tree(); $result = $sections->update_children($new_children, $num_parent); print $result; break; case "get_tree": header('Content-type: text/html;charset=' . $charset); print cms_editorial_tree::get_tree(); break; case "get_infos": header('Content-type: text/html;charset=' . $charset); switch ($type) { case "section": $section = new cms_section($id); print $section->get_ajax_form("cms_section_edit", "cms_section_edit"); break; case "article":