} if ($action == "install") { $m_name = c_trim($_GET['id']); $setup_filename = LITO_ROOT_PATH . "acp/tmp/" . $m_name . "/setup.php"; if (is_file($setup_filename)) { include LITO_ROOT_PATH . "acp/includes/ftp_class.php"; include LITO_ROOT_PATH . "acp/includes/package_class.php"; if (!isset($ftp) || !is_a($ftp, 'ftp')) { $ftp = new ftp($ftphost, $ftpuser, $ftppassword, $ftproot, $ftpport); } $pm = new package($m_name, $ftp); if (!$pm->initialized) { die('Schwerer Fehler!'); } $pm->install(); $tpl->assign('debug', $pm->debug()); template_out('action.html', $modul_name); } else { error_msg("Die Datei " . $setup_filename . "konnte nicht gefunden werden"); exit; } } if ($action == "update") { $sql = "SELECT * from cc" . $n . "_modul_admin order by acp_modul"; $result_modules = $db->query($sql); $array = ""; $out_a = array(); while ($row = $db->fetch_array($result_modules)) { $out_a[] = $row; if ($array == "") { $array = $row['modul_admin_id'];