session_start(); if(!isset($_GET["nm"])){ header("location: news.php");exit(); } $nid=intval(substr($_GET["nm"],2)); if($nid==0){ header("location: news.php");exit(); } require("adpanel/functions.inc.php"); include_once("adpanel/".MYSQL); $dbc=open_connection(); $q="select news.ID,post_title,image_n,meta_keywords,meta_desc,post_content,date_format(post_date,'%d.%m.%Y') as dd from news where news.ID='".$nid."' limit 1"; $r=mysql_query($q,$dbc); if(mysql_num_rows($r)!=1){ header("location: news.php");exit(); } $row=mysql_fetch_array($r,MYSQL_BOTH); $elements["title"]=stripslashes($row["post_title"]); $elements["keywords"]=html_entity_decode(stripslashes($row["meta_keywords"])); $elements["description"]=html_entity_decode(stripslashes($row["meta_desc"])); $news_cat_id=$row["cat_id"]; include("top.inc.php"); ?>
include("bottom.inc.php");?>