/styles.css |
---|
3,7 → 3,7 |
color: #000000; |
font-family: Droid Sans, Tahoma, sans-serif; |
font-size: 11pt; |
font-size: 10pt; |
margin: 0px; |
padding: 0px; |
46,7 → 46,7 |
} |
p, table, span { |
font-size: 11pt; |
font-size: 10pt; |
margin: 8px; |
margin-left: 16px; |
} |
92,7 → 92,7 |
.sidebar { |
float: left; |
width: 146px; |
width: 156px; |
padding: 0px; |
padding-left: 32px; |
border-right: 0px solid #000089; |
128,7 → 128,7 |
.content { |
top: 0px; |
left: 180px; |
left: 190px; |
position: absolute; |
margin-right: 32px; |
} |
137,6 → 137,10 |
font-weight: bold; |
} |
.italic { |
font-style: italic; |
} |
.indent { |
margin-left: 14px; |
border-left: 1px solid #BBBBBB; |
143,7 → 147,9 |
} |
.code { |
border: 1px solid #333333; |
border-top: 2px solid #333333; |
border-bottom: 2px solid #333333; |
margin: 8px; |
background-color: #DDDDDD; |
font-family: Droid Sans Mono, Monospace, Fixed; |
} |
/_taios.php |
---|
196,7 → 196,10 |
'/\[url\](.+?)\[\/url\]/is', |
'/\[url=(.+?)\](.+?)\[\/url\]/is', |
'/\[code\](.+?)\[\/code\]/is', |
'/\[img\](.+?)\[\/img\]/is' |
'/\[img\](.+?)\[\/img\]/is', |
'/\[ul\](.+?)\[\/ul\]/is', |
'/\[ol\](.+?)\[\/ol\]/is', |
'/\[li\](.+?)\[\/li\]/is' |
); |
$html = array( |
206,7 → 209,10 |
'<a href="$1">$1</a>', |
'<a href="$1">$2</a>', |
'<div class="code">$1</div>', |
'<img src="$1" />' |
'<img src="$1" />', |
'<ul>$1</ul>', |
'<ol>$1</ol>', |
'<li>$1</li>' |
); |
$newstr = preg_replace($bbcode, $html, $newstr); |
539,6 → 545,7 |
public $parent; |
public $title; |
public $description; |
} |
class ForumPost |
/photos/album.php |
---|
95,7 → 95,7 |
} |
$filename = $directory . $file; |
$size = getImageSizes($filename, 300, 300); |
$size = getImageSizes($filename, 280, 260); |
write('<td><a href="' . str_replace(" ", "%20", $filename) . '"><img width="' . $size[0] . '" height="' . $size[1] . '" src="' . str_replace(" ", "%20", $filename) . '" /></a></td>'); |
/register.php |
---|
58,6 → 58,8 |
<td><input type="submit" value="Register" /></td> |
</tr> |
</table> |
<p style="text-align: center; color: #666666">By registering to Tim32, you agree to be reasonable in all your suggestion/accusations and advoid subjectivity. Suvbjective posts/comments are subject to removal by a Subject of the Tim32 Admins.</p> |
</form> |
<?php |
/challenge/index.php |
---|
6,8 → 6,16 |
$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>'); |
if ($page->isLoggedIn()) |
{ |
write('<p class="bold">Take the Tim32 challenge here!</p>'); |
write('<p class="italic">Once you\'ve passed a challenge, your progress will automatically be saved.</p>'); |
write('<br /><br /><a href="00.php"><h2 style="text-align: center">Enter!</h2></a>'); |
} |
else |
{ |
write('<p class="bold">You need to be logged in to take the Tim32 challenge.</p>'); |
} |
$page->drawFooter(); |
/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'); |
} |
?> |
/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 |