fobe-web/html_api/user/avatar/settings.php

26 lines
545 B
PHP

<?php
/*
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
$userid = $user->id;
$angleRight = (bool)userInfo($userid)->headshotAngleRight;
$angleLeft = (bool)userInfo($userid)->headshotAngleLeft;
$angleCenter = !$angleRight && !$angleLeft;
$headshotStyle = array(
"angleCenter" => $angleCenter,
"angleRight" => $angleRight,
"angleLeft" => $angleLeft
);
die(json_encode($headshotStyle));