$value) { $_POST[$key] = mysql_real_escape_string($value); } foreach ($_GET as $key => $value) { $_GET[$key] = mysql_real_escape_string($value); } ?>/",">",$val); $val = str_replace(">*>",">",$val); $val = str_replace("fimo-shop.nl","***.nl",$val); $val = str_replace("moncler.com","***.com",$val); $val = str_replace("<*<","<",$val); $val = preg_replace("/\\\'/","'",$val); $val = preg_replace('/\\\"/','"',$val); $val = str_replace("(a)","Engel",$val); $val = str_replace(":@","Boos",$val); $val = str_replace(":s","Verward",$val); $val = str_replace(":S","Verward",$val); $val = str_replace(":d","Grijns",$val); $val = str_replace(":D","Grijns",$val); $val = str_replace(":p",":p",$val); $val = str_replace(":P",":P",$val); $val = str_replace(":O","Gasp",$val); $val = str_replace(":o","Gasp",$val); $val = str_replace(":)","smiley",$val); $val = str_replace(":$","Blozen",$val); $val = str_replace("(L)","Hart",$val); $val = str_replace("(l)","Hart",$val); $val = str_replace("^^","vrolijk",$val); $val = str_replace("oO","huh",$val); $val = str_replace("xD","xD",$val); $val = str_replace("XD","xD",$val); $val = str_replace(":'(","Huilen",$val); $val = str_replace("(6)","Duiveltje",$val); $val = str_replace(":(","Verdrietig",$val); $val = str_replace(";)","Knipoog",$val); $val = str_replace("(A)","Engel",$val); $val = str_replace("(Y)","Duim omhoog",$val); $val = str_replace("(y)","Duim omhoog",$val); $val = str_replace("(N)","Duim omlaag",$val); $val = str_replace("(n)","Duim omlaag",$val); $val = str_replace("(H)","Zonnebril",$val); $val = str_replace("(h)","Zonnebril",$val); $val = str_replace(":X","Geheimpje",$val); $val = str_replace("^o)","Denkend",$val); $val = str_replace(":x","Geheimpje",$val); $val = str_replace("|-)","Moe",$val); $val = str_replace("+-(","Ziek",$val); $val = bb_parse($val); $val = preg_replace("/_br_/","
",$val); return $val; } function veld($na,$st,$va){ $va = fromdb($va); if($st==true){ $class = ""; if(strrpos($na,"datum")){ $class = " class='datum'"; } $return = ""; } else { $return = $va; } return $return; } function tekst($na,$st,$va){ $va = fromdb($va); if($st==true){ return ""; } else { return preg_replace("/\n/","
",$va); } } function box($na,$st,$va){ if($st==true){ return ""; } else { return ""; } } function remove_accent($str) { $a = array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'A', 'a', 'A', 'a', 'A', 'a', 'C', 'c', 'C', 'c', 'C', 'c', 'C', 'c', 'D', 'd', '', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'G', 'g', 'G', 'g', 'G', 'g', 'G', 'g', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'J', 'j', 'K', 'k', 'L', 'l', 'L', 'l', 'L', 'l', 'L', 'l', 'N', 'n', 'N', 'n', 'N', 'n', 'O', 'o', 'O', 'o', 'O', 'o', '', '', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', '', '', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'W', 'w', 'Y', 'y', '', 'Z', 'z', 'Z', 'z', '', '', '', 'O', 'o', 'U', 'u', 'A', 'a', 'I', 'i', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u'); $b = array('A', 'A', 'A', 'A', 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I', 'D', 'N', 'O', 'O', 'O', 'O', 'O', 'O', 'U', 'U', 'U', 'U', 'Y', 's', 'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i', 'n', 'o', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'y', 'y', 'A', 'a', 'A', 'a', 'A', 'a', 'C', 'c', 'C', 'c', 'C', 'c', 'C', 'c', 'D', 'd', 'D', 'd', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'E', 'e', 'G', 'g', 'G', 'g', 'G', 'g', 'G', 'g', 'H', 'h', 'H', 'h', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'I', 'i', 'J', 'j', 'K', 'k', 'L', 'l', 'L', 'l', 'L', 'l', 'l', 'l', 'N', 'n', 'N', 'n', 'N', 'n', 'O', 'o', 'O', 'o', 'O', 'o', 'OE', 'oe', 'R', 'r', 'R', 'r', 'R', 'r', 'S', 's', 'S', 's', 'S', 's', 'S', 's', 'T', 't', 'T', 't', 'T', 't', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'W', 'w', 'Y', 'y', 'Y', 'Z', 'z', 'Z', 'z', 'Z', 's', 'f', 'O', 'o', 'U', 'u', 'A', 'a', 'I', 'i', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u', 'U', 'u'); return str_replace($a, $b, $str); } function tourl($val){ $val = remove_accent($val); $val = strtolower(preg_replace("/ /","-",$val)); $val = preg_replace('~[^\\pL0-9]+~u', '-', $val); return $val; } function fromdb ($string) { $string = str_replace('\\\\\\"','"',$string); $string = str_replace("\\\\\\'","'",$string); $string = str_replace('\\"','"',$string); $string = str_replace("\\'","'",$string); return $string; } function bb_parse($string){ global $url; // outdated? /* while (preg_match_all('`\[(.+?)=?(.*?)\](.+?)\[/\1\]`', $string, $matches)) foreach ($matches[0] as $key => $match) { list($tag, $param, $innertext) = array($matches[1][$key], $matches[2][$key], $matches[3][$key]); switch ($tag) { */ $string = fromdb($string); $string = preg_replace("//"," ",$string); $string = preg_replace("/\[tab\]/","     ",$string); $string = preg_replace("/\[brunotti\]/",'Brunottishop.com - Brunotti Kleding & Accessoires',$string); $tags = 'b|i|u|ul|size|color|center|quote|url|mail|img|video'; while (preg_match_all('`\[('.$tags.')=?(.*?)\](.+?)\[/\1\]`s', $string, $matches)) foreach ($matches[0] as $key => $match) { list($tag, $param, $innertext) = array($matches[1][$key], $matches[2][$key], $matches[3][$key]); switch ($tag) { case 'b': $replacement = "$innertext"; break; case 'i': $replacement = "$innertext"; break; case 'u': $replacement = "$innertext"; break; case 'ul': $replacement = ""; break; case 'size': $replacement = "$innertext"; break; case 'color': $replacement = "$innertext"; break; case 'center': $replacement = "
$innertext
"; break; case 'quote': $replacement = $param? "Gepost door $param" : ''; $replacement .= "
$innertext
"; break; case 'url': $link = ($param? preg_replace("/http\:\/\//","",$param) : preg_replace("/http\:\/\//","",$innertext)); //if(!strpos($link,$_SERVER["SERVER_NAME"])){ $blank = "\" target=\"_blanc";} else { $blank = ""; } if(substr($link,0,1)=="/"){ $replacement = '$innertext"; } else { $replacement = '$innertext"; } break; case 'mail': $link = ($param? $param : $innertext); $replacement = '$innertext"; break; case 'img': $een = ""; $drie = ""; list($width, $height) = $param? preg_split('`[Xx]`', $param): array('',''); if(strpos($innertext,":")){ $spinner = explode(":",$innertext); if(is_numeric($spinner[0])){ $innertext = $url . "/getthumb.php?img=". $spinner[0]; $een = ""; $drie = ""; } } else { if(strpos($innertext,"scenehair.nl/pics/")||substr($innertext, 0, 6)=="/pics/"){ $een = ""; $drie = ""; } } $replacement = $een."'.$drie; break; case 'video': $videourl = parse_url($innertext); parse_str($videourl['query'], $videoquery); if (strpos($videourl['host'], 'youtube.com') !== FALSE) $replacement = ''; if (strpos($videourl['host'], 'google.com') !== FALSE) $replacement = ''; break; } $string = str_replace($match, $replacement, $string); } return $string; } function user($i){ $sau = mysql_query("SELECT * FROM gebruikers WHERE id = '". $i ."'"); if($aus=mysql_fetch_array($sau)){ return ucfirst($aus['nickname']); } else { return "Gast"; } } function avatar($i){ global $url; $sau = mysql_query("SELECT pics.id, gebruikers.nickname FROM pics LEFT JOIN gebruikers ON pics.user = gebruikers.id WHERE pics.user = '". $i ."' AND pics.avatar = '1'"); if($aus=mysql_fetch_array($sau)){ return "avatar"; } else { return "avatar standaard"; } } function birthday ($birthday){ list($year,$month,$day) = explode("-",$birthday); $year_diff = date("Y") - $year; $month_diff = date("m") - $month; $day_diff = date("d") - $day; if ($month_diff < 0){ $year_diff--;} elseif (($month_diff==0) && ($day_diff < 0)){ $year_diff--;} return $year_diff; } function login(){ return "


"; } ?>
Fatal error: Call to undefined function user() in /home/admin/domains/scenehair.nl/public_html/index.php on line 588