diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-05-08 01:14:14 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-05-08 01:14:14 +0000 |
commit | 711d90b44ff23b5bc9ad63382f0251ca8ef30491 (patch) | |
tree | 3237f7b1dce32ee368176b8d395fdefed912be58 /phpBB/includes/functions.php | |
parent | bb373ebcba8d4ea15e617cd7edbfd54681712fcc (diff) | |
download | forums-711d90b44ff23b5bc9ad63382f0251ca8ef30491.tar forums-711d90b44ff23b5bc9ad63382f0251ca8ef30491.tar.gz forums-711d90b44ff23b5bc9ad63382f0251ca8ef30491.tar.bz2 forums-711d90b44ff23b5bc9ad63382f0251ca8ef30491.tar.xz forums-711d90b44ff23b5bc9ad63382f0251ca8ef30491.zip |
Changed forum_link_track to forum_flags for storage of additional info [ pruning related ], moved lang selection into DB, other minor changes, still working on admin_prune, per forum styling for posting
git-svn-id: file:///svn/phpbb/trunk@3989 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1e72f42fc4..4f8aca41e7 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -337,7 +337,7 @@ function make_jumpbox($action, $forum_id = false, $select_all = false) function language_select($default = '') { global $db, $phpbb_root_path, $phpEx; -/* + $sql = "SELECT lang_iso, lang_local_name FROM " . LANG_TABLE . " ORDER BY lang_english_name"; @@ -352,37 +352,6 @@ function language_select($default = '') $db->sql_freeresult($result); return $lang_options; -*/ - $dir = @opendir($phpbb_root_path . 'language'); - - $user = array(); - while ($file = readdir($dir)) - { - $path = $phpbb_root_path . 'language/' . $file; - - if (is_file($path) || is_link($path) || $file == '.' || $file == '..') - { - continue; - } - - if (file_exists($path . '/iso.txt')) - { - list($displayname) = @file($path . '/iso.txt'); - $lang[$displayname] = $file; - } - } - @closedir($dir); - - @asort($lang); - @reset($lang); - - foreach ($lang as $displayname => $filename) - { - $selected = (strtolower($default) == strtolower($filename)) ? ' selected="selected"' : ''; - $user_select .= '<option value="' . $filename . '"' . $selected . '>' . ucwords($displayname) . '</option>'; - } - - return $user_select; } // Pick a template/theme combo, |