Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 432 → Rev 368

/challenge/index.php
File deleted
/challenge/00-do.php
File deleted
/challenge/00.php
File deleted
/challenge/01.php
File deleted
/wiki/index.php
42,7 → 42,7
 
if ($page->isUserGM($page->getLoggedInUser()))
{
write('<p class="bold"><a href="edit.php?page=' . $pageName . '">Edit Page</a></p><br />');
write('<p><a href="edit.php?page=' . $pageName . '">Edit Page</a></p><br />');
}
 
$filename = 'pages/' . $pageName . '.txt';
/_taios.php
88,7 → 88,6
{
if (!$this->drawnFooter)
{
write('<br /><p class="copyright">&copy; 2011 Tim32 &middot; <a href="http://validator.w3.org/check?uri=http%3A%2F%2Ftim32.org%2F">HTML5 Valid</a></p>');
write('</div>');
write('</body>');
write('</html>');
173,7 → 172,6
$newstr = str_replace("<", "[", $str);
$newstr = str_replace(">", "]", $newstr);
$newstr = str_replace("\n", '</p><p>', $newstr);
//$newstr = str_replace("\n", '<br />', $newstr);
$newstr = str_replace("\\'", "'", $newstr);
$newstr = str_replace("\\\"",'"', $newstr);
$newstr = str_replace(' ', '&nbsp;&nbsp;', $newstr);
197,10 → 195,7
'/\[url\](.+?)\[\/url\]/is',
'/\[url=(.+?)\](.+?)\[\/url\]/is',
'/\[code\](.+?)\[\/code\]/is',
'/\[img\](.+?)\[\/img\]/is',
'/\[ul\](.+?)\[\/ul\]/is',
'/\[ol\](.+?)\[\/ol\]/is',
'/\[li\](.+?)\[\/li\]/is'
'/\[img\](.+?)\[\/img\]/is'
);
 
$html = array(
210,10 → 205,7
'<a href="$1">$1</a>',
'<a href="$1">$2</a>',
'<div class="code">$1</div>',
'<img src="$1" />',
'<ul>$1</ul>',
'<ol>$1</ol>',
'<li>$1</li>'
'<img src="$1" />'
);
 
$newstr = preg_replace($bbcode, $html, $newstr);
285,24 → 277,6
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())
533,7 → 507,6
public $author;
public $title;
public $description;
 
public $logoURL;
public $downloadURL;
public $websiteURL;
547,7 → 520,6
public $parent;
public $title;
public $description;
 
}
 
class ForumPost
/photos/album.php
95,9 → 95,9
}
$filename = $directory . $file;
$size = getImageSizes($filename, 280, 260);
$size = getImageSizes($filename, 300, 300);
 
write('<td><a href="' . str_replace(" ", "%20", $filename) . '"><img width="' . $size[0] . '" height="' . $size[1] . '" src="' . str_replace(" ", "%20", $filename) . '" /></a></td>');
write('<td><a href="' . $filename . '"><img width="' . $size[0] . '" height="' . $size[1] . '" src="' . $filename . '" /></a></td>');
$i++;
$indexInArray++;
104,7 → 104,7
}
 
write('</tr>');
write('</table>');
write('<table>');
 
$page->drawFooter();
 
/styles.css
3,7 → 3,7
color: #000000;
font-family: Droid Sans, Tahoma, sans-serif;
font-size: 10pt;
font-size: 11pt;
margin: 0px;
padding: 0px;
46,7 → 46,7
}
 
p, table, span {
font-size: 10pt;
font-size: 11pt;
margin: 8px;
margin-left: 16px;
}
92,7 → 92,7
 
.sidebar {
float: left;
width: 156px;
width: 146px;
padding: 0px;
padding-left: 32px;
border-right: 0px solid #000089;
128,7 → 128,7
 
.content {
top: 0px;
left: 190px;
left: 180px;
position: absolute;
margin-right: 32px;
}
137,10 → 137,6
font-weight: bold;
}
 
.italic {
font-style: italic;
}
 
.indent {
margin-left: 14px;
border-left: 1px solid #BBBBBB;
147,25 → 143,11
}
 
.code {
border-top: 2px solid #999999;
border-bottom: 2px solid #999999;
margin: 14px;
border: 1px solid #333333;
background-color: #DDDDDD;
font-family: Droid Sans Mono, Monospace, Fixed;
font-size: 9px;
line-height: 80%;
}
 
.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
}
/register.php
42,11 → 42,11
<td><input type="password" name="password2" /></td>
</tr>
<tr>
<td class="bold">Email Address: </td>
<td class="bold">Email Address</td>: </td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td class="bold">Name: </td>
<td class="bold">Name</td>: </td>
<td><input type="text" name="name" /></td>
</tr>
<tr>
58,8 → 58,6
<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
/index.php
10,8 → 10,6
$page->drawMenuItem('Muzer', '/~muzer/');
$page->drawMenuItem('Sh4rk', '/~szabot/');
$page->drawMenuItem('Tom (TomMan)', '/~tom/');
write('<br /><h3>Downtime-o-meter</h3>');
write('<p>No planned down.</p>');
$page->drawMiddle();
 
?>
20,13 → 18,12
<p>Tim32 is a 10 year-old laptop running Ubuntu Server Edition 10.04.</p>
<br />
 
<h3 title="Take the Tim32 challenge: http://tim32.org/challenge/">Latest Blog Posts</h3>
<p><a href="blog/rss.php">Rss Feed</a></p>
<h3>Latest Blog Posts</h3>
 
<?php
 
$ids = $page->findIDs('BlogPosts', 'WHERE ParentID = -1 ORDER BY DatePosted DESC');
for ($i = 0; $i < 4 && $i < count($ids); $i++)
for ($i = 0; $i < 5 && $i < count($ids); $i++)
{
$id = $ids[$i];
$post = $page->getBlogPost($id);
/blog/rss.php
File deleted
/blog/index.php
5,8 → 5,6
$page = new Taios_Page('Blog Posts', '../');
$page->drawHeader();
$page->drawBlogCategoriesMenu();
write('<br /><h3>RSS</h3>');
$page->drawMenuItem('RSS Feed', 'blog/rss.php');
$page->drawMiddle();
 
if ($page->isUserGM($page->getLoggedInUser()))