$languages[$i]['code'],
'text' => $languages[$i]['name']);
if ($languages[$i]['directory'] == $language) {
$languages_selected = $languages[$i]['code'];
}
}
?>
>
|
|
read()) {
if (!is_dir($module_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
$files[] = $file;
}
}
}
sort($files);
$dir->close();
}
$col = 0;
for ($i=0, $n=sizeof($files); $i<$n; $i++) {
if (file_exists(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i])) {
include(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i]);
}
if ($col < 1) {
echo ' ' . "\n";
}
$col++;
if ($col <= 2) {
echo ' ' . "\n";
}
include('includes/modules/index/' . $files[$i]);
if ($col <= 2) {
echo ' | ' . "\n";
}
if ( !isset($files[$i+1]) || ($col == 2) ) {
if ( !isset($files[$i+1]) && ($col == 1) ) {
echo ' | ' . "\n";
}
$col = 0;
echo ' ' . "\n";
}
}
?>
|
|