if(!$homepage_check && $ids && ($ids!=1)){
include("header.php");
$ru=mysql_query("select $db_ext_lang"."name,$db_ext_lang"."contents from static_pages where id='$ids'");
list($names,$contents)=mysql_fetch_row($ru);
$contents=stripslashes($contents);
echo"$names
$contents";
include("footer.php");
}
else if($homepage_check){
$ru=mysql_query("select $db_ext_lang"."name,$db_ext_lang"."contents from static_pages where id='1'");
list($names,$contents)=mysql_fetch_row($ru);
$contents=stripslashes($contents);
echo"$names
$contents";
}
else{
header("Location: index.php");
}
?>