include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'system.inc';
if(isset($strArticle) && strlen($strArticle) > 0)
{
$result = mysql_query("SELECT * FROM articles WHERE LOWER(REPLACE(strArticleUrl, ' ', '')) = LOWER(REPLACE('$strArticle', ' ', '')) LIMIT 1");
if($item = mysql_fetch_assoc($result))
{
if(strlen($item[strArticleTitle]) > 0)
$strArticleHeader = $item[strArticleTitle];
if(strlen($item[strPageTitle]) > 0)
$strTitle = $item[strPageTitle];
else
$strTitle = $strArticleHeader;
if(strlen($item[strArticleContent]) > 0)
$strArticleContent = str_replace("\r\n", '
', $item[strArticleContent]);
if(strlen($item[strArticleDescription]) > 0)
$aMeta[desc] = $item[strArticleDescription];
if(strlen($item[strArticleKeywords]) > 0)
$aMeta[keywords] = $item[strArticleKeywords];
}
else header("Location: " . PATH_CLIENT_MAIN);
}
else header("Location: " . PATH_CLIENT_MAIN);
?>
include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'header.inc'; ?>
include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'footer.inc'; ?>