Changeset 6739
- Timestamp:
- 10/06/08 16:38:32 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/include/monitoring/status/status-ndo/host.php
r6688 r6739 26 26 27 27 $allActions = false; 28 // Get list of actions allowed for user 28 29 /* 30 * Get list of actions allowed for user 31 */ 29 32 if(count($GroupListofUser) > 0 && isUserAdmin($pearDB) == 1) { 30 33 $authorized_actions = array(); 31 34 $authorized_actions = getActionsACLList($GroupListofUser); 32 } 33 else { 35 } else { 34 36 // if user is admin, or without ACL, he cans perform all actions 35 37 $allActions = true; … … 49 51 50 52 !isset($_GET["num"]) ? $num = 0 : $num = $_GET["num"]; 51 // !isset($_GET["limit"]) ? $limit = 0 : $limit = $_GET["limit"];52 53 !isset($_GET["sort_type"]) ? $sort_type = "host_name" : $sort_type = $_GET["sort_type"]; 53 54 54 55 # start quickSearch form 55 56 include_once("./include/common/quickSearch.php"); 56 # end quickSearch form57 58 57 59 58 $tab_class = array("0" => "list_one", "1" => "list_two"); 60 59 $rows = 10; 61 62 //include("./include/common/checkPagination.php");63 60 64 61 include_once("makeJS_host.php"); 65 62 66 63 67 # Smarty template Init 64 /* 65 * Smarty template Init 66 */ 68 67 $tpl = new Smarty(); 69 68 $tpl = initSmartyTpl($path, $tpl, "/templates/"); … … 80 79 $tpl->assign("mon_duration", _("Duration")); 81 80 $tpl->assign("mon_status_information", _("Status information")); 82 83 81 84 82 $form = new HTML_QuickForm('select_form', 'GET', "?p=".$p); … … 103 101 $action_list[] = _("More actions..."); 104 102 // Showing actions allowed for current user 105 if (isset($authorized_actions) && $allActions == false){103 if (isset($authorized_actions) && $allActions == false){ 106 104 foreach($authorized_actions as $action_name) { 107 105 if($action_name == "host_acknowledgement" || $allActions == true) $action_list[72] = _("Hosts : Acknowledge");
