now()) "; } if ($id) { $where .= "AND id = $id"; } elseif ($ids == null) { $where .= "AND category = '$cat'"; } else { $where .= "AND idstring = '$ids' AND category = '$cat'"; } $where = substr($where, 4); $query = "SELECT * FROM content WHERE $where ORDER BY stamp DESC LIMIT 0, 1"; // echo "\n\n\n\n"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); if (mysql_num_rows($result) > 0) { $row = mysql_fetch_object($result); // increment counter $thisip = $_SERVER['REMOTE_ADDR']; if ($count && $thisip != $row->lastip && $thisip != $row->lastip1 && $thisip != $row->lastip2 && $thisip != '82.95.232.105') { $query = "UPDATE content SET counter=counter+1, lastip2=lastip1, lastip1=lastip, lastip='$thisip' WHERE id=$row->id"; // echo ""; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); } return $row; } else return NULL; } function scram($val) { $val = strip_tags($val, '
    1. '); $val = preg_replace('/(\r|\n|\t| )*$/', '', $val); $val = preg_replace('/\*\*\*([^*]*)\*\*\*/', '$1', $val); // ***italic*** becomes italic $val = str_replace('"', '”', $val); // replace simple doublequotes with ” $val = nl2br($val); return $val; } function mynl2br($val) { return (string)str_replace(array("\r\n", "\r", "\n", "'", '"'), array('
      ', '
      ', '
      ', '’', '"'), $val); } function cleanget($val) { if (isset($_GET[$val])) return preg_replace('/[^0-9a-zA-Z _=%+-.]+/', '', $_GET[$val]); else return null; } function cleaninput($val) { return preg_replace('/[^0-9a-zA-Z _=%+-.]+/', '', $val); } function cleaninputint($val) { return preg_replace('/[0-9]+/', '', $val); } function urltitle($val) { $thistitle = preg_replace('/[^0-9a-zA-Z _-]+/', '', $val); $thistitle = str_replace(' ', '+', $thistitle); return $thistitle; } function niceDate($val='') { // donderdag 28 mei if ($val == null || $val == "") $strval = date('Y-n-j'); else $strval = $val; $arr = explode('-', $strval); if (substr($arr[2],0,1) == '0') $arr[2] = substr($arr[2],1,1); return getDowXL($strval) . ' ' . $arr[2] . ' ' . getMonthXL($strval); } function listLinks($cat, $title) { $where = "publish != 0 AND delete_stamp is NULL "; $where .= "AND (embargo_stamp is NULL || embargo_stamp < now()) "; $where .= "AND (expire_stamp is NULL || expire_stamp > now()) "; $where .= "AND category = 'link' AND subcategory = '$cat'"; $query = "SELECT * FROM content WHERE $where ORDER BY title LIMIT 0, 999"; // echo "\n\n\n\n"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); $linkcount = 0; if (mysql_num_rows($result) > 0) { echo "\n\n"; } else echo "Geen links beschikbaar\n\n"; } /* ************************************* */ function formatDate($val) { if ($val == null || $val == "") { return ""; } else { $arr = explode("-", $val); return date("d-M-Y", mktime(0,0,0, $arr[1], $arr[2], $arr[0])); } } function dutchDate($val) { // 5-1-2008 if ($val == null || $val == "") { return ""; } else { $arr = explode("-", $val); return date("j-n-Y", mktime(0,0,0, $arr[1], $arr[2], $arr[0])); } } function dutchDatedm($val) { // 5 jan if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", "" . $val); $arrdate = explode("-", $arr[0]); $return = getDow($arr[0]); $return .= " "; $return .= 0+$arrdate[2]; $return .= " "; $return .= getMonth($arr[0]); return $return; } } function dutchDatetime($val) { // dinsdag, 22 januari 2008, 8.00 uur if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", "" . $val); $arrdate = explode("-", $arr[0]); $arrtime = explode(":", $arr[1]); $return = getDowXL($arr[0]); // echo "\n"; $return .= ", "; $return .= 0+$arrdate[2]; $return .= " "; $return .= getMonthXL($arr[0]); $return .= " "; $return .= $arrdate[0]; $return .= ", "; $return .= 0+$arrtime[0]; $return .= "."; $return .= $arrtime[1]; $return .= " uur"; // echo "\n"; return $return; } } function dutchTime($val) { // 8.00 uur if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", "" . $val); $arrdate = explode("-", $arr[0]); $arrtime = explode(":", $arr[1]); $return = 0+$arrtime[0]; $return .= "."; $return .= $arrtime[1]; $return .= " uur"; // echo "\n"; return $return; } } function dutchDayDate($val) { // dinsdag, 22 januari 2008 if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", "" . $val); $arrdate = explode("-", $arr[0]); $return = getDowXL($arr[0]); // echo "\n"; $return .= ", "; $return .= 0+$arrdate[2]; $return .= " "; $return .= getMonthXL($arr[0]); $return .= " "; $return .= $arrdate[0]; // echo "\n"; return $return; } } function sDutchDayDate($val) { // di, 22 jan 2008 if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", "" . $val); $arrdate = explode("-", $arr[0]); $return = getDow($arr[0]); // echo "\n"; $return .= ", "; $return .= 0+$arrdate[2]; $return .= " "; $return .= getMonth($arr[0]); $return .= " "; $return .= $arrdate[0]; // echo "\n"; return $return; } } function shortDutchDatetime($val) { // di, 22 jan 2008, 8.00 uur if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", "" . $val); $arrdate = explode("-", $arr[0]); $arrtime = explode(":", $arr[1]); $return = getDow($arr[0]); // echo "\n"; $return .= ", "; $return .= 0+$arrdate[2]; $return .= " "; $return .= getMonth($arr[0]); $return .= " "; $return .= $arrdate[0]; $return .= ", "; $return .= 0+$arrtime[0]; $return .= "."; $return .= $arrtime[1]; $return .= " uur"; // echo "\n"; return $return; } } function sDutchDatetime($val) { if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", "" . $val); $arrdate = explode("-", $arr[0]); $return = getDowXL($arr[0]); // echo "\n"; $return .= ", "; $return .= 0+$arrdate[2]; $return .= " "; $return .= getMonthXL($arr[0]); // echo "\n"; return $return; } } function artDate($val) { if ($val == null || $val == "") { return ""; } else { $arr = explode("-", $val); $return = 0+$arr[2]; $return .= " "; $return .= getMonthXL($val); $return .= " "; $return .= $arr[0]; return $return; } } function formatDatetime($val) { if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", $val); $arrdate = explode("-", $arr[0]); $arrtime = explode(":", $arr[1]); return date("D j-M-Y G:i:s", mktime($arrtime[0], $arrtime[1], $arrtime[2], $arrdate[1], $arrdate[2], $arrdate[0])); } } function inputDatetime($val) { if ($val == null || $val == "") { return ""; } else { $arr = explode(" ", $val); $arrdate = explode("-", $arr[0]); $arrtime = explode(":", $arr[1]); return date("j-n G:i", mktime($arrtime[0], $arrtime[1], $arrtime[2], $arrdate[1], $arrdate[2], $arrdate[0])); } } function formalDate($val) { if ($val == null || $val == "") { return ""; } else { return date("Y-m-d", $val); } } function formalDatetime($val) { if ($val == null || $val == "") { return ""; } else { return date("Y-m-d H:i:s", $val); } } function setfromto($from, $to, $fromflag) { $fromyear = getYear($from); $toyear = getYear($to); $thisyear = getYear(formalDate(time())); if ($fromyear != $thisyear) { $fromyear = " " . $fromyear; } else { $fromyear = ""; } if ($toyear != $thisyear) { $toyear = " " . $toyear; } else { $toyear = ""; } if ($fromyear == $toyear) { $fromyear = ""; } if ($from == "" && $to == "") { $fromto = ""; } else if ($from != "" && $to != "" ) { if (getMonth($from) == getMonth($to) && getYear($from) == getYear($to)) { $fromto = getDow($from) . " " . getDom($from) . " t/m " . getDow($to) . " " . getDom($to) . " " . getMonth($to) . $toyear; } else { $fromto = getDow($from) . " " . getDom($from) . " " . getMonth($from) . $fromyear . " t/m " . getDow($to) . " " . getDom($to) . " " . getMonth($to) . $toyear; } } else if ($from != "" && $fromflag == 1) { $fromto = "vanaf " . getDow($from) . " " . getDom($from) . " " . getMonth($from) . $fromyear; } else if ($from == "") { $fromto = "t/m " . getDow($to) . " " . getDom($to) . " " . getMonth($to) . $toyear; } else if ($from != "") { $fromto = getDow($from) . " " . getDom($from) . " " . getMonth($from) . $fromyear; } return $fromto; } function setfromtoXL($from, $to, $fromflag) { $fromyear = getYear($from); $toyear = getYear($to); $thisyear = getYear(formalDate(time())); if ($fromyear != $thisyear) { $fromyear = " " . $fromyear; } else { $fromyear = ""; } if ($toyear != $thisyear) { $toyear = " " . $toyear; } else { $toyear = ""; } if ($fromyear == $toyear) { $fromyear = ""; } if ($from == "" && $to == "") { $fromto = ""; } else if ($from != "" && $to != "" ) { if (getMonth($from) == getMonth($to) && getYear($from) == getYear($to)) { $fromto = getDowXL($from) . " " . getDom($from) . " t/m " . getDowXL($to) . " " . getDom($to) . " " . getMonthXL($to) . $toyear; } else { $fromto = getDowXL($from) . " " . getDom($from) . " " . getMonthXL($from) . $fromyear . " t/m " . getDowXL($to) . " " . getDom($to) . " " . getMonthXL($to) . $toyear; } } else if ($from != "" && $fromflag == 1) { $fromto = "vanaf " . getDowXL($from) . " " . getDom($from) . " " . getMonthXL($from) . $fromyear; } else if ($from == "") { $fromto = "t/m " . getDowXL($to) . " " . getDom($to) . " " . getMonthXL($to) . $toyear; } else if ($from != "") { $fromto = getDowXL($from) . " " . getDom($from) . " " . getMonthXL($from) . $fromyear; } return $fromto; } function getMonth($val) { $arrmonths = array( "", "jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec" ); if ($val == "") { return $val; } else { $arr = explode("-", $val); return $arrmonths[0 + $arr[1]]; } } function getMonthXL($val) { $arrmonths = array( "", "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december" ); if ($val == "") { return $val; } else { $arr = explode("-", $val); return $arrmonths[0 + $arr[1]]; } } function getDow($val) { $arrdays = array( "zo", "ma", "di", "wo", "do", "vr", "za", "zo" ); if ($val == "") { return $val; } else { $arr = explode("-", $val); return $arrdays[0 + date("w", mktime(0,0,0, $arr[1], $arr[2], $arr[0]))]; } } function getDowXL($val) { $arrdays = array( "zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag", "zondag" ); if ($val == "") { return $val; } else { $arr = explode("-", $val); return $arrdays[0 + date("w", mktime(0,0,0, $arr[1], $arr[2], $arr[0]))]; } } function getDom($val) { if ($val == "") { return $val; } else { $arr = explode("-", $val); return 0 + $arr[2]; } } function getYear($val) { if ($val == "") { return $val; } else { $arr = explode("-", $val); return $arr[0]; } } function proper($val) { $val = strip_tags($val, '
        1. ', '' , '' , $html); $html = str_replace('
          '); $val = preg_replace('/(\r|\n|\t| )*$/', '', $val); $val = preg_replace('/\*\*\*([^*]*)\*\*\*/', '$1', $val); $val = str_replace('"', '', $val); return $val; } function html($val) { $mysrch = array('', '', '', '', '', '', '
            ', '
          ', '
            ', '
          ', '
        2. ', '', '
          ', '
        3. '); $myrplc = array('**i**', '**/i**', '**b**', '**/b**', '**u**', '**/u**', '**ul**', '**/ul**', '**ol**', '**/ol**', '**li**', '**table**', '**/table**', '**tr**', '**td**'); $html = str_replace($mysrch, $myrplc, $val); // retain escaped ampersand for URLs $html = str_replace('\&' , '**ampersand**' , $html); $html = str_replace('&' , '&' , $html); $html = str_replace('**ampersand**', '&' , $html); $html = str_replace('<', '<', $html); $html = str_replace('>', '>', $html); $html = str_replace($myrplc, $mysrch, $html); $html = preg_replace("/\r\n/", "
          ", $html); $html = preg_replace("/\r/" , "
          ", $html); $html = preg_replace("/\n/" , "
          ", $html); $html = str_replace('
        4. ' , '
        5. ' , $html); $html = str_replace('
          ' , '' , $html); $html = str_replace('

          ', '' , $html); $html = str_replace('
        6. ' , '
      ' , $html); $myspecialchars = array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ); $myhtmlentities = array('à', 'ä', 'á', 'â', 'ã', 'è', 'ë', 'é', 'ê', 'ì', 'ï', 'í', 'î', 'ò', 'ö', 'ó', 'ô', 'õ', 'ù', 'ü', 'ú', 'û', '‘', '’', '“', '”', '€', '-', '...' ); $html = str_replace($myspecialchars, $myhtmlentities, $html); return $html; } function convertjoomlaxml($val) { $mysrch = array('‘', '’', '', '', '“', '”', ' ', 'ä', 'á', 'ë', 'é', 'ï', '*', 'ö', 'ó', 'ü', 'ú', '…'); $myrplc = array('‘', '’', '“', '”', '“', '”', 'à', 'ä', 'á', 'ë', 'é', 'ï', 'í', 'ö', 'ó', 'ü', 'ú', '...'); return str_replace($mysrch, $myrplc, $val); } function makeLinks($text) { // My very own function plain simple, effective and reasonably bulletproof // requires http:// to recognize a URL $validchars = "[^ ,;!(){}<>^`'\"]"; //" Everything except... return preg_replace( array( "/(http:\/\/)($validchars+[a-z0-9])?/i", // http urls "/(https:\/\/)($validchars+[a-z0-9])/i", // https urls "/\b([\w\.-]+)(@)([\w\.-]+)\b/i", // email addresses "/([^\/])(www.$validchars+)/i", // www urls "/^(www.$validchars+)/i"), // www urls at the beginning array( "$2", "$2", " $0 ", "$1$2", "$1"), $text ); } function insertPics($text) { return preg_replace("/\[img (.*)\]/", "
      ", $text); } function echoselect($type, $curr) { $query = "SELECT * FROM enum where enumtype = '" . $type . "' && enumdelete = 0 ORDER BY enumnameshort"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); // echo "\n\n"; if (mysql_num_rows($result) > 0) { while($enum = mysql_fetch_object($result)) { if ($enum->enumnameshort == $curr) echo ""; } } echo "\n"; } function echoselectplaatsthisuser($curr, $user) { $query = "SELECT * FROM enum WHERE enumtype = 'plaats' AND enumnameshort LIKE '%$user%' ORDER BY enumnameshort"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); // echo "\n\n"; if (mysql_num_rows($result) > 0) { while($enum = mysql_fetch_object($result)) { if ($enum->enumnameshort == $curr) echo ""; } } echo "\n"; } function set_orderclause($order) { if ($order == "title" ) { $orderclause = "title, datefrom, dateto"; } elseif ($order == "place" ) { $orderclause = "place, datefrom, dateto"; } elseif ($order == "region" ) { $orderclause = "region, datefrom, dateto"; } elseif ($order == "org" ) { $orderclause = "org, datefrom, dateto"; } elseif ($order == "category") { $orderclause = "category, datefrom, dateto"; } elseif ($order == "target" ) { $orderclause = "target desc, datefrom, dateto"; } elseif ($order == "created" ) { $orderclause = "create_stamp"; } elseif ($order == "id" ) { $orderclause = "id"; } elseif ($order == "changed" ) { $orderclause = "change_stamp"; } else { $orderclause = "datefrom, dateto"; } return $orderclause; } function set_whereclause($selper, $selreg, $selcat, $seltrg, $selorg, $selown, $selall, $thisuser) { $whereclause = ""; if ($selper && $selper != "*") { $today = date("Y-m-d", time()); $arrtoday = explode("-", $today); $month1 = ($arrtoday[1]+$selper-2)%12+1; $month2 = ($arrtoday[1]+$selper-1)%12+1; if ($arrtoday[1] + $selper <= 13) $year1 = $arrtoday[0]; else $year1 = $arrtoday[0] + 1; if ($arrtoday[1] + $selper <= 12) $year2 = $arrtoday[0]; else $year2 = $arrtoday[0] + 1; $whereclause .= "AND (datefrom >= '$year1-$month1-1' AND datefrom < '$year2-$month2-1' || " . "dateto >= '$year1-$month1-1' AND dateto < '$year2-$month2-1') "; } if ($selreg && $selreg != "*") $whereclause .= "AND region = '$selreg' "; if ($selcat && $selcat != "*") $whereclause .= "AND category = '$selcat' "; if ($seltrg && $seltrg != "*") $whereclause .= "AND target = '$seltrg' "; if ($selorg && $selorg != "*") $whereclause .= "AND org = '$selorg' "; if ($selown != "" && $selown != "false") $whereclause .= "AND create_login = '$thisuser' "; if ($selall == "" || $selall == "false") $whereclause .= "AND delete_login is null AND dateexp >= now() "; if ($whereclause) $whereclause = "WHERE " . substr($whereclause, 4); return $whereclause; } function knuser($user) { $valid = false; if ($user=='admin') $valid = true; if ($user=='wim') $valid = true; if ($user=='alain') $valid = true; if ($user=='willem') $valid = true; return $valid; } function addlog($user, $action) { $action = str_replace("'", "\'", $action); $action = str_replace("\\\\'", "\'", $action); $query = "INSERT INTO log (logstamp, loguser, logaction) VALUES (NOW(), '$user', '$action')"; // echo "\n\n"; $result = mysql_query($query) or die ("Error in query: $query " . mysql_error()); } function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } function img_upload($img_idstring, $ids, $postfix, $img_overwrite, $img_path, $max_wdth, $max_hght, &$img_src, &$errorList) { if ($_FILES["$img_idstring"]['error'] == UPLOAD_ERR_OK) { $userfile_temp = $_FILES["$img_idstring"]['tmp_name']; $userfile_name = $_FILES["$img_idstring"]['name']; $userfile_extn = strtolower(substr($userfile_name, -3)); // extension = last three characters $userfile_size = $_FILES["$img_idstring"]['size']; // get filesize $userfile_type = $_FILES["$img_idstring"]['type']; // get filetype $userfile_arry = getimagesize($userfile_temp); // get pixelsize $userfile_wdth = $userfile_arry[0]; $userfile_hght = $userfile_arry[1]; $target_name = "${ids}${postfix}.${userfile_extn}"; $target_full = "${img_path}${target_name}"; /* echo "\n"; echo "
      bestandsnaam temp:$userfile_temp"; echo "
      bestandsnaam:$userfile_name"; echo "
      extensie:$userfile_extn"; echo "
      bestandsgrootte:". number_format($userfile_size, 0, ",", ".") . " bytes"; echo "
      bestandstype:$userfile_type"; echo "
      breedte:$userfile_wdth pixels"; echo "
      hoogte:$userfile_hght pixels"; echo "
      target:$target_full"; echo "

      \n"; */ if (!$ids) $errorList[$count++] = "Geen idstring opgegeven"; if (file_exists($target_full) && !$img_overwrite) $errorList[$count++] = "Bestand $target_full bestaat al ($postfix)"; if ($userfile_size > 2100000) $errorList[$count++] = "Bestand is te groot ($userfile_size / maximaal 2MB)"; if (strpos(" $userfile_extn ", " jpg gif png ")) $errorList[$count++] = "Type bestand is niet toegestaan (alleen jpg/gif/png)"; if ($userfile_wdth > $max_wdth || $userfile_hght > $max_hght) $errorList[$count++] = "Plaatje ($userfile_wdth x $userfile_hght) is te groot (maximaal $max_wdth x $max_hght pixels)"; if (sizeof($errorList) == 0) { if (true) { // WimK simple copy or FTP $copied = copy($userfile_temp, $target_full); if ($copied) { $img_src = $target_name; $returnval = true; } else { $errors= error_get_last(); echo "\n\n\n\n"; $errorList[$count++] = "Upload bestand kon niet worden gekopierd (copy)"; $returnval = FALSE; } } else { $conn_id = ftp_connect($ftphst, 21) or die ("Cannot connect to host"); ftp_login($conn_id, $ftpusr, $ftppwd) or die("Cannot login"); // ftp_pasv ($conn_id, true); // change target_full to work with ftp_put $target_full = "/httpdocs/" . substr($target_full,3,999); $upload = ftp_put($conn_id, $target_full, $userfile_temp, FTP_BINARY); if ($upload) { $img_src = $target_name; $returnval = true; } else { $errorList[$count++] = "Upload bestand kon niet worden gekopierd (ftp)"; $returnval= FALSE; } ftp_close($conn_id); } return $returnval; } } } function smart_img_upload($img_idstring, $ids, $postfix, $img_overwrite, $img_path, $max_wdth, $max_hght, $max_thmb, &$img_src, &$errorList) { echo "\n"; if ($_FILES["$img_idstring"]['error'] == UPLOAD_ERR_OK) { $userfile_temp = $_FILES["$img_idstring"]['tmp_name']; $userfile_name = $_FILES["$img_idstring"]['name']; $userfile_extn = strtolower(substr($userfile_name, -3)); // extension = last three characters $userfile_size = $_FILES["$img_idstring"]['size']; // get filesize $userfile_type = $_FILES["$img_idstring"]['type']; // get filetype $userfile_arry = getimagesize($userfile_temp); // get pixelsize $userfile_wdth = $userfile_arry[0]; $userfile_hght = $userfile_arry[1]; $userfile_larg = $userfile_wdth > $max_thmb || $userfile_hght > $max_thmb; // boolean large $target_temp = "{$img_path}{$ids}{$postfix}-tmp.${userfile_extn}"; $target_larg = "{$img_path}{$ids}{$postfix}-xl.${userfile_extn}"; $target_thmb = "{$img_path}{$ids}{$postfix}.${userfile_extn}"; $target_file = "{$ids}{$postfix}.${userfile_extn}"; /* echo "\n"; echo "
      bestandsnaam temp:$userfile_temp"; echo "
      bestandsnaam:$userfile_name"; echo "
      extensie:$userfile_extn"; echo "
      bestandsgrootte:". number_format($userfile_size, 0, ",", ".") . " bytes"; echo "
      bestandstype:$userfile_type"; echo "
      breedte:$userfile_wdth pixels"; echo "
      hoogte:$userfile_hght pixels"; echo "
      doelbestand temp:$target_temp"; echo "
      doelbestand thmb:$target_thmb"; echo "
      doelbestand larg:$target_larg"; echo "

      \n"; */ // check for errors if (!$ids) $errorList[$count++] = "Geen idstring opgegeven"; if (file_exists("$target_thmb") && !$img_overwrite) $errorList[$count++] = "Bestand $target_thmb bestaat al ($postfix)"; //if ($userfile_size > 2100000) $errorList[$count++] = "Bestand is te groot ($userfile_size / maximaal 2MB)"; if (strpos(" $userfile_extn ", " jpg gif png ")) $errorList[$count++] = "Type bestand is niet toegestaan (alleen jpg/gif/png)"; //if ($userfile_wdth > $max_wdth || $userfile_hght > $max_hght) $errorList[$count++] = "Plaatje ($userfile_wdth x $userfile_hght) is te groot (maximaal $max_wdth x $max_hght pixels)"; // copy file if (sizeof($errorList) == 0) { $copied = copy($userfile_temp, $target_temp); if ($copied) { //echo "\n\n\n\n\n"; $img_src = $target_file; } else { $errors= error_get_last(); echo "\n\n\n\n"; } if ($copied) { // Begin $img = new imaging; $img->set_img($target_temp); $img->set_quality(80); if ($userfile_larg) { $img->set_size($max_wdth); $img->save_img($target_larg); } // Small thumbnail $img->set_size($max_thmb); $img->save_img($target_thmb); // Finalize $img->clear_cache(); unlink($target_temp); } return $returnval; } } } function echo_img($img_src, $img_wdth, $img_hght, $img_brdr, $img_photo, $img_capt, $img_title, $img_path, $div_class, $img_style) { if ($img_src) { $img_xl = substr($img_src, 0, -4) . '-xl' . substr($img_src, -4); $img_xl_exists = file_exists("$img_path/$img_xl"); echo "

      \n"; if ($img_photo) echo "
      foto: $img_photo
      \n"; if ($img_xl_exists) echo "\n"; if ($img_brdr) echo "\"$img_title\"\n"; else echo "\"$img_title\"\n"; if ($img_xl_exists) echo "\n"; if ($img_capt) echo "
      $img_capt
      \n"; echo "
      \n\n"; } } function myenhancehtml(&$htmltxt) { // fix content - remove   and double spaces and replace

      with

      $htmltxt = str_replace(array('  ', '  '), array(' ', ' '), $htmltxt); $htmltxt = preg_replace('/ +/', ' ', $htmltxt); $htmltxt = str_replace('

      ', '

      ', $htmltxt); $htmltxt = str_replace('‘s-Hertogen', '’s-Hertogen', $htmltxt); return $htmltxt; } function softhyphen($htmltxt) { // insert soft hyphens in specific long words $thissearcharr = array(); $thisreplacearr = array(); array_push($thissearcharr, 'skerk'); array_push($thisreplacearr, 's­kerk'); // Martinuskerk array_push($thissearcharr, 'ertogenbosch'); array_push($thisreplacearr, 'ertogen­bosch'); // Hertogenbosch array_push($thissearcharr, 'armhartigheid'); array_push($thisreplacearr, 'arm­har­tig­heid'); // barmhartigheid array_push($thissearcharr, 'nderzoeksjournalist'); array_push($thisreplacearr, 'nder­zoeks­jour­na­list'); // onderzoeksjournalist array_push($thissearcharr, 'aarnemend'); array_push($thisreplacearr, 'aar­nemend'); // waarnemend array_push($thissearcharr, 'epresenteerd'); array_push($thisreplacearr, 'e­presen­teerd'); // gepresenteerd array_push($thissearcharr, 'assisteerd'); array_push($thisreplacearr, 'assis­teerd'); // geassisteerd array_push($thissearcharr, 'pgeluisterd'); array_push($thisreplacearr, 'pge­luisterd'); // opgeluisterd array_push($thissearcharr, 'eorganiseerd'); array_push($thisreplacearr, 'eorga­ni­seerd'); // georganiseerd array_push($thissearcharr, 'nbelasting'); array_push($thisreplacearr, 'n­belasting'); // wegenbelasting motorrijtuigenbelasting array_push($thissearcharr, 'rrijtuig'); array_push($thisreplacearr, 'r­rijtuig'); // motorrijtuig array_push($thissearcharr, 'songeschiktheid'); array_push($thisreplacearr, 's­onge­schiktheid'); // arbeidsongeschiktheid array_push($thissearcharr, 'sreizen'); array_push($thisreplacearr, 's­reizen'); // bedevaartsreizen array_push($thissearcharr, 'kwekkend'); array_push($thisreplacearr, 'k­wekkend'); // indrukwekkend array_push($thissearcharr, 'tbaarheid'); array_push($thisreplacearr, 't­baar­heid'); // vruchtbaarheid array_push($thissearcharr, 'nwerking'); array_push($thisreplacearr, 'n­werking'); // samenwerking array_push($thissearcharr, 'dwaardige'); array_push($thisreplacearr, 'd­waardige'); // eerbiedwaardige array_push($thissearcharr, 'ebeurtenissen'); array_push($thisreplacearr, 'ebeur­te­nissen'); // gebeurtenissen array_push($thissearcharr, 'indernevendienst'); array_push($thisreplacearr, 'inder­neven­dienst'); // gebeurtenissen array_push($thissearcharr, 'ommuniteit'); array_push($thisreplacearr, 'ommu­ni­teit'); // communiteit communiteiten array_push($thissearcharr, 'ertegenwoordig'); array_push($thisreplacearr, 'ertegen­woor­dig'); // vertegenwoordig vertegenwoordigers array_push($thissearcharr, 'elangstellend'); array_push($thisreplacearr, 'belang­stellend'); // belangstellend belangstellenden array_push($thissearcharr, 'artsbisschop'); array_push($thisreplacearr, 'arts­bisschop'); // aartsbisschop array_push($thissearcharr, 'dministrator'); array_push($thisreplacearr, 'dmini­strator'); // administrator array_push($thissearcharr, 'erantwoordelijk'); array_push($thisreplacearr, 'erant­woorde­lijk'); // verantwoordelijk verantwoordelijkheid array_push($thissearcharr, 'piritualiteit'); array_push($thisreplacearr, 'piri­tua­li­teit'); // spiritualiteit spiritualiteitsjaar array_push($thissearcharr, 'aarschijnlijk'); array_push($thisreplacearr, 'aar­schijn­lijk'); // waarschijnlijk array_push($thissearcharr, 'ntwikkeling'); array_push($thisreplacearr, 'ntwik­ke­ling'); // ontwikkeling ontwikkelingen array_push($thissearcharr, 'undamentalis'); array_push($thisreplacearr, 'undamen­ta­lis'); // fundamentalisme fundamentalistisch array_push($thissearcharr, 'Schoonhoven'); array_push($thisreplacearr, 'Schoon­hoven'); // Schoonhoven $htmltxt = str_replace($thissearcharr, $thisreplacearr, $htmltxt); unset($thissearcharr); unset($thisreplacearr); $thissearcharr = array(); $thisreplacearr = array(); // ([a-z]{3,}) = do not abbreviate if the prefix is shorter than 3 characters (bv on-kosten) array_push($thissearcharr, '/([a-z]{3,})fotografie/'); array_push($thisreplacearr, '$1­fotografie'); // landschapsfotografie portretfotografie naaktfotografie array_push($thissearcharr, '/([a-z]{3,})programma/'); array_push($thisreplacearr, '$1­programma'); // jongerenprogramma parallelprogramma hoofdprogramma avondprogramma middagprogramma computerprogramma uitwisselingsprogramma array_push($thissearcharr, '/([a-z]{3,})fabriek/'); array_push($thisreplacearr, '$1­fabriek'); // zuurkoolfabriek array_push($thissearcharr, '/([a-z]{3,})bijeenkomst/'); array_push($thisreplacearr, '$1­bijeen­komst'); // informatiebijeenkomst infobijeenkomst array_push($thissearcharr, '/([a-z]{3,})wijding/'); array_push($thisreplacearr, '$1­wijding'); // diakenwijding priesterwijding bisschopswijding array_push($thissearcharr, '/([a-z]{3,})opleiding/'); array_push($thisreplacearr, '$1­opleiding'); // diakenopleiding priesteropleiding array_push($thissearcharr, '/([a-z]{3,})school/'); array_push($thisreplacearr, '$1­school'); // basisschool array_push($thissearcharr, '/([a-z]{3,})seminarie/'); array_push($thisreplacearr, '$1­seminarie'); // grootseminarie priesterseminarie array_push($thissearcharr, '/([a-z]{3,})student/'); array_push($thisreplacearr, '$1­student'); // priesterstudent gymnasiumstudenten array_push($thissearcharr, '/([a-z]{3,})kathedraal/'); array_push($thisreplacearr, '$1­kathedraal'); // Sint-Janskathedraal Bavokathedraal array_push($thissearcharr, '/([a-z]{3,})basiliek/'); array_push($thisreplacearr, '$1­basiliek'); // Nicolaasbasiliek Pietersbasiliek array_push($thissearcharr, '/([a-z]{3,})formulier/'); array_push($thisreplacearr, '$1­formulier'); // schadeformulier verzekeringsformulier array_push($thissearcharr, '/([a-z]{3,})celebrant/'); array_push($thisreplacearr, '$1­cele­brant'); // hoofdcelebrant concelebrant array_push($thissearcharr, '/([a-z]{3,})verzekering/'); array_push($thisreplacearr, '$1­verzekering'); // arbeidsongeschiktheidsverzekering levensverzekering array_push($thissearcharr, '/([a-z]{3,})maatschappij/'); array_push($thisreplacearr, '$1­maat­schappij'); // luchtvaartmaatschappij vliegmaatschappij productiemaatschappij array_push($thissearcharr, '/([a-z]{3,})organisatie/'); array_push($thisreplacearr, '$1­organisatie'); // bedevaartorganisatie reisorganisatie lekenorganisatie array_push($thissearcharr, '/([a-z]{3,})presentatie/'); array_push($thisreplacearr, '$1­presen­tatie'); // powerpointpresentatie schoolpresentatie array_push($thissearcharr, '/([a-z]{3,})onderhoud/'); array_push($thisreplacearr, '$1­onder­houd'); // levensonderhoud array_push($thissearcharr, '/([a-z]{3,})kunst/'); array_push($thisreplacearr, '$1­kunst'); // levenskunst schilderkunst array_push($thissearcharr, '/([a-z]{3,})werking/'); array_push($thisreplacearr, '$1­werking'); // medewerking uitwerking array_push($thissearcharr, '/([a-z]{3,})gevoelens/'); array_push($thisreplacearr, '$1­gevoelens'); // wraakgevoelens array_push($thissearcharr, '/([a-z]{3,})klooster/'); array_push($thisreplacearr, '$1­klooster'); // Julianaklooster array_push($thissearcharr, '/([a-z]{3,})heiligdom/'); array_push($thisreplacearr, '$1­heiligdom'); // Mariaheiligdom array_push($thissearcharr, '/([a-z]{3,})symposium/'); array_push($thisreplacearr, '$1­symposium'); // opgroeisymposium array_push($thissearcharr, '/([a-z]{3,})conferentie/'); array_push($thisreplacearr, '$1­confe­rentie'); // bisschoppenconferentie computerconferentie array_push($thissearcharr, '/([a-z]{3,})synode/'); array_push($thisreplacearr, '$1­synode'); // bisschoppensynode array_push($thissearcharr, '/([a-z]{3,})vergadering/'); array_push($thisreplacearr, '$1­ver­ga­dering'); // ledenvergadering bisschoppenvergadering array_push($thissearcharr, '/([a-z]{3,})tentoonstelling/'); array_push($thisreplacearr, '$1­tentoon­stelling'); // iconententoonstelling array_push($thissearcharr, '/([a-z]{3,})expositie/'); array_push($thisreplacearr, '$1­expositie'); // beeldenexpositie array_push($thissearcharr, '/([a-z]{3,})viering/'); array_push($thisreplacearr, '$1­viering'); // Eucharistieviering Communieviering presentatieviering gebedsviering kinderviering gezinsviering array_push($thissearcharr, '/([a-z]{3,})receptie/'); array_push($thisreplacearr, '$1­receptie'); // afscheidsreceptie nieuwjaarsreceptie array_push($thissearcharr, '/([a-z]{3,})functionaris/'); array_push($thisreplacearr, '$1­functionaris'); // veiligheidsfunctionaris array_push($thissearcharr, '/([a-z]{3,})voorschrift/'); array_push($thisreplacearr, '$1­voor­schrift'); // veiligheidsvoorschrift veiligheidsvoorschriften array_push($thissearcharr, '/([a-z]{3,})beschrijving/'); array_push($thisreplacearr, '$1­beschrijving'); // routebeschrijving array_push($thissearcharr, '/([a-z]{3,})omstandigheden/'); array_push($thisreplacearr, '$1­om­standig­heden'); // weersomstandigheden arbeidsomstandigheden werkomstandigheden array_push($thissearcharr, '/([a-z]{3,})weekend/'); array_push($thisreplacearr, '$1­weekend'); // gezinsweekend feestweekend kennismakingsweekend array_push($thissearcharr, '/([a-z]{3,})parochie/'); array_push($thisreplacearr, '$1­parochie'); // Franciscusparochie Bartholomeusparochie Barnabasparochie Bernardusparochie Petrusparochie Odradaparochie Bavoparochie array_push($thissearcharr, '/([a-z]{3,})centrum/'); array_push($thisreplacearr, '$1­centrum'); // Sint-Janscentrum parochiecentrum partycentrum array_push($thissearcharr, '/([a-z]{3,})commissie/'); array_push($thisreplacearr, '$1­commissie'); // kerncommissie communicatiecommissie jeugdcommissie cultuurcommissie array_push($thissearcharr, '/([a-z]{3,})groep/'); array_push($thisreplacearr, '$1­groep'); // pastoraatsgroep array_push($thissearcharr, '/([a-z]{3,})assistent/'); array_push($thisreplacearr, '$1­assistent'); // teamassistent array_push($thissearcharr, '/([a-z]{3,})ontmoeting/'); array_push($thisreplacearr, '$1­ontmoeting'); // nieuwjaarsontmoeting jongerenontmoeting array_push($thissearcharr, '/([a-z]{3,})meeting/'); array_push($thisreplacearr, '$1­meeting'); // kerstmeeting array_push($thissearcharr, '/([a-z]{3,})medewerk/'); array_push($thisreplacearr, '$1­medewerk'); // projectmedewerker administratiemedewerkster array_push($thissearcharr, '/([a-z]{3,})meester/'); array_push($thisreplacearr, '$1­meester'); // penningmeester hoofdmeester grootmeester array_push($thissearcharr, '/([a-z]{3,})verkondiger/'); array_push($thisreplacearr, '$1­verkondiger'); // geloofsverkondiger array_push($thissearcharr, '/([a-z]{3,})gesprek/'); array_push($thisreplacearr, '$1­gesprek'); // geloofsgesprek array_push($thissearcharr, '/([a-z]{3,})heilig/'); array_push($thisreplacearr, '$1­heilig'); // allerheiligst allerheiligste schijnheilige array_push($thissearcharr, '/([a-z]{3,})gemeenschap/'); array_push($thisreplacearr, '$1­gemeen­schap'); // geloofsgemeenschap array_push($thissearcharr, '/([a-z]{3,})bestu/'); array_push($thisreplacearr, '$1­bestu'); // parochiebestuur parochiebesturen array_push($thissearcharr, '/([a-z]{3,})schilder/'); array_push($thisreplacearr, '$1­schilder'); // gebrandschilderd iconenschilder array_push($thissearcharr, '/([a-z]{3,})begeleider/'); array_push($thisreplacearr, '$1­begeleider'); // stagebegeleider array_push($thissearcharr, '/([a-z]{3,})punten/'); array_push($thisreplacearr, '$1­punten'); // hoogtepunten aandachtspunten array_push($thissearcharr, '/([a-z]{3,})ensamble/'); array_push($thisreplacearr, '$1­ensamble'); // blazersensemble klokkenensemble array_push($thissearcharr, '/([a-z]{3,})concert/'); array_push($thisreplacearr, '$1­concert'); // jubileumconcert feestconcert orgelconcert array_push($thissearcharr, '/([a-z]{3,})toestand/'); array_push($thisreplacearr, '$1­toestand'); // noodtoestand array_push($thissearcharr, '/([a-z]{3,})website/'); array_push($thisreplacearr, '$1­website'); // parochiewebsite bisdomwebsite array_push($thissearcharr, '/([a-z]{3,})pagina/'); array_push($thisreplacearr, '$1­pagina'); // informatiepagina middenpagina's voorpagina array_push($thissearcharr, '/([a-z]{3,})gangers/'); array_push($thisreplacearr, '$1­gangers'); // voetgangers bedevaartgangers kerkgangers array_push($thissearcharr, '/([a-z]{3,})gedeelte/'); array_push($thisreplacearr, '$1­gedeelte'); // bovengedeelte restaurantgedeelte array_push($thissearcharr, '/([a-z]{3,})vereniging/'); array_push($thisreplacearr, '$1­vereniging'); // carnavalsvereniging jongerenvereniging array_push($thissearcharr, '/([a-z]{3,})getuigenis/'); array_push($thisreplacearr, '$1­getuigenis'); // videogetuigenis geloofsgetuigenis array_push($thissearcharr, '/([a-z]{3,})behandeling/'); array_push($thisreplacearr, '$1­behandeling'); // voetbehandeling array_push($thissearcharr, '/([a-z]{3,})massage/'); array_push($thisreplacearr, '$1­massage'); // voetmassage rugmassage array_push($thissearcharr, '/([a-z]{3,})plaats/'); array_push($thisreplacearr, '$1­plaats'); // begraafplaatsen bergplaats array_push($thissearcharr, '/([a-z]{3,})beplanting/'); array_push($thisreplacearr, '$1­beplanting'); // hoofdbeplanting array_push($thissearcharr, '/([a-z]{3,})onderwij/'); array_push($thisreplacearr, '$1­onderwij'); // hoofdonderwijzer praktijkonderwijs array_push($thissearcharr, '/([a-z]{3,})kosten/'); array_push($thisreplacearr, '$1­kosten'); // personeelskosten vervoerskosten portokosten administratiekosten array_push($thissearcharr, '/([a-z]{3,})verband/'); array_push($thisreplacearr, '$1­verband'); // samenwerkingsverband maandverband drukverband array_push($thissearcharr, '/([a-z]{3,})werking/'); array_push($thisreplacearr, '$1­werking'); // samenwerking bewerking array_push($thissearcharr, '/([a-z]{3,})verwerking/'); array_push($thisreplacearr, '$1­verwerking'); // traumaverwerking voedselverwerking array_push($thissearcharr, '/([a-z]{3,})liefde/'); array_push($thisreplacearr, '$1­liefde'); // naastenliefde herenliefde huwelijksliefde array_push($thissearcharr, '/([a-z]{3,})rapport/'); array_push($thisreplacearr, '$1­rapport'); // schoolrapport onderzoeksrapport array_push($thissearcharr, '/([a-z]{3,})bewerking/'); array_push($thisreplacearr, '$1­bewerking'); // rekenbewerking houtbewerking videobewerking array_push($thissearcharr, '/([a-z]{3,})regeling/'); array_push($thisreplacearr, '$1­regeling'); // betalingsregeling array_push($thissearcharr, '/([a-z]{3,})verklaring/'); array_push($thisreplacearr, '$1­verklaring'); // nietigverklaring array_push($thissearcharr, '/([a-z]{3,})kenmerk/'); array_push($thisreplacearr, '$1­kenmerk'); // betalingskenmerk array_push($thissearcharr, '/([a-z]{3,})bureau/'); array_push($thisreplacearr, '$1­bureau'); // incassobureau politiebureau array_push($thissearcharr, '/([a-z]{3,})bereiding/'); array_push($thisreplacearr, '$1­bereiding'); // voedselbereiding vleesbereiding array_push($thissearcharr, '/([a-z]{3,})bedevaart/'); array_push($thisreplacearr, '$1­bedevaart'); // Lourdesbedevaart wandelbedevaart array_push($thissearcharr, '/([a-z]{3,})retraite/'); array_push($thisreplacearr, '$1­retraite'); // kloosterretraite wandelretraite array_push($thissearcharr, '/([a-z]{3,})vakantie/'); array_push($thisreplacearr, '$1­vakantie'); // zomervakantie herfstvakantie zonvakantie array_push($thissearcharr, '/([a-z]{3,})cursus/'); array_push($thisreplacearr, '$1­cursus'); // typecursus schrijfcursus array_push($thissearcharr, '/([a-z]{3,})examen/'); array_push($thisreplacearr, '$1­examen'); // staatsexamen zwemexamen array_push($thissearcharr, '/([a-z]{3,})training/'); array_push($thisreplacearr, '$1­training'); // managementtraining array_push($thissearcharr, '/([a-z]{3,})vaardigheid/'); array_push($thisreplacearr, '$1­vaardigheid'); // schrijfvaardigheid array_push($thissearcharr, '/([a-z]{3,})gelegenheid/'); array_push($thisreplacearr, '$1­gelegenheid'); // biechtgelegenheid array_push($thissearcharr, '/([a-z]{3,})kracht/'); array_push($thisreplacearr, '$1­kracht'); // arbeidskracht beroepskrachten array_push($thissearcharr, '/([a-z]{3,})constructie/'); array_push($thisreplacearr, '$1­constructie'); // kapconstructie metaalconstructie houtconstructie array_push($thissearcharr, '/([a-z]{3,})schrift/'); array_push($thisreplacearr, '$1­schrift'); // notenschrift lijntjesschriften beroepschrift array_push($thissearcharr, '/([a-z]{3,})document/'); array_push($thisreplacearr, '$1­document'); // werkdocument array_push($thissearcharr, '/([a-z]{3,})management/'); array_push($thisreplacearr, '$1­management'); // projectmanagement array_push($thissearcharr, '/([a-z]{3,})ontwikkeling/'); array_push($thisreplacearr, '$1­ontwikkeling'); // projectontwikkeling talentontwikkeling array_push($thissearcharr, '/([a-z]{3,})garantie/'); array_push($thisreplacearr, '$1­garantie'); // fabrieksgarantie tevredenheidsgarantie array_push($thissearcharr, '/([a-z]{3,})tevredenheid/'); array_push($thisreplacearr, '$1­tevreden­heid'); // klanttevredenheid array_push($thissearcharr, '/([a-z]{3,})module/'); array_push($thisreplacearr, '$1­module'); // trainingsmodule array_push($thissearcharr, '/([a-z]{3,})syndroom/'); array_push($thisreplacearr, '$1­syndroom'); // vermoeidheidssyndroom array_push($thissearcharr, '/([a-z]{3,})museum/'); array_push($thisreplacearr, '$1­museum'); // treinmuseum array_push($thissearcharr, '/([a-z]{3,})mechanisme/'); array_push($thisreplacearr, '$1­mechanisme'); // terugkoppelingsmechanisme array_push($thissearcharr, '/([a-z]{3,})techniek/'); array_push($thisreplacearr, '$1­techniek'); // autotechniek voortplantingstechniek array_push($thissearcharr, '/([a-z]{3,})parkeerplaats/'); array_push($thisreplacearr, '$1­parkeer­plaats'); // invalidenparkeerplaats brommerparkeerplaats array_push($thissearcharr, '/([a-z]{3,})overeenkomst/'); array_push($thisreplacearr, '$1­overeen­komst'); // arbeidsovereenkomst array_push($thissearcharr, '/([a-z]{3,})jongerendag/i'); array_push($thisreplacearr, '$1­jongeren­dag'); // wereldjongerendag WereldJongerenDagen array_push($thissearcharr, '/([a-z]{3,})gericht/'); array_push($thisreplacearr, '$1­gericht'); // resultaatgericht array_push($thissearcharr, '/([a-z]{3,})gevoegd/'); array_push($thisreplacearr, '$1­gevoegd'); // samengevoegd array_push($thissearcharr, '/([a-z]{3,})waardig/'); array_push($thisreplacearr, '$1­waardig'); // bewonderenswaardig eerbiedwaardig array_push($thissearcharr, '/([a-z]{3,})installatie/'); array_push($thisreplacearr, '$1­installatie'); // geluidsinstallatie waterzuiveringsinstallatie array_push($thissearcharr, '/([a-z]{3,})borrel/'); array_push($thisreplacearr, '$1­borrel'); // nieuwjaarsborrel afscheidsborrel array_push($thissearcharr, '/([a-z]{3,})werkzaamheden/'); array_push($thisreplacearr, '$1­werk­zaam­heden'); // verbouwingswerkzaamheden wegwerkzaamheden array_push($thissearcharr, '/([a-z]{3,})gelovige/'); array_push($thisreplacearr, '$1­gelovige'); // christengelovige moslimgelovige array_push($thissearcharr, '/([a-z]{3,})sacrament/'); array_push($thisreplacearr, '$1­sacrament'); // boetesacrament doopsacrament vormselsacrament array_push($thissearcharr, '/([a-z]{3,})wetenschap/'); array_push($thisreplacearr, '$1­wetenschap'); // communicatiewetenschap array_push($thissearcharr, '/([a-z]{3,})vermogen/'); array_push($thisreplacearr, '$1­vermogen'); // uithoudingsvermogen onderscheidingsvermogen array_push($thissearcharr, '/([a-z]{3,})activiteit/'); array_push($thisreplacearr, '$1­activiteit'); // gemeenschapsactiviteit parochieactiviteiten array_push($thissearcharr, '/([a-z]{3,})reiziger/'); array_push($thisreplacearr, '$1­reiziger'); // ontdekkingsreiziger array_push($thissearcharr, '/([a-z]{3,})verband/'); array_push($thisreplacearr, '$1­verband'); // samenwerkingsverband snelverband array_push($thissearcharr, '/([a-z]{3,})schap/'); array_push($thisreplacearr, '$1­schap'); // gemeenschappelijk gemeenschappen vriendschap array_push($thissearcharr, '/([a-z]{3,})perso/'); array_push($thisreplacearr, '$1­perso'); // vertrouwenspersoon kantinepersoneel array_push($thissearcharr, '/([a-z]{3,})overschrijd/'); array_push($thisreplacearr, '$1­over­schrijd'); // grensoverschrijdend budgetoverschrijding array_push($thissearcharr, '/([a-z]{3,})campagne/'); array_push($thisreplacearr, '$1­campagne'); // overheidscampagne reclamecampagne array_push($thissearcharr, '/([a-z]{3,})stelling/'); array_push($thisreplacearr, '$1­stelling'); // tentoonstelling samenstelling array_push($thissearcharr, '/([a-z]{3,})contract/'); array_push($thisreplacearr, '$1­contract'); // huwelijkscontract samenlevingscontract arbeidscontract array_push($thissearcharr, '/([a-z]{3,})stoornis/'); array_push($thisreplacearr, '$1­stoornis'); // persoonlijkheidsstoornissen evenwichtsstoornis array_push($thissearcharr, '/([a-z]{3,})structuur/'); array_push($thisreplacearr, '$1­structuur'); // organisatiestructuur array_push($thissearcharr, '/([a-z]{3,})mogelijkhe/'); array_push($thisreplacearr, '$1­moge­lijk­he'); // expansiemogelijkheden uitbreidingsmogelijkheid array_push($thissearcharr, '/([a-z]{3,})problematiek/'); array_push($thisreplacearr, '$1­proble­matiek'); // vluchtelingenproblematiek array_push($thissearcharr, '/([a-z]{3,})secretaris/'); array_push($thisreplacearr, '$1­secre­taris'); // ondersecretaris staatssecretaris array_push($thissearcharr, '/([a-z]{3,})fundamen/'); array_push($thisreplacearr, '$1­fundamen'); // moslimfundamentalisme array_push($thissearcharr, '/([a-z]{3,})opvang/'); array_push($thisreplacearr, '$1­opvang'); // vluchtelingenopvang daklozenopvang array_push($thissearcharr, '/([a-z]{3,})nationa/'); array_push($thisreplacearr, '$1­nationa'); // internationale internationaal array_push($thissearcharr, '/([a-z]{3,})oorlog/'); array_push($thisreplacearr, '$1­oorlog'); // wereldoorlog burgeroorlogen array_push($thissearcharr, '/([a-z]{3,})ochtend/'); array_push($thisreplacearr, '$1­ochtend'); // maandagochtend dinsdagochtend ... morgenochtend array_push($thissearcharr, '/([a-z]{3,})middag/'); array_push($thisreplacearr, '$1­middag'); // maandagmiddag dinsdagmiddag ... morgenmiddag zondagmiddagen array_push($thissearcharr, '/([a-z]{3,})avond/'); array_push($thisreplacearr, '$1­avond'); // ... kerstavond themaavond vrijwilligersavond array_push($thissearcharr, '/([a-z]{3,})nacht/'); array_push($thisreplacearr, '$1­nacht'); // ... middernacht array_push($thissearcharr, '/([a-z]{3,})zaterdag/'); array_push($thisreplacearr, '$1­zaterdag'); // Paaszaterdag array_push($thissearcharr, '/([a-z]{3,})zondag/'); array_push($thisreplacearr, '$1­zondag'); // Paaszondag Adventszondag Barmhartigheidszondag roepingenzondag // make sure € and the amount stay together array_push($thissearcharr, '/€ (\d)/'); array_push($thisreplacearr, '€ $1'); // make sure day of the month is wrapped to the next line together with the monthname array_push($thissearcharr, '/(\d) (januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/'); array_push($thisreplacearr, '$1 $2'); $htmltxt = preg_replace($thissearcharr, $thisreplacearr, $htmltxt); unset($thissearcharr); unset($thisreplacearr); // immunize img src values from ­ $htmltxt = preg_replace('/(<[^>^&]+)­/', '$1', $htmltxt, -1, $count); //' if ($count > 0) $htmltxt = preg_replace('/(<[^>^&]+)­/', '$1', $htmltxt, -1, $count); //' if ($count > 0) $htmltxt = preg_replace('/(<[^>^&]+)­/', '$1', $htmltxt, -1, $count); //' if ($count > 0) $htmltxt = preg_replace('/(<[^>^&]+)­/', '$1', $htmltxt, -1, $count); //' return $htmltxt; } ?>
      Fatal error: Call to undefined function cleanget() in /home/public/sites/www.bernardusparochie.nl/header.php on line 18