<?php
include "db.php";
$dt = $_GET;
$playerdata = array(
"nickname"=>"Name",
"colorMain" => "Null",
"colorSecond" => "Null",
);
$error = array(
"errorText"=>"emty",
"isError" => false
);
$userData = array(
"PlayerData" => $playerdata,
"error" => $error
);
if (isset($dt[`type`]) == "logging"){
if (isset($dt[`login`]) && isset($dt[`password`])){
}
}else (isset($dt[`type`]) == "register"){
if (isset($dt[`login`]) && isset($dt[`password1`] && isset($dt[`password2`]) && isset($dt[`nickname`]))){
}
}
echo json_encode($userData, JSON_UNESCAPED_UNICODE);
?>