Merge branch '138-toggle-free-look-with-hotkey' into 'main/atys-live'
[ryzomcore.git] / web / public_php / admin / tool_mfs.php
blobc352cbe278269880433f087e57d1ecf1ee22e6fe
1 <?php
3 require_once('common.php');
4 require_once('functions_tool_main.php');
5 require_once('functions_tool_mfs.php');
7 if (!tool_admin_applications_check('tool_mfs')) nt_common_redirect('index.php');
9 nt_common_add_debug('-- Starting on \'tool_mfs.php\'');
11 $tpl->assign('tool_title', "Mails & Forums");
13 $view_domain_id = nt_auth_get_session_var('view_domain_id');
14 $view_shard_id = nt_auth_get_session_var('view_shard_id');
16 if (isset($NELTOOL['GET_VARS']['domain']))
18 if ($view_domain_id != $NELTOOL['GET_VARS']['domain'])
20 $view_domain_id = $NELTOOL['GET_VARS']['domain'];
21 nt_auth_set_session_var('view_domain_id', $view_domain_id);
23 $view_shard_id = null;
24 nt_auth_unset_session_var('view_shard_id');
28 if (isset($NELTOOL['GET_VARS']['shard']))
30 $view_shard_id = $NELTOOL['GET_VARS']['shard'];
31 nt_auth_set_session_var('view_shard_id', $view_shard_id);
34 $tpl->assign('tool_domain_list', $nel_user['access']['domains']);
35 $tpl->assign('tool_domain_selected', $view_domain_id);
37 $tpl->assign('tool_shard_list', $nel_user['access']['shards']);
38 $tpl->assign('tool_shard_selected', $view_shard_id);
40 $tool_shard_filters = tool_main_get_shard_ids($view_shard_id);
41 $tpl->assign('tool_shard_filters', $tool_shard_filters);
43 $template_file = 'tool_mfs.tpl';
45 if ($view_domain_id && $view_shard_id)
47 $tpl->assign('tool_page_title', 'Mails & Forums');
49 $tpl->assign('tool_curl_output',tool_mfs_HTTPOpen("http://"));
54 $tpl->display($template_file);