function glob($pattern, $flags = 0) { return php_compat_glob($pattern, $flags); }
/** * Replace glob() since this function is apparently * disabled for no apparent reason ("security") on some systems * * @see glob() */ function glob_compat($pattern, $flags = 0) { if (in_array('glob', explode(',', ini_get('disable_functions'))) || !function_exists('glob')) { include 'glob.php'; return php_compat_glob($pattern, $flags); } return glob($pattern, $flags); }