Example #1
0
function do_page()
{
    global $isloggedin;
    ?>
<div class="container"><!-- Page --><?php 
    $pieces = array('aboutphuxored' => array('post_id' => '', 'section_id' => 3, 'category_id' => 2, 'date' => '', 'time' => '', 'title' => 'About phux0red.net v0r12', 'content' => '<p>This website was baked from scratch. It is written in PHP, XHTML and CSS, using vim and Notepad++. Data is stored in a MySQL 5 database. For testing purposes, I run the site on FreeBSD at home. The live version runs on Linux.</p>'), 'aboutme' => array('post_id' => '', 'section_id' => 3, 'category_id' => 2, 'date' => '', 'time' => '', 'title' => 'About Me...', 'content' => '<p>My name is Bonkers. I have nothing better to do, so I built this website from scratch.</p>'), 'aboutyou' => array('post_id' => '', 'section_id' => 3, 'category_id' => 2, 'date' => '', 'time' => '', 'title' => 'About You...', 'content' => sprintf('%s%s%s%s%s%s', '<p>In an effort to show that everything doesn\'t necessarily have to be about me, I present the following about you, my visitor :)</p>', '<p>You are from ', $_SERVER['REMOTE_ADDR'], '. You are driving a ', $_SERVER['HTTP_USER_AGENT'], '. You are unique, just like everybody else.</p>')));
    foreach ($pieces as $key => $value) {
        display_single_post($value);
    }
    echo "</div><!-- Page -->";
    if ($isloggedin) {
        phpinfo();
    }
}
Example #2
0
    }
}
$pagetitle = trim(sprintf('%s %s %s %s %s %s %s %s', $title['page'], $title['mode'], $title['section'], $title['category'], $title['dated'], $title['month'], $title['year'], $title['post']));
if (!$pagetitle) {
    $pagetitle = 'Main Page';
}
// Page: Start
do_header($pagetitle, $usejquery, true);
if (isset($req_page)) {
    do_page();
} else {
    echo '<div class="container"><!-- Page -->';
    login_box();
    if ($onepost) {
        foreach ($onepost as $record => $content) {
            display_single_post($content);
        }
    }
    ?>

	<div class="post" style="display: none;">
		<div class="posttitle">
			<div class="postinfo">
				Saturday, April 24, 2010 3:55 PM<br />Filed under <a href="phux0red.php?section=1">Blog</a> / <a href="phux0red.php?category=1">Rambling On...</a>
			</div>
			<h1><a href="phux0red.php?post=2">Meet Screwball!</a></h1>
		</div>
		
		<div class="postcontent">

			<p style="clear: both;">