(GPLv2)
or write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA02110-1301, USA.
********************************************************************************/
if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_language.php")) {
die("
Error: This file cannot be opened directly!
");
}
global $siteConfig;
unset($filearray);
$filearray = array();
$handle = opendir('lang/');
while (false !== ($file = readdir($handle))) {
if ($file != "." AND $file != ".." AND !eregi("html",$file) AND $file != "Thumbs.db") {
$file = str_replace(".php","",$file);
$lang = ucfirst($file);
$filearray[] = "";
}
}
closedir($handle);
@sort($filearray);
@reset($filearray);
echo "\n";
?>