fobe-web/html_api/RoleSets/PrivilegedSetUserRoleSetRan...

20 lines
443 B
PHP

<?php
RCCHeaderEnvironment(); //we dont want people to change ranks, restrict this to rcc
/*
Alphaland 2021
*/
//headers
header("Access-Control-Allow-Origin: https://www.alphaland.cc");
header("access-control-allow-credentials: true");
header('Content-Type: application/json');
//get params
$placeid = (int)$_GET['placeId'];
$userid = (int)$_GET['userId'];
$rank = (int)$_GET['newRank'];
updateBuildServerRank($placeid, $userid, $rank);