public static function file($indice, $atributo = null, $filter = null) { if (isset($_FILES[$indice]) && $_FILES[$indice] != "") { $file = $_FILES[$indice]; if ($file['error'] == 0 && !is_null($filter)) { $filter = Oraculum_Files::file_filter($file['type'], $filter); if (!$filter) { return false; } } if (is_null($atributo)) { return $file; } else { return $file[$atributo]; } } else { return null; } }
function load($arquivo, $return = false) { return Oraculum_Files::load($arquivo, $return); }