HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/EUmans/dak-spouwmuurisolatie.be/wwwroot/kms/functions.php
<?php

function checkData($variable)
{
	$variable = trim($variable);
	if ( get_magic_quotes_gpc() ){
		$variable = htmlspecialchars(stripslashes($variable));
	}else{
		$variable = htmlspecialchars($variable);
	}
	$variable  = mysql_real_escape_string($variable);
	return $variable;
}

function date_dutch($datum)
{
	$datum_array = explode("-", $datum);
	
	$datum = $datum_array[2]."-".$datum_array[1]."-".$datum_array[0];
	
	return $datum;

}

function maand2tekst($maand)
{
	
	$month = intval($maand) - 1;
	$months = array("januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december");
	$maand = $months[$month];
	
	return $maand;

}

function bedrag($bedrag)
{
	
	$bedrag = number_format($bedrag, 2, ',', '.');
	return $bedrag;	
}

function friendlyURL($string){
	$string = preg_replace("`\[.*\]`U","",$string);
	$string = str_replace('&','-en-',$string);
	$string = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$string);
	$string = htmlentities($string, ENT_COMPAT, 'utf-8');
	$string = preg_replace( "`&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);`i","\\1", $string );
	$string = preg_replace( array("`[^a-z0-9]`i","`[-]+`") , "-", $string);
	$string = str_replace('--','-',$string);
	
	return strtolower(trim($string, '-'));
}

?>