0) { $article_info_res=mysql_fetch_array($sel_article); // Getting the SEO options $web_info_sel = "select topic, domain_name from eweb_webinfo where id = '1'"; $web_info_sel_qry = mysql_query($web_info_sel); if (mysql_num_rows($web_info_sel_qry) > 0) { $web_info_sel_res = mysql_fetch_array($web_info_sel_qry); $web_topic = $web_info_sel_res['topic']; $domain_name = $web_info_sel_res['domain_name']; } $custom_seo_cnt_sel = "select count(*) as cnt from eweb_seo where id = '8' and type = '2'"; $custom_seo_cnt_sel_qry = mysql_query($custom_seo_cnt_sel); if(mysql_result($custom_seo_cnt_sel_qry, 0) == 1) $custom_id = 8; else $custom_id = 1; $custom_seo_options_sel = "select title from eweb_seo where id = '".$custom_id."'"; $custom_seo_options_sel_qry = mysql_query($custom_seo_options_sel); $base_keywords_sel = "select * from eweb_seo where id = '1'"; $base_keywords_sel_qry = mysql_query($base_keywords_sel); if (mysql_num_rows($base_keywords_sel_qry)) $base_keywords_res = mysql_fetch_array($base_keywords_sel_qry); if (mysql_num_rows($custom_seo_options_sel_qry) > 0) { $custom_seo_options_res = mysql_fetch_array($custom_seo_options_sel_qry); $BASE = $web_topic; $TOPIC = $article_info_res["acat_name"]; $DOMAIN = $domain_name; for($i=1; $i<=10; $i++) ${"KEY{$i}"} = $KEYWORDS[$i]; eval("\$KEY1 = \"$base_keywords_res[keyword1]\";"); eval("\$KEY2 = \"$base_keywords_res[keyword2]\";"); eval("\$KEY3 = \"$base_keywords_res[keyword3]\";"); eval("\$KEY4 = \"$base_keywords_res[keyword4]\";"); eval("\$KEY5 = \"$base_keywords_res[keyword5]\";"); eval("\$KEY6 = \"$base_keywords_res[keyword6]\";"); eval("\$KEY7 = \"$base_keywords_res[keyword7]\";"); eval("\$KEY8 = \"$base_keywords_res[keyword8]\";"); eval("\$KEY9 = \"$base_keywords_res[keyword9]\";"); eval("\$KEY10 = \"$base_keywords_res[keyword10]\";"); if ($custom_id == 1) $sitetitle = stripslashes($TOPIC)." Articles | ".$KEY1." | ".$KEY2; else eval("\$sitetitle = \"$custom_seo_options_res[title]\";"); $pagetitle = $sitetitle; } $basemetakeywd = $article_info_res['acat_keyword']; $basemetadesc = $article_info_res['acat_description']; $sitecopyright = date(Y)." "._DOMAIN_NAME_; $sitedomname = _DOMAIN_NAME_; $basekeywd = $sitetitle; $flname = "articlesmod.php"; // SEO options ends $curartid=$article_info_res["acat_id"]; $curartname=$article_info_res["acat_name"]; $imgfpath = _ABS_PATH_; $http_path = _HTTP_PATH_; include($template_path."template.php"); } else header("location:"._HTTP_PATH_."404.shtml"); ?>