clear(); $this->loadList(); } function clear() { $this->list = array(); $this->messages = array(); } function loadList() { global $IP; $this->list = array(); // available language files $dir = opendir("$IP/languages"); while ($file = readdir($dir)) { if (preg_match("/Language([^.]*?)\.php$/", $file, $m)) { $this->list[] = $m[1]; } } sort($this->list); // Cleanup file list foreach($this->list as $key => $lang) { if ($lang == 'Utf8' || $lang == '' || $lang == 'Converter') unset($this->list[$key]); } } function getList() { return $this->list; } } ?>