."; else $style_link = ".."; if($loggedin){ $log_link = "
  • Log Out
  • "; }else{ $log_link = "
  • Log In
  • "; } $template_file = file_get_contents($template_path); $new_file = str_replace("",$page_content,$template_file); $new_file = str_replace("",$right_column,$new_file); $new_file = str_replace("",$crumbs,$new_file); $new_file = str_replace("",$page_title,$new_file); $new_file = str_replace("",$style_link,$new_file); $new_file = str_replace("",$keywords,$new_file); $new_file = str_replace("",$description,$new_file); $new_file = str_replace("",$page_bottom,$new_file); $new_file = str_replace("~uri~",$this_uri,$new_file); $new_file = str_replace("

    ~~ FORM HERE DO NOT DELETE ~~

    ",$contact_form,$new_file); // navigation links $new_file = str_replace("",$home_btn,$new_file); $new_file = str_replace("",$use_btn,$new_file); $new_file = str_replace("",$browse_btn,$new_file); $new_file = str_replace("",$resources_btn,$new_file); $new_file = str_replace("",$search_btn,$new_file); $new_file = str_replace("",$contact_btn,$new_file); $new_file = str_replace("",$admin_btn,$new_file); $new_file = str_replace("",$sites_btn,$new_file); $new_file = str_replace("",$notes_btn,$new_file); $new_file = str_replace("",$admins_btn,$new_file); $new_file = str_replace("",$log_link,$new_file); echo $new_file; } function prep_phone($theText){ $theText = trim($theText); $theText = stripslashes($theText); $theText = preg_replace("~(\d\d\d)(\d\d\d)(\d\d\d\d)~","(\\1) \\2-\\3",$theText); $theText = preg_replace("~(\d\d\d).(\d\d\d).(\d\d\d\d)~","(\\1) \\2-\\3",$theText); $theText = preg_replace("~(\d\d\d) . (\d\d\d) . (\d\d\d\d)~","(\\1) \\2-\\3",$theText); $theText = preg_replace("~(\d\d\d) (\d\d\d) (\d\d\d\d)~","(\\1) \\2-\\3",$theText); $theText = preg_replace("~(\d\d\d) (\d\d\d).(\d\d\d\d)~","(\\1) \\2-\\3",$theText); $theText = preg_replace("~(\d\d\d)(\d\d\d).(\d\d\d\d)~","(\\1) \\2-\\3",$theText); $theText = preg_replace("~(\d\d\d)(\d\d\d).(\d\d\d\d)~","(\\1) \\2-\\3",$theText); $theText = preg_replace("~(\d\d\d).(\d\d\d)(\d\d\d\d)~","(\\1) \\2-\\3",$theText); return $theText; } function ext_links($the_link){ if(!strpos($the_link,"_blank")){ $the_link = str_replace("Your Account'; }else{ $return_val = '
    '; } echo $return_val; } function login_link(){ global $member_name, $user_id,$loggedin; $return_val = ''; if($loggedin){ // if logged in $return_val = 'Your Account | Log Out'; }else{ $return_val = 'Member Login | Register'; } echo $return_val; } function create_key(){ $thiskey = time(); $extra = rand(0,9). rand(0,9) . rand (0,9). rand(0,9) . rand(0,9) . rand(0,9). rand(0,9) . rand(0,9); $thiskey = $extra.$thiskey; return $thiskey; } ?>