Beispiel #1
0
}
$tpl->assign('tool_refresh_list', $refresh_rates);
$tpl->assign('tool_refresh_rate', $current_refresh_rate);
$tpl->assign('tool_domain_list', $nel_user['access']['domains']);
$tpl->assign('tool_domain_selected', $view_domain_id);
$tpl->assign('tool_shard_list', $nel_user['access']['shards']);
$tpl->assign('tool_shard_selected', $view_shard_id);
$tool_shard_filters = tool_main_get_shard_ids($view_shard_id);
$tpl->assign('tool_shard_filters', $tool_shard_filters);
if ($view_domain_id) {
    $tool_as_error = null;
    $AS_Name = tool_main_get_domain_name($view_domain_id);
    $AS_Host = tool_main_get_domain_host($view_domain_id);
    $AS_Port = tool_main_get_domain_port($view_domain_id);
    $AS_ShardName = tool_main_get_shard_name($view_shard_id);
    $AS_InternalName = tool_main_get_shard_as_id($view_shard_id);
    $AS_RRDPath = tool_main_get_domain_rrd_path($view_domain_id);
    if ($AS_RRDPath != "") {
        // lets make sure there is a trailing /
        if (substr($AS_RRDPath, -1) != '/') {
            $AS_RRDPath .= '/';
        }
        $tpl->assign('tool_page_title', 'Graphs - ' . $AS_Name . ($AS_ShardName != '' ? ' / ' . $AS_ShardName : ''));
        switch ($NELTOOL['GET_VARS']['toolmode']) {
            case 'ccu':
                /*
                 * ###################################################################################################
                 *  CCU Pages
                 * ###################################################################################################
                 */
                $tpl->assign('tool_frame_list', $tool_lowres_frames);
Beispiel #2
0
            // restart information
            $tool_restart_info = tool_main_get_restart_sequence_by_id($AS_ShardRestart);
            $tpl->assign('tool_restart_info', $tool_restart_info);
        }
        $tpl->assign('tool_has_lock', true);
    } else {
        $tpl->assign('tool_no_lock', true);
        $tpl->assign('tool_no_annotation', true);
    }
}
if (tool_admin_applications_check('tool_main_lock_shard')) {
    $tpl->assign('restriction_tool_main_lock_shard', true);
}
if (tool_admin_applications_check('tool_main_lock_domain')) {
    $tpl->assign('restriction_tool_main_lock_domain', true);
} elseif (!tool_admin_applications_check('tool_main_lock_domain') && tool_admin_applications_check('tool_main_lock_shard') && tool_main_get_shard_as_id($view_shard_id) == "*") {
    // you have shard lock access
    // but you don't have domain access
    // and you are viewing the * shard
    // locking the shard * will lock the domain
    // so you must not be able to lock this shard
    $tpl->assign('tool_cant_lock', true);
}
$tpl->assign('tool_lock_info', $tool_lock_info);
$tpl->assign('tool_annotation_info', $tool_annotation_info);
if (tool_admin_applications_check('tool_notes')) {
    $tool_note_list = tool_notes_get_list($nel_user['user_id'], 1);
    if (sizeof($tool_note_list)) {
        $tpl->assign('restriction_tool_notes', true);
        $tpl->assign('tool_note_list', $tool_note_list);
    }