You are here

function brilliant_gallery_testext in Brilliant Gallery 7.2

Same name and namespace in other branches
  1. 7 brilliant_gallery_functions.inc \brilliant_gallery_testext()
2 calls to brilliant_gallery_testext()
load_dir_to_array in ./OLD_brilliant_gallery_functions.inc
render_brilliant_gallery in ./OLD_brilliant_gallery_showtime.inc

File

./OLD_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;
}