foreach ($new_tree as $node) { if (!in_array($node, $old_tree)) { $new = $node; } } if (!isset($new)) { error_msg('Der Name des neuen Ordners konnte nicht ermittelt werden! Bitte versuchen sie den Inhalt des acp/tmp Ordners zu l�schen'); exit; } if ($ftp->exists('acp/tmp/' . $new . '_up')) { $ftp->req_remove('acp/tmp/' . $new . '_up'); } $ftp->copy_req('acp/tmp/' . $new, 'acp/tmp/' . $new . '_up'); all_delete(LITO_ROOT_PATH . 'acp/tmp/' . $new); unlink(LITO_ROOT_PATH . "acp/tmp/" . $_GET['mod'] . '.zip'); $ftp->mv($new . '_up/' . basename($new), $new); $ftp->req_remove($new . '_up'); include_once LITO_ROOT_PATH . "acp/includes/package_class.php"; $pm = new package(basename($new . '_up'), $ftp); if (!$pm->initialized) { die('Schwerer Fehler!'); } $pm->install(); $tpl->assign('debug', $pm->debug()); $ftp->req_remove($new); template_out('action.html', $modul_name); $ftp->disconnect(); } if ($action == "remote") { if (!isset($_POST['remote'])) { error_msg('Kein Modulname �bergeben!');