code fixes and webcontextmanager redirect
This commit is contained in:
parent
372d802ada
commit
283237ade3
|
|
@ -1,8 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Alphaland\Web\WebContextManager;
|
||||||
|
|
||||||
if(!isLoggedIn())
|
if(!isLoggedIn())
|
||||||
{
|
{
|
||||||
redirect("../login?referral=" . "https://www.alphaland.cc/Studio/Places");
|
WebContextManager::Redirect("../login?referral=" . "https://www.alphaland.cc/Studio/Places");
|
||||||
}
|
}
|
||||||
|
|
||||||
$games_html = "";
|
$games_html = "";
|
||||||
|
|
@ -10,15 +12,17 @@ $games = getAllGames($user->id)->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
foreach ($games as $game)
|
foreach ($games as $game)
|
||||||
{
|
{
|
||||||
$placethumbnail = handleGameThumb($game[id]);
|
$placeid = $game['id'];
|
||||||
|
$placename = $game['Name'];
|
||||||
|
$placethumbnail = handleGameThumb($game['id']);
|
||||||
$games_html .= <<<EOT
|
$games_html .= <<<EOT
|
||||||
<li>
|
<li>
|
||||||
<div class="studio-place-card text-center" style="cursor: pointer;" onclick="openGame({$game[id]})">
|
<div class="studio-place-card text-center" style="cursor: pointer;" onclick="openGame({$placeid})">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<div class="studio-place-card-img">
|
<div class="studio-place-card-img">
|
||||||
<img class="img-fluid" src="{$placethumbnail}">
|
<img class="img-fluid" src="{$placethumbnail}">
|
||||||
</div>
|
</div>
|
||||||
<p class="no-overflow">{$game[Name]}</p>
|
<p class="no-overflow">{$placename}</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue