noalyss Version-9
ajax_display_submenu.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19
20// Copyright 2015 Author Dany De Bontridder danydb@aevalys.eu
21/**
22 * @file
23 * @brief call from ajax : display submenu
24 * Security : only user with the menu CFGPRO
25 * display the submenu of a menu or a module
26 * It expects 2 parameters = p_profile (profile.p_id) and the dep (menu_ref.me_code)
27 */
28// require_once '.php';
29if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
30
31// Security
32if ( $g_user->check_module('CFGPRO') == 0 ) die();
33
35
36ob_start();
37try
38{
39 $module=$http->get("dep");
40 $p_level=$http->get("p_level", "number",0);
41 $p_id=$http->get('p_profile',"number");
42
43}
44catch (Exception $exc)
45{
46 error_log($exc->getTraceAsString());
47 return;
48}
49
50$p_level++;
53$profile->display_module_menu($module,$p_level);
54
55?>
global $g_user
if no group available , then stop
manage the http input (get , post, request) and extract from an array
Manage the menu of a profile.
foreach(array('magic_quotes_gpc', 'magic_quotes_runtime') as $a) $module
Definition: install.php:410