Database fout: Access denied for user 'cata'@'localhost' (using password: YES)
Database fout: Access denied for user 'cata'@'localhost' (using password: YES)
\\1", $input); $input = preg_replace("/\[i\](.*?)\[\/i\]/si", "\\1", $input); $input = preg_replace("/\[s\](.*?)\[\/s\]/si", "\\1", $input); $input = preg_replace("/\[u\](.*?)\[\/u\]/si", "\\1", $input); $input = preg_replace("/\[tt\](.*?)\[\/tt\]/si", "\\1", $input); $input = preg_replace("/\[sub\](.*?)\[\/sub\]/si", "\\1", $input); $input = preg_replace("/\[sup\](.*?)\[\/sup\]/si", "\\1", $input); $input = preg_replace("/\[center\](.*?)\[\/center\]/si", "
\\1
", $input); $input = preg_replace("/\[img\](.*?)\[\/img\]/si", "", $input); $input = preg_replace("/\[img align=(.*?)\](.*?)\[\/img\]/si", "", $input); $input = preg_replace("/\[center\](.*?)\[\/center\]/si", "
\\1
", $input); $patterns = array(); $replacements = array(); $patterns[0] = "#\[url\]([a-z]+?://){1}(.*?)\[/url\]#si"; $replacements[0] = '\1\2'; $patterns[1] = "#\[url\](.*?)\[/url\]#si"; $replacements[1] = '\1'; $patterns[2] = "#\[url=([a-z]+?://){1}(.*?) target=(.*?)\](.*?)\[/url\]#si"; $replacements[2] = '\4'; $patterns[3] = "#\[url=(.*?) target=(.*?)\](.*?)\[/url\]#si"; $replacements[3] = '\3'; $patterns[4] = "#\[url=([a-z]+?://){1}(.*?)\](.*?)\[/url\]#si"; $replacements[4] = '\3'; $patterns[5] = "#\[url=(.*?)\](.*?)\[/url\]#si"; $replacements[5] = '\2'; $patterns[6] = "#\[email\](.*?)\[/email\]#si"; $replacements[6] = '\1'; $patterns[7] = "#\[email=(.*?)\](.*?)\[/email\]#si"; $replacements[7] = '\2'; $patterns[8] = "#\[color=(.*?)\](.*?)\[/color\]#si"; $replacements[8] = '\2'; $patterns[9] = "#\[size=(.*?)\](.*?)\[/size\]#si"; $replacements[9] = '\2'; $patterns[10] = "#\[font=(.*?)\](.*?)\[/font\]#si"; $replacements[10] = '\2'; $patterns[11] = "#\[align=(.*?)\](.*?)\[/align\]#si"; $replacements[11] = '

\2

'; $patterns[12] = "#\[attach=(.*?)\](.*?)\[/attach\]#si"; $replacements[12] = '\2'; $input = preg_replace($patterns, $replacements, $input); $input = substr($input, 1); return $input; } function bbdecode($input) { $code_start_html = "#
Code:
#si";
		$code_end_html = "#

#si"; $input = preg_replace($code_start_html, "[code]", $input); $input = preg_replace($code_end_html, "[/code]", $input); $quote_start_html = "#
Quote:
#si"; $quote_end_html = "#

#si"; $input = preg_replace($quote_start_html, "[quote]", $input); $input = preg_replace($quote_end_html, "[/quote]", $input); $input = preg_replace("#(.*?)#si", "[s]\\1[/s]", $input); $input = preg_replace("#(.*?)#si", "[u]\\1[/u]", $input); $input = preg_replace("#(.*?)#si", "[tt]\\1[/tt]", $input); $input = preg_replace("#(.*?)#si", "[sub]\\1[/sub]", $input); $input = preg_replace("#(.*?)#si", "[sup]\\1[/sup]", $input); $input = preg_replace("#
(.*?)
#si", "[center]\\1[/center]", $input); $input = preg_replace("#(.*?)#si", "[b]\\1[/b]", $input); $input = preg_replace("#(.*?)#si", "[i]\\1[/i]", $input); $input = preg_replace("#(.*?)#si", "[url=\\1\\2 target=\\3]\\4[/url]", $input); $input = preg_replace("#(.*?)#si", "[url=\\1\\2]\\3[/url]", $input); $input = preg_replace("#(.*?)#si", "[url]\\3[/url]", $input); $input = preg_replace("#(.*?)#si", "[email]\\1[/email]", $input); $input = preg_replace("#(.*?)#si", "[email]\\1[/email]", $input); $input = preg_replace("#(.*?)#si", "[email=\\1]\\2[/email]", $input); $input = preg_replace("##si", "[img]\\1[/img]", $input); $input = preg_replace("##si", "[img align=\\1]\\2[/img]", $input); $input = preg_replace("#
  • #si", "[*]", $input); $input = preg_replace("##si", "[/list]", $input); $input = preg_replace("##si", "[/list]", $input); $input = preg_replace("#(.*?)#si", "[color=\\1]\\2[/color]", $input); $input = preg_replace("#(.*?)#si", "[size=\\1]\\2[/size]", $input); $input = preg_replace("#(.*?)#si", "[font=\\1]\\2[/font]", $input); $input = preg_replace("#

    (.*?)

    #si", "[align=\\1]\\2[/align]", $input); $input = preg_replace("#(.*?)#si", "[attach=\\2]\\3[/attach]", $input); return($input); } function bbencode_quote($input) { if (!strpos(strtolower($input), "[quote]")) { return $input; } $stack = Array(); $curr_pos = 1; while ($curr_pos && ($curr_pos < strlen($input))) { $curr_pos = strpos($input, "[", $curr_pos); if ($curr_pos) { $possible_start = substr($input, $curr_pos, 7); $possible_end = substr($input, $curr_pos, 8); if (strcasecmp("[quote]", $possible_start) == 0) { array_push($stack, $curr_pos); ++$curr_pos; } else if (strcasecmp("[/quote]", $possible_end) == 0) { if (sizeof($stack) > 0) { $start_index = array_pop($stack); $before_start_tag = substr($input, 0, $start_index); $between_tags = substr($input, $start_index + 7, $curr_pos - $start_index - 7); $after_end_tag = substr($input, $curr_pos + 8); $input = $before_start_tag . "
    Quote:
    "; $input .= $between_tags . "

    "; $input .= $after_end_tag; if (sizeof($stack) > 0) { $curr_pos = array_pop($stack); array_push($stack, $curr_pos); ++$curr_pos; } else { $curr_pos = 1; } } else { ++$curr_pos; } } else { ++$curr_pos; } } } return $input; } function bbencode_code($input) { if (!strpos(strtolower($input), "[code]")) { return $input; } $input = preg_replace("/\[([0-9]+?)code\]/si", "[#\\1code]", $input); $input = preg_replace("/\[\/code([0-9]+?)\]/si", "[/code#\\1]", $input); $stack = Array(); $curr_pos = 1; $max_nesting_depth = 0; while ($curr_pos && ($curr_pos < strlen($input))) { $curr_pos = strpos($input, "[", $curr_pos); if ($curr_pos) { $possible_start = substr($input, $curr_pos, 6); $possible_end = substr($input, $curr_pos, 7); if (strcasecmp("[code]", $possible_start) == 0) { array_push($stack, $curr_pos); ++$curr_pos; } else if (strcasecmp("[/code]", $possible_end) == 0) { if (sizeof($stack) > 0) { $curr_nesting_depth = sizeof($stack); $max_nesting_depth = ($curr_nesting_depth > $max_nesting_depth) ? $curr_nesting_depth : $max_nesting_depth; $start_index = array_pop($stack); $before_start_tag = substr($input, 0, $start_index); $between_tags = substr($input, $start_index + 6, $curr_pos - $start_index - 6); $after_end_tag = substr($input, $curr_pos + 7); $input = $before_start_tag . "[" . $curr_nesting_depth . "code]"; $input .= $between_tags . "[/code" . $curr_nesting_depth . "]"; $input .= $after_end_tag; if (sizeof($stack) > 0) { $curr_pos = array_pop($stack); array_push($stack, $curr_pos); ++$curr_pos; } else { $curr_pos = 1; } } else { ++$curr_pos; } } else { ++$curr_pos; } } } if ($max_nesting_depth > 0) { for ($i = 1; $i <= $max_nesting_depth; ++$i) { $start_tag = escape_slashes(preg_quote("[" . $i . "code]")); $end_tag = escape_slashes(preg_quote("[/code" . $i . "]")); $match_count = preg_match_all("/$start_tag(.*?)$end_tag/si", $input, $matches); for ($j = 0; $j < $match_count; $j++) { $before_replace = escape_slashes(preg_quote($matches[1][$j])); $after_replace = $matches[1][$j]; if($i < 2) { $after_replace = htmlspecialchars($after_replace); } $str_to_match = $start_tag . $before_replace . $end_tag; $input = preg_replace("/$str_to_match/si", "
    Code:
    $after_replace

    ", $input); } } } $input = preg_replace("/\[#([0-9]+?)code\]/si", "[\\1code]", $input); $input = preg_replace("/\[\/code#([0-9]+?)\]/si", "[/code\\1]", $input); return $input; } function bbencode_list($input) { $start_length = Array(); $start_length["ordered"] = 8; $start_length["unordered"] = 6; if (!strpos(strtolower($input), "[list")) { return $input; } $stack = Array(); $curr_pos = 1; while ($curr_pos && ($curr_pos < strlen($input))) { $curr_pos = strpos($input, "[", $curr_pos); if ($curr_pos) { $possible_ordered_start = substr($input, $curr_pos, $start_length["ordered"]); $possible_unordered_start = substr($input, $curr_pos, $start_length["unordered"]); $possible_end = substr($input, $curr_pos, 7); if (strcasecmp("[list]", $possible_unordered_start) == 0) { array_push($stack, array($curr_pos, "")); ++$curr_pos; } else if (preg_match("/\[list=([a1])\]/si", $possible_ordered_start, $matches)) { array_push($stack, array($curr_pos, $matches[1])); ++$curr_pos; } else if (strcasecmp("[/list]", $possible_end) == 0) { if (sizeof($stack) > 0) { $start = array_pop($stack); $start_index = $start[0]; $start_char = $start[1]; $is_ordered = ($start_char != ""); $start_tag_length = ($is_ordered) ? $start_length["ordered"] : $start_length["unordered"]; $before_start_tag = substr($input, 0, $start_index); $between_tags = substr($input, $start_index + $start_tag_length, $curr_pos - $start_index - $start_tag_length); $between_tags = str_replace("[*]", "
  • ", $between_tags); $after_end_tag = substr($input, $curr_pos + 7); if ($is_ordered) { $input = $before_start_tag . "
      "; $input .= $between_tags . "
    "; } else { $input = $before_start_tag . ""; } $input .= $after_end_tag; if (sizeof($stack) > 0) { $a = array_pop($stack); $curr_pos = $a[0]; array_push($stack, $a); ++$curr_pos; } else { $curr_pos = 1; } } else { ++$curr_pos; } } else { ++$curr_pos; } } } return $input; } /* function bb2html($text) { $bbcode = array("[list]", "[*]", "[/list]", "[img]", "[/img]", "[b]", "[/b]", "[u]", "[/u]", "[i]", "[/i]", '[color="', "[/color]", "[size=\"", "[/size]", '[url="', "[/url]", "[mail=\"", "[/mail]", "[code]", "[/code]", "[quote]", "[/quote]", '"]'); $htmlcode = array("", "", "", "", "", "", "", "", "", "", '", "", "", "", "
    ", "
    ", '">'); $newtext = str_replace($bbcode, $htmlcode, $text); //$newtext = nl2br($newtext);//second pass return $newtext; } $bb_codes = array( # subheading, times '[b]' => '', '[/b]' => '', # subsubheading '[i]' => '', '[/i]' => '' # note the missing comma after the last line above ); function convert_bb_codes( $t ) { $search = array_keys( $GLOBALS['bb_codes'] ); $t = str_replace( $search, $GLOBALS['bbk_codes'], $t ); return $t; } */ ?>


    Ana Catarina Fernandes Alves da Cunha Cutileiro
    ACC restaurations
    ACC restaurations
    ACC restaurations
    Ana Catarina Cutileiro
    ACC restaurations
    ACC restaurations
    ACC Restaurations
    ACC Restaurations
    ACC Restaurations
    ACC Restaurations
    ACC Restaurations
    ACC Restaurations
    ACC Restaurations
    ACC restaurationsACC restaurations