Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 383 → Rev 385

/challenge/01.php
0,0 → 1,14
<?php
 
require '../_taios.php';
 
$page = new Taios_Page('Tim32 Challenge - 01', '../');
$page->drawHeader();
$page->drawMiddle();
 
$page->checkChallengeStatus(1, "index.php", "02.php");
 
$page->drawFooter();
 
?>
 
/_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())