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 = '3' 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 = 3; else $custom_id = 1; $custom_seo_options_sel = "select * from eweb_seo where id = '".$custom_id."'"; $custom_seo_options_sel_qry = mysql_query($custom_seo_options_sel); 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 = $BASE; $DOMAIN = $domain_name; for($i=1; $i<=10; $i++) ${"KEY{$i}"} = $KEYWORDS[$i]; eval("\$KEY1 = \"$custom_seo_options_res[keyword1]\";"); eval("\$KEY2 = \"$custom_seo_options_res[keyword2]\";"); eval("\$KEY3 = \"$custom_seo_options_res[keyword3]\";"); eval("\$KEY4 = \"$custom_seo_options_res[keyword4]\";"); eval("\$KEY5 = \"$custom_seo_options_res[keyword5]\";"); eval("\$KEY6 = \"$custom_seo_options_res[keyword6]\";"); eval("\$KEY7 = \"$custom_seo_options_res[keyword7]\";"); eval("\$KEY8 = \"$custom_seo_options_res[keyword8]\";"); eval("\$KEY9 = \"$custom_seo_options_res[keyword9]\";"); eval("\$KEY10 = \"$custom_seo_options_res[keyword10]\";"); if ($custom_id == 1) $sitetitle = ucfirst($web_topic).' Advertising opportunities '; else eval("\$sitetitle = \"$custom_seo_options_res[title]\";"); $pagetitle = $sitetitle; $basemetakeywd = ucfirst($web_topic); for($i=1;$i<=10;$i++) $basemetakeywd .= ", ".${"KEY{$i}"}; eval("\$basemetadesc = \"$custom_seo_options_res[description]\";"); } $sitecopyright = date(Y)." "._DOMAIN_NAME_; $sitedomname = _DOMAIN_NAME_; $basekeywd = $web_topic; $flname="advertisemod.php"; include($template_path."/template.php"); ?>