"text", 'parent' => $content)); ?> read ()) { if ($f != "." && $f != ".." && is_dir ($d->path.$f)) { $dirs[] = $f; } } sort ($dirs); return $dirs; } if ($list->editMode) { $paths = ""; foreach (getVersions () as $dir) { $paths .= "$dir <$dir>\n"; } $list[0]->setPreferences ("path", "selections", $paths); } $path = $GLOBALS['config']['download']."/".$list[0]->value ("path"); $status = array (); $status['status'] = @file_get_contents("$path/status.txt"); $filetime = @filemtime ("$path/status.txt"); if (!$filetime || ((time () - $filetime)) > 60 * 60) { $status['status'] = "keins"; } //date_default_timezone_set("Germany/Berlin"); $status['date'] = date("d.m.Y H:i", $filetime); #$status['broken_addons'] = @file("$path/broken_addons.txt"); $status['broken_addons'] = array(); if (($fp = @fopen ("$path/broken_addons.txt", "r"))) { while (!feof ($fp)) { $name = trim (fgets ($fp)); if ($name && !in_array ($name, $GLOBALS['config']['extra_addons'])) { $status['broken_addons'][$name] = $name; } } fclose($fp); ksort ($status['broken_addons']); } $status['broken_addons'] = $status['broken_addons'] ? $status['broken_addons'] : array ("keine"); $list[0]->setPlaceholder ("text", $status); ?> edit ("path")?> html ("text")?>