<?php
ob_start();
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
srand((double)microtime()*1000000);
$PS_BASE = '/var/www/html/Core/'; // change this to the path to /Core
$NEWS_BASE = '/var/www/html/phpfastnews/'; // change this to point at the phpfastnews directory
unset($blox);
$blox = array(
"HEAD" => "yes",
"LEFT" => "yes",
"RIGHT" => "yes",
"FOOTER" => "yes"
);
require($PS_BASE.'/Lib/prepend.php');
require("$NEWS_BASE" . 'Lib/Phplib/template.inc');
$numrecords = '10';
$anonname = "Anonymous"; // anonymous user name
$theme = 'slash2'; // the /tpl/$theme we want to use
if ($auth["username"] && ($handle == $anonname)) {
$query = "select handle from ps_auth_user,fn_user where (username = '$auth[username]') and (user_id = user_id2)";
$db->next_record($db->query($query));
$handle = $db->f('handle');
}
// or, if he hasn't logged in, let's make his handle equal the $anonname we prefer
if (!$auth["username"]) {
$handle = $anonname;
}
// make the session remember the users handle
$sess->register("handle");
function inky ($name) {
global $NEWS_BASE,$module,$theme;
include ($NEWS_BASE . "/" . $name);
}
inky("Lib/news.inc.php");
// modify this function to change how dates are displayed
function ndate($date) {
$date = date("M/d/Y-H:i:s", $date);
return $date;
}
$ndate = "ndate";
$r = new Template('tpl/slash2/');
$r->set_file('TPL', $tpl);
$rend = new Render;
$blocks = new Blocks($pg);
inky('Lib/sideblocks.inc');
$sideblocks = new sideblocks;
//$r->set_block('TPL','HEAD');
//$r->parse('body','HEAD',true);
$rend->headleft();
//$r->set_block('TPL','LEFTBLOCK');
//$r->parse('body','LEFTBLOCK',true);
//$r->set_block('TPL','CENTERSTART');
//$r->parse('body','CENTERSTART',true);
?>