dump()) $error .= '
'; if (substr_count($page, '{error}')) { $page = str_replace('{error}', $error, $page); unset($error); } $output = ''; $menutree = include('menus/_menutree.php'); $workingid = $menutree[$id]; if (!$workingid) $workingid = $id; $sidemenu = $id; if (!file_exists($dir_menu.$sidemenu.$default_ext)) $sidemenu = $menutree[$id]; if (!file_exists($dir_menu.$sidemenu.$default_ext)) $sidemenu = $default_menu; $sidemenu = include($dir_menu.$sidemenu.$default_ext); $output = ''; $tempdata = $_DB->query("SELECT id,date,title FROM ".$_DB->table_news." WHERE type=0 ORDER BY `date` DESC LIMIT 3"); while ($temp = mysql_fetch_assoc($tempdata)) { $temp['date'] = date("F d, Y", $temp['date']); $temp['title'] = stripslashes($temp['title']); if (strlen($temp['title']) > 16) $temp['title'] = substr($temp['title'], 0, 60); $sidenewslist .= '

'.$temp['date'].'

'.$temp['title'].'

Full Story

'; } if (!$sidenewslist) { $sidenewslist = '

'.date("F d, Y", mktime()).'

No news at this time.

'; } ?> E-BW | Battalia Winston