/_taios.php |
---|
88,7 → 88,7 |
{ |
if (!$this->drawnFooter) |
{ |
write('<p class="copyright">© 2011 Tim32 · <a href="http://validator.w3.org/check?uri=http%3A%2F%2Ftim32.org%2F">HTML5 Valid</a></p>'); |
write('<br /><p class="copyright">© 2011 Tim32 · <a href="http://validator.w3.org/check?uri=http%3A%2F%2Ftim32.org%2F">HTML5 Valid</a></p>'); |
write('</div>'); |
write('</body>'); |
write('</html>'); |
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(); |
?> |
/styles.css |
---|
149,7 → 149,6 |
} |
.copyright { |
margin-top: 8px; |
color: #BBBBBB; |
text-align: left; |
font-size: 9pt; |
/photos/album.php |
---|
97,7 → 97,7 |
$filename = $directory . $file; |
$size = getImageSizes($filename, 300, 300); |
write('<td><a href="' . $filename . '"><img width="' . $size[0] . '" height="' . $size[1] . '" src="' . $filename . '" /></a></td>'); |
write('<td><a href="' . str_replace(" ", "%20", $filename) . '"><img width="' . $size[0] . '" height="' . $size[1] . '" src="' . str_replace(" ", "%20", $filename) . '" /></a></td>'); |
$i++; |
$indexInArray++; |
104,7 → 104,7 |
} |
write('</tr>'); |
write('<table>'); |
write('</table>'); |
$page->drawFooter(); |