private function imageStringtoWinDeamon() { if (isurl($this->imageserver)) { return ftpStringToData($this->imageserver); } return false; }
} else { if ($ui->st('d', 'get') == 'eu' and $pa['modfastdl'] == true) { $errors = array(); if ($ui->ip('ftp_adresse', 'post')) { $ftp_adresse = $ui->ip('ftp_adresse', 'post'); } else { $ftp_adresse = $ui->domain('ftp_adresse', 'post'); } $ftp_password = $ui->password('ftp_password', 255, 'post'); $ftp_port = $ui->port('ftp_port', 'post'); $ftp_user = $ui->username('ftp_user', 50, 'post'); $ftp_path = $ui->path('ftp_path', 'post'); if (!$ui->smallletters('action', 2, 'post')) { $query = $sql->prepare("SELECT `fdlpath` FROM `userdata` WHERE `id`=? AND `resellerid`=? LIMIT 1"); $query->execute(array($user_id, $resellerLockupID)); $fdlData = ftpStringToData($query->fetchColumn()); $ftp_adresse = $fdlData['server']; $ftp_password = $fdlData['pwd']; $ftp_port = $fdlData['port']; $ftp_user = $fdlData['user']; $ftp_path = $fdlData['path']; $template_file = $query->rowCount() > 0 ? 'userpanel_gserver_fdl_eu.tpl' : 'userpanel_404.tpl'; } else { if ($ui->smallletters('action', 2, 'post') == 'md') { if (!$ftp_adresse) { $errors['ftp_adresse'] = $gameSprache->ftp_adresse; } if (!$ftp_port) { $errors['ftp_port'] = $gameSprache->ftp_port; } if (!$ftp_user) {
header('Location: userpanel.php'); die; } $sprache = getlanguagefile('gserver', $user_language, $resellerLockupID); $customer = getusername($user_id); if ($ui->id('id', 10, 'get') and (!isset($_SESSION['sID']) or in_array($ui->id('id', 10, 'get'), $substituteAccess['gs']))) { $id = (int) $ui->id('id', 10, 'get'); $errors = array(); $query = $sql->prepare("SELECT g.`serverip`,g.`port`,g.`rootID`,AES_DECRYPT(u.`ftpbackup`,?) AS `ftp` FROM `gsswitch` g INNER JOIN `userdata` AS u ON g.`userid`=u.`id` WHERE g.`id`=? AND g.`userid`=? AND g.`resellerid`=? LIMIT 1"); $query->execute(array($aeskey, $id, $user_id, $resellerLockupID)); while ($row = $query->fetch(PDO::FETCH_ASSOC)) { $serverip = $row['serverip']; $port = $row['port']; $rootID = $row['rootID']; $ftpUploadString = $row['ftp']; $fdlData = ftpStringToData($row['ftp']); $ftp_adresse = $fdlData['server']; $ftp_password = $fdlData['pwd']; $ftp_port = $fdlData['port']; $ftp_user = $fdlData['user']; $ftp_path = $fdlData['path']; } if ($query->rowCount() == 0) { redirect('userpanel.php?w=bu&id=' . $id); } if ($ui->w('action', 3, 'get') == 'mb' and isset($rootID)) { $appServer = new AppServer($rootID); $appServer->getAppServerDetails($id); $appServer->backupCreate($ftpUploadString); $appServer->execute(); $template_file = $sprache->backup_create;