getPermission(); $result['no_visible_elements'] = 'FALSE'; $result['username'] = $_SESSION['user']; global $SITEBASE; require($SITEBASE . '/inc/sgroup_list.php'); $result= array_merge($result, sgroup_list()); return $result; header("Cache-Control: max-age=1"); /*if (Helpers::check_if_game_client()) { header("Location: ".$INGAME_WEBPATH."?page=sgroup_list"); }else{ header("Location: ".$WEBPATH."?page=sgroup_list"); } exit; */ }else{ //ERROR: No access! $_SESSION['error_code'] = "403"; header("Cache-Control: max-age=1"); header("Location: index.php?page=error"); throw new SystemExit(); } }else{ //ERROR: not logged in! header("Cache-Control: max-age=1"); header("Location: index.php"); throw new SystemExit(); } }