fobe-web/html_api/RoleSets/GetRoleSetForUser.php

28 lines
544 B
PHP

<?php
/*
Alphaland 2021
*/
//headers
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
header("access-control-allow-credentials: true");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
header("Expires: -1");
header("Last-Modified: " . gmdate("D, d M Y H:i:s T") . " GMT");
header('Content-Type: application/json');
//get params
$placeid = $_GET['placeId'];
$userid = $_GET['userId'];
$userInfo = array(
"data" => array(
"Rank" => getBuildServerRank($placeid, $userid),
)
);
die(json_encode($userInfo));