include "inc/db.php";
$id= getvar("id");
$article= $id;
$result= mysql_query("SELECT * FROM matn WHERE id='$article'");
$row = mysql_fetch_array($result);
$result2= mysql_query("SELECT * FROM subject WHERE id='$row[catid]'");
$row2 = mysql_fetch_array($result2);
$userlogin= $_SESSION["userlogin"];
$query= getvar("query");
if($row2['private']==1 and $userlogin != 1){
echo "";
echo __("Access_Not_Allowed_for_you");
echo "
";return;};
echo "";
echo "";
if($row[pic] != ""){
if(file_exists("pic/$row[pic]")){$pic = "";}else{$pic = "";};
}
$text= str_replace("\n","
",$row[text]);
echo "$row[title] |
$pic $text
|
http://www.feirahi.ir
|
";
echo "
";
?>