sum shieeeet
This commit is contained in:
parent
2aa58cc97a
commit
61c86dda33
BIN
SlackCall.mp3
BIN
SlackCall.mp3
Binary file not shown.
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
session_start();
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/user.php';
|
||||
|
|
|
|||
Binary file not shown.
32
catalog.php
32
catalog.php
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
|
@ -44,7 +45,7 @@ if(isset($_GET["filter"])) {
|
|||
exit;
|
||||
}
|
||||
} else {
|
||||
$filter = null;
|
||||
$filter = NULL;
|
||||
}
|
||||
if(isset($_GET['p'])) {
|
||||
$page = $_GET['p'];
|
||||
|
|
@ -71,7 +72,7 @@ $getitstarted->header();
|
|||
<main class="container" style="width: 100%;">
|
||||
<br>
|
||||
<br>
|
||||
<form role="search" class="float-end" style="width: 45%;">
|
||||
<form role="search" class="float-end" class="w-75">
|
||||
<div class="input-group mb-3 shadow-sm">
|
||||
<input class="form-control rounded-end-0" type="search" placeholder="<?php if(is_array($random_search_array)) { echo htmlspecialchars($random_search_array[$random_search]); } else { echo "Search an item..."; }; ?>" name="search" aria-label="Search">
|
||||
<button id="search" type="submit" class="btn btn-primary rounded-start-0"><i class="bi bi-search"></i> Search</button>
|
||||
|
|
@ -119,22 +120,35 @@ $getitstarted->header();
|
|||
<br>
|
||||
<p class="text-white">Limited Items </p>
|
||||
<p>Items sold by people that are available for a limited time.</p>
|
||||
<div class="pt-2"></div>
|
||||
<!--<div class="pt-2"></div>
|
||||
<span class="badge bg-success">Limited <span class="badge bg-warning text-dark">U</span>
|
||||
</span>
|
||||
<br>
|
||||
<p class="text-white">Limited Unique Items</p>
|
||||
<p>A limited supply originally sold by <?php echo $sitename; ?>. Each unit is labeled with a serial number. Once sold out, you cannot buy them. </p>
|
||||
<p>A limited supply originally sold by <?php echo $sitename; ?>. Each unit is labeled with a serial number. Once sold out, you cannot buy them. </p>!-->
|
||||
</li>
|
||||
</ul>
|
||||
<div class="row row-cols-xl-6 row-cols-lg-4 row-cols-md-3 row-cols-sm-2 g-4" style="margin-left: 200px; margin-top: 1px;">
|
||||
<?php
|
||||
if ($filter == NULL) {
|
||||
$sql = "SELECT allStar FROM catalog";
|
||||
$q = $con->prepare(str_replace('allStar', 'COUNT(*)', $sql));
|
||||
$q->execute();
|
||||
$numberOfItems = $q->fetchColumn();
|
||||
|
||||
$numberOfItems = $q->fetchColumn();
|
||||
$q = $con->prepare(str_replace('allStar', '*', $sql));
|
||||
$q->execute();
|
||||
} else {
|
||||
$sql = "SELECT allStar FROM catalog WHERE type=:filter";
|
||||
$q = $con->prepare(str_replace('allStar', 'COUNT(*)', $sql));
|
||||
$q->bindParam(':filter', $filter);
|
||||
$q->execute();
|
||||
|
||||
$numberOfItems = $q->fetchColumn();
|
||||
$q = $con->prepare(str_replace('allStar', '*', $sql));
|
||||
$q->bindParam(':filter', $filter);
|
||||
$q->execute();
|
||||
}
|
||||
if ($numberOfItems >= 1) {
|
||||
$rows = array_slice($q->fetchAll(), $offset, $limit);
|
||||
foreach ($rows as $item) {
|
||||
|
|
@ -177,12 +191,14 @@ $getitstarted->header();
|
|||
echo "</div> <h4 class='text-muted text-center'><i class='bi bi-egg-fried' style='font-size: 6rem;'></i><br> Looks like there are no items in the catalog yet...</h4>";} ?>
|
||||
<br>
|
||||
</div>
|
||||
<?php
|
||||
$numberOfPages = ceil($numberOfItems / $limit);
|
||||
?>
|
||||
<?php if(is_array($random_search_array)) { ?>
|
||||
<div class="d-flex flex-row justify-content-center mb-3">
|
||||
<div class="d-flex flex-row justify-content-center mb-3">
|
||||
<ul class="pagination mt-3">
|
||||
<li class="page-item"><a class="page-link" href="?p=<?php if($page > 0) { echo $page; } else { echo 1; } ?>">Previous</a></li>
|
||||
<?php
|
||||
$numberOfPages = ceil($numberOfItems / $limit);
|
||||
for ($i=1; $i<=$numberOfPages; $i++) {
|
||||
if($page == $i){
|
||||
$class = 'active';
|
||||
|
|
@ -196,7 +212,7 @@ $getitstarted->header();
|
|||
}
|
||||
}
|
||||
?>
|
||||
<li class="page-item"><a class="page-link" href="?p=<?php if($page < $numberOfPages - 1) { echo $page + 2; } else { echo $numberOfPages; } ?>">Next</a></li>
|
||||
<li class="page-item"><a class="page-link" href="?p=<?php if($page < $numberOfPages) { echo $page + 1; } else { echo $numberOfPages; } ?>">Next</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"require": {
|
||||
"google/recaptcha": "^1.2"
|
||||
}
|
||||
}
|
||||
|
|
@ -41,7 +41,7 @@ class PartyStarter {
|
|||
// if admin
|
||||
if($query->fetch(PDO::FETCH_ASSOC)["admin"] >= 1) {
|
||||
$adminTab = ' <li class="nav-item nav-animated">
|
||||
<a class="nav-link text-dark" href="/admin"><i class="bi bi-hammer"></i> Admin</a>
|
||||
<a class="nav-link text-dark" href="/admin"><i class="bi bi-wrench-adjustable-circle"></i> Admin</a>
|
||||
</li>';
|
||||
} else {
|
||||
$adminTab = " ";
|
||||
|
|
@ -51,22 +51,22 @@ class PartyStarter {
|
|||
$user = new User($con, $_SESSION['user']);
|
||||
$money = $user->getMoney(false);
|
||||
|
||||
$time = time();
|
||||
if($user->getLastPaid() !== NULL) {
|
||||
$dateToCheck = (int)$user->getLastPaid()+86400;
|
||||
if($user->getLastPaid() >= $dateToCheck) {
|
||||
$q = $con->prepare("UPDATE users SET money=money+:price WHERE id=:id");
|
||||
$dateToCheck = $user->getLastPaid();
|
||||
$dateToCheck += 86400;
|
||||
if($time >= $dateToCheck) {
|
||||
$q = $con->prepare("UPDATE users SET lastPaid=:lastPaid, money=money+:price WHERE id=:id");
|
||||
$q->bindParam(':id',$_SESSION['user'],PDO::PARAM_INT);
|
||||
$q->bindParam(':price',$pay,PDO::PARAM_INT);
|
||||
$q->bindParam(':lastPaid',$time,PDO::PARAM_INT);
|
||||
$q->execute();
|
||||
}
|
||||
} else {
|
||||
$time = time();
|
||||
$q = $con->prepare("UPDATE users SET lastPaid=:date WHERE id=:id");
|
||||
$q->bindParam(':id',$_SESSION['user'],PDO::PARAM_INT);
|
||||
$time = time();
|
||||
$q->bindParam(':date',$time,PDO::PARAM_INT);
|
||||
$q->execute();
|
||||
|
||||
$q = $con->prepare("UPDATE users SET money=money+:price WHERE id=:id");
|
||||
$q->bindParam(':id',$_SESSION['user'],PDO::PARAM_INT);
|
||||
$q->bindParam(':price',$pay,PDO::PARAM_INT);
|
||||
|
|
@ -89,14 +89,19 @@ class PartyStarter {
|
|||
|
||||
// messy shit sorry mario1 fix it urself :trol:
|
||||
$rightside = '
|
||||
<li class="nav-item"><a class="nav-link text-dark" style="font-size: 1.1rem"><span class="grufont" style="font-size: 1.25rem">@ </span>'.$money.'</a></li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" style="font-size: 1.1rem"><span class="grufont" style="font-size: 1.25rem">@ </span>'.$money.'</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<button class="nav-link border-0 text-dark dropdown-toggle bg-transparent" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<img height=32 width=32 class="rounded-5" src="/assets/renders/user/headshot?userId='.(int)htmlspecialchars($_SESSION['user']).'">
|
||||
<img height=32 width=32 class="rounded-5 position-relative" src="/assets/renders/user/headshot?userId='.(int)htmlspecialchars($_SESSION['user']).'">
|
||||
<span class="position-absolute bottom-0 start-0 badge border border-light rounded-circle bg-danger p-2"><span class="visually-hidden">friend request</span></span>
|
||||
</img>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-lg-end anim-dropdown" style="z-index: -2;">
|
||||
<ul class="dropdown-menu dropdown-menu-lg-end anim-dropdown" style="z-index: 3;">
|
||||
<li><a class="nav-link ms-2" href="/user"><span class="bi bi-person-circle"></span> Profile</a></li>
|
||||
<li><a class="nav-link ms-2" href="/settings"><span class="bi bi-gear"></span> Settings</a></li>
|
||||
<li><a class="nav-link ms-2" href="/friends#pills-profile-tab"><span class="bi bi-gear"></span> Friend requests</a></li>
|
||||
<li><a class="nav-link ms-2" href="/logout"><span class="bi bi-box-arrow-right"></span> Logout</a></li>
|
||||
</ul>
|
||||
</li>';
|
||||
|
|
@ -135,7 +140,7 @@ class PartyStarter {
|
|||
</li>
|
||||
'.$adminTab.'
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
<ul class="navbar-nav">
|
||||
' . $rightside . '
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -81,7 +81,34 @@ class User {
|
|||
}
|
||||
|
||||
public function getLastPaid() {
|
||||
return $this->sqlData["lastPaid"];
|
||||
return $this->sqlData["lastPaid"];
|
||||
}
|
||||
|
||||
public function getFriends($friend = null) {
|
||||
if (isset($friend)) {
|
||||
$query = $this->con->prepare('SELECT * FROM friends WHERE user=:user, state="approved", friend=:friend');
|
||||
$query->bindParam(':user', $_SESSION['user']);
|
||||
$query->bindParam(':friend', $friend);
|
||||
$query->execute();
|
||||
$final = $query->fetchAll(PDO::FETCH_ASSOC);
|
||||
if(isset($final)) {
|
||||
return $final;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
} else {
|
||||
$query = $this->con->prepare('SELECT * FROM friends WHERE user=:user AND state="approved"');
|
||||
$query->bindParam(':user', $_SESSION['user']);
|
||||
$query->execute();
|
||||
$final = $query->fetchAll(PDO::FETCH_ASSOC);
|
||||
if(isset($final)) {
|
||||
return $final;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ error_reporting(0);
|
|||
// settingz
|
||||
|
||||
//daily pay aka mone
|
||||
$pay = 15;
|
||||
$pay = 25;
|
||||
|
||||
$sitename = "Grublox";
|
||||
$version = 1.1;
|
||||
|
|
@ -24,6 +24,7 @@ $AvailableGameservers = [
|
|||
"ip goes here",
|
||||
"ahh help!!"
|
||||
];
|
||||
// No ports? NO BITCHES
|
||||
|
||||
$gameSettings = [
|
||||
"privatekey" => "-----BEGIN RSA PRIVATE KEY-----
|
||||
|
|
@ -53,7 +54,7 @@ $donators = array('"very"broken ps3', "«John»");
|
|||
|
||||
$arraybackground = array('win7.png', 'win8.png', 'epic.png', 'yosemite.png', 'aurora.png', 'tiger.png', 'fish.png', 'baconbloxii.png', 'win81yellow.jpg');
|
||||
|
||||
$youtubefunnies = array('bitqf13QU7Q', 'Z_V6yKKIk5U', '2tHl6O5Sp8w', '-5WcDfKndxU', 'cwyTleTL06Y','Rr8XkF5TBLU','kQvlOulY9SI','vVdvTnhkTO8', 'D3GOh7FLDbA', '6utdxDQpoY8');
|
||||
$youtubefunnies = array('bitqf13QU7Q', 'Z_V6yKKIk5U', '2tHl6O5Sp8w', '-5WcDfKndxU', 'cwyTleTL06Y','Rr8XkF5TBLU','kQvlOulY9SI','vVdvTnhkTO8', 'D3GOh7FLDbA', '6utdxDQpoY8', '4i_ZPFptf5c');
|
||||
|
||||
if(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
|
||||
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
|
||||
|
|
|
|||
42
develop.php
42
develop.php
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html data-bs-theme="dark">
|
||||
<head>
|
||||
<?php
|
||||
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/user.php';
|
||||
if(isset($_SESSION['user'])) {
|
||||
$user = new User($con, $_SESSION['user']);
|
||||
$loggedIn = true;
|
||||
} else {
|
||||
$loggedIn = false;
|
||||
}
|
||||
$getitstarted = new PartyStarter;
|
||||
$getitstarted->header();
|
||||
|
||||
if(isset($_GET['p'])) {
|
||||
$page = $_GET['p'];
|
||||
} else {
|
||||
$page = 1;
|
||||
}
|
||||
$limit = 18;
|
||||
$page -= 1;
|
||||
$offset = $page * $limit;
|
||||
|
||||
?>
|
||||
</head>
|
||||
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||
<body>
|
||||
<main class="container">
|
||||
<br>
|
||||
<h2> <?php echo $pagename; ?> </h2>
|
||||
<br>
|
||||
|
||||
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
if (isset($_GET['client']) && $_GET['client'] == 2016 && $_GET['type'] == "player") {
|
||||
die(header("Location: /downloads/player-2016.zip"));
|
||||
}
|
||||
if (isset($_GET['client']) && $_GET['client'] == 2016 && $_GET['type'] == "studio") {
|
||||
die(header("Location: /downloads/studio-2016.zip"));
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
require_once 'core/classes.php';
|
||||
|
|
|
|||
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="dark">
|
||||
<head>
|
||||
<?php
|
||||
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/user.php';
|
||||
$user = new User($con, $_SESSION['user'] ?? 0);
|
||||
if(!$user->isLoggedIn()) {
|
||||
header('location: /login');
|
||||
exit;
|
||||
}
|
||||
|
||||
$getitstarted = new PartyStarter;
|
||||
$getitstarted->header();
|
||||
?>
|
||||
</head>
|
||||
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||
<body>
|
||||
<main class="container text-white" style="width: 100%;">
|
||||
<br>
|
||||
<h2>Friends</h2>
|
||||
<ul class="nav nav-pills mb-3 nav-fill" id="pills-tab" role="tablist">
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link active" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#pills-home" type="button" role="tab" aria-controls="pills-home" aria-selected="true">Friends</button>
|
||||
</li>
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link" id="pills-profile-tab" data-bs-toggle="pill" data-bs-target="#pills-profile" type="button" role="tab" aria-controls="pills-profile" aria-selected="false">Friend requests</button>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" id="pills-tabContent">
|
||||
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab" tabindex="0">...</div>
|
||||
<div class="tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab" tabindex="0">...</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
require_once '../core/config.php';
|
||||
require_once '../core/classes/user.php';
|
||||
|
|
|
|||
20
games.php
20
games.php
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
|
@ -41,7 +42,7 @@ $random_search = array_rand($random_search_array, 1);
|
|||
<br>
|
||||
<div class="d-flex flex-row justify-content-between mb-3">
|
||||
<h3 class="text-white">Games</h3>
|
||||
<form role="search" style="width: 45%;">
|
||||
<form role="search" class="w-75">
|
||||
<div class="input-group shadow-sm mt-1">
|
||||
<input class="form-control rounded-end-0" type="search" placeholder="<?php if(is_array($random_search_array)) { echo htmlspecialchars($random_search_array[$random_search]); } else { echo "Search a game..."; }; ?>" name="search" aria-label="Search">
|
||||
<button id="search" type="submit" class="btn btn-primary rounded-start-0"><i class="bi bi-search"></i> Search</button>
|
||||
|
|
@ -50,18 +51,15 @@ $random_search = array_rand($random_search_array, 1);
|
|||
<?php
|
||||
if($loggedIn) {
|
||||
echo '
|
||||
<div class="btn-group" role="group" aria-label="hihhihihhihifgdfogfiogdfjgiogdfhdjgiodfkl">
|
||||
<div class="dropdown mt-1">
|
||||
<button class="btn btn-secondary dropdown-toggle border-end-0 rounded-end-0" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Downloads
|
||||
<button class="btn btn-success dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="bi bi-download"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-lg-end anim-dropdown-2">
|
||||
<li><a class="dropdown-item" href="/download?client=2016&type=player">Download client <i class="bi bi-download"></i></a></li>
|
||||
<li><a class="dropdown-item" href="/download?client=2016&type=studio">Download studio <i class="bi bi-download"></i></a></li>
|
||||
<ul class="dropdown-menu dropdown-menu-lg-end anim-dropdown-2 bg-dark">
|
||||
<li><a class="dropdown-item" href="/download?client=2016&type=player">Client <small class="float-end">2016</small></a></li>
|
||||
<li><a class="dropdown-item" href="/download?client=2016&type=studio">Studio <small class="float-end">2016</small></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a href="/develop" class="btn btn-success text-decoration-none align-self-end shadow-sm">Develop <i class="bi bi-plus-lg"></i></a>
|
||||
</div>';
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
@ -120,7 +118,7 @@ $numberOfPages = ceil($numberOfGames / $limit);
|
|||
}
|
||||
}
|
||||
?>
|
||||
<li class="page-item"><a class="page-link" href="?p=<?php if($page < $numberOfPages) { echo $page + 2; } else { echo $numberOfPages; } ?>">Next</a></li>
|
||||
<li class="page-item"><a class="page-link" href="?p=<?php if($page < $numberOfPages) { echo $page + 1; } else { echo $numberOfPages; } ?>">Next</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
|
|||
40
home.php
40
home.php
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="dark">
|
||||
<head>
|
||||
<?php
|
||||
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/user.php';
|
||||
|
|
@ -13,6 +9,11 @@ if(!$user->isLoggedIn()) {
|
|||
header('location: /login');
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="dark">
|
||||
<head>
|
||||
<?php
|
||||
|
||||
$himsgs = [
|
||||
"Hello",
|
||||
|
|
@ -47,29 +48,28 @@ $getitstarted->header();
|
|||
<span class="text-center" style="font-size: 2rem; margin-left: 6px;"><?php echo $himsg; ?>, <?php echo htmlspecialchars($user->getUsername()); ?>!</span>
|
||||
<div style="margin-bottom: 50px;"></div>
|
||||
<div class="d-flex flex-row justify-content-between mb-3">
|
||||
<h4 class=" card-title">Friends (<?php $q=$con->prepare("SELECT count(*) FROM users");$q->execute();echo $q->fetchColumn(); ?>)</h4>
|
||||
<a href="/" class="btn btn-link text-decoration-none align-self-end">See all <i class="bi bi-caret-right"></i></a>
|
||||
<h4 class=" card-title">Friends (<?php $q=$con->prepare("SELECT count(*) FROM users");$q->execute(); $numberOfFriends = $q->fetchColumn(); echo $numberOfFriends; ?>)</h4>
|
||||
<a href="/friends" class="btn btn-link text-decoration-none align-self-end">See all <i class="bi bi-caret-right"></i></a>
|
||||
</div>
|
||||
<div class="card shadow-sm" style="height: 11.75rem;">
|
||||
<div class="card-group" style=" margin-left: 10px; margin-top: 10px;">
|
||||
<?php
|
||||
$sql = "SELECT allStar FROM users";
|
||||
$q = $con->prepare(str_replace('allStar', 'count(*)', $sql));
|
||||
$q->execute();
|
||||
$numberOfGames = $q->fetchColumn();
|
||||
$q = $con->prepare(str_replace('allStar', '*', $sql));
|
||||
$q->execute();
|
||||
if ($numberOfGames >= 1) {
|
||||
while ($usr = $q->fetch()) { ?>
|
||||
if ($numberOfFriends >= 1) {
|
||||
foreach ($user->getFriends() as $friend) {
|
||||
$frienduser = new User($con, $friend['friend']);
|
||||
?>
|
||||
<div class="card text-white border border-0" style="max-width: 130px;">
|
||||
<a href="user?id=<?php echo (int)htmlspecialchars($usr["id"]); ?>" style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<a href="user?id=<?php echo (int)htmlspecialchars($friend['friend']); ?>" style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<div class="card-body">
|
||||
<img src="assets/renders/user/headshot?userId=<?php echo (int)htmlspecialchars($usr["id"]); ?>" class="rounded-circle" width=100 height=100 alt="<?php echo htmlspecialchars($usr["username"]); ?>"></img>
|
||||
<img src="assets/renders/user/headshot?userId=<?php echo (int)htmlspecialchars($friend['friend']); ?>" class="rounded-circle" width=100 height=100 alt="<?php echo htmlspecialchars($frienduser->getUsername()); ?>"></img>
|
||||
</div>
|
||||
<small class="text-center text-white"><?php echo htmlspecialchars($usr["username"]); ?></small>
|
||||
<small class="text-center text-white"><?php echo htmlspecialchars($frienduser->getUsername()); ?></small>
|
||||
</a>
|
||||
</div>
|
||||
<?php }} ?>
|
||||
<?php }
|
||||
} else {
|
||||
echo "u have no friend wtf noob";
|
||||
} ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
@ -78,7 +78,7 @@ $getitstarted->header();
|
|||
<br>
|
||||
<div class="d-flex flex-row justify-content-between mb-3">
|
||||
<h4 class="card-title">Recently played</h4>
|
||||
<a href="/" class="btn btn-link text-decoration-none align-self-end">See all <i class="bi bi-caret-right"></i></a>
|
||||
<a href="/played" class="btn btn-link text-decoration-none align-self-end">See all <i class="bi bi-caret-right"></i></a>
|
||||
</div>
|
||||
<div class="row row-cols-2 row-cols-sm-3 row-cols-lg-4 row-cols-xl-6 g-4">
|
||||
<?php
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
require_once 'core/classes.php';
|
||||
|
||||
|
|
|
|||
1
item.php
1
item.php
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
require_once 'core/classes.php';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/User.php';
|
||||
|
|
@ -67,7 +68,7 @@ $thefunfact = json_decode($result);
|
|||
<input class="<?php if($passwordiswrong == true) { echo "form-control is-invalid"; } else {echo "form-control form-control-sm"; } ?>"
|
||||
type="password" placeholder="Your password (Minmum 8 characters)" id="inputSmall" name="pass">
|
||||
<?php if($passwordiswrong == true) {echo '<div class="invalid-feedback" bis_skin_checked="1">Password is incorrect.</div>'; } ?>
|
||||
<a href="/register" class="mt-4 float-start">Don't have an account? Register here!</a>
|
||||
<a href="/register" class="mt-4 float-start">Don't have an account? Register here!</a>
|
||||
<button type="submit" class="btn btn-secondary" style="margin-top: 15px; float: right;" name="submit">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
$_SESSION = array();
|
||||
unset($_SESSION);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
require_once 'core/classes.php';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/User.php';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
|
|
|||
16
user.php
16
user.php
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
ob_start();
|
||||
session_start();
|
||||
if (isset($_GET['3d'])) {
|
||||
if ($_GET['3d']) {
|
||||
header("content-type: video/mp4");
|
||||
|
|
@ -6,7 +8,10 @@ die(file_get_contents("assets/font/e.mp4"));
|
|||
}
|
||||
}
|
||||
|
||||
session_start();
|
||||
if (isset($_POST['addfriend'])) {
|
||||
echo "addingfdgdf";
|
||||
}
|
||||
|
||||
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/user.php';
|
||||
|
|
@ -48,7 +53,7 @@ $getitstarted->header();
|
|||
<div class="card-body">
|
||||
<img src="assets/renders/user/headshot?userId=<?php echo (int)htmlspecialchars($requestUser["id"]); ?>" class="border border-1 float-start me-3" width=125 height=125></img>
|
||||
<span class="fs-2"><?php echo htmlspecialchars($requestUser["username"]); ?><br>
|
||||
<span class="text-muted fs-5 float-start">"i love sex grublox"</span></span><br>
|
||||
<span class="text-muted fs-5 float-start">"i love sex grublox"</span></span><br><br>
|
||||
<div class="text-center float-start" style="width: 8rem;">
|
||||
<h5>Friends</h5>
|
||||
<h5 class="text-muted">0</h5>
|
||||
|
|
@ -57,7 +62,9 @@ $getitstarted->header();
|
|||
<h5>Tokens</h5>
|
||||
<h5 class="text-muted"><?php echo (int)htmlspecialchars($requestUser["money"]); ?></h5>
|
||||
</div>
|
||||
<a class="btn btn-primary float-end mt-4">Add friend</a>
|
||||
<form action="" method="post" onsubmit="return isValidForm()">
|
||||
<input type="submit" name="addfriend" class="btn btn-primary float-end mt-4" value="Add friend">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
|
@ -116,7 +123,8 @@ $getitstarted->header();
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-3" />
|
||||
</div>
|
||||
<div class="mb-3"></div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue