/index.php |
---|
18,7 → 18,7 |
<p>Tim32 is a 10 year-old laptop running Ubuntu Server Edition 10.04.</p> |
<br /> |
<h3>Latest Blog Posts</h3> |
<h3 title="Take the Tim32 challenge: http://tim32.org/challenge/">Latest Blog Posts</h3> |
<?php |
/challenge/00.php |
---|
0,0 → 1,37 |
<?php |
require '../_taios.php'; |
$page = new Taios_Page('Challenge - 00', '../'); |
$page->checkChallengeStatus(0, "index", "01"); |
$page->drawHeader(); |
write('<h3>Challenge</h3>'); |
$page->drawMenuItem('Index', 'challenge/index.php'); |
$page->drawMiddle(); |
?> |
<form action="00-do.php" method="POST"> |
<table> |
<tr> |
<td class="bold">Morse: </td> |
<td style="color: #FFFFFF">.. .-.. .. -.- . -- --- --- ... . </td> |
</tr> |
<tr> |
<td class="bold">Moose: </td> |
<td><input type="text" name="moose" /></td> |
</tr> |
<tr> |
<td class="bold"></td> |
<td><input type="submit" value="Submit" /></td> |
</tr> |
</table> |
</form> |
<?php |
$page->drawFooter(); |
?> |
/challenge/01.php |
---|
0,0 → 1,18 |
<?php |
require '../_taios.php'; |
$page = new Taios_Page('Challenge - 01', '../'); |
$page->checkChallengeStatus(1, "index", "02"); |
$page->drawHeader(); |
write('<h3>Challenge</h3>'); |
$page->drawMenuItem('Index', 'challenge/index.php'); |
$page->drawMiddle(); |
$page->drawFooter(); |
?> |
/challenge/00-do.php |
---|
0,0 → 1,19 |
<?php |
require '../_taios.php'; |
$page = new Taios_Page('Challenge - 00', '../'); |
$page->checkChallengeStatus(0, "index", "01"); |
if ($_POST['moose'] == 'i like moose') |
{ |
$page->query('UPDATE Users SET ChallengeID = 1 WHERE ID = ' . $page->getLoggedInUser()->ID); |
$page->redirect('01.php'); |
} |
else |
{ |
$page->redirect('index.php'); |
} |
?> |
/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="00.php"><h2 style="text-align: center">Enter!</h2></a>'); |
$page->drawFooter(); |
?> |
/_taios.php |
---|
88,6 → 88,7 |
{ |
if (!$this->drawnFooter) |
{ |
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>'); |
277,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()) |
/styles.css |
---|
148,6 → 148,16 |
font-family: Droid Sans Mono, Monospace, Fixed; |
} |
.copyright { |
color: #BBBBBB; |
text-align: left; |
font-size: 9pt; |
} |
.copyright a { |
color: #BBBBBB; |
} |
.recaptchatable .recaptcha_image_cell, #recaptcha_table { |
background-color: #4B9DE0 !important; //reCaptcha widget background color |
} |
/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(); |
/register.php |
---|
42,11 → 42,11 |
<td><input type="password" name="password2" /></td> |
</tr> |
<tr> |
<td class="bold">Email Address</td>: </td> |
<td class="bold">Email Address: </td> |
<td><input type="text" name="email" /></td> |
</tr> |
<tr> |
<td class="bold">Name</td>: </td> |
<td class="bold">Name: </td> |
<td><input type="text" name="name" /></td> |
</tr> |
<tr> |
/wiki/index.php |
---|
40,8 → 40,6 |
$page->drawMenuItem('Random Page', 'wiki/index.php?random'); |
$page->drawMiddle(); |
write('<p><i>The wiki is still under construction.</i></p>'); |
if ($page->isUserGM($page->getLoggedInUser())) |
{ |
write('<p><a href="edit.php?page=' . $pageName . '">Edit Page</a></p><br />'); |