break; /** * Return a list of users. Customers are not shown any users. The * type of the current user decides which users are shown to him. * See get_arr_watchable_users. */ /** * Return a list of users. Customers are not shown any users. The * type of the current user decides which users are shown to him. * See get_arr_watchable_users. */ case 'reload_usr': if (isset($kga['customer'])) { $arr_usr = array(); } else { $arr_usr = get_arr_watchable_users($kga['usr']['usr_ID']); } if (count($arr_usr) > 0) { $tpl->assign('arr_usr', $arr_usr); } else { $tpl->assign('arr_usr', 0); } $tpl->display("../lists/usr.tpl"); break; /** * Return a list of customers. A customer can only see himself. */ /** * Return a list of customers. A customer can only see himself. */ case 'reload_knd':
$tpl->assign('arr_evt', $arr_evt); } else { $tpl->assign('arr_evt', '0'); } $tpl->assign('evt_display', $tpl->fetch("evt.tpl")); $tpl->assign('selected_evt_filter', -2); $tpl->assign('curr_user', $kga['usr']['usr_name']); if ($kga['usr']['usr_sts'] == 0) { $tpl->assign('arr_grp', get_arr_grp(get_cookie('ap_ext_show_deleted_groups', 0))); } else { $tpl->assign('arr_grp', get_arr_grp_by_leader($kga['usr']['usr_ID'], get_cookie('ap_ext_show_deleted_groups', 0))); } if ($kga['usr']['usr_sts'] == 0) { $tpl->assign('arr_usr', get_arr_usr(get_cookie('ap_ext_show_deleted_users', 0))); } else { $tpl->assign('arr_usr', get_arr_watchable_users($kga['usr']['usr_ID'])); } $tpl->assign('showDeletedGroups', get_cookie('ap_ext_show_deleted_groups', 0)); $tpl->assign('showDeletedUsers', get_cookie('ap_ext_show_deleted_users', 0)); $tpl->assign('languages', langs()); $tpl->assign('timezones', timezoneList()); $admin['users'] = $tpl->fetch("users.tpl"); $admin['groups'] = $tpl->fetch("groups.tpl"); $admin['advanced'] = $tpl->fetch("advanced.tpl"); if ($kga['show_sensible_data']) { $admin['database'] = $tpl->fetch("database.tpl"); } else { $admin['database'] = "You don't have permission to see this information ..."; } $tpl->assign('admin', $admin); $tpl->display('main.tpl');