Beispiel #1
0
 public static function setAllow($allow_type, $max_size)
 {
     self::$maxFileSize = intval($max_size) * 1024 * 1024;
     if (!is_array($allow_type)) {
         self::$allowFileTypes = explode(',', $allow_size);
     } else {
         self::$allowFileTypes = $allow_size;
     }
 }