Beispiel #1
0
//Config File
require_once dirname(__FILE__) . '/../../../config.inc';
session_write_close();
//Profiles enabled
$profiles = empty($_POST['profiles']) ? array() : array_flip(explode(',', $_POST['profiles']));
//System ID
$system_id = POST('system_id');
ossim_valid($system_id, OSS_DIGIT, OSS_LETTER, '-', 'illegal:' . _('System ID'));
$error_msg = NULL;
if (ossim_error()) {
    $error_msg = _('System ID not found. Information not available');
    echo ossim_error($error_msg);
    exit;
}
try {
    $ha_node_type = Av_center::get_ha_node_type($system_id);
    //Configuration options are not displayed when HA is enabled and node is a passive node
    $show_conf_links = $ha_node_type == 'down' ? FALSE : TRUE;
} catch (\Exception $e) {
    $show_conf_links = FALSE;
}
?>

<div id='t_home'>

    <div id='t_menu'>       
        <?php 
if ($show_conf_links == TRUE) {
    ?>
            <a href='#' id='ld_su'><?php 
    echo _('Software Updates');