")."'3' and url='".$current_url_folders."' and father_id=".$f_id." and `status`=true") or die ("Problems in query. ".mysql_error()); else $result=mysql_query("select * from pages where `type`".(($is_subdomain)?"=":"<>")."'3' and url='".$current_url_folders."' and father_id=".$f_id." and `status`=true") or die ("Problems in query. ".mysql_error()); if (mysql_num_rows($result)>0) { $rs=mysql_fetch_assoc($result); $f_id=$rs['id']; $path_f_id[]=$rs['id']; $page_url=$rs['url']; $root_url[]=$page_url; $root_link_text[]=$rs['link_text']; if ($i+1!=count($url_folders)) $parent.=$page_url."/"; } else { $bad_root=true; break; } } if ($bad_root) { $result=mysql_query("select url_full_path_new from redirects where url_full_path_old='".$url_full_path."'") or die ("Problems in query. ".mysql_error()); if (mysql_num_rows($result)>0) { $rs=mysql_fetch_assoc($result); header("HTTP/1.1 301 Moved Permanently"); header("Location: ".domain.$rs['url_full_path_new']); } else { header("HTTP/1.0 404 Not Found"); $rs['father_id']=0; $rs['id']=0; $rs['title']="Plumber Washington DC - Error 404"; $rs['h1']="Page Not Found"; $rs['content']="The Page could not be found."; $page_url=$url_full_path; } } $rsfather=$rs['father_id']; $page_id=$rs['id']; $h1=($rs['h1'])?"

".ucwords_exeptions(special_chars($rs['h1']))."

\n":""; $content=str_to_code($rs['content']); require "header.php"; require "sidebar.php"; $pre_root=""; $root_links='Plumber Washington DC'; for ($i=0; $i'.ucwords_exeptions(special_chars($root_link_text[$i])).''; $pre_root.='/'; } $pre_root=substr($pre_root, 0, -1); $root_links.=" » ".ucwords_exeptions(special_chars($root_link_text[count($root_url)-1])); $root_links=($page_url=="index")?'':'

'.$root_links.'

'; echo $root_links."\n".$h1.$content; if ($page_url=="sitemap") make_sitemap(0, ""); require "footer.php"; ?>