mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
parent
af1aced62a
commit
820212587b
@ -132,11 +132,16 @@ if ($ui->smallletters('w', 9, 'get') == 'datatable') {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_appserver.php');
|
||||
|
||||
// App server
|
||||
// Admins, reseller and user
|
||||
} else if ($ui->smallletters('d', 4, 'get') == 'user' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and ($pa['user'] or $pa['user_users'] or $pa['userPassword'])) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_user.php');
|
||||
|
||||
// Voice master
|
||||
} else if ($ui->smallletters('d', 17, 'get') == 'voicemasterserver' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['voicemasterserver']) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_voicemasterserver.php');
|
||||
|
||||
// Code wise it seems odd, but this way we can get plausible userIDs for following queries up front without having to repeat ourselves
|
||||
} else {
|
||||
|
||||
|
@ -106,4 +106,26 @@ function textdrop(id) {
|
||||
} else {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
@ -853,10 +853,11 @@ if ($ui->w('action',4, 'post') and !token(true)) {
|
||||
|
||||
if (!$ui->w('action', 3, 'post')) {
|
||||
|
||||
$query = $sql->prepare("SELECT `ssh2ip`,`rootid`,`type` FROM `voice_masterserver` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$query = $sql->prepare("SELECT `ssh2ip`,`description`,`rootid`,`type` FROM `voice_masterserver` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$query->execute(array($id, $reseller_id));
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$ip = $row['ssh2ip'];
|
||||
$description = $row['description'];
|
||||
$type = $row['type'];
|
||||
|
||||
if ($ip==null) {
|
||||
@ -883,6 +884,7 @@ if ($ui->w('action',4, 'post') and !token(true)) {
|
||||
}
|
||||
}
|
||||
if ($query->rowCount() > 0) {
|
||||
|
||||
$query = $sql->prepare("DELETE FROM `voice_masterserver` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$query->execute(array($id, $reseller_id));
|
||||
$query = $sql->prepare("DELETE FROM `voice_server` WHERE `masterserver`=? AND `resellerid`=?");
|
||||
@ -901,117 +903,7 @@ if ($ui->w('action',4, 'post') and !token(true)) {
|
||||
|
||||
} else {
|
||||
|
||||
$table = array();
|
||||
$o = $ui->st('o', 'get');
|
||||
configureDateTables('-1', '1, "asc"', 'ajax.php?w=datatable&d=voicemasterserver');
|
||||
|
||||
if ($ui->st('o', 'get') == 'da') {
|
||||
$orderby = 'm.`active` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'aa') {
|
||||
$orderby = 'm.`active` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'pn') {
|
||||
$orderby = 'm.`ssh2ip` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'pn') {
|
||||
$orderby = 'm.`ssh2ip` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dt') {
|
||||
$orderby = 'm.`type` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'at') {
|
||||
$orderby = 'm.`type` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'ds') {
|
||||
$orderby = '`installedserver` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'as') {
|
||||
$orderby = '`installedserver` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dl') {
|
||||
$orderby = '`installedslots` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'al') {
|
||||
$orderby = '`installedslots` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dd') {
|
||||
$orderby = 'm.`defaultdns` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ad') {
|
||||
$orderby = 'm.`defaultdns` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'di') {
|
||||
$orderby = 'm.`id` DESC';
|
||||
} else {
|
||||
$orderby = 'm.`id` ASC';
|
||||
$o = 'ai';
|
||||
}
|
||||
|
||||
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `voice_masterserver` WHERE `resellerid`=?");
|
||||
$query->execute(array($reseller_id));
|
||||
$colcount = $query->fetchColumn();
|
||||
|
||||
if ($start > $colcount) {
|
||||
$start = $colcount - $amount;
|
||||
if ($start < 0){
|
||||
$start = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/easy-wi/developer/issues/36 managedServer,managedForID added
|
||||
$query = $sql->prepare("SELECT m.*,COUNT(s.`id`) AS `installedserver`,SUM(s.`slots`) AS `installedslots`,SUM(s.`usedslots`) AS `uslots` FROM `voice_masterserver` m LEFT JOIN `voice_server` s ON m.`id`=s.`masterserver` WHERE (m.`resellerid`=? OR m.`managedForID`=?) GROUP BY m.`id` ORDER BY $orderby LIMIT $start, $amount");
|
||||
$query2 = $sql->prepare("SELECT `ip` FROM `rserverdata` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$query3 = $sql->prepare("SELECT `id`,`active`,`uptime`,`queryName`,CONCAT(`ip`,':',`port`) AS `address` FROM `voice_server` WHERE `masterserver`=? AND `resellerid`=?");
|
||||
$query->execute(array($reseller_id, $admin_id));
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$id = $row['id'];
|
||||
|
||||
if ($id != null) {
|
||||
|
||||
$vs = array();
|
||||
|
||||
if ($row['type'] == 'ts3') {
|
||||
$type = $sprache->ts3;
|
||||
}
|
||||
|
||||
if ($row['active'] == 'Y' and $rSA['down_checks'] > $row['notified']) {
|
||||
$imgName = '16_ok';
|
||||
$imgAlt='ok';
|
||||
} else if ($row['active'] == 'Y' and $rSA['down_checks'] <= $row['notified']) {
|
||||
$imgName = '16_error';
|
||||
$imgAlt='crashed';
|
||||
} else {
|
||||
$imgName = '16_bad';
|
||||
$imgAlt='inactive';
|
||||
}
|
||||
|
||||
if ($row['ssh2ip'] == null) {
|
||||
$query2->execute(array($row['rootid'], $row['resellerid']));
|
||||
$ip = $query2->fetchColumn();
|
||||
} else {
|
||||
$ip = $row['ssh2ip'];
|
||||
}
|
||||
|
||||
$defaultdns=($row['usedns'] == 'Y') ? $row['defaultdns'] : null;
|
||||
$installedslots=($row['installedslots'] == null) ? 0 : $row['installedslots'];
|
||||
$uslots=($row['uslots'] == null) ? 0 : $row['uslots'];
|
||||
$query3->execute(array($id, $row['resellerid']));
|
||||
while ($row3 = $query3->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
if ($row3['active'] == 'N' or $row3['uptime'] == 1) {
|
||||
$vsStatus = 2;
|
||||
} else if ($row3['active'] == 'Y' and $row3['uptime'] < 1) {
|
||||
$vsStatus = 3;
|
||||
} else {
|
||||
$vsStatus = 1;
|
||||
}
|
||||
|
||||
$vs[] = array('id' => $row3['id'], 'address' => $row3['address'], 'name' => $row3['queryName'], 'status' => $vsStatus);
|
||||
}
|
||||
|
||||
$table[] = array('id' => $id,'active' => $row['active'], 'managedServer' => $row['managedServer'], 'img' => $imgName,'alt' => $imgAlt,'ip' => $ip, 'type' => $type, 'defaultdns' => $defaultdns, 'installedserver' => $row['installedserver'] . '/' . $row['maxserver'], 'installedslots' => $uslots . '/' . $installedslots . '/' . $row['maxslots'], 'server' => $vs);
|
||||
}
|
||||
}
|
||||
$next = $start+$amount;
|
||||
$vor=($colcount>$next) ? $start + $amount : $start;
|
||||
$back = $start - $amount;
|
||||
$zur = ($back >= 0) ? $start - $amount : $start;
|
||||
$pageamount = ceil($colcount / $amount);
|
||||
$pages[] = '<a href="admin.php?w=vm&d=md&a=' . (!isset($amount)) ? 20 : $amount . ($start==0) ? '&p=0" class="bold">1</a>' : '&p=0">1</a>';
|
||||
$i = 2;
|
||||
while ($i<=$pageamount) {
|
||||
$selectpage = ($i - 1) * $amount;
|
||||
$pages[] = '<a href="admin.php?w=vm&d=md&a=' . $amount . '&p=' . $selectpage . '"' . ($start==$selectpage) ? 'class="bold"' : '' .' >' . $i . '</a>';
|
||||
$i++;
|
||||
}
|
||||
$pages = implode(', ', $pages);
|
||||
$template_file = "admin_voicemasterserver_list.tpl";
|
||||
$template_file = 'admin_voicemasterserver_list.tpl';
|
||||
}
|
@ -64,7 +64,7 @@ if ($sSearch) {
|
||||
$array['iTotalDisplayRecords'] = $array['iTotalRecords'];
|
||||
}
|
||||
|
||||
$orderFields = array(0 => 'r.`ip`', 1 => 'r.`id`', 2 => 'r.`active`', 3 => 'r.`os`', 4 => '`gameserver_amount`', 5 => '`gameserver_ram`', 6 => 'r.`description`');
|
||||
$orderFields = array(0 => 'r.`ip`', 1 => 'r.`id`', 2 => 'r.`active`', 3 => 'r.`description`', 4 => '`gameserver_amount`', 5 => '`gameserver_ram`');
|
||||
|
||||
if (isset($orderFields[$iSortCol]) and is_array($orderFields[$iSortCol])) {
|
||||
$orderBy = implode(' ' . $sSortDir . ', ', $orderFields[$iSortCol]) . ' ' . $sSortDir;
|
||||
@ -93,5 +93,5 @@ if ($sSearch) {
|
||||
}
|
||||
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$array['aaData'][] = array($row['ip'], $row['id'], ($row['active'] == 'Y') ? (string) $gsprache->yes : (string) $gsprache->no, ($row['os'] == 'L') ? 'Linux' : 'Windows', (int) $row['gameserver_amount'] . '/' . (int) $row['maxserver'], (int) $row['gameserver_ram'] . '/' . (int) $row['ram'], $row['description'], returnButton($template_to_use, 'ajax_admin_buttons_ri.tpl', 'ro', 'ri', $row['id'], $gsprache->reinstall) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_dl.tpl', 'ro', 'dl', $row['id'], $gsprache->del) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_md.tpl', 'ro', 'md', $row['id'], $gsprache->mod));
|
||||
$array['aaData'][] = array($row['ip'], $row['id'], ($row['active'] == 'Y') ? (string) $gsprache->yes : (string) $gsprache->no, $row['description'], (int) $row['gameserver_amount'] . '/' . (int) $row['maxserver'], (int) $row['gameserver_ram'] . '/' . (int) $row['ram'], returnButton($template_to_use, 'ajax_admin_buttons_ri.tpl', 'ro', 'ri', $row['id'], $gsprache->reinstall) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_dl.tpl', 'ro', 'dl', $row['id'], $gsprache->del) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_md.tpl', 'ro', 'md', $row['id'], $gsprache->mod));
|
||||
}
|
87
web/stuff/ajax/datatable_voicemasterserver.php
Normal file
87
web/stuff/ajax/datatable_voicemasterserver.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: datatable_voicemasterserver.php.
|
||||
* Author: Ulrich Block
|
||||
* Date: 18.01.15
|
||||
* Contact: <ulrich.block@easy-wi.com>
|
||||
*
|
||||
* This file is part of Easy-WI.
|
||||
*
|
||||
* Easy-WI is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Easy-WI is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Easy-WI. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Diese Datei ist Teil von Easy-WI.
|
||||
*
|
||||
* Easy-WI ist Freie Software: Sie koennen es unter den Bedingungen
|
||||
* der GNU General Public License, wie von der Free Software Foundation,
|
||||
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder spaeteren
|
||||
* veroeffentlichten Version, weiterverbreiten und/oder modifizieren.
|
||||
*
|
||||
* Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber
|
||||
* OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite
|
||||
* Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK.
|
||||
* Siehe die GNU General Public License fuer weitere Details.
|
||||
*
|
||||
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
|
||||
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
if (!defined('AJAXINCLUDED')) {
|
||||
die('Do not access directly!');
|
||||
}
|
||||
|
||||
$sprache = getlanguagefile('voice', $user_language, $resellerLockupID);
|
||||
|
||||
$query = $sql->prepare("SELECT COUNT(1) AS `amount` FROM `voice_masterserver` WHERE `resellerid`=? OR `managedForID`=?");
|
||||
$query->execute(array($resellerLockupID, $resellerLockupID));
|
||||
|
||||
$array['iTotalRecords'] = $query->fetchColumn();
|
||||
|
||||
if ($sSearch) {
|
||||
|
||||
$query = $sql->prepare("SELECT COUNT(1) AS `amount` FROM `voice_masterserver` WHERE (`resellerid`=:reseller_id OR `managedForID`=:reseller_id) AND (`ssh2ip` LIKE :search OR `id` LIKE :search OR `description` LIKE :search)");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
$array['iTotalDisplayRecords'] = $query->fetchColumn();
|
||||
|
||||
} else {
|
||||
$array['iTotalDisplayRecords'] = $array['iTotalRecords'];
|
||||
}
|
||||
|
||||
$orderFields = array(0 => '`ssh2ip`', 1 => 'm.`id`', 2 => 'm.`active`', 3 => '`description`', 4 => '`installedserver`', 5 => '`installedslots`');
|
||||
|
||||
if (isset($orderFields[$iSortCol]) and is_array($orderFields[$iSortCol])) {
|
||||
$orderBy = implode(' ' . $sSortDir . ', ', $orderFields[$iSortCol]) . ' ' . $sSortDir;
|
||||
} else if (isset($orderFields[$iSortCol]) and !is_array($orderFields[$iSortCol])) {
|
||||
$orderBy = $orderFields[$iSortCol] . ' ' . $sSortDir;
|
||||
} else {
|
||||
$orderBy = 'm.`id` DESC';
|
||||
}
|
||||
|
||||
if ($sSearch) {
|
||||
$query = $sql->prepare("SELECT m.*,COUNT(s.`id`) AS `installedserver`,SUM(s.`slots`) AS `installedslots`,SUM(s.`usedslots`) AS `uslots` FROM `voice_masterserver` AS m LEFT JOIN `voice_server` s ON m.`id`=s.`masterserver` WHERE (m.`resellerid`=:reseller_id OR m.`managedForID`=:reseller_id) AND (m.`ssh2ip` LIKE :search OR m.`id` LIKE :search OR m.`description` LIKE :search) GROUP BY m.`id` ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
} else {
|
||||
$query = $sql->prepare("SELECT m.*,COUNT(s.`id`) AS `installedserver`,SUM(s.`slots`) AS `installedslots`,SUM(s.`usedslots`) AS `uslots` FROM `voice_masterserver` AS m LEFT JOIN `voice_server` s ON m.`id`=s.`masterserver` WHERE (m.`resellerid`=? OR m.`managedForID`=?) GROUP BY m.`id` ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array($resellerLockupID, $resellerLockupID));
|
||||
}
|
||||
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
$installedslots = ($row['installedslots'] == null) ? 0 : $row['installedslots'];
|
||||
|
||||
$aaDataArray = array($row['ssh2ip'], $row['id'], ($row['active'] == 'Y') ? (string) $gsprache->yes : (string) $gsprache->no, $row['description'], $row['installedserver'] . '/' . $row['maxserver'], $installedslots . '/' . $row['maxslots']);
|
||||
$aaDataArray[] = ($row['managedServer'] == 'N' or $reseller_id == 0) ? returnButton($template_to_use, 'ajax_admin_buttons_ri.tpl', 'vm', 'ri', $row['id'], $sprache->import) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_dl.tpl', 'vm', 'dl', $row['id'], $gsprache->del) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_md.tpl', 'vm', 'md', $row['id'], $gsprache->mod) : '';
|
||||
|
||||
$array['aaData'][] = $aaDataArray;
|
||||
}
|
@ -1286,7 +1286,7 @@ class AppServer {
|
||||
$script .= 'FILESFOUND=(`find ' . $serverDir . ' -type f';
|
||||
|
||||
if (count($this->appMasterServerDetails['configBinaries']) > 0) {
|
||||
$script .= ' -name "*.' . implode('" -o -name "*.', $this->appMasterServerDetails['configBinaries']) . '"';
|
||||
$script .= '\( -iname "*.' . implode('" -or -iname "*.', $this->appMasterServerDetails['configBinaries']) . '" \)';
|
||||
}
|
||||
|
||||
if (count($this->appMasterServerDetails['configFiles']) > 0) {
|
||||
@ -1303,7 +1303,7 @@ class AppServer {
|
||||
}
|
||||
|
||||
if ($this->appMasterServerDetails['configBadTime'] > 0 and count($this->appMasterServerDetails['configBadFiles']) > 0) {
|
||||
$script .= '${IONICE}find ' . $serverDir . ' -type f -name "*.' . implode('" -o -name "*.', $this->appMasterServerDetails['configBadFiles']) . '" -mtime +' . $this->appMasterServerDetails['configBadTime'] . ' -delete' . "\n";
|
||||
$script .= '${IONICE}find ' . $serverDir . ' -type f \( -iname "*.' . implode('" -or -iname "*.', $this->appMasterServerDetails['configBadFiles']) . '" \) -mtime +' . $this->appMasterServerDetails['configBadTime'] . ' -delete' . "\n";
|
||||
}
|
||||
|
||||
if ($this->appMasterServerDetails['configDemoTime'] > 0) {
|
||||
@ -1511,6 +1511,8 @@ class AppServer {
|
||||
|
||||
$script = '';
|
||||
|
||||
$script .= 'cp -sr ' . $masterAddonFolder . '* $GAMEDIR/ > /dev/null 2>&1' . "\n";
|
||||
|
||||
if ($type == 'addon') {
|
||||
$script = 'find -type f | grep -i -E -w \'(xml|cfg|con|conf|config|gam|ini|txt|vdf|smx|sp|ext|sma|amxx|lua|json)$\' | sed \'s/\.\///g\' | while read FILE; do' . "\n";
|
||||
$script .= 'FOLDER=`dirname $FILE`' . "\n";
|
||||
@ -1532,14 +1534,10 @@ class AppServer {
|
||||
$script .= 'if [ "$FOLDER" != "cfg/mani_admin_plugin" ]; then cp ' . $masterAddonFolder . '$FILE $GAMEDIR/$FILE; fi' . "\n";
|
||||
$script .= 'elif [ ! -f $GAMEDIR/$FILE -a ! -f "$GAMEDIR/$FOLDER/disabled/$FILENAME" ]; then' . "\n";
|
||||
$script .= 'cp ' . $masterAddonFolder . '$FILE $GAMEDIR/$FILE' . "\n";
|
||||
$script .= 'elif [ -a ! -f $GAMEDIR/$FILE ]; then' . "\n";
|
||||
$script .= 'cp ' . $masterAddonFolder . '$FILE $GAMEDIR/$FILE' . "\n";
|
||||
$script .= 'fi' . "\n";
|
||||
$script .= 'done' . "\n";
|
||||
}
|
||||
|
||||
$script .= 'cp -sr ' . $masterAddonFolder . '* $GAMEDIR/ > /dev/null 2>&1' . "\n";
|
||||
|
||||
return $script;
|
||||
}
|
||||
|
||||
@ -1660,7 +1658,7 @@ class AppServer {
|
||||
|
||||
// Check for to be removed folders
|
||||
if (count($folders) > 0) {
|
||||
$script .= 'find -mindepth 1 -name "' . implode('" -o -name "', $folders) . '" -print0 | xargs -0 rm -rf' . "\n";
|
||||
$script .= 'find -mindepth 1 \( -iname "' . implode('" -or -iname "', $folders) . '"\) -print0 | xargs -0 rm -rf' . "\n";
|
||||
}
|
||||
|
||||
return $script;
|
||||
|
@ -86,7 +86,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' has-error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="tool"><?php echo $sprache->tool;?></option>
|
||||
@ -94,17 +94,17 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' has-error';?>">
|
||||
<label for="inputAddon"><?php echo $sprache->addon;?></label>
|
||||
<input class="form-control" id="inputAddon" type="text" name="addon" value="<?php echo $addon;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' has-error';?>">
|
||||
<label for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<input class="form-control" id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
@ -159,30 +159,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#inputGame2").chosen({
|
||||
disable_search_threshold: 3,
|
||||
|
@ -56,7 +56,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' has-error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="tool"><?php echo $sprache->tool;?></option>
|
||||
@ -64,17 +64,17 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' has-error';?>">
|
||||
<label for="inputAddon"><?php echo $sprache->addon;?></label>
|
||||
<input class="form-control" id="inputAddon" type="text" name="addon" value="<?php echo $addon;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' has-error';?>">
|
||||
<label for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<input class="form-control" id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
@ -129,30 +129,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#inputGame2").chosen({
|
||||
disable_search_threshold: 3,
|
||||
|
@ -156,28 +156,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -52,28 +52,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -53,28 +53,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -63,7 +63,7 @@
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group<?php if(isset($errors['updates'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['updates'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputUpdates">Autoupdate</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputUpdates" name="updates">
|
||||
@ -75,7 +75,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['steamgame'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['steamgame'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSteamGame"><?php echo $sprache->steam;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputSteamGame" name="steamgame">
|
||||
@ -100,7 +100,7 @@
|
||||
<div class="controls"><input class="form-control" id="inputSteamAppID" type="text" name="appID" value="<?php echo $appID;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['gamemod'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['gamemod'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputMods"><?php echo $sprache->mods;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputMods" name="gamemod" onchange="SwitchShowHideRows(this.value,'switch',1);">
|
||||
@ -173,7 +173,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['shorten'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['shorten'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputShorten"><?php echo $sprache->abkuerz;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputShorten" type="text" name="shorten" value="<?php echo $shorten;?>"></div>
|
||||
</div>
|
||||
@ -281,7 +281,7 @@
|
||||
<div class="controls"><input class="form-control" id="inputPort5" type="text" name="portFive" value="<?php echo $portFive;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['cmd'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['cmd'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputCmd"><?php echo $sprache->start;?></label>
|
||||
<div class="controls"><textarea class="form-control" id="inputCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea></div>
|
||||
</div>
|
||||
@ -321,30 +321,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#inputGameQ").chosen({
|
||||
disable_search_threshold: 3,
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group<?php if(isset($errors['updates'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['updates'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputUpdates">Autoupdate</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputUpdates" name="updates">
|
||||
@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['steamgame'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['steamgame'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSteamGame"><?php echo $sprache->steam;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputSteamGame" name="steamgame">
|
||||
@ -70,7 +70,7 @@
|
||||
<div class="controls"><input class="form-control" id="inputSteamAppID" type="text" name="appID" value="<?php echo $appID;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['gamemod'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['gamemod'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputMods"><?php echo $sprache->mods;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputMods" name="gamemod" onchange="SwitchShowHideRows(this.value,'switch',1);">
|
||||
@ -143,7 +143,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['shorten'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['shorten'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputShorten"><?php echo $sprache->abkuerz;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputShorten" type="text" name="shorten" value="<?php echo $shorten;?>"></div>
|
||||
</div>
|
||||
@ -251,7 +251,7 @@
|
||||
<div class="controls"><input class="form-control" id="inputPort5" type="text" name="portFive" value="<?php echo $portFive;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['cmd'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['cmd'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputCmd"><?php echo $sprache->start;?></label>
|
||||
<div class="controls"><textarea class="form-control" id="inputCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea></div>
|
||||
</div>
|
||||
@ -291,30 +291,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#inputGameQ").chosen({
|
||||
disable_search_threshold: 3,
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
@ -41,7 +41,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' has-error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="A"><?php echo $sprache->type_admin;?></option>
|
||||
@ -50,7 +50,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['sub'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['sub'])) echo ' has-error';?>">
|
||||
<label for="inputSub"><?php echo $sprache->sub;?></label>
|
||||
<select class="form-control" id="inputSub" name="sub">
|
||||
<option value="mo"><?php echo $gsprache->modules;?></option>
|
||||
@ -65,7 +65,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['file'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['file'])) echo ' has-error';?>">
|
||||
<label for="inputFile"><?php echo $sprache->file;?></label>
|
||||
<select class="form-control" id="inputFile" name="file">
|
||||
<?php foreach($files as $row){ ?>
|
||||
@ -74,7 +74,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['get'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['get'])) echo ' has-error';?>">
|
||||
<label for="inputGet"><?php echo $sprache->get;?></label>
|
||||
<input class="form-control" id=inputGet type="text" name="get" value="<?php echo $get;?>">
|
||||
</div>
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
<?php if($type!='C'){ ?>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' has-error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="A"><?php echo $sprache->type_admin;?></option>
|
||||
@ -57,7 +57,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['sub'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['sub'])) echo ' has-error';?>">
|
||||
<label for="inputSub"><?php echo $sprache->sub;?></label>
|
||||
<select class="form-control" id="inputSub" name="sub">
|
||||
<option value="mo"><?php echo $gsprache->modules;?></option>
|
||||
@ -72,7 +72,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['file'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['file'])) echo ' has-error';?>">
|
||||
<label for="inputFile"><?php echo $sprache->file;?></label>
|
||||
<select class="form-control" id="inputFile" name="file">
|
||||
<?php foreach($files as $row){ ?>
|
||||
@ -81,7 +81,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['get'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['get'])) echo ' has-error';?>">
|
||||
<label for="inputGet"><?php echo $sprache->get;?></label>
|
||||
<input class="form-control" id=inputGet type="text" name="get" value="<?php echo $get;?>">
|
||||
</div>
|
||||
|
@ -61,7 +61,7 @@
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
@ -81,7 +81,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['ip'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['ip'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputIP"><?php echo $sprache->haupt_ip;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputIP" type="text" name="ip" value="<?php echo $ip?>" maxlength="15"></div>
|
||||
</div>
|
||||
@ -96,17 +96,17 @@
|
||||
<div class="controls"><input class="form-control" id="inputFTPPort" type="number" name="ftpport" value="<?php echo $ftpport?>" min="1" max="65535"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['port'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['port'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2Port"><?php echo $sprache->ssh_port;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2Port" type="number" name="port" value="<?php echo $port?>" min="1" max="65535"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['user'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['user'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2User"><?php echo $sprache->ssh_user;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2User" type="text" name="user" value="<?php echo $user?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['publickey'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['publickey'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputKeyUse"><?php echo $sprache->keyuse;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputKeyUse" name="publickey">
|
||||
@ -117,17 +117,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['pass'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['pass'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2Pass"><?php echo $sprache->ssh_pass;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2Pass" type="password" name="pass" value="<?php echo $pass?>" maxlength="50"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['keyname'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['keyname'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2Key"><?php echo $sprache->keyname;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2Key" type="text" name="keyname" maxlength="20" value="<?php echo $keyname;?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['os'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['os'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputOS"><?php echo $sprache->os;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputBit" name="os">
|
||||
@ -137,7 +137,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['bit'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['bit'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputBit"><?php echo $sprache->os_bit;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputBit" name="bit">
|
||||
@ -147,7 +147,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['hyperthreading'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['hyperthreading'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputHT">Hyper Threading</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputHT" name="hyperthreading">
|
||||
@ -309,28 +309,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -28,10 +28,9 @@
|
||||
<th><?php echo $sprache->haupt_ip;?></th>
|
||||
<th>ID</a></th>
|
||||
<th><?php echo $gsprache->active;?></th>
|
||||
<th><?php echo $sprache->os;?></th>
|
||||
<th><?php echo $sprache->desc;?></th>
|
||||
<th><?php echo $sprache->maxserver;?></th>
|
||||
<th>Ram</th>
|
||||
<th><?php echo $sprache->desc;?></th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -40,10 +39,9 @@
|
||||
<th><?php echo $sprache->haupt_ip;?></th>
|
||||
<th>ID</a></th>
|
||||
<th><?php echo $gsprache->active;?></th>
|
||||
<th><?php echo $sprache->os;?></th>
|
||||
<th><?php echo $sprache->desc;?></th>
|
||||
<th><?php echo $sprache->maxserver;?></th>
|
||||
<th>Ram</th>
|
||||
<th><?php echo $sprache->desc;?></th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
@ -62,7 +62,7 @@
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
@ -82,9 +82,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['ip'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['ip'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputIP"><?php echo $sprache->haupt_ip;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputIP" type="text" name="ip" value="<?php echo $ip?>" maxlength="15"></div>
|
||||
<div class="controls"><input class="form-control" id="inputIP" type="text" name="ip" value="<?php echo $ip?>" maxlength="15" required></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@ -94,20 +94,20 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="inputFTPPort"><?php echo $sprache->ftp_port;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputFTPPort" type="number" name="ftpport" value="<?php echo $ftpport?>" min="1" max="65535"></div>
|
||||
<div class="controls"><input class="form-control" id="inputFTPPort" type="number" name="ftpport" value="<?php echo $ftpport?>" min="1" max="65535" required></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['port'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['port'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2Port"><?php echo $sprache->ssh_port;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2Port" type="number" name="port" value="<?php echo $port?>" min="1" max="65535"></div>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2Port" type="number" name="port" value="<?php echo $port?>" min="1" max="65535" required></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['user'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['user'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2User"><?php echo $sprache->ssh_user;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2User" type="text" name="user" value="<?php echo $user?>"></div>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2User" type="text" name="user" value="<?php echo $user?>" required></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['publickey'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['publickey'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputKeyUse"><?php echo $sprache->keyuse;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputKeyUse" name="publickey">
|
||||
@ -118,17 +118,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['pass'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['pass'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2Pass"><?php echo $sprache->ssh_pass;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2Pass" type="password" name="pass" value="<?php echo $pass?>" maxlength="50"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['keyname'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['keyname'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputSSH2Key"><?php echo $sprache->keyname;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSSH2Key" type="text" name="keyname" maxlength="20" value="<?php echo $keyname;?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['os'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['os'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputOS"><?php echo $sprache->os;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputBit" name="os">
|
||||
@ -138,7 +138,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['bit'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['bit'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputBit"><?php echo $sprache->os_bit;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputBit" name="bit">
|
||||
@ -148,7 +148,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['hyperthreading'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['hyperthreading'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputHT">Hyper Threading</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputHT" name="hyperthreading">
|
||||
@ -310,28 +310,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -288,28 +288,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -93,28 +93,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -93,28 +93,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -434,28 +434,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -42,28 +42,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -33,7 +33,7 @@
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputActive"><?php echo $gsprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
@ -43,7 +43,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['name'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['name'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputName">Social Auth Provider</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputName" name="name">
|
||||
@ -54,14 +54,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['keyID'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['keyID'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputKeyID">ID/Key</label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputKeyID" type="text" name="keyID" value="<?php echo $keyID;?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['providerToken'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['providerToken'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputToken">Token</label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputToken" type="text" name="providerToken" value="<?php echo $providerToken;?>">
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputActive"><?php echo $gsprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
@ -43,7 +43,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['name'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['name'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputName">Social Auth Provider</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputName" name="name">
|
||||
@ -54,14 +54,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['keyID'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['keyID'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputKeyID">ID/Key</label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputKeyID" type="text" name="keyID" value="<?php echo $keyID;?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['providerToken'])) echo ' error';?>">
|
||||
<div class="control-group<?php if(isset($errors['providerToken'])) echo ' has-error';?>">
|
||||
<label class="control-label" for="inputToken">Token</label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputToken" type="text" name="providerToken" value="<?php echo $providerToken;?>">
|
||||
|
@ -39,7 +39,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' has-error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
@ -84,7 +84,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['mail'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['mail'])) echo ' has-error';?>">
|
||||
<label for="inputBirthday"><?php echo $sprache->birthday;?></label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputBirthday" type="text" name="birthday" value="<?php echo $birthday;?>">
|
||||
@ -147,14 +147,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['password'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['password'])) echo ' has-error';?>">
|
||||
<label for="inputPassword"><?php echo $sprache->wipsw;?>*</label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputPassword" type="text" name="password" value="<?php echo $password;?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['accounttype'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['accounttype'])) echo ' has-error';?>">
|
||||
<label for="inputAccounttype"><?php echo $sprache->accounttype;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputAccounttype" name="accounttype" onchange="SwitchShowHideRows(this.value)">
|
||||
@ -204,13 +204,13 @@
|
||||
</div>
|
||||
|
||||
<?php if($rSA['prefix1']=='N') { ?>
|
||||
<div class="u switch form-group<?php if(isset($errors['cname'])) echo ' error';?>">
|
||||
<div class="u switch form-group<?php if(isset($errors['cname'])) echo ' has-error';?>">
|
||||
<label for="inputUCname"><?php echo $sprache->nickname;?></label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputUCname" type="text" name="cname" value="<?php echo $cname;?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="r display_none switch form-group<?php if(isset($errors['cname'])) echo ' error';?>">
|
||||
<div class="r display_none switch form-group<?php if(isset($errors['cname'])) echo ' has-error';?>">
|
||||
<label for="inputRCname"><?php echo $sprache->nickname;?></label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputRCname" type="text" name="rcname" value="<?php echo $cname;?>">
|
||||
@ -218,7 +218,7 @@
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="a display_none switch form-grou<?php if(isset($errors['cname'])) echo ' error';?>p">
|
||||
<div class="a display_none switch form-grou<?php if(isset($errors['cname'])) echo ' has-error';?>p">
|
||||
<label for="inputACname"><?php echo $sprache->nickname;?></label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputACname" type="text" name="acname" value="<?php echo $cname;?>">
|
||||
@ -365,28 +365,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -701,28 +701,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -704,28 +704,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -1,243 +1,295 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="admin.php">Home</a> <span class="divider">/</span></li>
|
||||
<li><?php echo $gsprache->voiceserver." ".$gsprache->master;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $gsprache->add;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1><?php echo $gsprache->voiceserver.' '.$gsprache->master;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="admin.php?w=vo"><i class="fa fa-microphone"></i> <?php echo $gsprache->voiceserver;?></a></li>
|
||||
<li><a href="admin.php?w=vm"><i class="fa fa-hdd-o"></i> <?php echo $gsprache->voiceserver.' '.$gsprache->master;?></a></li>
|
||||
<li class="active"><?php echo $gsprache->add;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<h4><?php echo $gsprache->errors;?></h4>
|
||||
<?php echo implode(', ',$errors);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="alert alert-error">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<h4><?php echo $gsprache->errors;?></h4>
|
||||
<?php echo implode(', ',$errors);?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form name="form" class="form-horizontal" action="admin.php?w=vm&d=ad" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ad">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><input id="inputDescription" type="text" name="description" value="<?php echo $description;?>"></div>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-success">
|
||||
|
||||
<form role="form" action="admin.php?w=vm&d=ad&id=<?php echo $id;?>" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
|
||||
<input class="form-control" type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input class="form-control" type="hidden" name="action" value="ad">
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDescription" type="text" name="description" value="<?php echo $description;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['active'])) echo ' has-error';?>" for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($active=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputManaged">Managed</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputManaged" name="managedServer" onchange="textdrop('reseller');">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($managedServer=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group <?php if($managedServer=='N') echo 'display_none';?>" id="reseller">
|
||||
<label for="inputManagedForID"><?php echo $gsprache->reseller;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputManagedForID" name="managedForID">
|
||||
<?php foreach ($resellerIDs as $k=>$v){ ?><option value="<?php echo $k;?>" <?php if($managedForID==$k) echo 'selected="selected"';?>><?php echo $v;?></option><?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputExternalID">externalID</label>
|
||||
<div class="controls"><input class="form-control" id="inputExternalID" type="text" name="externalID" value="<?php echo $externalID?>" maxlength="255"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['autorestart'])) echo ' has-error';?>" for="inputAutoRestart"><?php echo $sprache->autorestart;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputAutoRestart" name="autorestart">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($autorestart=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultName"><?php echo $sprache->defaultname;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultName" type="text" name="defaultname" value="My Voiceserver <?php echo $defaultname;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="ts3"><?php echo $sprache->ts3;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputNewUser"><?php echo $sprache->newuser;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputNewUser" name="newuser">
|
||||
<option value="1"><?php echo $sprache->generate;?></option>
|
||||
<option value="2"><?php echo $sprache->enter;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['queryport'])) echo ' has-error';?>">
|
||||
<label for="inputQueryPort"><?php echo $sprache->queryport;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputQueryPort" type="text" name="queryport" value="<?php echo $queryport;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['querypassword'])) echo ' has-error';?>">
|
||||
<label for="inputQueryPassword"><?php echo $sprache->querypassword;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputQueryPassword" type="text" name="querypassword" value="<?php echo $querypassword;?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['filetransferport'])) echo ' has-error';?>">
|
||||
<label for="inputFiletransferPort"><?php echo $sprache->filetransferport;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputFiletransferPort" type="text" name="filetransferport" value="<?php echo $filetransferport;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['usedns'])) echo ' has-error';?>" for="inputUseDns"><?php echo $sprache->usedns;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputUseDns" name="usedns">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($usedns=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultDns"><?php echo $sprache->defaultdns;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultDns" type="text" name="defaultdns" value="<?php echo $defaultdns;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputTsdnsServerID"><?php echo $sprache->tsdnsServerID;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputTsdnsServerID" name="tsdnsServerID">
|
||||
<option value=""><?php echo $gsprache->no;?></option>
|
||||
<?php foreach ($externalDNS as $k=>$v) { ?>
|
||||
<option value="<?php echo $k;?>" <?php if($k==$tsdnsServerID) echo 'selected="selected"';?>><?php echo $v;?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputExternalDefaultDNS"><?php echo $sprache->externalDefaultDNS;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputExternalDefaultDNS" name="externalDefaultDNS">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($externalDefaultDNS=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['maxserver'])) echo ' has-error';?>">
|
||||
<label for="inputMaxServer"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputMaxServer" type="text" name="maxserver" value="<?php echo $maxserver;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['maxslots'])) echo ' has-error';?>">
|
||||
<label for="inputMaxSlots"><?php echo $sprache->maxslots;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputMaxSlots" type="text" name="maxslots" value="<?php echo $maxslots;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultWelcome"><?php echo $sprache->defaultwelcome;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultWelcome" type="text" name="defaultwelcome" value="<?php echo $defaultwelcome;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultHostBannerUrl"><?php echo $sprache->defaulthostbanner_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostBannerUrl" type="url" name="defaulthostbanner_url" value="<?php echo $defaulthostbanner_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultHostBannerGfxUrl"><?php echo $sprache->defaulthostbanner_gfx_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostBannerGfxUrl" type="url" name="defaulthostbanner_gfx_url" value="<?php echo $defaulthostbanner_gfx_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultHostButtonTooltip"><?php echo $sprache->defaulthostbutton_tooltip;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostButtonTooltip" type="text" name="defaulthostbutton_tooltip" value="<?php echo $defaulthostbutton_tooltip;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultHostButtonUrl"><?php echo $sprache->defaulthostbutton_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostButtonUrl" type="url" name="defaulthostbutton_url" value="<?php echo $defaulthostbutton_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultHostButtonGfxUrl"><?php echo $sprache->defaulthostbutton_gfx_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostButtonGfxUrl" type="url" name="defaulthostbutton_gfx_url" value="<?php echo $defaulthostbutton_gfx_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultFlexSlotsFree"><?php echo $sprache->defaultFlexSlotsFree;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultFlexSlotsFree" type="text" name="defaultFlexSlotsFree" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputDefaultFlexSlotsPercent"><?php echo $sprache->defaultFlexSlotsPercent;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultFlexSlotsPercent" type="text" name="defaultFlexSlotsPercent" value="<?php echo $defaultFlexSlotsPercent;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputAddType"><?php echo $sprache->addtype;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputAddType" name="addtype" onchange="details2(this.value,'details')">
|
||||
<!--<option value="1"><?php echo $sprache->add;?></option>-->
|
||||
<option value="2"><?php echo $sprache->import;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<div class="control-group">
|
||||
<label for="1"><?php echo $sprache->rootserver;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="1" name="rootid">
|
||||
<?php echo implode('\r\n',$roots);?>
|
||||
</select>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputServerDir"><?php echo $sprache->serverdir;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputServerDir" type="text" name="serverdir" value="<?php echo $serverdir;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['ip'])) echo ' has-error';?>">
|
||||
<label for="inputSshIP"><?php echo $sprache->ssh_ip;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshIP" type="text" name="ip" maxlength="15" value="<?php echo $ip;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputIps"><?php echo $sprache->ips;?></label>
|
||||
<div class="controls"><textarea class="form-control" id="inputIps" name="ips" rows="5" cols="23" ><?php echo $ips;?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['port'])) echo ' has-error';?>">
|
||||
<label for="inputSshPort"><?php echo $sprache->ssh_port;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshPort" type="text" name="port" maxlength="5" value="<?php echo $port;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['user'])) echo ' has-error';?>">
|
||||
<label for="inputSshUser"><?php echo $sprache->ssh_user;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshUser" type="text" name="user" maxlength="15" value="<?php echo $user;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['publickey'])) echo ' has-error';?>">
|
||||
<label for="inputKeyUse"><?php echo $sprache->keyuse;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputKeyUse" name="publickey">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="B" <?php if ($publickey=="B") echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?> + <?php echo $gsprache->password;?></option>
|
||||
<option value="N" <?php if($publickey=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['pass'])) echo ' has-error';?>">
|
||||
<label for="inputSshPass"><?php echo $sprache->ssh_pass;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshPass" type="password" name="pass" value="<?php echo $pass;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['keyname'])) echo ' has-error';?>">
|
||||
<label for="inputKeyName"><?php echo $sprache->keyname;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputKeyName" type="text" name="keyname" maxlength="20" value="<?php echo $keyname;?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group<?php if(isset($errors['bit'])) echo ' has-error';?>">
|
||||
<label for="inputOsBit"><?php echo $sprache->os_bit;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputOsBit" name="bit">
|
||||
<option value="32">32</option>
|
||||
<option value="64" <?php if($bit=='64') echo 'selected="selected"';?>>64</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-success" id="inputEdit" type="submit"><i class="fa fa-plus-circle"> <?php echo $gsprache->add;?></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['active'])) echo ' error';?>" for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($active=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputManaged">Managed</label>
|
||||
<div class="controls">
|
||||
<select id="inputManaged" name="managedServer" onchange="textdrop('reseller');">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($managedServer=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group <?php if($managedServer=='N') echo 'display_none';?>" id="reseller">
|
||||
<label class="control-label" for="inputManagedForID"><?php echo $gsprache->reseller;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputManagedForID" name="managedForID">
|
||||
<?php foreach ($resellerIDs as $k=>$v){ ?><option value="<?php echo $k;?>" <?php if($managedForID==$k) echo 'selected="selected"';?>><?php echo $v;?></option><?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputExternalID">externalID</label>
|
||||
<div class="controls"><input id="inputExternalID" type="text" name="externalID" value="<?php echo $externalID?>" maxlength="255"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['autorestart'])) echo ' error';?>" for="inputAutoRestart"><?php echo $sprache->autorestart;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputAutoRestart" name="autorestart">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($autorestart=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultName"><?php echo $sprache->defaultname;?></label>
|
||||
<div class="controls"><input id="inputDefaultName" type="text" name="defaultname" value="My Voiceserver <?php echo $defaultname;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputType"><?php echo $sprache->type;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputType" name="type">
|
||||
<option value="ts3"><?php echo $sprache->ts3;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputNewUser"><?php echo $sprache->newuser;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputNewUser" name="newuser">
|
||||
<option value="1"><?php echo $sprache->generate;?></option>
|
||||
<option value="2"><?php echo $sprache->enter;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['queryport'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputQueryPort"><?php echo $sprache->queryport;?></label>
|
||||
<div class="controls"><input id="inputQueryPort" type="text" name="queryport" value="<?php echo $queryport;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['querypassword'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputQueryPassword"><?php echo $sprache->querypassword;?></label>
|
||||
<div class="controls"><input id="inputQueryPassword" type="text" name="querypassword" value="<?php echo $querypassword;?>"/></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['filetransferport'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputFiletransferPort"><?php echo $sprache->filetransferport;?></label>
|
||||
<div class="controls"><input id="inputFiletransferPort" type="text" name="filetransferport" value="<?php echo $filetransferport;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['usedns'])) echo ' error';?>" for="inputUseDns"><?php echo $sprache->usedns;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputUseDns" name="usedns">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($usedns=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultDns"><?php echo $sprache->defaultdns;?></label>
|
||||
<div class="controls"><input id="inputDefaultDns" type="text" name="defaultdns" value="<?php echo $defaultdns;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputTsdnsServerID"><?php echo $sprache->tsdnsServerID;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputTsdnsServerID" name="tsdnsServerID">
|
||||
<option value=""><?php echo $gsprache->no;?></option>
|
||||
<?php foreach ($externalDNS as $k=>$v) { ?>
|
||||
<option value="<?php echo $k;?>" <?php if($k==$tsdnsServerID) echo 'selected="selected"';?>><?php echo $v;?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputExternalDefaultDNS"><?php echo $sprache->externalDefaultDNS;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputExternalDefaultDNS" name="externalDefaultDNS">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($externalDefaultDNS=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['maxserver'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputMaxServer"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input id="inputMaxServer" type="text" name="maxserver" value="<?php echo $maxserver;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['maxslots'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputMaxSlots"><?php echo $sprache->maxslots;?></label>
|
||||
<div class="controls"><input id="inputMaxSlots" type="text" name="maxslots" value="<?php echo $maxslots;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultWelcome"><?php echo $sprache->defaultwelcome;?></label>
|
||||
<div class="controls"><input id="inputDefaultWelcome" type="text" name="defaultwelcome" value="<?php echo $defaultwelcome;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostBannerUrl"><?php echo $sprache->defaulthostbanner_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostBannerUrl" type="url" name="defaulthostbanner_url" value="<?php echo $defaulthostbanner_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostBannerGfxUrl"><?php echo $sprache->defaulthostbanner_gfx_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostBannerGfxUrl" type="url" name="defaulthostbanner_gfx_url" value="<?php echo $defaulthostbanner_gfx_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostButtonTooltip"><?php echo $sprache->defaulthostbutton_tooltip;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostButtonTooltip" type="text" name="defaulthostbutton_tooltip" value="<?php echo $defaulthostbutton_tooltip;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostButtonUrl"><?php echo $sprache->defaulthostbutton_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostButtonUrl" type="url" name="defaulthostbutton_url" value="<?php echo $defaulthostbutton_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostButtonGfxUrl"><?php echo $sprache->defaulthostbutton_gfx_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostButtonGfxUrl" type="url" name="defaulthostbutton_gfx_url" value="<?php echo $defaulthostbutton_gfx_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultFlexSlotsFree"><?php echo $sprache->defaultFlexSlotsFree;?></label>
|
||||
<div class="controls"><input id="inputDefaultFlexSlotsFree" type="text" name="defaultFlexSlotsFree" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultFlexSlotsPercent"><?php echo $sprache->defaultFlexSlotsPercent;?></label>
|
||||
<div class="controls"><input id="inputDefaultFlexSlotsPercent" type="text" name="defaultFlexSlotsPercent" value="<?php echo $defaultFlexSlotsPercent;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputAddType"><?php echo $sprache->addtype;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputAddType" name="addtype" onchange="details2(this.value,'details')">
|
||||
<!--<option value="1"><?php echo $sprache->add;?></option>-->
|
||||
<option value="2"><?php echo $sprache->import;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="control-group">
|
||||
<label class="control-label" for="1"><?php echo $sprache->rootserver;?></label>
|
||||
<div class="controls">
|
||||
<select id="1" name="rootid">
|
||||
<?php echo implode('\r\n',$roots);?>
|
||||
</select>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputServerDir"><?php echo $sprache->serverdir;?></label>
|
||||
<div class="controls"><input id="inputServerDir" type="text" name="serverdir" value="<?php echo $serverdir;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['ip'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshIP"><?php echo $sprache->ssh_ip;?></label>
|
||||
<div class="controls"><input id="inputSshIP" type="text" name="ip" maxlength="15" value="<?php echo $ip;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputIps"><?php echo $sprache->ips;?></label>
|
||||
<div class="controls"><textarea id="inputIps" name="ips" rows="5" cols="23" ><?php echo $ips;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['port'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshPort"><?php echo $sprache->ssh_port;?></label>
|
||||
<div class="controls"><input id="inputSshPort" type="text" name="port" maxlength="5" value="<?php echo $port;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['user'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshUser"><?php echo $sprache->ssh_user;?></label>
|
||||
<div class="controls"><input id="inputSshUser" type="text" name="user" maxlength="15" value="<?php echo $user;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['publickey'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputKeyUse"><?php echo $sprache->keyuse;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputKeyUse" name="publickey">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="B" <?php if ($publickey=="B") echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?> + <?php echo $gsprache->password;?></option>
|
||||
<option value="N" <?php if($publickey=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['pass'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshPass"><?php echo $sprache->ssh_pass;?></label>
|
||||
<div class="controls"><input id="inputSshPass" type="password" name="pass" value="<?php echo $pass;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['keyname'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputKeyName"><?php echo $sprache->keyname;?></label>
|
||||
<div class="controls"><input id="inputKeyName" type="text" name="keyname" maxlength="20" value="<?php echo $keyname;?>"/></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['bit'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputOsBit"><?php echo $sprache->os_bit;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputOsBit" name="bit">
|
||||
<option value="32">32</option>
|
||||
<option value="64" <?php if($bit=='64') echo 'selected="selected"';?>>64</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEdit"></label>
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="icon-plus-sign icon-white"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,126 +1,152 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="admin.php">Home</a> <span class="divider">/</span></li>
|
||||
<li><?php echo $gsprache->voiceserver." ".$gsprache->master;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $gsprache->add.'/'.$sprache->import;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1><?php echo $gsprache->voiceserver.' '.$gsprache->master;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="admin.php?w=vo"><i class="fa fa-microphone"></i> <?php echo $gsprache->voiceserver;?></a></li>
|
||||
<li><a href="admin.php?w=vm"><i class="fa fa-hdd-o"></i> <?php echo $gsprache->voiceserver.' '.$gsprache->master;?></a></li>
|
||||
<li class="active"><?php echo $gsprache->add.'/'.$sprache->import;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-success">
|
||||
|
||||
<form role="form" action="admin.php?w=vm&d=<?php echo $ui->st('d','get');?>&id=<?php echo $masterid;?>&r=vm" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
|
||||
<input class="form-control" type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input class="form-control" type="hidden" name="action" value="ad2">
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<?php if(count($servers)>0){ ?>
|
||||
<?php foreach ($servers as $virtualserver_id => $values) { ?>
|
||||
|
||||
|
||||
<h5><?php echo $values['virtualserver_ip'].':'.$values['virtualserver_port'].' '.$values['virtualserver_dns'].' ('.$values['virtualserver_name'].')';?></h5>
|
||||
|
||||
<input class="form-control" type="hidden" name="virtualserver_id[]" value="<?php echo $virtualserver_id;?>">
|
||||
<input class="form-control" type="hidden" name="<?php echo $virtualserver_id;?>-virtualserver_maxclients" value="<?php echo $values['virtualserver_maxclients'];?>">
|
||||
<input class="form-control" type="hidden" name="<?php echo $virtualserver_id;?>-virtualserver_port" value="<?php echo $values['virtualserver_port'];?>">
|
||||
<input class="form-control" type="hidden" name="<?php echo $virtualserver_id;?>-virtualserver_dns" value="<?php echo $values['virtualserver_dns'];?>">
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputImport"><?php echo $sprache->import;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputImport" name="<?php echo $virtualserver_id;?>-import">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputUser"><?php echo $gsprache->user ;?>:</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputUser" name="<?php echo $virtualserver_id;?>-customer" onchange="SwitchShowHideRows(this.value,'<?php echo $virtualserver_id;?>-customer');">
|
||||
<option value="0"><?php echo $sprache->newuser;?></option>
|
||||
<?php foreach ($table as $key=>$value) { ?>
|
||||
<option value="<?php echo $key;?>"><?php echo $value;?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($rSA['prefix1']=='N') { ?>
|
||||
|
||||
<div class="0 <?php echo $virtualserver_id;?>-customer control-group">
|
||||
<label for="inputUserName"><?php echo $sprache->user;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputUserName" type="text" name="<?php echo $virtualserver_id;?>-username"></div>
|
||||
</div>
|
||||
|
||||
<div class="0 <?php echo $virtualserver_id;?>-customer control-group">
|
||||
<label for="inputUserMail"><?php echo $usprache->email;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputUserMail" type="email" name="<?php echo $virtualserver_id;?>-email" value="ts3@import.mail"></div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputPassword"><?php echo $sprache->password;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputPassword" name="<?php echo $virtualserver_id;?>-password">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($values['virtualserver_flag_password']=='1') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputForceWelcome"><?php echo $sprache->forcewelcome;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceWelcome" name="<?php echo $virtualserver_id;?>-forcewelcome">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputForceBanner"><?php echo $sprache->forcebanner;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceBanner" name="<?php echo $virtualserver_id;?>-forcebanner">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputForceButton"><?php echo $sprache->forcebutton;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceButton" name="<?php echo $virtualserver_id;?>-forcebutton">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputForceServerTag"><?php echo $sprache->forceservertag;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceServerTag" name="<?php echo $virtualserver_id;?>-forceservertag">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputFlexSlots"><?php echo $sprache->flexSlots;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputFlexSlots" name="<?php echo $virtualserver_id;?>-flexSlots">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputFlexSlotsFree"><?php echo $sprache->flexSlotsFree;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputFlexSlotsFree" type="text" name="<?php echo $virtualserver_id;?>-flexSlotsFree" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label for="inputFlexSlotsPercent"><?php echo $sprache->flexSlotsPercent;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputFlexSlotsPercent" type="text" name="<?php echo $virtualserver_id;?>-flexSlotsPercent" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
|
||||
<?php }} else { ?>
|
||||
<?php echo $sprache->noVoiceServer;?>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-success" id="inputEdit" type="submit"><i class="fa fa-plus-circle"> <?php echo $gsprache->add;?></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form name="form" class="form-horizontal" action="admin.php?w=vm&d=<?php echo $ui->st('d','get');?>&id=<?php echo $masterid;?>&r=vm" method="post">
|
||||
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ad2">
|
||||
|
||||
<?php if(count($servers)>0){ ?>
|
||||
<?php foreach ($servers as $virtualserver_id => $values) { ?>
|
||||
<h5><?php echo $values['virtualserver_ip'].':'.$values['virtualserver_port'].' '.$values['virtualserver_dns'].' ('.$values['virtualserver_name'].')';?></h5>
|
||||
<input type="hidden" name="virtualserver_id[]" value="<?php echo $virtualserver_id;?>">
|
||||
<input type="hidden" name="<?php echo $virtualserver_id;?>-virtualserver_maxclients" value="<?php echo $values['virtualserver_maxclients'];?>">
|
||||
<input type="hidden" name="<?php echo $virtualserver_id;?>-virtualserver_port" value="<?php echo $values['virtualserver_port'];?>">
|
||||
<input type="hidden" name="<?php echo $virtualserver_id;?>-virtualserver_dns" value="<?php echo $values['virtualserver_dns'];?>">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputImport"><?php echo $sprache->import;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputImport" name="<?php echo $virtualserver_id;?>-import">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputUser"><?php echo $gsprache->user ;?>:</label>
|
||||
<div class="controls">
|
||||
<select id="inputUser" name="<?php echo $virtualserver_id;?>-customer" onchange="SwitchShowHideRows(this.value,'<?php echo $virtualserver_id;?>-customer');">
|
||||
<option value="0"><?php echo $sprache->newuser;?></option>
|
||||
<?php foreach ($table as $key=>$value) { ?>
|
||||
<option value="<?php echo $key;?>"><?php echo $value;?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($rSA['prefix1']=='N') { ?>
|
||||
<div class="0 <?php echo $virtualserver_id;?>-customer control-group">
|
||||
<label class="control-label" for="inputUserName"><?php echo $sprache->user;?></label>
|
||||
<div class="controls"><input id="inputUserName" type="text" name="<?php echo $virtualserver_id;?>-username"></div>
|
||||
</div>
|
||||
<div class="0 <?php echo $virtualserver_id;?>-customer control-group">
|
||||
<label class="control-label" for="inputUserMail"><?php echo $usprache->email;?></label>
|
||||
<div class="controls"><input id="inputUserMail" type="email" name="<?php echo $virtualserver_id;?>-email" value="ts3@import.mail"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPassword"><?php echo $sprache->password;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputPassword" name="<?php echo $virtualserver_id;?>-password">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($values['virtualserver_flag_password']=='1') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputForceWelcome"><?php echo $sprache->forcewelcome;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputForceWelcome" name="<?php echo $virtualserver_id;?>-forcewelcome">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputForceBanner"><?php echo $sprache->forcebanner;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputForceBanner" name="<?php echo $virtualserver_id;?>-forcebanner">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputForceButton"><?php echo $sprache->forcebutton;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputForceButton" name="<?php echo $virtualserver_id;?>-forcebutton">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputForceServerTag"><?php echo $sprache->forceservertag;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputForceServerTag" name="<?php echo $virtualserver_id;?>-forceservertag">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputFlexSlots"><?php echo $sprache->flexSlots;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputFlexSlots" name="<?php echo $virtualserver_id;?>-flexSlots">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputFlexSlotsFree"><?php echo $sprache->flexSlotsFree;?></label>
|
||||
<div class="controls"><input id="inputFlexSlotsFree" type="text" name="<?php echo $virtualserver_id;?>-flexSlotsFree" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputFlexSlotsPercent"><?php echo $sprache->flexSlotsPercent;?></label>
|
||||
<div class="controls"><input id="inputFlexSlotsPercent" type="text" name="<?php echo $virtualserver_id;?>-flexSlotsPercent" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
<?php }} else { ?>
|
||||
<?php echo $sprache->noVoiceServer;?>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEdit"></label>
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="icon-plus-sign icon-white"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,32 +1,47 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="admin.php">Home</a> <span class="divider">/</span></li>
|
||||
<li><a href="admin.php?w=vm"><?php echo $gsprache->voiceserver." ".$gsprache->master;?></a> <span class="divider">/</span></li>
|
||||
<li><?php echo $gsprache->del;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $ip;?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<dl class="dl-horizontal">
|
||||
<dt><?php echo $sprache->ssh_ip;?></dt>
|
||||
<dd><?php echo $ip;?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form name="form" class="form-horizontal" action="admin.php?w=vm&d=dl&id=<?php echo $id;?>&r=vm" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="dl">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEdit"></label>
|
||||
<div class="controls">
|
||||
<button class="btn btn-danger pull-left" id="inputEdit" type="submit"><i class="fa fa-trash-o"></i> <?php echo $gsprache->del;?></button>
|
||||
</div>
|
||||
<section class="content-header">
|
||||
<h1><?php echo $gsprache->voiceserver.' '.$gsprache->master;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="admin.php?w=vo"><i class="fa fa-microphone"></i> <?php echo $gsprache->voiceserver;?></a></li>
|
||||
<li><a href="admin.php?w=vm"><i class="fa fa-hdd-o"></i> <?php echo $gsprache->voiceserver.' '.$gsprache->master;?></a></li>
|
||||
<li><?php echo $gsprache->del;?></li>
|
||||
<li class="active"><?php echo $ip;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-danger">
|
||||
|
||||
<form role="form" action="admin.php?w=vm&d=dl&id=<?php echo $id;?>&r=vm" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="dl">
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputName"><?php echo $sprache->ssh_ip;?></label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputName" type="text" name="name" value="<?php echo $ip;?>" disabled="disabled">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<div class="controls">
|
||||
<input class="form-control" id="inputDescription" type="text" name="type" value="<?php echo $description;?>" disabled="disabled">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-danger" id="inputDelete" type="submit"><i class="fa fa-trash-o"></i> <?php echo $gsprache->del;?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,88 +1,55 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="admin.php">Home</a> <span class="divider">/</span></li>
|
||||
<li><?php echo $gsprache->voiceserver." ".$gsprache->master;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $gsprache->overview;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1><?php echo $gsprache->voiceserver.' '.$gsprache->master;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="admin.php?w=vo"><i class="fa fa-microphone"></i> <?php echo $gsprache->voiceserver;?></a></li>
|
||||
<li><a href="admin.php?w=vm"><i class="fa fa-hdd-o"></i> <?php echo $gsprache->voiceserver.' '.$gsprache->master;?></a></li>
|
||||
<li class="active"><?php echo $gsprache->overview;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php echo $gsprache->voice.' '.$gsprache->master;?> <a href="admin.php?w=vm&d=ad"><span class="btn btn-success btn-sm"><i class="fa fa-plus-circle"></i> <?php echo $gsprache->add;?></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<?php echo $gsprache->voiceserver." ".$gsprache->master;?> <a href="admin.php?w=vm&d=ad"><span class="btn btn-primary btn-mini"><i class="icon-white icon-plus-sign"></i></span></a>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body table-responsive">
|
||||
<table id="dataTable" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $sprache->ssh_ip;?></th>
|
||||
<th>ID</th>
|
||||
<th><?php echo $gsprache->active;?></th>
|
||||
<th><?php echo $sprache->description;?></th>
|
||||
<th><?php echo $sprache->installedserver;?></th>
|
||||
<th><?php echo $sprache->installedslots;?></th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th><?php echo $sprache->ssh_ip;?></th>
|
||||
<th>ID</th>
|
||||
<th><?php echo $gsprache->active;?></th>
|
||||
<th><?php echo $sprache->description;?></th>
|
||||
<th><?php echo $sprache->installedserver;?></th>
|
||||
<th><?php echo $sprache->installedslots;?></th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row-fluid">
|
||||
<div class="span11 pagination">
|
||||
<ul>
|
||||
<li><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $zur;?>"><i class="icon-step-backward"></i></a></li>
|
||||
<li><a href="admin.php?w=vm&o=<?php echo $o;?>&a=20&p=<?php echo $start; ?>">20</a></li>
|
||||
<li><a href="admin.php?w=vm&o=<?php echo $o;?>&a=50&p=<?php echo $start; ?>">50</a></li>
|
||||
<li><a href="admin.php?w=vm&o=<?php echo $o;?>&a=100&p=<?php echo $start; ?>">100</a></li>
|
||||
<li><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $vor;?>"><i class="icon-step-forward"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span11">
|
||||
<table class="table table-bordered table-hover table-striped footable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-class="expand"><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ap') { echo 'dp'; } else { echo 'ap'; } ?>"><?php echo $sprache->ssh_ip;?></a></th>
|
||||
<th data-hide="phone"><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='di') { echo 'ai'; } else { echo 'di'; } ?>">ID</a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='at') { echo 'dt'; } else { echo 'at'; } ?>"><?php echo $sprache->type;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='as') { echo 'ds'; } else { echo 'as'; } ?>"><?php echo $sprache->installedserver;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='al') { echo 'dl'; } else { echo 'al'; } ?>"><?php echo $sprache->installedslots;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=vm&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ad') { echo 'dd'; } else { echo 'ad'; } ?>"><?php echo $sprache->defaultdns;?></a></th>
|
||||
<th><?php echo $sprache->import;?></th>
|
||||
<th><?php echo $gsprache->del;?></th>
|
||||
<th><?php echo $gsprache->mod;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($table as $table_row) { ?>
|
||||
<tr class="<?php if($table_row['img']=='16_ok') echo 'success'; else if($table_row['img']=='16_bad') echo 'warning'; else echo 'error';?>">
|
||||
<td>
|
||||
<a href="#modalID-<?php echo $table_row['id'];?>" role="button" class="btn" data-toggle="modal"><?php echo $table_row['ip'];?></a>
|
||||
<div id="modalID-<?php echo $table_row['id'];?>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel-<?php echo $table_row['id'];?>" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3 id="myModalLabel"><?php echo $table_row['ip'];?></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table table-bordered table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $sprache->server;?></th>
|
||||
<th><?php echo $gsprache->del;?></a></th>
|
||||
<th><?php echo $gsprache->mod;?></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($table_row['server'] as $row){ ?>
|
||||
<tr class="<?php if($row['status']==1) echo 'success'; else if($row['status']==2) echo 'warning'; else echo 'error';?>">
|
||||
<td><?php echo $row['address'];?></td>
|
||||
<td><a href="admin.php?w=vo&d=dl&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="fa fa-trash-o"></i></span></a></td>
|
||||
<td><a href="admin.php?w=vo&d=md&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td><?php echo $table_row['id'];?></td>
|
||||
<td><?php echo $table_row['type'];?></td>
|
||||
<td><?php echo $table_row['installedserver'];?></td>
|
||||
<td><?php echo $table_row['installedslots'];?></td>
|
||||
<td><?php echo $table_row['defaultdns'];?></td>
|
||||
<td><?php if($table_row['managedServer']!='Y' or $reseller_id==0){ ?><a href="admin.php?w=vm&d=ri&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="fa fa-refresh"></i></span></a><?php } ?></td>
|
||||
<td><?php if($table_row['managedServer']!='Y' or $reseller_id==0){ ?><a href="admin.php?w=vm&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="fa fa-trash-o"></i></span></a><?php } ?></td>
|
||||
<td><?php if($table_row['managedServer']!='Y' or $reseller_id==0){ ?><a href="admin.php?w=vm&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a><?php } ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,218 +1,269 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="admin.php">Home</a> <span class="divider">/</span></li>
|
||||
<li><a href="admin.php?w=vm"><?php echo $gsprache->voiceserver." ".$gsprache->master;?></a> <span class="divider">/</span></li>
|
||||
<li><?php echo $gsprache->mod;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $ip;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1><?php echo $gsprache->voiceserver.' '.$gsprache->master;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><a href="admin.php?w=vo"><i class="fa fa-microphone"></i> <?php echo $gsprache->voiceserver;?></a></li>
|
||||
<li><a href="admin.php?w=vm"><i class="fa fa-hdd-o"></i> <?php echo $gsprache->voiceserver.' '.$gsprache->master;?></a></li>
|
||||
<li><?php echo $gsprache->mod;?></li>
|
||||
<li class="active"><?php echo $ip;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<h4><?php echo $gsprache->errors;?></h4>
|
||||
<?php echo implode(', ',$errors);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="alert alert-error">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<h4><?php echo $gsprache->errors;?></h4>
|
||||
<?php echo implode(', ',$errors);?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form name="form" class="form-horizontal" action="admin.php?w=vm&d=md&id=<?php echo $id?>&r=vm" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="md">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><input id="inputDescription" type="text" name="description" value="<?php echo $description;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['active'])) echo ' error';?>" for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($active=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputManaged">Managed</label>
|
||||
<div class="controls">
|
||||
<select id="inputManaged" name="managedServer" onchange="textdrop('reseller');">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($managedServer=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group <?php if($managedServer=='N') echo 'display_none';?>" id="reseller">
|
||||
<label class="control-label" for="inputManagedForID"><?php echo $gsprache->reseller;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputManagedForID" name="managedForID">
|
||||
<?php foreach ($resellerIDs as $k=>$v){ ?><option value="<?php echo $k;?>" <?php if($managedForID==$k) echo 'selected="selected"';?>><?php echo $v;?></option><?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputExternalID">externalID</label>
|
||||
<div class="controls"><input id="inputExternalID" type="text" name="externalID" value="<?php echo $externalID?>" maxlength="255"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['autorestart'])) echo ' error';?>" for="inputAutoRestart"><?php echo $sprache->autorestart;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputAutoRestart" name="autorestart">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($autorestart=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultName"><?php echo $sprache->defaultname;?></label>
|
||||
<div class="controls"><input id="inputDefaultName" type="text" name="defaultname" value="<?php echo $defaultname;?>"></div>
|
||||
</div>
|
||||
<?php if($type == 'ts3') { ?>
|
||||
<div class="control-group<?php if(isset($errors['queryport'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputQueryPort"><?php echo $sprache->queryport;?></label>
|
||||
<div class="controls"><input id="inputQueryPort" type="text" name="queryport" value="<?php echo $queryport;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['querypassword'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputQueryPassword"><?php echo $sprache->querypassword;?></label>
|
||||
<div class="controls"><input id="inputQueryPassword" type="text" name="querypassword" value="<?php echo $querypassword;?>"/></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['filetransferport'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputFiletransferPort"><?php echo $sprache->filetransferport;?></label>
|
||||
<div class="controls"><input id="inputFiletransferPort" type="text" name="filetransferport" value="<?php echo $filetransferport;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label<?php if(isset($errors['usedns'])) echo ' error';?>" for="inputUseDns"><?php echo $sprache->usedns;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputUseDns" name="usedns">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($usedns=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultDns"><?php echo $sprache->defaultdns;?></label>
|
||||
<div class="controls"><input id="inputDefaultDns" type="text" name="defaultdns" value="<?php echo $defaultdns;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputTsdnsServerID"><?php echo $sprache->tsdnsServerID;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputTsdnsServerID" name="tsdnsServerID">
|
||||
<option value=""><?php echo $gsprache->no;?></option>
|
||||
<?php foreach ($externalDNS as $k=>$v) { ?>
|
||||
<option value="<?php echo $k;?>" <?php if($k==$tsdnsServerID) echo 'selected="selected"';?>><?php echo $v;?></option>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
|
||||
<form role="form" action="admin.php?w=vm&d=md&id=<?php echo $id;?>&r=vm" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
|
||||
<input class="form-control" type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input class="form-control" type="hidden" name="action" value="md">
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDescription" type="text" name="description" value="<?php echo $description;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label<?php if(isset($errors['active'])) echo ' has-error';?>" for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($active=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputManaged">Managed</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputManaged" name="managedServer" onchange="textdrop('reseller');">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($managedServer=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group <?php if($managedServer=='N') echo 'display_none';?>" id="reseller">
|
||||
<label for="inputManagedForID"><?php echo $gsprache->reseller;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputManagedForID" name="managedForID">
|
||||
<?php foreach ($resellerIDs as $k=>$v){ ?><option value="<?php echo $k;?>" <?php if($managedForID==$k) echo 'selected="selected"';?>><?php echo $v;?></option><?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputExternalID">externalID</label>
|
||||
<div class="controls"><input class="form-control" id="inputExternalID" type="text" name="externalID" value="<?php echo $externalID?>" maxlength="255"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label<?php if(isset($errors['autorestart'])) echo ' has-error';?>" for="inputAutoRestart"><?php echo $sprache->autorestart;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputAutoRestart" name="autorestart">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($autorestart=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultName"><?php echo $sprache->defaultname;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultName" type="text" name="defaultname" value="<?php echo $defaultname;?>"></div>
|
||||
</div>
|
||||
|
||||
<?php if($type == 'ts3') { ?>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['queryport'])) echo ' has-error';?>">
|
||||
<label for="inputQueryPort"><?php echo $sprache->queryport;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputQueryPort" type="text" name="queryport" value="<?php echo $queryport;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['querypassword'])) echo ' has-error';?>">
|
||||
<label for="inputQueryPassword"><?php echo $sprache->querypassword;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputQueryPassword" type="text" name="querypassword" value="<?php echo $querypassword;?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['filetransferport'])) echo ' has-error';?>">
|
||||
<label for="inputFiletransferPort"><?php echo $sprache->filetransferport;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputFiletransferPort" type="text" name="filetransferport" value="<?php echo $filetransferport;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label<?php if(isset($errors['usedns'])) echo ' has-error';?>" for="inputUseDns"><?php echo $sprache->usedns;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputUseDns" name="usedns">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($usedns=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultDns"><?php echo $sprache->defaultdns;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultDns" type="text" name="defaultdns" value="<?php echo $defaultdns;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputTsdnsServerID"><?php echo $sprache->tsdnsServerID;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputTsdnsServerID" name="tsdnsServerID">
|
||||
<option value=""><?php echo $gsprache->no;?></option>
|
||||
<?php foreach ($externalDNS as $k=>$v) { ?>
|
||||
<option value="<?php echo $k;?>" <?php if($k==$tsdnsServerID) echo 'selected="selected"';?>><?php echo $v;?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputExternalDefaultDNS"><?php echo $sprache->externalDefaultDNS;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputExternalDefaultDNS" name="externalDefaultDNS">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($externalDefaultDNS=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['maxserver'])) echo ' has-error';?>">
|
||||
<label for="inputMaxServer"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputMaxServer" type="text" name="maxserver" value="<?php echo $maxserver;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['maxslots'])) echo ' has-error';?>">
|
||||
<label for="inputMaxSlots"><?php echo $sprache->maxslots;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputMaxSlots" type="text" name="maxslots" value="<?php echo $maxslots;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultWelcome"><?php echo $sprache->defaultwelcome;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultWelcome" type="text" name="defaultwelcome" value="<?php echo $defaultwelcome;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultHostBannerUrl"><?php echo $sprache->defaulthostbanner_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostBannerUrl" type="url" name="defaulthostbanner_url" value="<?php echo $defaulthostbanner_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultHostBannerGfxUrl"><?php echo $sprache->defaulthostbanner_gfx_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostBannerGfxUrl" type="url" name="defaulthostbanner_gfx_url" value="<?php echo $defaulthostbanner_gfx_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultHostButtonTooltip"><?php echo $sprache->defaulthostbutton_tooltip;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostButtonTooltip" type="text" name="defaulthostbutton_tooltip" value="<?php echo $defaulthostbutton_tooltip;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultHostButtonUrl"><?php echo $sprache->defaulthostbutton_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostButtonUrl" type="url" name="defaulthostbutton_url" value="<?php echo $defaulthostbutton_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultHostButtonGfxUrl"><?php echo $sprache->defaulthostbutton_gfx_url;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultHostButtonGfxUrl" type="url" name="defaulthostbutton_gfx_url" value="<?php echo $defaulthostbutton_gfx_url;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultFlexSlotsFree"><?php echo $sprache->defaultFlexSlotsFree;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultFlexSlotsFree" type="text" name="defaultFlexSlotsFree" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDefaultFlexSlotsPercent"><?php echo $sprache->defaultFlexSlotsPercent;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputDefaultFlexSlotsPercent" type="text" name="defaultFlexSlotsPercent" value="<?php echo $defaultFlexSlotsPercent;?>"></div>
|
||||
</div>
|
||||
|
||||
<?php } ; if($addedby==1) { ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label><?php echo $sprache->rootserver;?></label>
|
||||
<div class="controls"><?php echo $root;?></div>
|
||||
</div>
|
||||
|
||||
<?php } else if ($addedby==2){ ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputServerDir"><?php echo $sprache->serverdir;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputServerDir" type="text" name="serverdir" value="<?php echo $serverdir;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ip'])) echo ' has-error';?>">
|
||||
<label for="inputSshIP"><?php echo $sprache->ssh_ip;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshIP" type="text" name="ip" maxlength="15" value="<?php echo $ip;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputIps"><?php echo $sprache->ips;?></label>
|
||||
<div class="controls"><textarea class="form-control" id="inputIps" name="ips" rows="5" cols="23" ><?php echo $ips;?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['port'])) echo ' has-error';?>">
|
||||
<label for="inputSshPort"><?php echo $sprache->ssh_port;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshPort" type="text" name="port" maxlength="5" value="<?php echo $port;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['user'])) echo ' has-error';?>">
|
||||
<label for="inputSshUser"><?php echo $sprache->ssh_user;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshUser" type="text" name="user" maxlength="15" value="<?php echo $user;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['publickey'])) echo ' has-error';?>">
|
||||
<label for="inputKeyUse"><?php echo $sprache->keyuse;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputKeyUse" name="publickey">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="B" <?php if ($publickey=="B") echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?> + <?php echo $gsprache->password;?></option>
|
||||
<option value="N" <?php if($publickey=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['pass'])) echo ' has-error';?>">
|
||||
<label for="inputSshPass"><?php echo $sprache->ssh_pass;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputSshPass" type="password" name="pass" value="<?php echo $pass;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['keyname'])) echo ' has-error';?>">
|
||||
<label for="inputKeyName"><?php echo $sprache->keyname;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputKeyName" type="text" name="keyname" maxlength="20" value="<?php echo $keyname;?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['bit'])) echo ' has-error';?>">
|
||||
<label for="inputOsBit"><?php echo $sprache->os_bit;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputOsBit" name="bit">
|
||||
<option value="32">32</option>
|
||||
<option value="64" <?php if($bit=='64') echo 'selected="selected"';?>>64</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save"> <?php echo $gsprache->save;?></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputExternalDefaultDNS"><?php echo $sprache->externalDefaultDNS;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputExternalDefaultDNS" name="externalDefaultDNS">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N" <?php if($externalDefaultDNS=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['maxserver'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputMaxServer"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input id="inputMaxServer" type="text" name="maxserver" value="<?php echo $maxserver;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['maxslots'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputMaxSlots"><?php echo $sprache->maxslots;?></label>
|
||||
<div class="controls"><input id="inputMaxSlots" type="text" name="maxslots" value="<?php echo $maxslots;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultWelcome"><?php echo $sprache->defaultwelcome;?></label>
|
||||
<div class="controls"><input id="inputDefaultWelcome" type="text" name="defaultwelcome" value="<?php echo $defaultwelcome;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostBannerUrl"><?php echo $sprache->defaulthostbanner_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostBannerUrl" type="url" name="defaulthostbanner_url" value="<?php echo $defaulthostbanner_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostBannerGfxUrl"><?php echo $sprache->defaulthostbanner_gfx_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostBannerGfxUrl" type="url" name="defaulthostbanner_gfx_url" value="<?php echo $defaulthostbanner_gfx_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostButtonTooltip"><?php echo $sprache->defaulthostbutton_tooltip;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostButtonTooltip" type="text" name="defaulthostbutton_tooltip" value="<?php echo $defaulthostbutton_tooltip;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostButtonUrl"><?php echo $sprache->defaulthostbutton_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostButtonUrl" type="url" name="defaulthostbutton_url" value="<?php echo $defaulthostbutton_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultHostButtonGfxUrl"><?php echo $sprache->defaulthostbutton_gfx_url;?></label>
|
||||
<div class="controls"><input id="inputDefaultHostButtonGfxUrl" type="url" name="defaulthostbutton_gfx_url" value="<?php echo $defaulthostbutton_gfx_url;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultFlexSlotsFree"><?php echo $sprache->defaultFlexSlotsFree;?></label>
|
||||
<div class="controls"><input id="inputDefaultFlexSlotsFree" type="text" name="defaultFlexSlotsFree" value="<?php echo $defaultFlexSlotsFree;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDefaultFlexSlotsPercent"><?php echo $sprache->defaultFlexSlotsPercent;?></label>
|
||||
<div class="controls"><input id="inputDefaultFlexSlotsPercent" type="text" name="defaultFlexSlotsPercent" value="<?php echo $defaultFlexSlotsPercent;?>"></div>
|
||||
</div>
|
||||
<?php } ; if($addedby==1) { ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><?php echo $sprache->rootserver;?></label>
|
||||
<div class="controls"><?php echo $root;?></div>
|
||||
</div>
|
||||
<?php } else if ($addedby==2){ ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputServerDir"><?php echo $sprache->serverdir;?></label>
|
||||
<div class="controls"><input id="inputServerDir" type="text" name="serverdir" value="<?php echo $serverdir;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['ip'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshIP"><?php echo $sprache->ssh_ip;?></label>
|
||||
<div class="controls"><input id="inputSshIP" type="text" name="ip" maxlength="15" value="<?php echo $ip;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputIps"><?php echo $sprache->ips;?></label>
|
||||
<div class="controls"><textarea id="inputIps" name="ips" rows="5" cols="23" ><?php echo $ips;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['port'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshPort"><?php echo $sprache->ssh_port;?></label>
|
||||
<div class="controls"><input id="inputSshPort" type="text" name="port" maxlength="5" value="<?php echo $port;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['user'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshUser"><?php echo $sprache->ssh_user;?></label>
|
||||
<div class="controls"><input id="inputSshUser" type="text" name="user" maxlength="15" value="<?php echo $user;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['publickey'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputKeyUse"><?php echo $sprache->keyuse;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputKeyUse" name="publickey">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="B" <?php if ($publickey=="B") echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?> + <?php echo $gsprache->password;?></option>
|
||||
<option value="N" <?php if($publickey=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['pass'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputSshPass"><?php echo $sprache->ssh_pass;?></label>
|
||||
<div class="controls"><input id="inputSshPass" type="password" name="pass" value="<?php echo $pass;?>"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['keyname'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputKeyName"><?php echo $sprache->keyname;?></label>
|
||||
<div class="controls"><input id="inputKeyName" type="text" name="keyname" maxlength="20" value="<?php echo $keyname;?>"/></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['bit'])) echo ' error';?>">
|
||||
<label class="control-label" for="inputOsBit"><?php echo $sprache->os_bit;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputOsBit" name="bit">
|
||||
<option value="32">32</option>
|
||||
<option value="64" <?php if($bit=='64') echo 'selected="selected"';?>>64</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEdit"></label>
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="icon-edit icon-white"></i> <?php echo $gsprache->save;?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -41,12 +41,12 @@
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ad">
|
||||
|
||||
<div class="form-group<?php if(isset($errors['name'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['name'])) echo ' has-error';?>">
|
||||
<label for="inputName"><?php echo $sprache->description;?></label>
|
||||
<input class="form-control" id="inputName" type="text" name="name" value="<?php echo $name;?>" required>
|
||||
</div>
|
||||
|
||||
<div id="mods" class="form-group<?php if(isset($errors['servertype'])) echo ' error';?>">
|
||||
<div id="mods" class="form-group<?php if(isset($errors['servertype'])) echo ' has-error';?>">
|
||||
<label for="inputServertype"><?php echo $sprache->game;?></label>
|
||||
<select class="form-control chosen-select" id="inputServertype" name="servertype">
|
||||
<?php foreach ($table as $k=>$v) { ?>
|
||||
@ -55,7 +55,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['content'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['content'])) echo ' has-error';?>">
|
||||
<label for="inputContent"><?php echo $gsprache->template;?></label>
|
||||
<textarea class="form-control" id="inputContent" rows="20" name="content" required><?php echo $content;?></textarea>
|
||||
</div>
|
||||
|
@ -40,12 +40,12 @@
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="md">
|
||||
|
||||
<div class="form-group<?php if(isset($errors['name'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['name'])) echo ' has-error';?>">
|
||||
<label for="inputName"><?php echo $sprache->description;?></label>
|
||||
<input class="form-control" id="inputName" type="text" name="name" value="<?php echo $name;?>" required>
|
||||
</div>
|
||||
|
||||
<div id="mods" class="form-group<?php if(isset($errors['servertype'])) echo ' error';?>">
|
||||
<div id="mods" class="form-group<?php if(isset($errors['servertype'])) echo ' has-error';?>">
|
||||
<label for="inputServertype"><?php echo $sprache->game;?></label>
|
||||
<select class="form-control chosen-select" id="inputServertype" name="servertype">
|
||||
<?php foreach ($table as $k=>$v) { ?>
|
||||
@ -54,7 +54,7 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['content'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['content'])) echo ' has-error';?>">
|
||||
<label for="inputContent"><?php echo $gsprache->template;?></label>
|
||||
<textarea class="form-control" id="inputContent" rows="20" name="content" required><?php echo $content;?></textarea>
|
||||
</div>
|
||||
|
@ -27,27 +27,27 @@
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_adresse'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_adresse'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_adresse"><?php echo $sprache->ftp_adresse;?></label>
|
||||
<input id="input_ftp_adresse" type="text" class="form-control" name="ftp_adresse" value="<?php echo $ftp_adresse;?>" required/>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_port'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_port'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_port"><?php echo $sprache->ftp_port;?></label>
|
||||
<input id="input_ftp_port" type="text" class="form-control" name="ftp_port" value="<?php echo $ftp_port;?>" required/>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_user'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_user'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_user"><?php echo $sprache->ftp_user;?></label>
|
||||
<input id="input_ftp_user" type="text" class="form-control" name="ftp_user" value="<?php echo $ftp_user;?>" required/>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_password'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_password'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_password"><?php echo $sprache->ftp_password;?></label>
|
||||
<input id="input_ftp_password" type="text" class="form-control" name="ftp_password" value="<?php echo $ftp_password;?>" required/>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_path'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_path'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_path"><?php echo $sprache->ftp_path;?></label>
|
||||
<input id="input_ftp_path" type="text" class="form-control" name="ftp_path" value="<?php echo $ftp_path;?>" required/>
|
||||
</div>
|
||||
|
@ -50,22 +50,22 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="N switch <?php if ($masterfdl=='Y') echo 'display_none'; ?> form-group<?php if(isset($errors['ftp_adresse'])) echo ' error';?>">
|
||||
<div class="N switch <?php if ($masterfdl=='Y') echo 'display_none'; ?> form-group<?php if(isset($errors['ftp_adresse'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_adresse"><?php echo $gameSprache->ftp_adresse;?></label>
|
||||
<input class="form-control" id="input_ftp_adresse" type="text" name="ftp_adresse" value="<?php echo $ftp_adresse;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="N <?php if ($masterfdl=='Y') echo 'display_none'; ?> switch form-group<?php if(isset($errors['ftp_port'])) echo ' error';?>">
|
||||
<div class="N <?php if ($masterfdl=='Y') echo 'display_none'; ?> switch form-group<?php if(isset($errors['ftp_port'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_port"><?php echo $gameSprache->ftp_port;?></label>
|
||||
<input class="form-control" id="input_ftp_port" type="text" name="ftp_port" value="<?php echo $ftp_port;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="N <?php if ($masterfdl=='Y') echo 'display_none'; ?> switch form-group<?php if(isset($errors['ftp_user'])) echo ' error';?>">
|
||||
<div class="N <?php if ($masterfdl=='Y') echo 'display_none'; ?> switch form-group<?php if(isset($errors['ftp_user'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_user"><?php echo $gameSprache->ftp_user;?></label>
|
||||
<input class="form-control" id="input_ftp_port" type="text" name="ftp_user" value="<?php echo $ftp_user;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="N <?php if ($masterfdl=='Y') echo 'display_none'; ?> switch form-group<?php if(isset($errors['ftp_password'])) echo ' error';?>">
|
||||
<div class="N <?php if ($masterfdl=='Y') echo 'display_none'; ?> switch form-group<?php if(isset($errors['ftp_password'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_password"><?php echo $gameSprache->ftp_password;?></label>
|
||||
<input class="form-control" id="input_ftp_port" type="text" name="ftp_password" value="<?php echo $ftp_password;?>" required>
|
||||
</div>
|
||||
@ -83,29 +83,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -46,22 +46,22 @@
|
||||
<input type="hidden" name="action" value="md">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group<?php if(isset($errors['ftp_adresse'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_adresse'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_adresse"><?php echo $gameSprache->ftp_adresse;?></label>
|
||||
<input class="form-control" id="input_ftp_adresse" type="text" name="ftp_adresse" value="<?php echo $ftp_adresse;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_port'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_port'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_port"><?php echo $gameSprache->ftp_port;?></label>
|
||||
<input class="form-control" id="input_ftp_port" type="text" name="ftp_port" value="<?php echo $ftp_port;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_user'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_user'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_user"><?php echo $gameSprache->ftp_user;?></label>
|
||||
<input class="form-control" id="input_ftp_port" type="text" name="ftp_user" value="<?php echo $ftp_user;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['ftp_password'])) echo ' error';?>">
|
||||
<div class="form-group<?php if(isset($errors['ftp_password'])) echo ' has-error';?>">
|
||||
<label for="input_ftp_password"><?php echo $gameSprache->ftp_password;?></label>
|
||||
<input class="form-control" id="input_ftp_port" type="text" name="ftp_password" value="<?php echo $ftp_password;?>" required>
|
||||
</div>
|
||||
|
@ -154,28 +154,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -108,28 +108,4 @@
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
@ -79,28 +79,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
||||
</section>
|
Loading…
x
Reference in New Issue
Block a user