/// DATABASE INCLUDES -------------------------------------------------------------------------------------------------------------------
///
include($DOCUMENT_ROOT.'/postnet/live_site/include/config.php3');
include($DOCUMENT_ROOT."/postnet/include/root.inc");
include($DOCUMENT_ROOT."/postnet/include/db.php");
/// NON GET STYLE FOR SEARCH ENGINES -------------------------------------------------------------------------------------------------------------------
///
/// if(isset($PATH_INFO)) {
/// list($ide, $fld, $news) = explode('/', substr($PATH_INFO,1));
/// }
/// Search engine parser to make url paths 'non get style'.
if(isset($REQUEST_URI)) {
list($empty , $file , $ide , $fld , $news) = explode('/', $REQUEST_URI);
}
/// START PAGE -------------------------------------------------------------------------------------------------------------------
///
if ($ide == null and $fld == null){
$fld="Home";
}
/// MENU -------------------------------------------------------------------------------------------------------------------
///
include($DOCUMENT_ROOT.'/postnet/live_site/include/menu.php');
/// MAILER -------------------------------------------------------------------------------------------------------------------
///
if ($action == "mail"){
include($DOCUMENT_ROOT.'/includes/search.inc');
}
/// SEARCH -------------------------------------------------------------------------------------------------------------------
///
if ($search){$keywords=$search;
include($DOCUMENT_ROOT.'/includes/search.inc');
}
/// NEWS MENU -----------------------------------------------------------------------------------------------------------------
//
if (!$news){$news="news";}
$results = mysql_query("SELECT * FROM article WHERE folder like \"$news\" ORDER BY datum DESC");
while ($result = mysql_fetch_array($results,MYSQL_ASSOC)){
$news_title = $result["title"];
$news_intro = $result["intro"];
$news_ide = $result["ide"];
$news_dat = $result["datum"];
$news_dat = substr($news_dat,0,10);
$news_dtm = explode("-",$news_dat);
$news_datum = $news_dtm[2].".".$news_dtm[1].".".$news_dtm[0];
$news_content = $news_content . "
".$news_title."
".$news_datum."
";
}
/// CONTENT -------------------------------------------------------------------------------------------------------------------
///
if ($ide){
$results = mysql_query("SELECT * FROM article WHERE ide like \"".$ide."\" ");
while ($result = mysql_fetch_array($results,MYSQL_ASSOC)){
$ide = $result["ide"];
$title = $result["title"];
/// $content = "".$result["intro"]."
".$result["content"]."
";
$content = $result["content"];
$dat = $result["datum"];
$intro = $result["intro"];
$filename = $result["filename"];
$datum = $dtm[2].".".$dtm[1].".".$dtm[0];
}
}
if (!$ide){
$results = mysql_query("SELECT * FROM article WHERE folder like \"".$fld."\" ");
while ($result = mysql_fetch_array($results,MYSQL_ASSOC)){
$ide = $result["ide"];
$title = $result["title"];
/// $content = "".$result["intro"]."
".$result["content"]."
";
$content = "
".$result["content"]."
"; $dat = $result["datum"]; $intro = $result["intro"]; $filename = $result["filename"]; $datum = $dtm[2].".".$dtm[1].".".$dtm[0]; } } include ("sitemap.php"); /// CUSTOM SITE OPTIONS -------------------------------------------------------------------------------------------------------------------- /// ----------------------------------------------------------------------------------------------------------------------------------------------- /// ----------------------------------------------------------------------------------------------------------------------------------------------- /// ----------------------------------------------------------------------------------------------------------------------------------------------- /// POPUP FOR STOCK QUOTES ------------------------------------------------------------------------------------------------------------------- /// /// Image selection srand((double)microtime()*1000000); $rand_image = rand(1,8); //if($intro == "Stock Quote"){ // $content= $content.""; // } /// CUSTOM SITE TEMPLATE ASSIGNS ------------------------------------------------------------------------------------------------------------------------------------------- $tpl->assign( array( RAND_IMAGE => $rand_image)); /// -------------------------------------------------------------------------------------------------------------------------------------------------------------------- $tpl->assign( array( MENU_GO => $menu_go)); $tpl->assign( array( MENU_SCRIPT => $menu_script)); $tpl->assign( array( MENU_DISPLAY => $menu_display)); $tpl->assign( array( TITLE => $title)); $tpl->assign( array( INTRO => $intro)); $tpl->assign( array( SITE_LOGO => "masthead.jpg")); $tpl->assign( array( SITE_ALT => "Site Info")); $tpl->assign( array( SITE_LOGO_SIZE => "WIDTH=259 HEIGHT=76")); $tpl->assign( array( CONTENT => $content )); $tpl->assign( array( NEWS => $news_content )); $tpl->assign( array( IDE=> $ide )); $tpl->parse(start, array("start")); $tpl->FastPrint(); ?>