user page done!!!

This commit is contained in:
ui0ppk 2023-02-05 17:43:11 +02:00
parent 8b6aa662c5
commit 98e4e6eb1d
3 changed files with 52 additions and 4 deletions

BIN
game/.rnd

Binary file not shown.

View File

@ -6,15 +6,22 @@ require_once '../core/classes/user.php';
header('content-type:application/json');
$user = new User($con, $_SESSION['user']);
function sign($script, $key) {
$signature = openssl_pkey_new();
$signature = "";
openssl_sign($script, $signature, $key, OPENSSL_ALGO_SHA1);
return base64_encode($signature);
}
/*
$joinUser = [
"id" => $_SESSION['user'],
"username" => $user->getUsername(),
"mship" => "None"
];*/
$joinUser = [
"id" => rand(1,5),
"username" => "Grubloxxer-".getrandmax(),
"mship" => "None"
];
$place = [

View File

@ -33,9 +33,6 @@ $getitstarted->header();
</head>
<title><?php echo htmlspecialchars($requestUser["username"]); ?> | <?php echo $sitename; ?></title>
<body>
<main class="container" style="width: 100%;">
</main>
<main class="container text-white" style="width: 100%;">
<br>
<br>
@ -68,6 +65,50 @@ $getitstarted->header();
</ul>
</div>
</div>
<h3 class="mt-3">About</h3>
<div class="card shadow-sm">
<div class="card-body">
<p>Hello i am new to roblo, dfdsdfsddfsdd, Hello i am new to roblo, dfdsdfsddfsdd, Hello i am new to roblo, dfdsdfsddfsdd, </p>
<hr>
<a href="/report?id=<?php echo $id; ?>" class="text-danger float-end text-decoration-none">Report Abuse</a>
</div>
</div>
<h3 class="mt-3">Currently wearing</h3>
<div class="card shadow-sm float-start w-50 border-end-0 rounded-end-0 mb-4" style="height: 350px">
<div class="card-body mx-auto">
<img src="/assets/renders/user/thumbnail?userId=1" height=350>
<a class="btn btn-light position-absolute top-0 end-0 mt-2 me-2">3D</a>
</div>
</div>
<div class="card shadow-sm float-end w-50 border-start-0 rounded-start-0 bg-primary mb-4" style="height: 350px">
<div class="card-body">
<div class="row row-cols-1 row-cols-md-4 g-4 mx-auto">
<a href="/item?id=" class="card shadow-sm bg-light me-3" style="height: 136px; width: 136px;"></a>
</div>
</div>
</div>
<div class="card shadow-sm">
<div class="card-body mx-auto">
<div class="card-group">
<div class="text-center float-start ms-5 me-5">
<h5>Join Date</h5>
<h5 class="text-muted"><?php echo htmlspecialchars($requestUser["date"]); ?></h5>
</div>
<div class="text-center ms-5 me-5">
<h5>Place Visits</h5>
<h5 class="text-muted">0</h5>
</div>
<div class="text-center float-end ms-5 me-5">
<h5>Forum posts</h5>
<h5 class="text-muted">0</h5>
</div>
</div>
</div>
</main>
</body>