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) { header("HTTP/1.0 404 Not Found"); $rs['father_id']=0; $rs['id']=0; $rs['title']="Plumber New Jersey - Error 404"; $rs['h']="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="Homepage"; for ($i=0; $i".ucwords_exeptions(special_chars($root_link_text[$i])).""; } $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=="site-map") make_sitemap(0, ""); require "footer.php"; ?>