break; case 'editelement': editElement($cid[0], $option); break; case 'newelement': editElement(0, $option); break; case 'saveelement': case 'applyelement': saveElement($task, $option); break; case 'cancelelement': cancelElement($option); break; case 'deleteelement': deleteElement($cid, $option); break; ///// menu tools ///// menu tools case 'menu_creator': menu_creator($option); break; case 'menu_remover': menu_remover($option); break; case 'menu_save': menu_save($option); break; case 'menu_delete': menu_delete($cid, $option); break;
<?php require 'config/config.php'; require 'model/functions.fn.php'; if (isset($_POST)) { if (isset($_POST['deleting'])) { deleteElement($db, $_POST['deleting']); header('Location: delete.php'); } } $objects = selectSharedObjects($db); require 'template/_header.php'; require 'template/sharedobjects.php'; require 'template/_footer.php';