includes/php/upload.php
//Check if file type is allowed for upload
Check if file type is allowed for upload
Check if file type is allowed for upload
private function checkExt()
	{
		$file_ext = strtolower( pathinfo($this->file_name, PATHINFO_EXTENSION) );
		if(in_array($file_ext, $this->deny_ext)  || (!in_array($file_ext, $this->allow_ext) && count($this->allow_ext)) )
		{
			return false;
		}
		return true;
	}
private function checkExt ( ) { $ file_ext = strtolower ( pathinfo ( $ this -> file_name , PATHINFO_EXTENSION ) ) ; if ( in_array ( $ file_ext , $ this -> deny_ext ) || ( ! in_array ( $ file_ext , $ this -> allow_ext ) && count ( $ this -> allow_ext ) ) ) { return false ; } return true ; }
Check if file type is allowed for upload
Check if file type is allowed for upload
//extensions not allowed for security reason and check if is allowed extension