You are here

function validateExtension in TinyBrowser 7

3 calls to validateExtension()
fileuploader.php in tinybrowser/fileuploader.php
upload_file.php in tinybrowser/upload_file.php
upload_process.php in tinybrowser/upload_process.php

File

tinybrowser/fns_tinybrowser.php, line 33

Code

function validateExtension($extension, $types) {
  if (in_array(strtolower($extension), $types)) {
    return false;
  }
  else {
    return true;
  }
}