} $template_file = 'userpanel_gserver_backup_rb.tpl'; } else { if ($ui->w('action', 3, 'post') == 'rb2' and $ui->gamestring('template', 'post') and isset($rootID)) { $shortens = array(); $query = $sql->prepare("SELECT DISTINCT(t.`shorten`) FROM `serverlist` s LEFT JOIN `servertypes` t ON s.`servertype`=t.`id` WHERE s.`switchID`=?"); $query->execute(array($id)); while ($row = $query->fetch(PDO::FETCH_ASSOC)) { $shortens[] = $row['shorten']; $shortens[] = $row['shorten'] . '-2'; $shortens[] = $row['shorten'] . '-3'; } if (in_array($ui->gamestring('template', 'post'), $shortens)) { $appServer = new AppServer($rootID); $appServer->getAppServerDetails($id); $appServer->backupDeploy($ui->gamestring('template', 'post'), $ftpUploadString); $appServer->execute(); $template_file = $sprache->backup_recover; if (isset($dbConnect['debug']) and $dbConnect['debug'] == 1) { $template_file .= '<br><pre>' . implode("\r\n", $appServer->debug()) . '</pre>'; } } else { $template_file = 'userpanel_404.tpl'; } } else { $template_file = 'userpanel_404.tpl'; } } } } }