dump()) $error .= '
'; if (substr_count($page, '{error}')) { $page = str_replace('{error}', $error, $page); unset($error); } $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.

'; } $crap = $_DB->query("SELECT * FROM ".$_DB->table_news." WHERE id='$id'"); if (mysql_num_rows($crap) > 0) { $crap = mysql_fetch_row($crap); $crap[1] = date("m.d.Y", $crap[1]); $crap[2] = stripslashes($crap[2]); $crap[3] = stripslashes($crap[3]); $crap[3] = str_replace ("\n", "
", $crap[3]); if ($action=="download") { // gather information $fileinfo[path] = "storage/news/$id.dat"; $fileinfo[size] = filesize($fileinfo[path]); // return headers to initiate download //header("Pragma: public"); //header("Expires: 0"); // set expiration time //header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); if (strpos($crap[4],'.pdf')) { header("Content-Type: application/pdf"); } else if (strpos($crap[4],'.doc')) { header("Content-Type: application/msword"); } else { header("Content-Type: application/octet-stream"); } header("Content-Length: ".$fileinfo[size]); header("Content-Disposition: inline; filename=\"".$crap[4].'"'); header("Content-Transfer-Encoding: binary"); flush(); // return file data $fp = fopen($fileinfo[path], 'rb'); $buffer = fread($fp, $fileinfo[size]); fclose ($fp); print $buffer; exit; } if ($crap[4]) { $output = '
View Attached PDF:
'.$crap[4].'
'; } if ($crap[5]) { $header="

"; } $output = " $crap[2]
Posted on $crap[1]

$header
$crap[3]

$output "; } else { $output = 'ERROR 404: not found
'; } ?> Battalia Winston International
Overview The Art and Science The Art The Science Current Assignments Practice Areas Consumer Financial Services
Healthcare Industrial Not-For-Profit Professional Services Technology Our Resume International

Battalia Winston ©2007, All Rights Reserved.
Privacy Statement | Terms of Use
stop() . ' seconds. made ' . $_DB->calls . " database querys. -->\n\n"; ?>