mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#30 TSDNS master
This commit is contained in:
parent
8fe9d39628
commit
f8f66a55b3
@ -142,6 +142,11 @@ if ($ui->smallletters('w', 9, 'get') == 'datatable') {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_voicemasterserver.php');
|
||||
|
||||
// TSDNS master
|
||||
} else if ($ui->smallletters('d', 17, 'get') == 'tsdnsmasterserver' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['voicemasterserver']) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_tsdnsmasterserver.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 {
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['voiceserver'])) {
|
||||
if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['voicemasterserver'])) {
|
||||
header('Location: admin.php');
|
||||
die;
|
||||
}
|
||||
@ -472,84 +472,7 @@ if ($ui->w('action',4, 'post') and !token(true)) {
|
||||
// List the available entries
|
||||
} else {
|
||||
|
||||
$table = array();
|
||||
$o = $ui->st('o', 'get');
|
||||
configureDateTables('-1', '1, "asc"', 'ajax.php?w=datatable&d=tsdnsmasterserver');
|
||||
|
||||
if ($ui->st('o', 'get') == 'da') {
|
||||
$orderby = '`active` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'aa') {
|
||||
$orderby = '`active` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dp') {
|
||||
$orderby = '`ssh2ip` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ap') {
|
||||
$orderby = '`ssh2ip` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dd') {
|
||||
$orderby = '`defaultdns` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ad') {
|
||||
$orderby = '`defaultdns` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'db') {
|
||||
$orderby = '`description` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ab') {
|
||||
$orderby = '`description` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'di') {
|
||||
$orderby = '`id` DESC';
|
||||
} else {
|
||||
$orderby = '`id` ASC';
|
||||
$o = 'ai';
|
||||
}
|
||||
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `voice_tsdns` WHERE `resellerid`=?");
|
||||
$query->execute(array($reseller_id));
|
||||
$colcount = $query->fetchColumn();
|
||||
|
||||
if ($start > $colcount) {
|
||||
$start = $colcount - $amount;
|
||||
if ($start < 0) {
|
||||
$start = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$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=vd&o=' . $o . '&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=vd&o=' . $o . '&a=' . $amount . '&p=' . $selectpage . '"' . ($start==$selectpage) ? 'class="bold"' : '' . ' >' . $i . '</a>';
|
||||
$i++;
|
||||
}
|
||||
$pages = implode(', ', $pages);
|
||||
|
||||
$query = $sql->prepare("SELECT * FROM `voice_tsdns` WHERE `resellerid`=? ORDER BY $orderby LIMIT $start,$amount");
|
||||
$query2 = $sql->prepare("SELECT `dnsID`,`active`,`dns` FROM `voice_dns` WHERE `tsdnsID`=? AND `resellerID`=?");
|
||||
$query->execute(array($reseller_id));
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
$i = 0;
|
||||
$ds = array();
|
||||
|
||||
if ($row['active'] == 'Y') {
|
||||
if ($row['notified']>2) {
|
||||
$imgName = '16_error';
|
||||
$imgAlt='16_error';
|
||||
} else {
|
||||
$imgName = '16_ok';
|
||||
$imgAlt='online';
|
||||
}
|
||||
} else {
|
||||
$imgName = '16_bad';
|
||||
$imgAlt='inactive';
|
||||
}
|
||||
|
||||
$query2->execute(array($row['id'], $reseller_id));
|
||||
|
||||
while ($row2 = $query2->fetch(PDO::FETCH_ASSOC)) {
|
||||
$ds[] = array('id' => $row2['dnsID'], 'address' => $row2['dns'], 'status' => ($row2['active'] == 'N') ? 2 : 1);
|
||||
}
|
||||
|
||||
$table[] = array('id' => $row['id'], 'active' => $row['active'], 'img' => $imgName,'alt' => $imgAlt,'ip' => $row['ssh2ip'], 'defaultdns' => $row['defaultdns'], 'description' => $row['description'], 'maxDns' => $row['max_dns'], 'dnsCount' => count($ds), 'server' => $ds);
|
||||
}
|
||||
$template_file = 'admin_voice_tsdns_list.tpl';
|
||||
}
|
81
web/stuff/ajax/datatable_tsdnsmasterserver.php
Normal file
81
web/stuff/ajax/datatable_tsdnsmasterserver.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: datatable_tsdnsmasterserver.php.
|
||||
* Author: Ulrich Block
|
||||
* Date: 25.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_tsdns` WHERE `resellerid`=?");
|
||||
$query->execute(array($resellerLockupID));
|
||||
|
||||
$array['iTotalRecords'] = $query->fetchColumn();
|
||||
|
||||
if ($sSearch) {
|
||||
|
||||
$query = $sql->prepare("SELECT COUNT(1) AS `amount` FROM `voice_tsdns` WHERE `resellerid`=:reseller_id AND (`ssh2ip` LIKE :search OR `id` LIKE :search OR `description` LIKE :search OR `defaultdns` 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 => '`defaultdns`', 5 => '`installed_dns`');
|
||||
|
||||
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(d.`dnsID`) AS `installed_dns` FROM `voice_tsdns` AS m LEFT JOIN `voice_dns` d ON d.`tsdnsID`=m.`id` WHERE m.`resellerid`=:reseller_id AND (m.`ssh2ip` LIKE :search OR m.`id` LIKE :search OR m.`description` LIKE :search OR `defaultdns` 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(d.`dnsID`) AS `installed_dns` FROM `voice_tsdns` AS m LEFT JOIN `voice_dns` d ON d.`tsdnsID`=m.`id` WHERE m.`resellerid`=? GROUP BY m.`id` ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array($resellerLockupID));
|
||||
}
|
||||
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$array['aaData'][] = array($row['ssh2ip'], $row['id'], ($row['active'] == 'Y') ? (string) $gsprache->yes : (string) $gsprache->no, $row['description'], $row['defaultdns'], $row['installed_dns'] . '/' . $row['max_dns'], returnButton($template_to_use, 'ajax_admin_buttons_ri.tpl', 'vd', 'ip', $row['id'], $sprache->import) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_dl.tpl', 'vd', 'dl', $row['id'], $gsprache->del) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_md.tpl', 'vd', 'md', $row['id'], $gsprache->mod));
|
||||
}
|
@ -1,107 +1,136 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="admin.php">Home</a> <span class="divider">/</span></li>
|
||||
<li>TSDNS <?php echo $gsprache->master;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $gsprache->add;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1>TSDNS <?php echo $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=vd"><i class="fa fa-hdd-o"></i> TSDNS <?php echo $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=vd&d=ad&r=vd" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ad">
|
||||
<div class="control-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<label class="control-label" 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>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-success">
|
||||
|
||||
<form role="form" action="admin.php?w=vd&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="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">
|
||||
<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="inputExternalID"><?php echo $gsprache->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<?php if(isset($errors['autorestart'])) echo ' has-error';?>">
|
||||
<label 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="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="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 $ssh2ip;?>"></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 $ssh2port;?>"></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 $ssh2user;?>"></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 $ssh2password;?>"></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>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputMaxDns"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputMaxDns" type="number" name="maxDns" maxlength="10" value="<?php echo $maxDns;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDesc"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><textarea class="form-control" id="inputDesc" name="description"><?php echo $description;?></textarea></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" for="inputExternalID"><?php echo $gsprache->externalID;?></label>
|
||||
<div class="controls"><input id="inputExternalID" type="text" name="externalID" value="<?php echo $externalID;?>" maxlength="255"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['autorestart'])) echo ' error';?>">
|
||||
<label class="control-label" 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="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="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 $ssh2ip;?>"></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 $ssh2port;?>"></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 $ssh2user;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<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 $ssh2password;?>"></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="inputMaxDns"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input id="inputMaxDns" type="number" name="maxDns" maxlength="10" value="<?php echo $maxDns;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDesc"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><textarea id="inputDesc" name="description"><?php echo $description;?></textarea></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,34 +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=vd">TSDNS <?php echo $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>
|
||||
<dt><?php echo $sprache->description;?></dt>
|
||||
<dd><?php echo $description;?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form name="form" class="form-horizontal" action="admin.php?w=vd&d=dl&id=<?php echo $id;?>&r=vd" 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>TSDNS <?php echo $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=vd"><i class="fa fa-hdd-o"></i> TSDNS <?php echo $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=vd&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,61 +1,78 @@
|
||||
<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=vd">TSDNS <?php echo $gsprache->master;?></a> <span class="divider">/</span></li>
|
||||
<li>Import <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $ssh2ip;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1>TSDNS <?php echo $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=vd"><i class="fa fa-hdd-o"></i> TSDNS <?php echo $gsprache->master;?></a></li>
|
||||
<li><?php echo $gsprache->add.'/'.$sprache->import;?></li>
|
||||
<li class="active"><?php echo $ssh2ip;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-success">
|
||||
|
||||
<form role="form" action="admin.php?w=vd&d=ip&id=<?php echo $id;?>&r=vd" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ip">
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<?php if (is_array($dnsarray)) { ?>
|
||||
<?php foreach ($newArray as $k=>$v) { ?>
|
||||
|
||||
<input type="hidden" name="dns[]" value="<?php echo $v;?>">
|
||||
<input type="hidden" name="<?php echo $v;?>-address" value="<?php echo $k;?>">
|
||||
|
||||
<h3><?php echo $k.': '.$v;?></h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputImport"><?php echo $sprache->import;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputImport" name="<?php echo $v;?>-import">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputCustomer"><?php echo $gsprache->user ;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputCustomer" name="<?php echo $v;?>-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 ($newuser==2) { ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputUser"><?php echo $sprache->user;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputUser" type="text" name="<?php echo $v;?>-username"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEmail"><?php echo $usprache->email;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputEmail" type="text" name="<?php echo $v;?>-email" value="ts3@import.mail"></div>
|
||||
</div>
|
||||
|
||||
<?php }}} else { ?>
|
||||
<?php echo $dnsarray;?>
|
||||
<?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=vd&d=ip&id=<?php echo $id;?>&r=vd" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ip">
|
||||
<?php if (is_array($dnsarray)) { ?>
|
||||
<?php foreach ($newArray as $k=>$v) { ?>
|
||||
<input type="hidden" name="dns[]" value="<?php echo $v;?>">
|
||||
<input type="hidden" name="<?php echo $v;?>-address" value="<?php echo $k;?>">
|
||||
<h5><?php echo $k.': '.$v;?></h5>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputImport"><?php echo $sprache->import;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputImport" name="<?php echo $v;?>-import">
|
||||
<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="inputCustomer"><?php echo $gsprache->user ;?>:</label>
|
||||
<div class="controls">
|
||||
<select id="inputCustomer" name="<?php echo $v;?>-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 ($newuser==2) { ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputUser"><?php echo $sprache->user;?></label>
|
||||
<div class="controls"><input id="inputUser" type="text" name="<?php echo $v;?>-username" /></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEmail"><?php echo $usprache->email;?></label>
|
||||
<div class="controls"><input id="inputEmail" type="text" name="<?php echo $v;?>-email" value="ts3@import.mail" /></div>
|
||||
</div>
|
||||
<?php }}} else { ?>
|
||||
<div class="control-group"><?php echo $dnsarray;?></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="fa fa-refresh"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</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>TSDNS <?php echo $gsprache->master;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $gsprache->overview;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1>TSDNS <?php echo $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=vd"><i class="fa fa-hdd-o"></i> TSDNS <?php echo $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=vd&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">
|
||||
TSDNS <?php echo $gsprache->master;?> <a href="admin.php?w=vd&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->defaultdns;?></th>
|
||||
<th><?php echo $sprache->maxserver;?></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->defaultdns;?></th>
|
||||
<th><?php echo $sprache->maxserver;?></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=vd&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=vd&o=<?php echo $o;?>&a=20&p=<?php echo $start; ?>">20</a></li>
|
||||
<li><a href="admin.php?w=vd&o=<?php echo $o;?>&a=50&p=<?php echo $start; ?>">50</a></li>
|
||||
<li><a href="admin.php?w=vd&o=<?php echo $o;?>&a=100&p=<?php echo $start; ?>">100</a></li>
|
||||
<li><a href="admin.php?w=vd&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=vd&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=vd&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=vd&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='aa') { echo 'da'; } else { echo 'aa'; } ?>"><?php echo $gsprache->status;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=vd&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 data-hide="phone,tablet"><a href="admin.php?w=vd&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ad') { echo 'db'; } else { echo 'ab'; } ?>"><?php echo $sprache->description;?></a></th>
|
||||
<th><?php echo $sprache->maxserver;?></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>
|
||||
<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>TS3 DNS</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=vr&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=vr&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><i class="<?php if($table_row['active']=='Y') echo 'icon-ok'; else echo 'icon-ban-circle';?>"></i></td>
|
||||
<td><?php echo $table_row['defaultdns'];?></td>
|
||||
<td><?php echo $table_row['description'];?></td>
|
||||
<td><?php echo $table_row['dnsCount'].'/'.$table_row['maxDns'];?></td>
|
||||
<td><a href="admin.php?w=vd&d=ip&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="fa fa-refresh"></i></span></a></td>
|
||||
<td><a href="admin.php?w=vd&d=dl&id=<?php echo $table_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=vd&d=md&id=<?php echo $table_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>
|
||||
</section>
|
@ -1,108 +1,136 @@
|
||||
<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=vd">TSDNS <?php echo $gsprache->master;?></a> <span class="divider">/</span></li>
|
||||
<li><?php echo $gsprache->mod;?> <span class="divider">/</span></li>
|
||||
<li class="active"><?php echo $ssh2ip;?></li>
|
||||
</ul>
|
||||
<section class="content-header">
|
||||
<h1>TSDNS <?php echo $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=vd"><i class="fa fa-hdd-o"></i> TSDNS <?php echo $gsprache->master;?></a></li>
|
||||
<li><?php echo $gsprache->mod;?></li>
|
||||
<li class="active"><?php echo $ssh2ip;?></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=vd&d=md&id=<?php echo $id;?>&r=vd" 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<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<label class="control-label" 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>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
|
||||
<form role="form" action="admin.php?w=vd&d=md&id=<?php echo $id;?>&r=vd" 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="box-body">
|
||||
|
||||
<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">
|
||||
<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="inputExternalID"><?php echo $gsprache->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<?php if(isset($errors['autorestart'])) echo ' has-error';?>">
|
||||
<label 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="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="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 $ssh2ip;?>"></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 $ssh2port;?>"></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 $ssh2user;?>"></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 $ssh2password;?>"></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>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputMaxDns"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input class="form-control" id="inputMaxDns" type="number" name="maxDns" maxlength="10" value="<?php echo $maxDns;?>"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDesc"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><textarea class="form-control" id="inputDesc" name="description"><?php echo $description;?></textarea></div>
|
||||
</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="inputExternalID"><?php echo $gsprache->externalID;?></label>
|
||||
<div class="controls"><input id="inputExternalID" type="text" name="externalID" value="<?php echo $externalID;?>" maxlength="255"></div>
|
||||
</div>
|
||||
<div class="control-group<?php if(isset($errors['autorestart'])) echo ' error';?>">
|
||||
<label class="control-label" 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="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="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 $ssh2ip;?>"></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 $ssh2port;?>"></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 $ssh2user;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<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 $ssh2password;?>"></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="inputMaxDns"><?php echo $sprache->maxserver;?></label>
|
||||
<div class="controls"><input id="inputMaxDns" type="number" name="maxDns" maxlength="10" value="<?php echo $maxDns;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDesc"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><textarea id="inputDesc" name="description"><?php echo $description;?></textarea></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-edit icon-white"></i> <?php echo $gsprache->save;?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -30,7 +30,7 @@
|
||||
<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">
|
||||
<div class="form-group">
|
||||
<label for="inputImport"><?php echo $sprache->import;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputImport" name="<?php echo $virtualserver_id;?>-import">
|
||||
@ -40,7 +40,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="form-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');">
|
||||
@ -54,19 +54,19 @@
|
||||
|
||||
<?php if ($rSA['prefix1']=='N') { ?>
|
||||
|
||||
<div class="0 <?php echo $virtualserver_id;?>-customer control-group">
|
||||
<div class="0 <?php echo $virtualserver_id;?>-customer form-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">
|
||||
<div class="0 <?php echo $virtualserver_id;?>-customer form-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">
|
||||
<div class="form-group">
|
||||
<label for="inputPassword"><?php echo $sprache->password;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputPassword" name="<?php echo $virtualserver_id;?>-password">
|
||||
@ -76,7 +76,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="form-group">
|
||||
<label for="inputForceWelcome"><?php echo $sprache->forcewelcome;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceWelcome" name="<?php echo $virtualserver_id;?>-forcewelcome">
|
||||
@ -86,7 +86,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="form-group">
|
||||
<label for="inputForceBanner"><?php echo $sprache->forcebanner;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceBanner" name="<?php echo $virtualserver_id;?>-forcebanner">
|
||||
@ -96,7 +96,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="form-group">
|
||||
<label for="inputForceButton"><?php echo $sprache->forcebutton;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceButton" name="<?php echo $virtualserver_id;?>-forcebutton">
|
||||
@ -106,7 +106,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="form-group">
|
||||
<label for="inputForceServerTag"><?php echo $sprache->forceservertag;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputForceServerTag" name="<?php echo $virtualserver_id;?>-forceservertag">
|
||||
@ -116,7 +116,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="form-group">
|
||||
<label for="inputFlexSlots"><?php echo $sprache->flexSlots;?></label>
|
||||
<div class="controls">
|
||||
<select class="form-control" id="inputFlexSlots" name="<?php echo $virtualserver_id;?>-flexSlots">
|
||||
@ -126,12 +126,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="form-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">
|
||||
<div class="form-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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user