0) { $rsr_info_res=mysql_fetch_array($sel_cat); // 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 = '7' 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 = 7; 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 = $rsr_info_res['rcat_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($rsr_info_res["rcat_name"]).' Information & Resources '; else eval("\$sitetitle = \"$custom_seo_options_res[title]\";"); $pagetitle = $sitetitle; } $basemetakeywd = $rsr_info_res['rcat_keyword']; $basemetadesc = $rsr_info_res['rcat_description']; $sitecopyright = date(Y)." "._DOMAIN_NAME_; $sitedomname=_DOMAIN_NAME_; $basekeywd=$sitetitle; $flname="resourcesmod.php"; // SEO options ends $curartid=$rsr_info_res["rcat_id"]; $curartname=$rsr_info_res["rcat_name"]; $recprocqur=mysql_query("select rcat_submission,rcat_reciprocal from eweb_resources_category where rcat_id='".$curartid."'")or die(mysql_error()); if(mysql_num_rows($recprocqur)>0){ $submitlnk=mysql_result($recprocqur,0,0); $recplnk=mysql_result($recprocqur,0,1); } $imgfpath = _ABS_PATH_; $http_path = _HTTP_PATH_; include($template_path."template.php"); } else header("location:"._HTTP_PATH_."404.shtml"); ?>