include"config.php";
include"admin/functions.php";
$qData = "select * from `pages` where `PageID` = '$_GET[PageID]'";
$rData = mysql_query($qData) or die(mysql_error());
if(mysql_num_rows($rData) == '0')
{
$Content = "
No Page Found";
}
else
{
$aData = mysql_fetch_array($rData);
if($aData[Page_Type] == 2)
{
if($_GET[Lan] == En)
{
$Page_Title = "$aData[Title_English] ";
$Content = $aData[Description_English];
}
else
{
$Page_Title = "$aData[Title_Italian] ";
$Content = $aData[Description_Italian];
}
header("location:$Content");
exit();
}
else
{
if($_GET[Lan] == En)
{
$Page_Title = "$aData[Title_English] ";
$Content = $aData[Description_English];
}
else
{
$Page_Title = "$aData[Title_Italian] ";
$Content = $aData[Description_Italian];
}
}
$KeyWords = ", $aData[Page_Keywords]";
$Page_Description = " $aData[Page_Description]";
}
include"header.php";
echo $Content;
$q = "update `pages` set `Visited` = Visited+1 where `PageID` = $_GET[PageID]";
mysql_query($q) or die(mysql_error());
include"footer.php";
?>