You are here

function brilliant_gallery_testext in Brilliant Gallery 7

Same name and namespace in other branches
  1. 7.2 OLD_brilliant_gallery_functions.inc \brilliant_gallery_testext()
3 calls to brilliant_gallery_testext()
load_dir_to_array in ./brilliant_gallery_functions.inc
render_brilliant_gallery in ./brilliant_gallery_showtime.inc
render_brilliant_gallery_manage in ./brilliant_gallery_manage.inc

File

./brilliant_gallery_functions.inc, line 4

Code

function brilliant_gallery_testext($filename) {
  $testending = substr(strtolower($filename), -4, 4);
  if ($testending == ".jpg" or substr(strtolower($filename), -5, 5) == ".jpeg" or $testending == ".gif" or $testending == ".png") {
    return true;
  }

  // Otherwise return false.
  return false;
}