db_Select("news", "*", "news_id='{$parms}'"); $row = $sql->db_Fetch(); extract($row); define("e_PAGETITLE", $news_title); $news_body = $tp->toHTML($news_body, TRUE); $news_extended = $tp->toHTML($news_extended, TRUE); if ($news_author == 0) { $a_name = "e107"; $category_name = "e107 welcome message"; } else { $sql->db_Select("news_category", "category_id, category_name", "category_id='{$news_category}'"); list($category_id, $category_name) = $sql->db_Fetch(); $sql->db_Select("user", "user_id, user_name", "user_id='{$news_author}'"); list($a_id, $a_name) = $sql->db_Fetch(); } $news_datestamp = $con->convert_date($news_datestamp, "long"); $print_text = " ".LAN_PRINT_135.": ".$news_title."
(".LAN_PRINT_86." ".$tp->toHTML($category_name,FALSE,"defs").")
".LAN_PRINT_94." ".$a_name."
".$news_datestamp."

". $news_body; if ($news_extended != ""){ $print_text .= "

".$news_extended; } if ($news_source != ""){ $print_text .= "

".$news_source; } if ($news_url != ""){ $print_text .= "
".$news_url; } $print_text .= "


". LAN_PRINT_303.SITENAME."
( http://".$_SERVER['HTTP_HOST'].e_HTTP."news.php?extend.".$news_id." ) "; } if(defined("TEXTDIRECTION") && TEXTDIRECTION == "rtl"){ $align = 'right'; }else{ $align = 'left'; } // Header down here to give us a chance to set a page title require_once(HEADERF); echo "
".$tp->parseTemplate("{LOGO}", TRUE)."


".$print_text."


"; require_once(FOOTERF); ?>