getDB(); $types = array( 'boolean', 'code', 'date', 'datetime', 'email', 'file', 'float', 'html', 'image', 'integer', 'option', 'password', 'set', 'string', 'text', 'time', 'url' ); $typeTitles = array( 'boolean' => 'Schalter', 'code' => 'Code', 'date' => 'Datum', 'datetime' => 'Datum+Uhrzeit', 'email' => 'E-Mail', 'file' => 'Datei', 'float' => 'Kommazahl', 'html' => 'HTML', 'image' => 'Bild', 'integer' => 'Ganzzahl', 'option' => 'Auswahl', 'password' => 'Passwort', 'set' => 'Set', 'string' => 'Text', 'text' => 'Textblock', 'time' => 'Zeit', 'url' => 'URL' ); $allEditors = array(); foreach($types as $type) { $editorDir = 'editor'.__DS__.$type; $editors = array(); foreach (array(_COMPATH_, _COMPATHX_) as $base) { if (file_exists($base.__DS__.$editorDir)) { foreach (scandir($base.__DS__.$editorDir) as $entry) { if ($entry[0] != '.') { $ed = new stdClass(); $ed->id = $entry; $ed->name = $entry; $ed->dir = $base.__DS__.$editorDir.DIRECTORY_SEPARATOR.$entry; $ed->version = '?'; if (include_exists($ed->dir.__DS__.'_info_.php')) { $info = get_configfile_array($ed->dir.__DS__.'_info_.php','info'); $ed->name = $info['name']; $ed->version = $info['version']; unset($info); $editors[] = $ed; } unset($ed); } } } } $allEditors[$type] = $editors; } ?>