* See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once JApplicationHelper::getPath('admin_html'); // get parameters from the URL or submitted form $scope = JRequest::getCmd('scope'); $cid = JRequest::getVar('cid', array(0), '', 'array'); JArrayHelper::toInteger($cid, array(0)); $task = JRequest::getCmd('task'); switch ($task) { case 'add': editSection(false); break; case 'edit': editSection(true); break; case 'go2menu': case 'go2menuitem': case 'save': case 'apply': saveSection($option, $scope, $task); break; case 'remove': removeSections($cid, $scope, $option); break; case 'copyselect': copySectionSelect($option, $cid, $scope); break; case 'copysave': copySectionSave($cid, $scope);
$action = false; if (isset($_REQUEST['action'])) { $action = $_REQUEST['action']; } if ($droits == 'maitre' || $droits == 'moderateur') { if ($action == 'ajoutSection') { $reponse = ajoutSection(); } else { if ($action == 'supprSection') { $reponse = supprSection(); } else { if ($action == 'getSection') { $reponse = getSection(); } else { if ($action == 'editSection') { $reponse = editSection(); } else { if ($action == 'ajoutPost') { $reponse = ajoutPost(); } else { if ($action == 'ajoutFil') { $reponse = ajoutFil(); } else { if ($action == 'editPost') { $reponse = editerPost(); } else { if ($action == 'getPost') { $reponse = getPost(); } else { if ($action == 'listeMembres') { $reponse = listeMembres($droits);
*/ /** ensure this file is being included by a parent file */ defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); require_once $mainframe->getPath('admin_html'); // get parameters from the URL or submitted form $scope = mosGetParam($_REQUEST, 'scope', ''); $cid = mosGetParam($_REQUEST, 'cid', array(0)); if (!is_array($cid)) { $cid = array(0); } switch ($task) { case "new": editSection(0, $scope, $option); break; case "edit": editSection($cid[0], '', $option); break; case "save": saveSection($option, $scope); break; case "remove": removeSections($cid, $scope, $option); break; case "copyselect": copySectionSelect($option, $cid, $section); break; case "copysave": copySectionSave($option, $cid, $section); break; case "publish": publishSections($scope, $cid, 1, $option);
defined('_VALID_MOS') or die('Restricted access'); require_once $mainframe->getPath('admin_html'); define('COM_IMAGE_BASE', $mosConfig_absolute_path . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'stories'); // get parameters from the URL or submitted form $scope = stripslashes(mosGetParam($_REQUEST, 'scope', '')); $section = stripslashes(mosGetParam($_REQUEST, 'scope', '')); $cid = josGetArrayInts('cid'); switch ($task) { case 'new': editSection(0, $scope, $option); break; case 'edit': editSection(intval($cid[0]), '', $option); break; case 'editA': editSection($id, '', $option); break; case 'go2menu': case 'go2menuitem': case 'menulink': case 'save': case 'apply': saveSection($option, $scope, $task); break; case 'remove': removeSections($cid, $scope, $option); break; case 'copyselect': copySectionSelect($option, $cid, $section); break; case 'copysave':
* Date Modified : */ require_once $_SERVER['DOCUMENT_ROOT'] . '/LibraryManagement/Classes/Entity/Account.php'; redirectPageWithoutSession(); require_once $_SERVER['DOCUMENT_ROOT'] . '/LibraryManagement/Classes/Global/PreDefinedConstants.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/LibraryManagement/Classes/Global/CommonFunctions.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/LibraryManagement/Classes/DatabaseLogic/DBConnection.php'; $actionType = ACTION_ADD; // Default Action if (isset($_GET[ACTION_TYPE]) && $_GET[ACTION_TYPE] != NULL) { switch ($_GET[ACTION_TYPE]) { case ACTION_EDIT: $actionType = ACTION_EDIT; checkNullwithRedirect(ADD_SECTION_PAGE, $_GET[SECTION_ID]); checkNullwithRedirect(ADD_SECTION_PAGE, $_GET[SECTION_NAME]); editSection(); exit; break; case ACTION_DEL: $actionType = ACTION_DEL; checkNullwithRedirect(ADD_SECTION_PAGE, $_GET[SECTION_ID]); delSection(); exit; break; case ACTION_ADD: default: break; } } checkNullwithRedirect(ADD_SECTION_PAGE, $_GET[SECTION_NAME]); addSection();