KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/klengineers/klwebsite-controller/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/klengineers/klwebsite-controller/inc/simpleFunctions.php
<?php
class simpleFunctions
{

		
		
		public function dateconvert($date,$seperator) {
			
			list($day, $month, $year) = split('[/.-]', $date);
			$date = $year.$seperator.$month.$seperator.$day;
			
			return $date;
			
		} 
		
		function onlyNumbers($string){ 
		
			$string = preg_replace("/[^0-9]/", "", $string); 
			return (int) $string; 
			
		}
		
		function validateUSAZip($zip_code){
		  
		  if(preg_match("/^([0-9]{5})(-[0-9]{4})?$/i",$zip_code))
			return true;
		  else
			return false;
		}
		function check_input_image_type_video($ext){

if (($ext == "mov") || ($ext == "wma") || ($ext == "flv") || ($ext == "mpg") || ($ext == "avi") )
 		{
		
		return true;
	
 		}
return false;
}
		function randomGen($length){
			
			$strset='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890';
			$random= "";
			srand((double)microtime()*1000000);
		  // Add the special characters to $char_list if needed
		
		  	for($i = 0; $i < $length; $i++)
		  		$random .= substr($strset,(rand()%(strlen($strset))), 1);
		   
		   return $random;
		} 
		
	  function getQS($qs){
		
			if(substr($qs,0,1)=="&")
				return str_replace("&",";",substr($qs,1,strlen($qs)));
			else
				return str_replace("&",";",$qs);
	
	   }
	   
};
?>

Anon7 - 2021