pandorafms/pandora_console/include/ajax/menu.ajax.php

28 lines
938 B
PHP
Raw Normal View History

<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2012 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation for version 2.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
$get_sec_pages = get_parameter('get_sec_pages');
include_once("include/functions_menu.php");
if ($get_sec_pages) {
$sec = get_parameter('sec');
$menu_hash = get_parameter('menu_hash');
$pages = menu_get_sec_pages($sec,$menu_hash);
echo json_encode($pages);
return;
}
?>