0) { $rs=mysql_fetch_assoc($result); $cookie['nickname']=$rs['nickname']; $cookie['id']=$rs['id']; $cookie['type']=$rs['type']; } else { setcookie("remuser", "", time()-3600, "/"); $cookie['nickname']=false; } ?> "\n\n|-tip|\n\n", "/\|tip-\|/" => "\n\n|tip-|\n\n", "/\|-ul\|/" => "\n\n|-ul|\n\n", "/\|-ol\|/" => "\n\n|-ol|\n\n", "/\|ul-\|/" => "\n\n|ul-|\n\n", "/\|ol-\|/" => "\n\n|ol-|\n\n", "/^(\n){1,}/" => "", "/(\n){1,}$/" => "", "/\n/" => "\n
", "/(\n
){2,}/" => "

\n

", "/\|h2\-\|(.*?)\|\-h2\|/" => "

\\1

", "/\|h3\-\|(.*?)\|\-h3\|/" => "

\\1

", "/\|h4\-\|(.*?)\|\-h4\|/" => "

\\1

", "/\|strong\-\|(.*?)\|\-strong\|/" => "\\1", "/\|ins\-\|(.*?)\|\-ins\|/" => "\\1", "/\|em\-\|(.*?)\|\-em\|/" => "\\1", "/\|link\-(.*?)\|(.*?)\|\-link\|/" => "\\2", "/\|linknf\-(.*?)\|(.*?)\|\-linknf\|/" => "\\2", "/\|img\-(.*?)\|(~(.*?)~)(.*?)\|\-img\|/" => "\"\\1\"\\2", "/\|img\-(.*?)\|(.*?)\|\-img\|/" => "\"\\1\"", "/~(.*?)~/" => "id=\"\\1\"", "/\^(.*?)\^/" => "class=\"\\1\"", "/1.\t/" => "•\t", "/2.\t/" => "•\t", "/3.\t/" => "•\t", "/4.\t/" => "•\t", "/5.\t/" => "•\t", "/6.\t/" => "•\t", "/7.\t/" => "•\t", "/8.\t/" => "•\t", "/9.\t/" => "•\t", "/10.\t/" => "•\t", "/11.\t/" => "•\t", "/12.\t/" => "•\t", "/13.\t/" => "•\t", "/14.\t/" => "•\t", "/15.\t/" => "•\t", "/16.\t/" => "•\t", "/17.\t/" => "•\t", "/18.\t/" => "•\t", "/19.\t/" => "•\t", "/20.\t/" => "•\t", "/●\t/" => "•\t", "/•\t/" => "[*]" ); $_str=preg_replace(array_keys($array), array_values($array), $_str); $_str=preg_replace("/

\|tip\-\|<\/p>(.*?)

\|\-tip\|<\/p>/is", "|tip-|\\1|-tip|", $_str); $_str=preg_replace("/\|tip\-\|(.*?)\|\-tip\|/is", "

Plumbing Expert Tip
\\1
", $_str); $_str="

".$_str."

\n"; $_str=str_replace("

\n", "

", $_str); $_str=preg_replace_callback("/\|ul\-\|(.*?)\|\-ul\|/is", "make_UL_list", $_str); $_str=preg_replace_callback("/\|ol\-\|(.*?)\|\-ol\|/is", "make_OL_list", $_str); $_str=str_replace("

    \n

    /", "

      ", $_str); $_str=str_replace("

    ", "\n
", $_str); $_str=str_replace("\n

", "\n", $_str); $_str=preg_replace("/
  • (.*?)<\/p>\n

    /", "

  • \\1
    ", $_str); $_str=preg_replace("/

    <([o|u])l><\/li>/", "<\\1l>", $_str); $_str=preg_replace("/

    <([o|u])l><\/p>\n

    class=\"(.*?)\"<\/li>/", "<\\1l class=\"\\2\">", $_str); $_str=str_replace("\t

  • ", "", $_str); $_str=str_replace("
  • ", "
  • ", $_str); $_str=str_replace("
  • ", "", $_str); $_str=preg_replace("/

    (.*?)<\/h([2-4])><\/p>/", "\\2", $_str); $_str=preg_replace("/

    (.*?)<\/h([2-4])>
    \n/", "\\2\n

    ", $_str); $_str=preg_replace("/ \/>id=\"(.*?)\"/", " id=\"\\1\" />", $_str); $_str=preg_replace("/>id=\"(.*?)\"/", " id=\"\\1\">", $_str); $_str=preg_replace("/ \/>class=\"(.*?)\"/", " class=\"\\1\" />", $_str); $_str=preg_replace("/>class=\"(.*?)\"/", " class=\"\\1\">", $_str); $_str=str_replace("

    ", "

    ", $_str); $_str=str_replace("

    ", "

    ", $_str); $_str=preg_replace("/

    <([o|u])l><\/p>\n<\/li>/", "<\\1l\\2>", $_str); $_str=str_replace("\n\n", "\n", $_str); $_str=str_replace("|kitchentable|", "
    Kitchen Styles Features
    Traditional Formal
    Elegant
    Includes characteristics of 18th, 19th and early 20th centuries designs
    Country Light and/or bright colors
    Handmade look
    Includes antiques
    Contemporary Modern, minimalist, geometric
    Horizontal lines, asymmetry
    Manmade materials e.g. stainless steel, glass, laminate
    Transitional Includes elements of traditional and contemporary designs
    Mixes together natural and manmade materials
    ", $_str); return $_str; } function make_UL_list($matches) { return "

      ".preg_replace("/\[\*\](.*?)/is", "\n\t
    • \\1", $matches[1])."
    • \n
    "; } function make_OL_list($matches) { return "
      ".preg_replace("/\[\*\](.*?)/is", "\n\t
    1. \\1", $matches[1])."
    2. \n
    "; } function proper_slashes($var) { if (get_magic_quotes_gpc()) $var=stripslashes($var); return mysql_real_escape_string($var); } function special_chars($str) { $str=str_replace("\r", "", $str); $str=str_replace("<", "<", $str); $str=str_replace(">", ">", $str); $str=str_replace("&", "&", $str); return $str; } function ucwords_exeptions($str) { return preg_replace ("/(?<=(?0) { echo "
      "; while ($rs=mysql_fetch_assoc($result)) { if ($rs['url']=="index") echo "\n\t\t\t\t\t
    • Plumber New York"; else echo "\n\t\t\t\t\t
    • ".special_chars($rs['link_text']).""; if (isset($path_f_id[0]) && ($path_f_id[0]==$rs['id'])) { array_shift($path_f_id); $pre1=$pre.$rs['url']."/"; make_menu($rs['id'], $path_f_id, $pre1); } echo "
    • "; } $pre=substr($pre, strrpos($pre, "/")+1); echo "\n\t\t\t\t
    \n"; } } function make_sitemap($father_id, $pre) { $result=mysql_query("select `id`, `link_text`, `url` from pages where `type`<>'3' and `father_id`='$father_id' and `status`=true and `inmenus`=true order by `type`, `order`, `id` asc"); if (mysql_num_rows($result)>0) { echo "
      "; while ($rs=mysql_fetch_assoc($result)) { $rsid=$rs['id']; if ($rs['url']=="index") echo "\n\t\t\t\t\t
    • Plumber New York"; else echo "\n\t\t\t\t\t
    • ".special_chars($rs['link_text']).""; $result2=mysql_query("select `id` from pages where `father_id`='$rsid' limit 1"); if (mysql_num_rows($result2)>0) { $pre.=$rs['url']."/"; make_sitemap($rsid, $pre); $pre=substr($pre, 0, strrpos(substr($pre, 0, -1), "/"))."/"; if ($pre=="/") $pre=""; } echo "
    • "; } echo "\n\t\t\t\t
    \n"; } } function make_options_tree($father_id) { $result=mysql_query("select `id`, `link_text`, `url`, `status`, `inmenus`, `type` from pages where `father_id`='$father_id' order by `type`, `order`, `id` asc"); if (mysql_num_rows($result)>0) { echo "
      "; while ($rs=mysql_fetch_assoc($result)) { $p_status=($rs['status'])?"":" *"; $p_inner=($rs['inmenus']==true)?"":" *"; $p_subdomain=($rs['type']=="3")?" *":""; $rsid=$rs['id']; echo "\n\t\t\t\t\t
    1. ".$rs['url']."".$p_subdomain.$p_inner.$p_status." (".special_chars($rs['link_text']).")"; $result2=mysql_query("select `id` from pages where `father_id`='$rsid' limit 1"); if (mysql_num_rows($result2)>0) make_options_tree($rsid); echo "
    2. "; } echo "\n\t\t\t\t
    \n"; } } function make_fid_options($father_id, $depth, $edit, $father_id1) { $_edit=($edit===true)?"":" and `id`<>".$edit; $result=mysql_query("select `id`, `url`, `type` from pages where `type`<>'3' and `father_id`='$father_id' and `status`=true and `url`<>'index'$_edit order by `type`, `order`, `id` asc"); if (mysql_num_rows($result)>0) { while ($rs=mysql_fetch_assoc($result)) { $isselected=($father_id1==$rs['id'])?" selected=\"selected\"":""; $type=($rs['type']==1)?"header":"footer"; echo "\n\t\t\t\t\t"; $rsid=$rs['id']; $result2=mysql_query("select `id` from pages where `father_id`='$rsid' limit 1"); if (mysql_num_rows($result2)>0) { $depth++; make_fid_options($rsid, $depth, $edit, $father_id1); $depth--; } } } } function get_emis_form() { echo ' '; } ?>Problems in query. Access denied for user ''@'localhost' (using password: NO)