Ejemplo n.º 1
0
        nt_auth_set_session_var('view_domain_id', $view_domain_id);
        $view_shard_id = null;
        nt_auth_unset_session_var('view_shard_id');
    }
}
if (isset($NELTOOL['GET_VARS']['shard'])) {
    $view_shard_id = $NELTOOL['GET_VARS']['shard'];
    nt_auth_set_session_var('view_shard_id', $view_shard_id);
}
if (isset($NELTOOL['GET_VARS']['refdata'])) {
    $tmp_data = unserialize(base64_decode($NELTOOL['GET_VARS']['refdata']));
    if (is_array($tmp_data)) {
        $NELTOOL['POST_VARS'] = $tmp_data;
    }
}
$current_refresh_rate = nt_auth_get_session_var('current_refresh_rate');
if (isset($_POST['services_refresh'])) {
    if ($current_refresh_rate != $_POST['services_refresh']) {
        $current_refresh_rate = $_POST['services_refresh'];
        nt_auth_set_session_var('current_refresh_rate', $current_refresh_rate);
    }
}
if ($current_refresh_rate == null) {
    $current_refresh_rate = 0;
} elseif ($current_refresh_rate > 0) {
    $tpl->assign('nel_tool_refresh', '<meta http-equiv=refresh content="' . $current_refresh_rate . '">');
}
$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);
Ejemplo n.º 2
0
// SoniX: En gros, tu récupères les info dans la table variables, et tu vire les 3 premier morceaux (par ex, *.*.AIS.*.NamedEntityName deviens *.NamedEntityName).
// SoniX: Par contre, c'est a toi de faire le dispatch sur chaque AIS si besoin.
// YoGiN: hum, fun fun fun :D
// YoGiN: oki merci beaucoup, je vais voir ca :)
// SoniX: j'ai tester sur linuxshard8, d'jon mark a réactivé un morceau d'époside 2 dessus avec 1 variable
// YoGiN: d'accord
require_once 'common.php';
require_once 'functions_tool_main.php';
require_once 'functions_tool_event_entities.php';
if (!tool_admin_applications_check('tool_event_entities')) {
    nt_common_redirect('index.php');
}
nt_common_add_debug('-- Starting on \'tool_event_entities.php\'');
$tpl->assign('tool_title', "Event Entities");
$view_domain_id = nt_auth_get_session_var('view_domain_id');
$view_shard_id = nt_auth_get_session_var('view_shard_id');
if (!$view_domain_id) {
    $view_domain_id = $nel_user['group_default_domain_id'];
    $view_shard_id = $nel_user['group_default_shard_id'];
    nt_auth_set_session_var('view_domain_id', $view_domain_id);
    nt_auth_set_session_var('view_shard_id', $view_shard_id);
}
if (isset($NELTOOL['GET_VARS']['domain'])) {
    if ($view_domain_id != $NELTOOL['GET_VARS']['domain']) {
        $view_domain_id = $NELTOOL['GET_VARS']['domain'];
        nt_auth_set_session_var('view_domain_id', $view_domain_id);
        $view_shard_id = null;
        nt_auth_unset_session_var('view_shard_id');
    }
}
if (isset($NELTOOL['GET_VARS']['shard'])) {