public/js/filemanager/uploader/jupload.php
private function tobytes($val) {
		$val = trim($val);
		$last = fix_strtolower($val{strlen($val)-1});
		switch($last) {
			case 'g':
				$val *= 1024;
			case 'm':
				$val *= 1024;
			case 'k':
				$val *= 1024;
		}
		return $val;
	}
private function tobytes($val) {
		$val = trim($val);
		$last = fix_strtolower($val{strlen($val)-1});
		switch($last) {
			case 'g':
				$val *= 1024;
			case 'm':
				$val *= 1024;
			case 'k':
				$val *= 1024;
		}
		return $val;
	}
private function tobytes ( $ val ) { $ val = trim ( $ val ) ; $ last = fix_strtolower ( $ val { strlen ( $ val ) - 1 } ) ; switch ( $ last ) { case 'g' : $ val *= 1024 ; case 'm' : $ val *= 1024 ; case 'k' : $ val *= 1024 ; } return $ val ; }
Convert a value ending in 'G','M' or 'K' to bytes
Convert a value ending in G M or K to bytes