Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 443 → Rev 433

/blog/rss.php
24,7 → 24,7
write('<link>http://tim32.org/blog/post.php?id=' . $id . '</link>');
write('<guid>' . $id . '</guid>');
write('<pubDate>' . date('D, d M Y H:i:s O', $post->datePosted). '</pubDate>');
write('<description><![CDATA[' . $page->replaceBBCode($post->content) . ']]></description>');
write('<description>' . str_replace(">", "&gt;", str_replace("<", "&lt;", $page->replaceBBCode($post->content))) . '</description>');
write('</item>');
}
 
/_taios.php
88,7 → 88,7
{
if (!$this->drawnFooter)
{
write('<br /><p class="copyright">&copy; 2011 Tim32 &middot;</p>');
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>');
170,22 → 170,10
function replaceBBCode($str)
{
/*$newstrarray = explode("\n", $str);
$newstr = "";
foreach ($newstrarray as $line)
{
if ($line == "\n" || $line == " \n" || $line == "\n " || $line == "\n\r")
{
$line = "</p><p>";
}
$newstr .= ($line . "\n");
}*/
$newstr = $str;
$newstr = str_replace("<", "[", $newstr);
$newstr = str_replace("<", "[", $str);
$newstr = str_replace(">", "]", $newstr);
$newstr = str_replace("\n", "</p><p>", $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);
524,7 → 512,6
public $password;
public $emailAddress;
public $name;
 
public $challengeID;
}
 
547,7 → 534,6
public $title;
public $description;
 
 
public $logoURL;
public $downloadURL;
public $websiteURL;
/photos/rss.php
File deleted
/photos/album.php
44,8 → 44,6
write('<p>' . $page->replaceBBCode(file_get_contents("albums/" . $dirName . "/description.txt")) . '</p><br />');
}
 
write('<p><a href="rss.php?dir=' . $dirName . '">RSS Feed</a></p>');
 
write('<table>');
write('<tr>');