- if (FILE_READABLE($file1)) {
- // If there's no language file specified we don't need to load one... ;-)
- if (!empty($content['ext_lang'])) {
- // Create language file
- $file2 = sprintf("%sinc/language/%s_%s.php", PATH, $content['ext_lang'], GET_LANGUAGE());
- } // END - if
-
- if (FILE_READABLE($file3)) {
- // Special functions file
- $content['ext_funcs'] = "Y";
- require_once($file3);
- } else {
- // Don't load functions file
- $content['ext_funcs'] = "N";
- }
-
- // Do we need a language file?
- if (($file1 != $file2) && (FILE_READABLE($file2))) {
- // Load language file
- $content['ext_lang'] = "Y";
- include($file2);
- } else {
- // Don't load language file
- $content['ext_lang'] = "N";
- }
-