#30 new boostrap 3 theme

App server CRUD + reinstall
This commit is contained in:
Ulrich Block 2014-09-13 23:29:12 +02:00
parent c1d7d09d23
commit 244361c915
20 changed files with 757 additions and 210 deletions

View File

@ -128,10 +128,72 @@ if ($ui->smallletters('w', 9, 'get') == 'datatable') {
$array['aaData'][] = array($row['logdate'], $username, str_replace($placeholders2, $replace2, str_replace($placeholders, $replace, $row['useraction'])), $ip);
}
// App server
} else if ($ui->smallletters('d', 9, 'get') =='appserver' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['roots']) {
if ($reseller_id == 0) {
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `rserverdata`");
$query->execute();
} else {
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `rserverdata` AS r WHERE `resellerid`=:reseller_id OR EXISTS (SELECT 1 FROM `userdata` WHERE `resellerid`=:reseller_id AND `id`=r.`resellerid`)");
$query->execute(array(':reseller_id' => $resellerLockupID));
}
$array['iTotalRecords'] = $query->fetchColumn();
if ($sSearch) {
if ($reseller_id == 0) {
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `rserverdata` WHERE `id` LIKE :search OR `ip` LIKE :search OR `description` LIKE :search");
$query->execute(array(':search' => '%' . $sSearch . '%'));
} else {
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `rserverdata` AS r WHERE (`resellerid`=:reseller_id OR EXISTS (SELECT 1 FROM `userdata` WHERE `resellerid`=:reseller_id AND `id`=r.`resellerid`)) AND (`id` LIKE :search OR `ip` 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 => 'r.`ip`', 1 => 'r.`id`', 2 => 'r.`active`', 3 => 'r.`os`', 4 => '`gameserver_amount`', 5 => '`gameserver_ram`', 6 => 'r.`description`');
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 = '`id` ASC';
}
if ($sSearch) {
if ($reseller_id == 0) {
$query = $sql->prepare("SELECT r.`id`,r.`ip`,r.`active`,r.`description`,r.`maxserver`,r.`ram`,r.`os`,(SELECT COUNT(1) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_amount`,(SELECT SUM(`maxram`) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_ram` FROM `rserverdata` r WHERE r.`id` LIKE :search OR r.`ip` LIKE :search OR r.`description` LIKE :search ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
$query->execute(array(':search' => '%' . $sSearch . '%'));
} else {
$query = $sql->prepare("SELECT r.`id`,r.`ip`,r.`active`,r.`description`,r.`maxserver`,r.`ram`,,r.`os`,(SELECT COUNT(1) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_amount`,(SELECT SUM(`maxram`) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_ram` FROM `rserverdata` r WHERE (r.`resellerid`=:reseller_id OR EXISTS (SELECT 1 FROM `userdata` WHERE `resellerid`=:reseller_id AND `id`=r.`resellerid`)) AND (r.`id` LIKE :search OR r.`ip` LIKE :search OR r.`description` LIKE :search) ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
}
} else {
if ($reseller_id == 0) {
$query = $sql->prepare("SELECT r.`id`,r.`ip`,r.`active`,r.`description`,r.`maxserver`,r.`ram`,r.`os`,(SELECT COUNT(1) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_amount`,(SELECT SUM(`maxram`) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_ram` FROM `rserverdata` r ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
$query->execute();
} else {
$query = $sql->prepare("SELECT r.`id`,r.`ip`,r.`active`,r.`description`,r.`maxserver`,r.`ram`,r.`os`,(SELECT COUNT(1) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_amount`,(SELECT SUM(`maxram`) AS `amount` FROM `gsswitch` g WHERE g.`rootID`=r.`id`) AS `gameserver_ram` FROM `rserverdata` r WHERE r.`resellerid`=:reseller_id OR EXISTS (SELECT 1 FROM `userdata` WHERE `resellerid`=:reseller_id AND `id`=r.`resellerid`) ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
$query->execute(array(':reseller_id' => $resellerLockupID));
}
}
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), );
}
// Code wise it seems odd, but this way we can get plausible userIDs for following queries up front
} else {
// When searching a table combination that should provide a server and user´s loginname, firstname, lastname. First do a search at usertable and get IDs.
// This IDs should be used for doing a `ID` IN (implode(',', $foundIDs)) as it will be faster.
}
// When searching a table combination that should provide a server and user´s loginname, firstname, lastname. First do a search at usertable and get IDs.
// This IDs should be used for doing a `ID` IN (implode(',', $foundIDs)) as it will be faster.
die(json_encode($array));

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<sprache>
<active>Aktive</active>
<active>Aktiv</active>
<add>Hinzufügen</add>
<addon>Addons</addon>
<addon2>Addon</addon2>

View File

@ -32,6 +32,7 @@
<os>Betriebssystem</os>
<os_bit>Bitversion</os_bit>
<password>Passwort</password>
<resellerAssign>Reseller Zuwweisen</resellerAssign>
<root_masterdel>Löschvorgang erfolgreich auf dem Rootserver gestartet </root_masterdel>
<root_masterinstall>Master Server wurde erfolgreich in die Datenbank eingetragen und wird nun auf dem Server installiert</root_masterinstall>
<root_updatemaster>Update(s) erfolgreich gestartet</root_updatemaster>

View File

@ -32,6 +32,7 @@
<os>Operativsystem</os>
<os_bit>Bit Version</os_bit>
<password>Adgangskode</password>
<resellerAssign></resellerAssign>
<root_masterdel>Succesfuld startede fjernelse proces.</root_masterdel>
<root_masterinstall>Master serveren er blevet tilføjet til databasen, og er ved at blive installeret nu</root_masterinstall>
<root_updatemaster>Succes begyndt at opdatere</root_updatemaster>

View File

@ -32,6 +32,7 @@
<os>Operating system</os>
<os_bit>Bit-version</os_bit>
<password>Password</password>
<resellerAssign>Assign to reseller</resellerAssign>
<root_masterdel>Successfully started the removal process.</root_masterdel>
<root_masterinstall>The master server has been added to the database and is currently in the installation process.</root_masterinstall>
<root_updatemaster>Successfully started updating</root_updatemaster>

View File

@ -89,9 +89,10 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$desc = $ui->description('desc', 'post');
$ram = $ui->id('ram', 5, 'post');
$updates = $ui->id('updates', 1, 'post');
$ownerID = $ui->id('ownerID', 10, 'post');
$publickey = ($ui->w('publickey',1 , 'post')) ? $ui->w('publickey', 1, 'post') : 'N';
$ownerID = ($ui->active('assignToReseller', 'post') == 'Y' and $ui->id('ownerID', 10, 'post')) ? $ui->id('ownerID', 10, 'post') : 0;
$publickey = ($ui->w('publickey', 1, 'post')) ? $ui->w('publickey', 1, 'post') : 'N';
$assignToReseller = ($ui->active('assignToReseller', 'post')) ? $ui->active('assignToReseller', 'post') : 'N';
$active = ($ui->active('active', 'post')) ? $ui->active('active', 'post') : 'Y';
$updateMinute = ($ui->id('updateMinute', 2, 'post')) ? $ui->id('updateMinute', 2, 'post') : 0;
$ftpport = ($ui->port('ftpport', 'post')) ? $ui->port('ftpport', 'post') : 21;
@ -163,6 +164,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$user = $row['duser'];
$pass = $row['dpass'];
$ownerID = $row['resellerid'];
$assignToReseller = ($ownerID > 0) ? 'Y' : 'N';
$query2->execute(array($row['resellerid']));
$ownerName = trim($query2->fetchColumn());
}
@ -280,12 +282,14 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$id = $ui->id('id', 10, 'get');
if (!$ui->st('action', 'post')) {
$query = $sql->prepare("SELECT `ip`,`description` FROM `rserverdata` WHERE `id`=? AND (`userID` IS NULL OR `userID` IN ('',0)) LIMIT 1");
$query->execute(array($id));
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
$desc = $row['description'];
$ip = $row['ip'];
}
$template_file = ($query->rowCount() > 0) ? 'admin_roots_dl.tpl' : 'admin_404.tpl';
} else if ($ui->st('action', 'post') == 'dl') {
@ -327,6 +331,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
}
} else if ($ui->st('d', 'get') == 'ri' and $ui->id('id', 10, 'get')) {
$id = $ui->id('id', 10, 'get');
if (!$ui->st('action', 'post')) {
@ -340,6 +345,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$query = $sql->prepare("SELECT `id`,`serverip`,`port` FROM `gsswitch` WHERE `rootID`=? AND `resellerid`=?");
$query->execute(array($id, $resellerLockupID));
}
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
$ip = $row['serverip'];
$table[$row['id']] = array('ip' => $row['serverip'], 'port' => $row['port']);
@ -397,120 +403,8 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
}
} else {
$table = array();
$o = $ui->st('o', 'get');
if ($ui->st('o', 'get') == 'ar') {
$orderby = 'u.`cname` ASC';
} else if ($ui->st('o', 'get') == 'dr') {
$orderby = 'u.`cname` DESC';
} else if ($ui->st('o', 'get') == 'an') {
$orderby = 'u.`name` ASC,u.`vname` ASC';
} else if ($ui->st('o', 'get') == 'dn') {
$orderby = 'u.`name` DESC,u.`vname` DESC';
} else if ($ui->st('o', 'get') == 'ap') {
$orderby = 'r.`ip` ASC';
} else if ($ui->st('o', 'get') == 'dp') {
$orderby = 'r.`ip` DESC';
} else if ($ui->st('o', 'get') == 'as') {
$orderby = 'r.`active` ASC';
} else if ($ui->st('o', 'get') == 'ds') {
$orderby = 'r.`active` DESC';
} else if ($ui->st('o', 'get') == 'am') {
$orderby = 'r.`maxserver` ASC';
} else if ($ui->st('o', 'get') == 'dm') {
$orderby = 'r.`maxserver` DESC';
} else if ($ui->st('o', 'get') == 'di') {
$orderby = 'r.`id` DESC';
} else {
$orderby = 'r.`id` ASC';
$o = 'ai';
}
if ($reseller_id == 0) {
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `rserverdata`");
$query->execute();
} else {
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `rserverdata` AS r WHERE `resellerid`=:reseller_id OR EXISTS (SELECT 1 FROM `userdata` WHERE `resellerid`=:reseller_id AND `id`=r.`resellerid`)");
$query->execute(array(':reseller_id' => $resellerLockupID));
}
$colcount = $query->fetchColumn();
configureDateTables('-1, -2, -3', '1, "asc"', 'ajax.php?w=datatable&d=appserver');
if ($ui->id('p', 19, 'get') > $colcount) {
$start = $colcount - $amount;
if ($start < 0) {
$start = 0;
}
} else {
$start = (int) $ui->id('p', 19, 'get');
}
if ($reseller_id == 0) {
$query = $sql->prepare("SELECT r.*,u.`cname`,u.`name`,u.`vname` FROM `rserverdata` r LEFT JOIN `userdata` u ON r.`userID`=u.`id` ORDER BY $orderby LIMIT $start,$amount");
$query2 = $sql->prepare("SELECT g.`id`,CONCAT(g.`serverip`, ':',g.`port`) AS `address`,g.`active`,g.`stopped`,g.`queryName`,g.`queryNumplayers`,g.`slots`,g.`maxram`,t.`shorten` FROM `gsswitch` g INNER JOIN `serverlist` s ON g.`serverid`=s.`id` INNER JOIN `servertypes` t ON s.`servertype`=t.`id` WHERE g.`rootID`=?");
$query->execute();
} else {
$query = $sql->prepare("SELECT r.*,u.`cname`,u.`name`,u.`vname` FROM `rserverdata` r LEFT JOIN `userdata` u ON r.`userID`=u.`id` WHERE r.`resellerid`=:reseller_id OR EXISTS (SELECT 1 FROM `userdata` WHERE `resellerid`=:reseller_id AND `id`=r.`resellerid`) ORDER BY $orderby LIMIT $start,$amount");
$query2 = $sql->prepare("SELECT g.`id`,CONCAT(g.`serverip`, ':',g.`port`) AS `address`,g.`active`,g.`stopped`,g.`queryName`,g.`queryNumplayers`,g.`slots`,g.`maxram`,t.`shorten` FROM `gsswitch` g INNER JOIN `serverlist` s ON g.`serverid`=s.`id` INNER JOIN `servertypes` t ON s.`servertype`=t.`id` WHERE g.`rootID`=? AND g.`resellerid`=?");
$query->execute(array(':reseller_id' => $resellerLockupID));
}
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
$used = 0;
$available = 0;
$assignedRam = 0;
$i = 0;
$gs = array();
$id = $row['id'];
$maxslots = $row['maxslots'];
$maxserver = $row['maxserver'];
if ($row['userID'] == 0 or $row['userID'] == null) {
$deleteAllowed = true;
$names = '';
} else {
$deleteAllowed = false;
$names = trim($row['name'] . ' ' . $row['vname']);
}
if ($reseller_id == 0) {
$query2->execute(array($id));
} else {
$query2->execute(array($id, $resellerLockupID));
}
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
if ($row2['active'] == 'N' or $row2['stopped'] == 'Y') {
$gsStatus = 2;
} else if ($row2['active'] == 'Y' and $row2['stopped'] == 'N' and $row2['queryName'] != 'OFFLINE') {
$gsStatus = 1;
} else {
$gsStatus = 3;
}
$gs[] = array('id' => $row2['id'], 'address' => $row2['address'], 'shorten' => $row2['shorten'], 'name' => $row2['queryName'], 'status' => $gsStatus);
$used+=$row2['queryNumplayers'];
$available+=$row2['slots'];
$assignedRam+=$row2['maxram'];
$i++;
}
if ($row['active'] == 'Y' and isset($downChecks) and $downChecks > $row['notified']) {
$imgName = '16_ok';
$imgAlt = 'Online';
} else if ($row['active'] == 'Y' and isset($downChecks) and $downChecks <= $row['notified']) {
$imgName = '16_error';
$imgAlt = 'Crashed';
} else {
$imgName = '16_bad';
$imgAlt = 'Inactive';
}
$table[] = array('id' => $id, 'names' => $names, 'deleteAllowed' => $deleteAllowed, 'img' => $imgName, 'alt' => $imgAlt, 'ip' => $row['ip'], 'active' => $row['active'], 'os' => $row['os'], 'bit' => $row['bitversion'], 'description' => $row['description'], 'assignedRam' => $assignedRam, 'ram' => $row['ram'], 'used' => $used, 'max' => $available, 'maxslots' => $maxslots, 'maxserver' => $maxserver, 'installedserver' => $i, 'server' => $gs);
}
$next = $start + $amount;
$vor = ($colcount > $next) ? $next : $start;
$back = $start - $amount;
$zur = ($back >= 0) ? $start - $amount : $start;
$pageamount = ceil($colcount / $amount);
$pages[] = '<a href="admin.php?w=ro&amp;d=md&amp;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[] = ($start == $selectpage) ? '<a href="admin.php?w=ro&amp;d=md&amp;a=' . $amount . '&p=' . $selectpage . '" class="bold">' . $i . '</a>' : '<a href="admin.php?w=ro&amp;d=md&amp;a=' . $amount . '&p=' . $selectpage . '">' . $i . '</a>';
$i++;
}
$pages = implode(', ', $pages);
$template_file = 'admin_roots_list.tpl';
}

View File

@ -851,6 +851,12 @@ if (!function_exists('passwordgenerate')) {
return false;
}
function returnButton ($templateToUse, $template, $what, $do, $id, $description = '') {
ob_start();
include(IncludeTemplate($templateToUse, $template, 'ajax'));
return ob_get_clean();
}
function User_Permissions($id) {
global $sql;

View File

@ -7,9 +7,7 @@
</ol>
</section>
<!-- Main Content -->
<section class="content">
<div class="box box-info">
<div class="box-body">
<form role="form" action="admin.php?w=ad&amp;d=ad" enctype="multipart/form-data" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">

View File

@ -481,10 +481,10 @@
<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
<?php if(isset($header)){ ?><div class="alert alert-block"><button type="button" class="close" data-dismiss="alert">&times;</button><?php echo $text; ?></div><?php } ?>
<?php if(isset($toooldversion)){ ?><div class="alert alert-block"><button type="button" class="close" data-dismiss="alert">&times;</button><?php echo $toooldversion; ?></div><?php } ?>
<?php if($rSA['lastCronWarnStatus']=='Y' and (time()-$rSA['lastCronStatus'])>600 and $reseller_id==0){ ?><div class="alert alert-error"><button type="button" class="close" data-dismiss="alert">&times;</button><i class="icon-warning-sign"></i> Cronjob: statuscheck.php</div><?php }?>
<?php if($rSA['lastCronWarnReboot']=='Y' and (time()-$rSA['lastCronReboot'])>5400 and $reseller_id==0){ ?><div class="alert alert-error"><button type="button" class="close" data-dismiss="alert">&times;</button><i class="icon-warning-sign"></i> Cronjob: reboot.php</div><?php }?>
<?php if($rSA['lastCronWarnUpdates']=='Y' and (time()-$rSA['lastCronUpdates'])>300 and $reseller_id==0){ ?><div class="alert alert-error"><button type="button" class="close" data-dismiss="alert">&times;</button><i class="icon-warning-sign"></i> Cronjob: startupdates.php</div><?php }?>
<?php if($rSA['lastCronWarnJobs']=='Y' and (time()-$rSA['lastCronJobs'])>300 and $reseller_id==0){ ?><div class="alert alert-error"><button type="button" class="close" data-dismiss="alert">&times;</button><i class="icon-warning-sign"></i> Cronjob: jobs.php</div><?php }?>
<?php if($rSA['lastCronWarnCloud']=='Y' and (time()-$rSA['lastCronCloud'])>1200 and $reseller_id==0){ ?><div class="alert alert-error"><button type="button" class="close" data-dismiss="alert">&times;</button><i class="icon-warning-sign"></i> Cronjob: cloud.php</div><?php }?>
<?php if(isset($header)){ ?><div class="row"><div class="col-md-11"><div class="callout callout-warning"><p><?php echo $text;?></p></div></div></div><?php } ?>
<?php if(isset($toooldversion)){ ?><div class="row"><div class="col-md-11"><div class="callout callout-warning"><p><?php echo $toooldversion;?></p></div></div></div><?php } ?>
<?php if($rSA['lastCronWarnStatus']=='Y' and (time()-$rSA['lastCronStatus'])>600 and $reseller_id==0){ ?><div class="row"><div class="col-md-11"><div class="callout callout-danger"><p>Cronjob: statuscheck.php</div></div></div><?php }?>
<?php if($rSA['lastCronWarnReboot']=='Y' and (time()-$rSA['lastCronReboot'])>5400 and $reseller_id==0){ ?><div class="row"><div class="col-md-11"><div class="callout callout-danger"><p>Cronjob: reboot.php</div></div></div><?php }?>
<?php if($rSA['lastCronWarnUpdates']=='Y' and (time()-$rSA['lastCronUpdates'])>300 and $reseller_id==0){ ?><div class="row"><div class="col-md-11"><div class="callout callout-danger"><p>Cronjob: startupdates.php</div></div></div><?php }?>
<?php if($rSA['lastCronWarnJobs']=='Y' and (time()-$rSA['lastCronJobs'])>300 and $reseller_id==0){ ?><div class="row"><div class="col-md-11"><div class="callout callout-danger"><p>Cronjob: jobs.php</div></div></div><?php }?>
<?php if($rSA['lastCronWarnCloud']=='Y' and (time()-$rSA['lastCronCloud'])>1200 and $reseller_id==0){ ?><div class="row"><div class="col-md-11"><div class="callout callout-danger"><p>Cronjob: cloud.php</div></div></div><?php }?>

View File

@ -0,0 +1,224 @@
<section class="content-header">
<h1><?php echo $gsprache->appRoot;?></h1>
<ol class="breadcrumb">
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
<li><a href="admin.php?w=ro"><?php echo $gsprache->appRoot;?></a></li>
<li class="active"><?php echo $gsprache->add;?></li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-11">
<div class="box box-info">
<form role="form" action="admin.php?w=ro&amp;d=ad&amp;r=ro" 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="box-body">
<?php if ($reseller_id==0 or $reseller_id==$admin_id){ ?>
<div class="control-group">
<label class="control-label" for="inputAssignToReseller"><?php echo $sprache->resellerAssign;?></label>
<div class="controls">
<select class="form-control" id="inputAssignToReseller" name="assignToReseller" onchange="SwitchShowHideRows(this.value, 'resellerID', 1);">
<option value="N"><?php echo $gsprache->no;?></option>
<option value="Y" <?php if ($assignToReseller=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
</select>
</div>
</div>
<div class="Y resellerID form-group<?php if($assignToReseller=='N') echo 'display_none';?>">
<label class="control-label" for="inputOwner"><?php echo $gsprache->reseller;?></label>
<div class="controls">
<select class="form-control" id="inputOwner" name="ownerID">
<option></option>
<?php foreach ($table as $k=>$v){ ?>
<option value="<?php echo $k;?>" <?php if($k==$ownerID) echo 'selected="selected"'; ?>><?php echo $v;?></option>
<?php } ?>
</select>
</div>
</div>
<?php } ?>
<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 class="form-control" id="inputActive" name="active">
<option value="N"><?php echo $gsprache->no;?></option>
<option value="Y" <?php if ($active=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-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<?php if(isset($errors['ip'])) echo ' 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>
<div class="form-group">
<label class="control-label" for="inputIPs"><?php echo $sprache->zusatz_ip;?>:</label>
<div class="controls"><textarea class="form-control" id="inputIPs" name="altips" rows="5"><?php echo $altips?></textarea></div>
</div>
<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="text" name="ftpport" value="<?php echo $ftpport?>" maxlength="5"></div>
</div>
<div class="control-group<?php if(isset($errors['port'])) echo ' error';?>">
<label class="control-label" for="inputSSH2Port"><?php echo $sprache->ssh_port;?>:</label>
<div class="controls"><input class="form-control" id="inputSSH2Port" type="text" name="port" value="<?php echo $port?>" maxlength="5"></div>
</div>
<div class="control-group<?php if(isset($errors['user'])) echo ' 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?>" maxlength="20"></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 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 ' 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';?>">
<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';?>">
<label class="control-label" for="inputOS"><?php echo $sprache->os;?>:</label>
<div class="controls">
<select class="form-control" id="inputBit" name="os">
<option value="L">Linux</option>
<option value="W" <?php if ($os=="W") echo 'selected="selected"'; ?>>Windows</option>
</select>
</div>
</div>
<div class="control-group<?php if(isset($errors['bit'])) echo ' error';?>">
<label class="control-label" for="inputBit"><?php echo $sprache->os_bit;?>:</label>
<div class="controls">
<select class="form-control" id="inputBit" 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<?php if(isset($errors['hyperthreading'])) echo ' error';?>">
<label class="control-label" for="inputHT">Hyper Threading</label>
<div class="controls">
<select class="form-control" id="inputHT" name="hyperthreading">
<option value="Y"><?php echo $gsprache->yes;?></option>
<option value="N" <?php if ($hyperthreading=="N") echo 'selected="selected"'; ?>><?php echo $gsprache->no;?></option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="inputCores">Cores</label>
<div class="controls"><input class="form-control" id="inputCores" type="text" name="cores" value="<?php echo $cores;?>" maxlength="5"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputRam">Ram (MB)</label>
<div class="controls">
<input class="form-control" id="inputRam" type="text" name="ram" value="<?php echo $ram;?>" maxlength="5">
</div>
</div>
<div class="form-group">
<label class="control-label" for="inputDesc"><?php echo $sprache->desc;?>:</label>
<div class="controls"><input class="form-control" id="inputDesc" type="text" name="desc" value="<?php echo $desc;?>"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputSlots"><?php echo $sprache->maxslots;?></label>
<div class="controls"><input class="form-control" id="inputSlots" type="text" name="maxslots" value="<?php echo $maxslots;?>" maxlength="5"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputServer"><?php echo $sprache->maxserver2;?></label>
<div class="controls"><input class="form-control" id="inputServer" type="text" name="maxserver" value="<?php echo $maxserver;?>" maxlength="4"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputAutoupdate">Autoupdate:</label>
<div class="controls">
<select class="form-control" id="inputAutoupdate" name="updates">
<option value="1">Vendor + Rsync/FTP Sync</option>
<option value="2" <?php if ($updates==2) echo 'selected="selected"'; ?>>Vendor</option>
<option value="4" <?php if ($updates==4) echo 'selected="selected"'; ?>>Rsync/FTP Sync</option>
<option value="3" <?php if ($updates==3) echo 'selected="selected"'; ?>><?php echo $gsprache->no;?></option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="inputUpdateMinute"><?php echo $sprache->updateMinute;?></label>
<div class="controls"><input class="form-control" id="inputUpdateMinute" type="number" name="updateMinute" value="<?php echo $updateMinute;?>" min="0" max="59"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputSteamCmd">SteamCmd Account:</label>
<div class="controls"><input class="form-control" id="inputSteamCmd" type="text" name="steamAccount" value="<?php echo $steamAccount;?>"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputSteamCmdPWD">SteamCmd <?php echo $sprache->password;?>:</label>
<div class="controls"><input class="form-control" id="inputSteamCmdPWD" type="text" name="steamPassword" value="<?php echo $steamPassword;?>"></div>
</div>
</div>
<div class="box-footer">
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-plus-circle">&nbsp;<?php echo $gsprache->add;?></i></button>
</div>
</form>
</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>

View File

@ -0,0 +1,40 @@
<section class="content-header">
<h1><?php echo $gsprache->appRoot;?></h1>
<ol class="breadcrumb">
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
<li><a href="admin.php?w=ro"><?php echo $gsprache->appRoot;?></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-11">
<div class="box box-danger">
<form role="form" action="admin.php?w=ro&amp;d=dl&amp;id=<?php echo $id;?>&amp;r=ro" 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 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?>" disabled="disabled"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputDesc"><?php echo $sprache->desc;?></label>
<div class="controls"><input class="form-control" id="inputDesc" type="text" name="desc" value="<?php echo $desc?>" disabled="disabled"></div>
</div>
</div>
<div class="box-footer">
<button class="btn btn-danger" id="inputDelete" type="submit"><i class="fa fa-trash">&nbsp;<?php echo $gsprache->del;?></i></button>
</div>
</form>
</div>
</div>
</div>
</section>

View File

@ -0,0 +1,60 @@
<section class="content-header">
<h1><?php echo $gsprache->appRoot;?></h1>
<ol class="breadcrumb">
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
<li><?php echo $gsprache->appRoot;?></li>
<li class="active"><?php echo $gsprache->overview;?></li>
</ol>
</section>
<section class="content">
<?php if($reseller_id==0){ ?>
<div class="row">
<div class="col-md-12">
<?php echo $gsprache->gameroot;?> <a href="admin.php?w=ro&amp;d=ad"><span class="btn btn-primary btn-sm"><i class="fa fa-plus-circle"></i> <?php echo $gsprache->add;?></span></a>
</div>
</div>
<hr>
<?php }?>
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-body table-responsive">
<table id="dataTable" class="table table-bordered table-hover">
<thead>
<tr>
<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->maxserver;?></th>
<th>Ram</th>
<th><?php echo $sprache->desc;?></th>
<th><?php echo $gsSprache->reinstall;?></th>
<th><?php echo $gsprache->del;?></th>
<th><?php echo $gsprache->mod;?></th>
</tr>
</thead>
<tfoot>
<tr>
<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->maxserver;?></th>
<th>Ram</th>
<th><?php echo $sprache->desc;?></th>
<th><?php echo $gsSprache->reinstall;?></th>
<th><?php echo $gsprache->del;?></th>
<th><?php echo $gsprache->mod;?></th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</section>

View File

@ -0,0 +1,225 @@
<section class="content-header">
<h1><?php echo $gsprache->appRoot;?></h1>
<ol class="breadcrumb">
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
<li><a href="admin.php?w=ro"><?php echo $gsprache->appRoot;?></a></li>
<li><?php echo $gsprache->mod;?></li>
<li class="active"><?php echo $ip;?></li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-11">
<div class="box box-info">
<form role="form" action="admin.php?w=ro&amp;d=md&amp;id=<?php echo $id;?>&amp;r=ro" 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">
<?php if ($reseller_id==0 or $reseller_id==$admin_id){ ?>
<div class="control-group">
<label class="control-label" for="inputAssignToReseller"><?php echo $sprache->resellerAssign;?></label>
<div class="controls">
<select class="form-control" id="inputAssignToReseller" name="assignToReseller" onchange="SwitchShowHideRows(this.value, 'resellerID', 1);">
<option value="N"><?php echo $gsprache->no;?></option>
<option value="Y" <?php if ($assignToReseller=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
</select>
</div>
</div>
<div class="Y resellerID form-group<?php if($assignToReseller=='N') echo 'display_none';?>">
<label class="control-label" for="inputOwner"><?php echo $gsprache->reseller;?></label>
<div class="controls">
<select class="form-control" id="inputOwner" name="ownerID">
<option></option>
<?php foreach ($table as $k=>$v){ ?>
<option value="<?php echo $k;?>" <?php if($k==$ownerID) echo 'selected="selected"'; ?>><?php echo $v;?></option>
<?php } ?>
</select>
</div>
</div>
<?php } ?>
<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 class="form-control" id="inputActive" name="active">
<option value="N"><?php echo $gsprache->no;?></option>
<option value="Y" <?php if ($active=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-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<?php if(isset($errors['ip'])) echo ' 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>
<div class="form-group">
<label class="control-label" for="inputIPs"><?php echo $sprache->zusatz_ip;?>:</label>
<div class="controls"><textarea class="form-control" id="inputIPs" name="altips" rows="5"><?php echo $altips?></textarea></div>
</div>
<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="text" name="ftpport" value="<?php echo $ftpport?>" maxlength="5"></div>
</div>
<div class="control-group<?php if(isset($errors['port'])) echo ' error';?>">
<label class="control-label" for="inputSSH2Port"><?php echo $sprache->ssh_port;?>:</label>
<div class="controls"><input class="form-control" id="inputSSH2Port" type="text" name="port" value="<?php echo $port?>" maxlength="5"></div>
</div>
<div class="control-group<?php if(isset($errors['user'])) echo ' 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?>" maxlength="20"></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 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 ' 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';?>">
<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';?>">
<label class="control-label" for="inputOS"><?php echo $sprache->os;?>:</label>
<div class="controls">
<select class="form-control" id="inputBit" name="os">
<option value="L">Linux</option>
<option value="W" <?php if ($os=="W") echo 'selected="selected"'; ?>>Windows</option>
</select>
</div>
</div>
<div class="control-group<?php if(isset($errors['bit'])) echo ' error';?>">
<label class="control-label" for="inputBit"><?php echo $sprache->os_bit;?>:</label>
<div class="controls">
<select class="form-control" id="inputBit" 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<?php if(isset($errors['hyperthreading'])) echo ' error';?>">
<label class="control-label" for="inputHT">Hyper Threading</label>
<div class="controls">
<select class="form-control" id="inputHT" name="hyperthreading">
<option value="Y"><?php echo $gsprache->yes;?></option>
<option value="N" <?php if ($hyperthreading=="N") echo 'selected="selected"'; ?>><?php echo $gsprache->no;?></option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="inputCores">Cores</label>
<div class="controls"><input class="form-control" id="inputCores" type="text" name="cores" value="<?php echo $cores;?>" maxlength="5"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputRam">Ram (MB)</label>
<div class="controls">
<input class="form-control" id="inputRam" type="text" name="ram" value="<?php echo $ram;?>" maxlength="5">
</div>
</div>
<div class="form-group">
<label class="control-label" for="inputDesc"><?php echo $sprache->desc;?>:</label>
<div class="controls"><input class="form-control" id="inputDesc" type="text" name="desc" value="<?php echo $desc;?>"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputSlots"><?php echo $sprache->maxslots;?></label>
<div class="controls"><input class="form-control" id="inputSlots" type="text" name="maxslots" value="<?php echo $maxslots;?>" maxlength="5"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputServer"><?php echo $sprache->maxserver2;?></label>
<div class="controls"><input class="form-control" id="inputServer" type="text" name="maxserver" value="<?php echo $maxserver;?>" maxlength="4"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputAutoupdate">Autoupdate:</label>
<div class="controls">
<select class="form-control" id="inputAutoupdate" name="updates">
<option value="1">Vendor + Rsync/FTP Sync</option>
<option value="2" <?php if ($updates==2) echo 'selected="selected"'; ?>>Vendor</option>
<option value="4" <?php if ($updates==4) echo 'selected="selected"'; ?>>Rsync/FTP Sync</option>
<option value="3" <?php if ($updates==3) echo 'selected="selected"'; ?>><?php echo $gsprache->no;?></option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label" for="inputUpdateMinute"><?php echo $sprache->updateMinute;?></label>
<div class="controls"><input class="form-control" id="inputUpdateMinute" type="number" name="updateMinute" value="<?php echo $updateMinute;?>" min="0" max="59"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputSteamCmd">SteamCmd Account:</label>
<div class="controls"><input class="form-control" id="inputSteamCmd" type="text" name="steamAccount" value="<?php echo $steamAccount;?>"></div>
</div>
<div class="form-group">
<label class="control-label" for="inputSteamCmdPWD">SteamCmd <?php echo $sprache->password;?>:</label>
<div class="controls"><input class="form-control" id="inputSteamCmdPWD" type="text" name="steamPassword" value="<?php echo $steamPassword;?>"></div>
</div>
</div>
<div class="box-footer">
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save">&nbsp;<?php echo $gsprache->save;?></i></button>
</div>
</form>
</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>

View File

@ -0,0 +1,38 @@
<section class="content-header">
<h1><?php echo $gsprache->appRoot;?></h1>
<ol class="breadcrumb">
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
<li><a href="admin.php?w=ro"><?php echo $gsprache->appRoot;?></a></li>
<li><?php echo $gsprache->reinstall;?></li>
<li class="active"><?php echo $ip;?></li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-11">
<div class="box box-warning">
<form role="form" action="admin.php?w=ro&amp;d=ri&amp;id=<?php echo $id;?>&amp;r=ro" onsubmit="return confirm('<?php echo $gsprache->sure;?>');" method="post" >
<input type="hidden" name="token" value="<?php echo token();?>">
<input type="hidden" name="action" value="ri">
<div class="box-body">
<?php foreach($table as $k=>$v){ ?>
<div class="form-group">
<input id="inputServer-<?php echo $k;?>" type="checkbox" name="serverID[]" value="<?php echo $k;?>" checked="checked">
<label class="control-label" for="inputServer-<?php echo $k;?>"><?php echo $v['ip'].':'.$v['port'];?></label>
</div>
<?php }?>
</div>
<div class="box-footer">
<button class="btn btn-warning" id="inputReinstall" type="submit"><i class="fa fa-refresg">&nbsp;<?php echo $gsprache->reinstall;?></i></button>
</div>
</form>
</div>
</div>
</div>
</section>

View File

@ -0,0 +1 @@
<a href="admin.php?w=<?php echo $what;?>&amp;d=<?php echo $do;?>&amp;id=<?php echo $id;?>"><span class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> <?php echo $description;?></span></a>

View File

@ -0,0 +1 @@
<a href="admin.php?w=<?php echo $what;?>&amp;d=<?php echo $do;?>&amp;id=<?php echo $id;?>"><span class="btn btn-primary btn-sm"><i class="fa fa-pencil-square-o"></i> <?php echo $description;?></span></a>

View File

@ -0,0 +1 @@
<a href="admin.php?w=<?php echo $what;?>&amp;d=<?php echo $do;?>&amp;id=<?php echo $id;?>"><span class="btn btn-warning btn-sm"><i class="fa fa-refresh"></i> <?php echo $description;?></span></a>

View File

@ -1,4 +1,3 @@
<!-- Content Header -->
<section class="content-header">
<h1><?php echo $gsprache->gameserver;?></h1>
<ol class="breadcrumb">
@ -6,11 +5,10 @@
<li class="active"><?php echo $gsprache->gameserver;?></li>
</ol>
</section>
<!-- Main Content -->
<section class="content">
<!-- Content Help -->
<?php if($userWantsHelpText=='Y'){ ?>
<?php if($userWantsHelpText=='Y'){ ?>
<div class="row hidden-xs">
<div class="col-md-12">
<div class="alert alert-info alert-dismissable">
@ -19,85 +17,82 @@
</div>
</div>
</div>
<?php } ?>
<?php } ?>
<!-- Content -->
<?php foreach ($table as $table_row){ ?>
<div class="panel box <?php if($table_row['img']=='16_bad') echo 'box-primary'; else if($table_row['img']=='16_error') echo 'box-danger'; else echo 'box-success';?>">
<!-- Gameserver Name -->
<h4><img src="images/games/icons/<?php echo $table_row['gameShorten'];?>.png" alt="<?php echo $table_row['gameShorten'];?>" width="14" /> <a href="hlsw://<?php echo $table_row['server'];?>"><?php echo $table_row['server'].' '.$table_row['name'];?></a></h4>
<!-- Gameserver Warnings -->
<?php if(!empty($table_row['premoved'])){ ?><div class="alert alert-warning alert-dismissable"><i class="fa fa-warning"></i> <?php echo $table_row['premoved'];?></div><?php } ?>
<?php if(!empty($table_row['nameremoved'])){ ?><div class="alert alert-warning alert-dismissable"><i class="fa fa-warning"></i> <?php echo $table_row['nameremoved'];?></div><?php } ?>
<div class="panel box <?php if($table_row['img']=='16_bad') echo 'box-primary'; else if($table_row['img']=='16_error') echo 'box-danger'; else echo 'box-success';?>">
<div id="collapseOne" class="panel-collapse collapse in">
<div class="box-body">
<!-- Gameserver Buttons -->
<div class="form-group">
<a href="userpanel.php?w=gs&amp;d=rs&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onclick="return confirm('<?php echo $table_row['server'];?>: <?php echo $sprache->confirm_restart;?>');"><button class="btn btn-sm btn-success inline"><i class="icon-white icon-play"></i> <?php echo $sprache->restarts;?></button></a>
<?php if($table_row['stopped']=='N'){ ?><a href="userpanel.php?w=gs&amp;d=st&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onclick="return confirm('<?php echo $table_row['server'];?>: <?php echo $sprache->confirm_stop;?>');"><button class="btn btn-sm btn-danger"><i class="fa fa-power-off"></i> <?php echo $sprache->stop;?></button></a><?php } ?>
<?php if(!empty($table_row['pro'])){ ?><a href="userpanel.php?w=pr&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onclick="return confirm('<?php echo $table_row['server'];?>: <?php echo $sprache->protect . ' '; echo ($table_row['imgp']=='16_protected') ? $sprache->off2 : $sprache->on;?>?');"><button class="btn btn-sm <?php if($table_row['imgp']=='16_protected')echo 'btn-info';else if($table_row['imgp']=='16_unprotected') echo 'btn-warning';?>"><i class="fa fa-shield"></i> <?php echo $sprache->protect.' '.$table_row['pro'];?></button></a><?php } ?>
<a href="userpanel.php?w=gs&amp;d=cf&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-cogs"></i> <?php echo $sprache->config;?></button></a>
<?php if(($pa['ftpaccess'] or $pa['miniroot']) and $table_row['imgp']!='16_protected' and $table_row['ftpAllowed']) { ?>
<a href="userpanel.php?w=gs&amp;d=wf&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-files-o"></i> <?php echo $sprache->webFtp;?></button></a>
<?php } ?>
<?php if($pa['useraddons']){ ?><a href="userpanel.php?w=ao&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-puzzle-piece"></i> <?php echo $gsprache->addon;?></button></a><?php } ?>
<a href="userpanel.php?w=ca&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-calendar"></i> <?php echo $sprache->restarttime;?></button></a>
<div class="btn-group">
<button data-toggle="dropdown" class="btn btn-sm btn-primary dropdown-toggle"><i class="fa fa-floppy-o"></i> <?php echo $gsprache->backup;?> <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="userpanel.php?w=bu&amp;id=<?php echo $table_row['id'];?>&amp;action=mb&amp;r=gs"><i class="fa fa-plus-circle fa-fw"></i> <?php echo $sprache->create;?></a></li>
<li><a href="userpanel.php?w=bu&amp;id=<?php echo $table_row['id'];?>&amp;action=rb"><i class="fa fa-refresh fa-fw"></i> <?php echo $sprache->recover;?></a></li>
<li><a href="userpanel.php?w=bu&amp;id=<?php echo $table_row['id'];?>&amp;action=md"><i class="fa fa-cog fa-fw"></i> <?php echo $gsprache->settings;?></a></li>
</ul>
<h4><img src="images/games/icons/<?php echo $table_row['gameShorten'];?>.png" alt="<?php echo $table_row['gameShorten'];?>" width="14" /> <a href="hlsw://<?php echo $table_row['server'];?>"><?php echo $table_row['server'].' '.$table_row['name'];?></a></h4>
<?php if(!empty($table_row['premoved'])){ ?><div class="alert alert-warning alert-dismissable"><i class="fa fa-warning"></i> <?php echo $table_row['premoved'];?></div><?php } ?>
<?php if(!empty($table_row['nameremoved'])){ ?><div class="alert alert-warning alert-dismissable"><i class="fa fa-warning"></i> <?php echo $table_row['nameremoved'];?></div><?php } ?>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="box-body">
<div class="form-group">
<a href="userpanel.php?w=gs&amp;d=rs&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onclick="return confirm('<?php echo $table_row['server'];?>: <?php echo $sprache->confirm_restart;?>');"><button class="btn btn-sm btn-success inline"><i class="icon-white icon-play"></i> <?php echo $sprache->restarts;?></button></a>
<?php if($table_row['stopped']=='N'){ ?><a href="userpanel.php?w=gs&amp;d=st&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onclick="return confirm('<?php echo $table_row['server'];?>: <?php echo $sprache->confirm_stop;?>');"><button class="btn btn-sm btn-danger"><i class="fa fa-power-off"></i> <?php echo $sprache->stop;?></button></a><?php } ?>
<?php if(!empty($table_row['pro'])){ ?><a href="userpanel.php?w=pr&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onclick="return confirm('<?php echo $table_row['server'];?>: <?php echo $sprache->protect . ' '; echo ($table_row['imgp']=='16_protected') ? $sprache->off2 : $sprache->on;?>?');"><button class="btn btn-sm <?php if($table_row['imgp']=='16_protected')echo 'btn-info';else if($table_row['imgp']=='16_unprotected') echo 'btn-warning';?>"><i class="fa fa-shield"></i> <?php echo $sprache->protect.' '.$table_row['pro'];?></button></a><?php } ?>
<a href="userpanel.php?w=gs&amp;d=cf&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-cogs"></i> <?php echo $sprache->config;?></button></a>
<?php if(($pa['ftpaccess'] or $pa['miniroot']) and $table_row['imgp']!='16_protected' and $table_row['ftpAllowed']) { ?>
<a href="userpanel.php?w=gs&amp;d=wf&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-files-o"></i> <?php echo $sprache->webFtp;?></button></a>
<?php } ?>
<?php if($pa['useraddons']){ ?><a href="userpanel.php?w=ao&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-puzzle-piece"></i> <?php echo $gsprache->addon;?></button></a><?php } ?>
<a href="userpanel.php?w=ca&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-calendar"></i> <?php echo $sprache->restarttime;?></button></a>
<div class="btn-group">
<button data-toggle="dropdown" class="btn btn-sm btn-primary dropdown-toggle"><i class="fa fa-floppy-o"></i> <?php echo $gsprache->backup;?> <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="userpanel.php?w=bu&amp;id=<?php echo $table_row['id'];?>&amp;action=mb&amp;r=gs"><i class="fa fa-plus-circle fa-fw"></i> <?php echo $sprache->create;?></a></li>
<li><a href="userpanel.php?w=bu&amp;id=<?php echo $table_row['id'];?>&amp;action=rb"><i class="fa fa-refresh fa-fw"></i> <?php echo $sprache->recover;?></a></li>
<li><a href="userpanel.php?w=bu&amp;id=<?php echo $table_row['id'];?>&amp;action=md"><i class="fa fa-cog fa-fw"></i> <?php echo $gsprache->settings;?></a></li>
</ul>
</div>
<a class="btn btn-sm btn-primary" data-toggle="modal" data-target="#compose-modal-<?php echo $table_row['id'];?>"><i class="fa fa-terminal"></i> <?php echo $gsprache->logs;?></a>
<div class="modal fade" id="compose-modal-<?php echo $table_row['id'];?>" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content" id="modal-content-<?php echo $table_row['id'];?>">
</div>
</div>
</div>
<a href="userpanel.php?w=gs&amp;d=md&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-cog"></i> <?php echo $gsprache->settings;?></button></a>
<a href="userpanel.php?w=gs&amp;d=ri&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-warning"><i class="fa fa-refresh"></i> <?php echo $sprache->reinstall;?></button></a>
<?php if($table_row['upload']==true){ ?><a href="userpanel.php?w=gs&amp;d=du&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onsubmit="return confirm('<?php echo $gsprache->sure;?>');"><button class="btn btn-sm btn-info"><i class="icon-white icon-film"></i> SourceTV</button></a><?php } ?>
</div>
<a class="btn btn-sm btn-primary" data-toggle="modal" data-target="#compose-modal-<?php echo $table_row['id'];?>"><i class="fa fa-terminal"></i> <?php echo $gsprache->logs;?></a>
<!-- COMPOSE MESSAGE MODAL -->
<div class="modal fade" id="compose-modal-<?php echo $table_row['id'];?>" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content" id="modal-content-<?php echo $table_row['id'];?>">
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<a href="userpanel.php?w=gs&amp;d=md&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-primary"><i class="fa fa-cog"></i> <?php echo $gsprache->settings;?></button></a>
<a href="userpanel.php?w=gs&amp;d=ri&amp;id=<?php echo $table_row['id'];?>"><button class="btn btn-sm btn-warning"><i class="fa fa-refresh"></i> <?php echo $sprache->reinstall;?></button></a>
<?php if($table_row['upload']==true){ ?><a href="userpanel.php?w=gs&amp;d=du&amp;id=<?php echo $table_row['id'];?>&amp;r=gs" onsubmit="return confirm('<?php echo $gsprache->sure;?>');"><button class="btn btn-sm btn-info"><i class="icon-white icon-film"></i> SourceTV</button></a><?php } ?>
</div>
<!-- Gameserver Details -->
<dl class="dl-horizontal">
<dt><?php echo $gsprache->template;?></dt>
<dd><?php echo $table_row['shorten'];?></dd>
<dt><?php echo $sprache->updatetime;?></dt>
<dd><?php echo $table_row['updatetime'];?></dd>
<dt><?php echo $sprache->map;?></dt>
<dd><?php echo $table_row['map'];?></dd>
<dt><?php echo $sprache->player;?></dt>
<dd><?php echo $table_row['numplayers']?>/<?php echo $table_row['maxplayers'];?></dd>
<?php if($table_row['ramLimited']=='Y') { ?>
<dt><?php echo $sprache->ramMax;?></dt>
<dd><?php echo $table_row['maxram'];?> MB</dd>
<?php } ?>
<?php if($table_row['taskset']=='Y' and $table_row['coreCount']>0) { ?>
<dt><?php echo $sprache->coreBind;?></dt>
<dd><?php echo $table_row['cores'].' ('.$table_row['coreCount'].')';?></dd>
<?php } ?>
<?php if(($pa['ftpaccess'] or $pa['miniroot']) and $table_row['imgp']!='16_protected' and $table_row['ftpAllowed']) { ?>
<dt><?php echo $sprache->ftp_link;?></dt>
<dd><a href="<?php echo $table_row['ftpdata'];?>"><?php echo $table_row['ftpdata'];?></a></dd>
<dt><?php echo $sprache->ftp_adresse;?></dt>
<dd>ftp://<?php echo $table_row['ip'].":".$table_row['ftpport'].$pserver.$table_row['ip'].'_'.$table_row['port']."/".$table_row['shorten'];?></dd>
<dt><?php echo $sprache->ftp_user;?></dt>
<dd><?php echo $table_row['cname'];?></dd>
<dt><?php echo $sprache->ftp_password;?></dt>
<dd><?php echo $table_row['cftppass'];?></dd>
<?php } ?>
</dl>
</div>
<dl class="dl-horizontal">
<dt><?php echo $gsprache->template;?></dt>
<dd><?php echo $table_row['shorten'];?></dd>
<dt><?php echo $sprache->updatetime;?></dt>
<dd><?php echo $table_row['updatetime'];?></dd>
<dt><?php echo $sprache->map;?></dt>
<dd><?php echo $table_row['map'];?></dd>
<dt><?php echo $sprache->player;?></dt>
<dd><?php echo $table_row['numplayers']?>/<?php echo $table_row['maxplayers'];?></dd>
<?php if($table_row['ramLimited']=='Y') { ?>
<dt><?php echo $sprache->ramMax;?></dt>
<dd><?php echo $table_row['maxram'];?> MB</dd>
<?php } ?>
<?php if($table_row['taskset']=='Y' and $table_row['coreCount']>0) { ?>
<dt><?php echo $sprache->coreBind;?></dt>
<dd><?php echo $table_row['cores'].' ('.$table_row['coreCount'].')';?></dd>
<?php } ?>
<?php if(($pa['ftpaccess'] or $pa['miniroot']) and $table_row['imgp']!='16_protected' and $table_row['ftpAllowed']) { ?>
<dt><?php echo $sprache->ftp_link;?></dt>
<dd><a href="<?php echo $table_row['ftpdata'];?>"><?php echo $table_row['ftpdata'];?></a></dd>
<dt><?php echo $sprache->ftp_adresse;?></dt>
<dd>ftp://<?php echo $table_row['ip'].":".$table_row['ftpport'].$pserver.$table_row['ip'].'_'.$table_row['port']."/".$table_row['shorten'];?></dd>
<dt><?php echo $sprache->ftp_user;?></dt>
<dd><?php echo $table_row['cname'];?></dd>
<dt><?php echo $sprache->ftp_password;?></dt>
<dd><?php echo $table_row['cftppass'];?></dd>
<?php } ?>
</dl>
</div>
</div>
<?php }?>
</div>
<?php }?>
</section>

View File

@ -6,7 +6,6 @@
</ol>
</section>
<!-- Main Content -->
<section class="content">
<?php if($userWantsHelpText=='Y'){ ?>
@ -43,8 +42,8 @@
</tr>
</tfoot>
</table>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
</div>
</div>
</div>
</section><!-- /.content -->
</section>

View File

@ -44,7 +44,7 @@
<td><?php echo $table_row['supporter']; ?></td>
<td><?php echo $table_row['status']; ?></td>
<td><?php echo $table_row['writedate']; ?></td>
<td><a href="userpanel.php?w=ti&amp;d=md&amp;id=<?php echo $table_row['id'];?>" alt="modify"><span class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></span></a></td>
<td><a href="userpanel.php?w=ti&amp;d=md&amp;id=<?php echo $table_row['id'];?>"><span class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></span></a></td>
</tr>
<?php } ?>
</tbody>