Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 381 → Rev 384

/_taios.php
278,6 → 278,24
return false;
}
function checkChallengeStatus($challengeID, $previous, $next)
{
$currentChallengeID = $this->getLoggedInUser()->challengeID;
if (!$this->isLoggedIn())
{
$this->redirect('index.php');
}
else if ($currentChallengeID > $challengeID)
{
$this->redirect($next . '.php');
}
else if ($currentChallengeID < $challengeID)
{
$this->redirect($previous . '.php');
}
}
function checkLoggedIn()
{
if (!$this->isLoggedIn())
/challenge/index.php
0,0 → 1,15
<?php
 
require '../_taios.php';
 
$page = new Taios_Page('Tim32 Challenge', '../');
$page->drawHeader();
$page->drawMiddle();
 
write('<p class="bold">Take the Tim32 challenge here!</p>');
write('<br /><br /><a href="01.php"><h2 style="text-align: center">Enter!</h2></a>');
 
$page->drawFooter();
 
?>