include "manage_common.php"; $action = $argv[1]; $spec = $argv[2]; if ($action == "install") { if ($spec == "config") { installConfig(); } else { if ($spec == "panel") { if (!in_array("nodep", $argv)) { installPanelDependency(); } installPanel(); } else { if ($spec == "ghost") { if (!in_array("nodep", $argv)) { installGhostDependency(); } installGhost(); } else { if ($spec == "channel") { if (!in_array("nodep", $argv)) { installChannelDependency(); } installChannel(); } else { if ($spec == "minecraft") { if (!in_array("nodep", $argv)) { installMinecraftDependency(); } installMinecraft(); } else {
function installChannelDependency() { if (isInstalled("depchannel")) { return; } installGhostDependency(); rexec("apt-get -y install python2.7-minimal python2.7-mysqldb"); installFinish("depchannel"); }