Changeset 6739

Show
Ignore:
Timestamp:
10/06/08 16:38:32 (2 months ago)
Author:
jmathis
Message:

Apply standards

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/monitoring/status/status-ndo/host.php

    r6688 r6739  
    2626         
    2727        $allActions = false; 
    28         // Get list of actions allowed for user 
     28         
     29        /* 
     30         * Get list of actions allowed for user 
     31         */ 
    2932        if(count($GroupListofUser) > 0 && isUserAdmin($pearDB) == 1) { 
    3033        $authorized_actions = array(); 
    3134        $authorized_actions = getActionsACLList($GroupListofUser); 
    32         } 
    33         else { 
     35        } else { 
    3436                // if user is admin, or without ACL, he cans perform all actions 
    3537                $allActions = true; 
     
    4951 
    5052        !isset($_GET["num"]) ? $num = 0 : $num = $_GET["num"]; 
    51 //      !isset($_GET["limit"]) ? $limit = 0 : $limit = $_GET["limit"]; 
    5253        !isset($_GET["sort_type"]) ? $sort_type = "host_name" : $sort_type = $_GET["sort_type"]; 
    5354 
    5455        # start quickSearch form 
    5556        include_once("./include/common/quickSearch.php"); 
    56         # end quickSearch form 
    57  
    5857 
    5958        $tab_class = array("0" => "list_one", "1" => "list_two"); 
    6059        $rows = 10; 
    61          
    62         //include("./include/common/checkPagination.php"); 
    6360 
    6461        include_once("makeJS_host.php"); 
    6562 
    6663 
    67         # Smarty template Init 
     64        /* 
     65         * Smarty template Init 
     66         */ 
    6867        $tpl = new Smarty(); 
    6968        $tpl = initSmartyTpl($path, $tpl, "/templates/"); 
     
    8079        $tpl->assign("mon_duration", _("Duration")); 
    8180        $tpl->assign("mon_status_information", _("Status information")); 
    82  
    8381 
    8482        $form = new HTML_QuickForm('select_form', 'GET', "?p=".$p); 
     
    103101        $action_list[]  =       _("More actions..."); 
    104102        // Showing actions allowed for current user 
    105         if(isset($authorized_actions) && $allActions == false){          
     103        if (isset($authorized_actions) && $allActions == false){                 
    106104                foreach($authorized_actions as $action_name) { 
    107105                        if($action_name == "host_acknowledgement" || $allActions == true) $action_list[72] = _("Hosts : Acknowledge");