application/libraries/Filemanager.php
/**
	 *
	 * Convert to bytes a information scale
	 *
	 * @param	string	Information scale
	 * @return	integer	Size in bytes
	 *
	 */
Convert to bytes a information scale
@param       string  Information scale
@return      integer Size in bytes
Convert to bytes a information scale @param string Information scale @return integer Size in bytes
protected function convert_size($val)
	{
		$val = trim($val);
		$last = strtolower($val[strlen($val) - 1]);
		switch ($last) {
			case 'g': $val *= 1024;
			case 'm': $val *= 1024;
			case 'k': $val *= 1024;
		}
		return $val;
	}
protected function convert_size ( $ val ) { $ val = trim ( $ val ) ; $ last = strtolower ( $ val [ strlen ( $ val ) - 1 ] ) ; switch ( $ last ) { case 'g' : $ val *= 1024 ; case 'm' : $ val *= 1024 ; case 'k' : $ val *= 1024 ; } return $ val ; }
Convert to bytes a information scale
 @param       string  Information scale
 @return      integer Size in bytes
Convert to bytes a information scale @param string Information scale @return integer Size in bytes