added new thumbnail/headshot file (better for future), added dev mode (core/config.php)
This commit is contained in:
parent
f258b44314
commit
3a63938f53
|
|
@ -0,0 +1 @@
|
|||
<?php header('location: https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png'); ?>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<?php header('location: https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png'); ?>
|
||||
|
|
@ -1,8 +1,16 @@
|
|||
<?php
|
||||
error_reporting(0);
|
||||
// settingz
|
||||
$sitename = "Grublox";
|
||||
$version = 1.0;
|
||||
|
||||
$devmode = true;
|
||||
// enable this when the site should be in debug mode (like showing errors and things to fix)
|
||||
|
||||
if($devmode) {
|
||||
error_reporting(E_ALL);
|
||||
}
|
||||
|
||||
$maintainers = array("Mario1", "qzip", "nolanwhy");
|
||||
|
||||
$arraybackground = array('win7.png', 'win8.png', 'epic.png', 'yosemite.png', 'aurora.png', 'tiger.png', 'fish.png', 'baconbloxii.png');
|
||||
|
|
|
|||
30
home.php
30
home.php
|
|
@ -36,30 +36,30 @@ $getitstarted->header();
|
|||
<body>
|
||||
<main class="container text-white" style="width: 100%;">
|
||||
<br><br>
|
||||
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=190 height=190></img>
|
||||
<span class=" text-center" style="font-size: 2rem; margin-left: 6px;"><?php echo $himsg; ?>, <?php echo $user->getUsername(); ?>!</span>
|
||||
<img src="assets/renders/user/headshot?userId=<?php echo (int)htmlspecialchars($user->getID($con, $user->getUsername())); ?>" class="rounded-circle" width=190 height=190></img>
|
||||
<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>
|
||||
<h4 class=" card-title" style="margin-bottom: 15px;">Friends (2)</h4>
|
||||
<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()) { ?>
|
||||
<div class="card text-white border border-0" style="max-width: 130px;">
|
||||
<a href="user?id=1" style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<a href="user?id=<?php echo (int)htmlspecialchars($usr["id"]); ?>" style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<div class="card-body">
|
||||
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=100 height=100></img>
|
||||
<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>
|
||||
</div>
|
||||
<small class="text-center text-white">guy</small>
|
||||
<small class="text-center text-white"><?php echo htmlspecialchars($usr["username"]); ?></small>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="card text-white border border-0" style="max-width: 130px;">
|
||||
<a href="user?id=2" style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<div class="card-body">
|
||||
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=100 height=100></img>
|
||||
</div>
|
||||
<small class="text-center text-white">Buildersdasas</small>
|
||||
</a>
|
||||
</div>
|
||||
<?php }} ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
|
|||
2
user.php
2
user.php
|
|
@ -42,7 +42,7 @@ $getitstarted->header();
|
|||
<div class="card text-white border border-0" style="max-width: 130px;">
|
||||
<a style="text-decoration: none; text-align: center; margin-bottom: 9px;">
|
||||
<div class="card-body">
|
||||
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=100 height=100></img>
|
||||
<img src="assets/renders/user/headshot?userId=<?php echo (int)htmlspecialchars($requestUser["id"]); ?>" class="rounded-circle" width=100 height=100></img>
|
||||
</div>
|
||||
</a>
|
||||
</div><!-- end card -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue