Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 362 → Rev 370

/_taios.php
89,6 → 89,7
if (!$this->drawnFooter)
{
write('</div>');
write('<p class="copyright"><a href="http://validator.w3.org/check?uri=http%3A%2F%2Ftim32.org%2F">HTML5 Validator</a></p>');
write('</body>');
write('</html>');
/styles.css
148,6 → 148,12
font-family: Droid Sans Mono, Monospace, Fixed;
}
 
.copyright {
color: #BBBBBB;
text-align: center;
font-size: 9pt;
}
 
.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>
<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
1,5 → 1,12
<?php
 
function endswith($string, $test) {
$strlen = strlen($string);
$testlen = strlen($test);
if ($testlen > $strlen) return false;
return substr_compare($string, $test, -$testlen) === 0;
}
 
require '../_taios.php';
 
$pageName = $_GET['page'];
9,13 → 16,30
}
 
$page = new Taios_Page('Wiki - ' . $pageName, '../');
 
if (isset($_GET['random']))
{
$results = array();
$handler = opendir('pages/');
while ($file = readdir($handler))
{
if ($file != '.' && $file != '..' && endswith($file, ".txt"))
{
$results[] = substr($file, 0, count($file) - 5);
}
}
$index = rand() % count($results);
$result = $results[$index];
$page->redirect('index.php?page=' . $result);
}
 
$page->drawHeader();
write('<h3>Wiki</h3>');
$page->drawMenuItem('Special', 'specialpage.php');
$page->drawMenuItem('Index', 'wiki/index.php');
$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 />');