mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#30 new bootstrap 3 theme
Corrected Easy Anti Cheat template Corrected game server addons and added the ajax datatable support
This commit is contained in:
parent
f280da1c3a
commit
37a2777257
@ -93,6 +93,11 @@ if ($ui->smallletters('w', 9, 'get') == 'datatable') {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_gameimages.php');
|
||||
|
||||
// GS addons
|
||||
} else if ($ui->smallletters('d', 16, 'get') =='gameserveraddons' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['addons']) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_gameaddons.php');
|
||||
|
||||
// Code wise it seems odd, but this way we can get plausible userIDs for following queries up front
|
||||
} else {
|
||||
|
||||
|
@ -105,4 +105,25 @@ function SwitchShowHideRows (Element, change, showNotIfEmpty) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function checkall(checked,check) {
|
||||
var checkBoxes = document.getElementsByTagName('input');
|
||||
for(var i=0; i<checkBoxes.length; i++) {
|
||||
var theType = checkBoxes[i].getAttribute('type');
|
||||
var theName = checkBoxes[i].getAttribute('name');
|
||||
if (checked==true && theType.toLowerCase()=='checkbox' && theName==check) {
|
||||
checkBoxes[i].checked = true ;
|
||||
} else if (checked==false && theType.toLowerCase()=='checkbox' && theName==check) {
|
||||
checkBoxes[i].checked = false ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function textdrop(id) {
|
||||
if (document.getElementById(id).style.display == "") {
|
||||
document.getElementById(id).style.display = "none";
|
||||
} else {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
}
|
@ -79,6 +79,7 @@
|
||||
<root>Rootserver</root>
|
||||
<save>Speichern</save>
|
||||
<search>Suche</search>
|
||||
<server>Server</server>
|
||||
<settings>Einstellungen</settings>
|
||||
<shown>Ergebnisse pro Seite</shown>
|
||||
<start>Starten</start>
|
||||
|
@ -61,6 +61,7 @@
|
||||
<root>Rootserver</root>
|
||||
<save>Optag</save>
|
||||
<search>Søg</search>
|
||||
<server>Server</server>
|
||||
<settings>Indstillinger</settings>
|
||||
<shown>Resultater per side</shown>
|
||||
<start>Start</start>
|
||||
|
@ -83,6 +83,7 @@
|
||||
<root>Root server</root>
|
||||
<save>Save</save>
|
||||
<search>Search</search>
|
||||
<server>Server</server>
|
||||
<settings>Settings</settings>
|
||||
<shown>Results per page</shown>
|
||||
<start>Start</start>
|
||||
|
@ -119,6 +119,7 @@ if ($ui->w('action',4, 'post') and !token(true)) {
|
||||
$gamesAssigned = array();
|
||||
$dependings = array();
|
||||
$foundLanguages = array();
|
||||
$definedLanguages = array();
|
||||
$default_language = $rSA['language'];
|
||||
$paddon = ($ui->active('paddon', 'post')) ? (string) $ui->active('paddon', 'post') : 'N';
|
||||
$depending = ($ui->id('depending',19, 'post')) ? (int) $ui->id('depending', 19, 'post') : 0;
|
||||
@ -368,13 +369,13 @@ if ($ui->w('action',4, 'post') and !token(true)) {
|
||||
if (isset($lang)) {
|
||||
$style = '';
|
||||
$displayNone = '';
|
||||
$checkbox = '<input type="checkbox" name="language[]" value="' . $row . '" onclick="textdrop(' . "'" . $row . "'" . ');" checked>';
|
||||
$definedLanguages[] = $row;
|
||||
} else {
|
||||
$displayNone = 'display_none';
|
||||
$style = 'style="display: none;"';
|
||||
$checkbox = '<input type="checkbox" name="language[]" value="' . $row . '" onclick="textdrop(' . "'" . $row . "'" . ');">';
|
||||
}
|
||||
$foundLanguages[] = array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'description' => $description,'display' => $displayNone);
|
||||
|
||||
$foundLanguages[] = array('style' => $style, 'lang' => $row, 'description' => $description, 'display' => $displayNone);
|
||||
}
|
||||
}
|
||||
|
||||
@ -511,5 +512,7 @@ if ($ui->w('action',4, 'post') and !token(true)) {
|
||||
$table[] = array('id' => $row['id'], 'active' => $row['active'], 'img' => $imgName,'alt' => $imgAlt, 'gametype' => $gamesList, 'description' => $row['menudescription'], 'type' => ($row['type'] == 'map') ? $sprache->map : $sprache->tool);
|
||||
}
|
||||
|
||||
configureDateTables('-1', '1, "asc"', 'ajax.php?w=datatable&d=gameserveraddons');
|
||||
|
||||
$template_file = 'admin_addons_list.tpl';
|
||||
}
|
93
web/stuff/ajax/datatable_gameaddons.php
Normal file
93
web/stuff/ajax/datatable_gameaddons.php
Normal file
@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: datatable_gameaddons.php.
|
||||
* Author: Ulrich Block
|
||||
* Date: 20.09.14
|
||||
* 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('images', $user_language, $resellerLockupID);
|
||||
|
||||
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `addons` WHERE `resellerid`=?");
|
||||
$query->execute(array($resellerLockupID));
|
||||
|
||||
$array['iTotalRecords'] = $query->fetchColumn();
|
||||
|
||||
if ($sSearch) {
|
||||
|
||||
$addonShortenIDs = array();
|
||||
|
||||
$query = $sql->prepare("SELECT al.`addon_id`, GROUP_CONCAT(DISTINCT s.`shorten` ORDER BY s.`shorten` ASC SEPARATOR ', ') AS `list` FROM `addons_allowed` AS al INNER JOIN `servertypes` AS s ON al.`servertype_id`=s.`id` WHERE al.`reseller_id`=:reseller_id GROUP BY al.`addon_id` HAVING (`list` LIKE :search)");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%',':reseller_id' => $resellerLockupID));
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$addonShortenIDs[] = $row['addon_id'];
|
||||
}
|
||||
|
||||
$addonInQuery = (count($addonShortenIDs) > 0) ? ' OR `id` IN (' . implode(',', $addonShortenIDs) . ')' : '';
|
||||
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `addons` WHERE `resellerid`=:reseller_id AND (`id` LIKE :search OR `type` LIKE :search OR `menudescription` LIKE :search $addonInQuery)");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%',':reseller_id' => $resellerLockupID));
|
||||
|
||||
$array['iTotalDisplayRecords'] = $query->fetchColumn();
|
||||
} else {
|
||||
$array['iTotalDisplayRecords'] = $array['iTotalRecords'];
|
||||
}
|
||||
|
||||
$orderFields = array(0 => 'a.`menudescription`', 1 => 'a.`id`', 2 => 'a.`type`', 3 => '`list`');
|
||||
|
||||
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 = 'a.`id` ASC';
|
||||
}
|
||||
|
||||
if ($sSearch) {
|
||||
|
||||
$query = $sql->prepare("SELECT a.`id`,a.`menudescription`,a.`type`,(SELECT GROUP_CONCAT(DISTINCT s.`shorten` ORDER BY s.`shorten` ASC SEPARATOR ', ') AS `list` FROM `addons_allowed` AS al INNER JOIN `servertypes` AS s ON al.`servertype_id`=s.`id` WHERE al.`addon_id`=a.`id`) AS `list` FROM `addons` AS a WHERE a.`resellerid`=:reseller_id AND (`id` LIKE :search OR `type` LIKE :search OR `menudescription` LIKE :search $addonInQuery) ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
|
||||
} else {
|
||||
$query = $sql->prepare("SELECT a.`id`,a.`menudescription`,a.`type`,(SELECT GROUP_CONCAT(DISTINCT s.`shorten` ORDER BY s.`shorten` ASC SEPARATOR ', ') AS `list` FROM `addons_allowed` AS al INNER JOIN `servertypes` AS s ON al.`servertype_id`=s.`id` WHERE al.`addon_id`=a.`id`) AS `list` FROM `addons` AS a WHERE a.`resellerid`=? ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array($resellerLockupID));
|
||||
}
|
||||
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
$array['aaData'][] = array($row['menudescription'], $row['id'], ($row['type'] == 'map') ? (string) $sprache->map : (string) $sprache->tool, $row['list'], returnButton($template_to_use, 'ajax_admin_buttons_ex.tpl', 'ad', 'ex', $row['id'], $gsprache->export) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_dl.tpl', 'ad', 'dl', $row['id'], $gsprache->del) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_md.tpl', 'ad', 'md', $row['id'], $gsprache->mod));
|
||||
}
|
@ -41,7 +41,7 @@ if ((!isset($user_id) or $main != 1) or (isset($user_id) and !$pa['usertickets']
|
||||
die;
|
||||
}
|
||||
|
||||
$sprache = getlanguagefile('tickets',$user_language,$reseller_id);
|
||||
$sprache = getlanguagefile('tickets', $user_language, $reseller_id);
|
||||
$loguserid = $user_id;
|
||||
$logusername = getusername($user_id);
|
||||
$logusertype = 'admin';
|
||||
@ -73,11 +73,11 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$topic = '';
|
||||
|
||||
$query3 = $sql->prepare("SELECT `text` FROM `translations` WHERE `type`='ti' AND `lang`=? AND `transID`=? AND `resellerID`=? LIMIT 1");
|
||||
$query3->execute(array($user_language, $row['id'],$reseller_id));
|
||||
$query3->execute(array($user_language, $row['id'], $reseller_id));
|
||||
$topic = $query3->fetchColumn();
|
||||
|
||||
if (empty($topic)) {
|
||||
$query3->execute(array($default_language, $row['id'],$reseller_id));
|
||||
$query3->execute(array($default_language, $row['id'], $reseller_id));
|
||||
$topic = $query3->fetchColumn();
|
||||
}
|
||||
|
||||
@ -89,16 +89,16 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
|
||||
if ($i == 1) {
|
||||
$query2 = $sql->prepare("SELECT * FROM `ticket_topics` WHERE `maintopic`=? AND `maintopic`!=`id` AND `resellerid`=? ORDER BY `id`");
|
||||
$query2->execute(array($row['id'],$reseller_id));
|
||||
$query2->execute(array($row['id'], $reseller_id));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
|
||||
$topic = '';
|
||||
|
||||
$query3->execute(array($user_language, $row2['id'],$reseller_id));
|
||||
$query3->execute(array($user_language, $row2['id'], $reseller_id));
|
||||
$topic = $query3->fetchColumn();
|
||||
|
||||
if (empty($topic)) {
|
||||
$query3->execute(array($default_language, $row2['id'],$reseller_id));
|
||||
$query3->execute(array($default_language, $row2['id'], $reseller_id));
|
||||
$topic = $query3->fetchColumn();
|
||||
}
|
||||
|
||||
@ -124,15 +124,15 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$ticketText = htmlentities($ui->post['ticket']);
|
||||
|
||||
$query = $sql->prepare("SELECT `priority` FROM `ticket_topics` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$query->execute(array($topic,$reseller_id));
|
||||
$query->execute(array($topic, $reseller_id));
|
||||
$priority = $query->fetchColumn();
|
||||
|
||||
$query = $sql->prepare("INSERT INTO `tickets` (`topic`,`userid`,`priority`,`userPriority`,`writedate`,`resellerid`) VALUES (?,?,?,?,?,?)");
|
||||
$query->execute(array($topic,$user_id,$priority,$userPriority,$logdate,$reseller_id));
|
||||
$query->execute(array($topic, $user_id, $priority, $userPriority, $logdate, $reseller_id));
|
||||
$lastID = $sql->lastInsertId();
|
||||
|
||||
$query = $sql->prepare("INSERT INTO `tickets_text` (`ticketID`,`writeDate`,`userID`,`message`,`resellerID`) VALUES (?,?,?,?,?)");
|
||||
$query->execute(array($lastID,$logdate,$user_id,$ticketText,$reseller_id));
|
||||
$query->execute(array($lastID, $logdate, $user_id, $ticketText, $reseller_id));
|
||||
|
||||
if ($reseller_id == 0) {
|
||||
$query = $sql->prepare("SELECT `id`,`mail_ticket` FROM `userdata` WHERE `resellerid`='0' AND `accounttype`='a'");
|
||||
@ -143,7 +143,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
}
|
||||
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['mail_ticket'] == 'Y') sendmail('emailnewticket', $row['id'],$ticketText, array($lastID,$user_id));
|
||||
if ($row['mail_ticket'] == 'Y') sendmail('emailnewticket', $row['id'], $ticketText, array($lastID, $user_id));
|
||||
}
|
||||
|
||||
$template_file = $spracheResponse->table_add;
|
||||
@ -167,7 +167,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else if ($ui->st('action', 'get') == 'op') {
|
||||
|
||||
$query = $sql->prepare("UPDATE `tickets` SET `state`='R' WHERE `id`=? AND `userid`=? AND `resellerid`=? AND `state`='D' LIMIT 1");
|
||||
$query->execute(array($id,$user_id,$reseller_id));
|
||||
$query->execute(array($id, $user_id, $reseller_id));
|
||||
|
||||
$template_file = ($query->rowCount() > 0) ? $spracheResponse->table_add : $spracheResponse->error_table;
|
||||
|
||||
@ -181,7 +181,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query3 = $sql->prepare("SELECT `text` FROM `translations` WHERE `type`='ti' AND `lang`=? AND `transID`=? AND `resellerID`=? LIMIT 1");
|
||||
$query4 = $sql->prepare("SELECT `topic` FROM `ticket_topics` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
|
||||
$query->execute(array($id,$user_id,$reseller_id));
|
||||
$query->execute(array($id, $user_id, $reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
|
||||
$userPriority = $row['userPriority'];
|
||||
@ -229,16 +229,16 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
|
||||
$topic = '';
|
||||
|
||||
$query3->execute(array($user_language, $row['id'],$reseller_id));
|
||||
$query3->execute(array($user_language, $row['id'], $reseller_id));
|
||||
$topic = $query3->fetchColumn();
|
||||
|
||||
if (empty($topic)) {
|
||||
$query3->execute(array($default_language, $row['id'],$reseller_id));
|
||||
$query3->execute(array($default_language, $row['id'], $reseller_id));
|
||||
$topic = $query3->fetchColumn();
|
||||
}
|
||||
|
||||
if (empty($topic)) {
|
||||
$query4->execute(array($row['topic'],$reseller_id));
|
||||
$query4->execute(array($row['topic'], $reseller_id));
|
||||
$topic = stripslashes($query4->fetchColumn());
|
||||
}
|
||||
|
||||
@ -261,7 +261,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else if ($ui->smallletters('action', 2, 'post') == 'wr') {
|
||||
|
||||
$query = $sql->prepare("SELECT `supporter`,`state` FROM `tickets` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$query->execute(array($id,$reseller_id));
|
||||
$query->execute(array($id, $reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$userid = $row['supporter'];
|
||||
$state = $row['state'];
|
||||
@ -282,7 +282,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
if (isset($ui->post['ticket']) and strlen($ui->post['ticket']) > 0) {
|
||||
|
||||
$query = $sql->prepare("INSERT INTO `tickets_text` (`ticketID`,`message`,`writeDate`,`userID`,`resellerid`) VALUES (?,?,?,?,?)");
|
||||
$query->execute(array($id,$ui->post['ticket'],$logdate,$user_id,$reseller_id));
|
||||
$query->execute(array($id, $ui->post['ticket'], $logdate, $user_id, $reseller_id));
|
||||
|
||||
$affectedRows += $query->rowCount();
|
||||
}
|
||||
@ -295,7 +295,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query->execute(array($userid));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['mail_ticket'] == 'Y') {
|
||||
sendmail('emailnewticket',$userid,$ui->post['ticket'], array($id, $user_id));
|
||||
sendmail('emailnewticket', $userid, $ui->post['ticket'], array($id, $user_id));
|
||||
}
|
||||
}
|
||||
|
||||
@ -308,7 +308,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else if ($ui->smallletters('action', 2, 'post') == 'cl' and $ui->id('rating', 1, 'post')) {
|
||||
|
||||
$query = $sql->prepare("UPDATE `tickets` SET `state`='C', `rating`=?,`comment`=? WHERE `id`=? AND `userid`=? AND `resellerid`=? AND `state`!='C' LIMIT 1");
|
||||
$query->execute(array($ui->id('rating', 1, 'post'),$ui->description('comment', 'post'),$id,$user_id,$reseller_id));
|
||||
$query->execute(array($ui->id('rating', 1, 'post'), $ui->description('comment', 'post'), $id, $user_id, $reseller_id));
|
||||
|
||||
$template_file = ($query->rowCount() > 0) ? $spracheResponse->table_add : $spracheResponse->error_table;
|
||||
}
|
||||
|
@ -1,128 +1,183 @@
|
||||
<section class="content-header">
|
||||
<h1><?php echo $sprache->heading_addons.' '.$gsprache->add;?></h1>
|
||||
<h1><?php echo $sprache->heading_addons;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="userpanel.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><?php echo $sprache->heading_addons;?></a></li>
|
||||
<li><a href="admin.php?w=ad"><?php echo $gsprache->addons;?></a></li>
|
||||
<li class="active"><?php echo $gsprache->add;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<form role="form" action="admin.php?w=ad&d=ad" enctype="multipart/form-data" 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">
|
||||
<input type="hidden" name="import" value="1">
|
||||
<div class="form-group">
|
||||
<label for="inputUpload"><?php echo $gsprache->import;?></label>
|
||||
<input id="inputUpload" type="file" name="file">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-upload"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
<hr />
|
||||
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<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>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<form role="form" action="admin.php?w=ad&d=ad" enctype="multipart/form-data" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
|
||||
<form role"form" action="admin.php?w=ad&d=ad&r=ad" 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="form-group">
|
||||
<label for="inputGame2"><?php echo $sprache->game2;?></label>
|
||||
<select class="form-control" id="inputGame2" multiple="multiple" name="shorten[]">
|
||||
<?php foreach ($gamesAssigned as $sid => $shorten){ ?><option value="<?php echo $sid;?>" <?php if(in_array($sid,$shortens)) echo 'selected="selected"';?>><?php echo $shorten;?></option><?php }?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEditRequires"><?php echo $sprache->requires;?></label>
|
||||
<select class="form-control" id="inputEditRequires" name="depending">
|
||||
<option value="0"><?php echo $gsprache->no;?></option>
|
||||
<?php foreach ($dependings as $depending) echo $depending; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputProtect"><?php echo $sprache->protect;?></label>
|
||||
<select class="form-control" id="inputProtect" name="paddon">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($paddon=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="tool"><?php echo $sprache->tool;?></option>
|
||||
<option value="map" <?php if($type=='map') echo 'selected="selected"';?>><?php echo $sprache->map;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' error';?>">
|
||||
<label for="inputAddon"><?php echo $sprache->addon;?></label>
|
||||
<input class="form-control" id="inputAddon" type="text" name="addon" value="<?php echo $addon;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' error';?>">
|
||||
<label for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<input class="form-control" id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<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 class="form-group">
|
||||
<label for="inputFolders"><?php echo $sprache->folders;?></label>
|
||||
<input class="form-control" id="inputFolders" type="text" name="folder" value="<?php echo $folder;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<label>
|
||||
<?php foreach ($foundLanguages as $array) echo '<input type="checkbox"/>'.$array['checkbox'].'<img src="images/flags/'.$array['lang'].'.png" alt="Flag: '.$array['lang'].'.png"/>';?>
|
||||
</label>
|
||||
<input type="hidden" name="import" value="1">
|
||||
|
||||
<div class="box box-success">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php echo $gsprache->addon;?> XML <?php echo $gsprache->import;?></h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="inputUpload"></label>
|
||||
<div class="controls">
|
||||
<input id="inputUpload" type="file" name="file">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-success" id="inputEdit" type="submit"><i class="fa fa-upload"> <?php echo $gsprache->upload;?></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php foreach ($foundLanguages as $array) { ?>
|
||||
<div id="<?php echo $array['lang'];?>" class="form-group <?php echo $array['display'];?>">
|
||||
<label for="inputLangs-<?php echo $array['lang'];?>"><img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<textarea class="form-control" id="inputLangs-<?php echo $array['lang'];?>" name="description[<?php echo $array['lang'];?>]"></textarea>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputConfigs"><?php echo $sprache->configs;?></label>
|
||||
<textarea class="form-control" id="inputConfigs" rows="5" name="configs"><?php echo $configs;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputStartCmd"><?php echo $sprache->start;?></label>
|
||||
<textarea class="form-control" id="inputStartCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputRmCmd"><?php echo $sprache->rmcmd;?></label>
|
||||
<textarea class="form-control" id="inputRmCmd" rows="5" name="rmcmd"><?php echo $rmcmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<label for="inputEdit"></label>
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><?php echo $gsprache->add;?> <i class="fa fa-plus"></i></button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-success">
|
||||
<form role="form" action="admin.php?w=ad&d=ad&r=ad" 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">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputGame2"><?php echo $sprache->game2;?></label>
|
||||
<select class="form-control" id="inputGame2" multiple="multiple" name="shorten[]">
|
||||
<?php foreach ($gamesAssigned as $sid => $shorten){ ?><option value="<?php echo $sid;?>" <?php if(in_array($sid,$shortens)) echo 'selected="selected"';?>><?php echo $shorten;?></option><?php }?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEditRequires"><?php echo $sprache->requires;?></label>
|
||||
<select class="form-control" id="inputEditRequires" name="depending">
|
||||
<option value="0"></option>
|
||||
<?php foreach ($dependings as $depending) echo $depending; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputProtect"><?php echo $sprache->protect;?></label>
|
||||
<select class="form-control" id="inputProtect" name="paddon">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($paddon=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="tool"><?php echo $sprache->tool;?></option>
|
||||
<option value="map" <?php if($type=='map') echo 'selected="selected"';?>><?php echo $sprache->map;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' error';?>">
|
||||
<label for="inputAddon"><?php echo $sprache->addon;?></label>
|
||||
<input class="form-control" id="inputAddon" type="text" name="addon" value="<?php echo $addon;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' error';?>">
|
||||
<label for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<input class="form-control" id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<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 class="form-group">
|
||||
<label for="inputFolders"><?php echo $sprache->folders;?></label>
|
||||
<input class="form-control" id="inputFolders" type="text" name="folder" value="<?php echo $folder;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputConfigs"><?php echo $sprache->configs;?></label>
|
||||
<textarea class="form-control" id="inputConfigs" rows="5" name="configs"><?php echo $configs;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputStartCmd"><?php echo $sprache->start;?></label>
|
||||
<textarea class="form-control" id="inputStartCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputRmCmd"><?php echo $sprache->rmcmd;?></label>
|
||||
<textarea class="form-control" id="inputRmCmd" rows="5" name="rmcmd"><?php echo $rmcmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<h3><?php echo $sprache->description;?></h3>
|
||||
|
||||
<div class="form-group">
|
||||
<?php foreach ($foundLanguages as $array){ ?>
|
||||
<label class="checkbox-inline">
|
||||
<input name="language[]" value="<?php echo $array['lang'];?>" onclick="textdrop('<?php echo $array['lang'];?>');" type="checkbox"> <img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php foreach ($foundLanguages as $array) { ?>
|
||||
<div id="<?php echo $array['lang'];?>" class="form-group <?php echo $array['display'];?>">
|
||||
<label for="inputLangs-<?php echo $array['lang'];?>"><img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<textarea class="form-control" id="inputLangs-<?php echo $array['lang'];?>" name="description[<?php echo $array['lang'];?>]"></textarea>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-success" id="inputEdit" type="submit"><?php echo $gsprache->add;?> <i class="fa fa-plus-circle"></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>
|
@ -1,31 +1,40 @@
|
||||
<section class="content-header">
|
||||
<h1><?php echo $sprache->heading_addons.' '.$gsprache->del;?></h1>
|
||||
<h1><?php echo $sprache->heading_addons;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="userpanel.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><?php echo $sprache->heading_addons;?></a></li>
|
||||
<li><a href="admin.php?w=ad"><?php echo $gsprache->addons;?></a></li>
|
||||
<li><?php echo $gsprache->del;?></li>
|
||||
<li class="active"><?php echo $menudescription;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-danger">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<?php echo $sprache->sure;?>
|
||||
<?php echo $sprache->sure2;?>
|
||||
|
||||
<div class="form-group">
|
||||
<form role="form" action="admin.php?w=ad&d=dl&id=<?php echo $id;?>&r=ad" 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">
|
||||
<br />
|
||||
<label class="control-label" for="inputEdit"></label>
|
||||
<button class="btn btn-danger pull-left" id="inputEdit" type="submit"><i class="fa fa-trash-o"></i> <?php echo $gsprache->del;?></button>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label><?php echo $sprache->sure2;?></label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<input class="form-control" id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>" disabled="disabled">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-danger" id="inputEdit" type="submit"><i class="fa fa-trash-o"> <?php echo $gsprache->del;?></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,67 +1,47 @@
|
||||
<section class="content-header">
|
||||
<h1><?php echo $sprache->heading_addons;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li class="active"><?php echo $sprache->heading_addons;?></li>
|
||||
<li><a href="userpanel.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><?php echo $gsprache->addons;?></li>
|
||||
<li class="active"><?php echo $gsprache->overview;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
|
||||
<div class="row hidden-xs">
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="alert alert-info alert-dismissable">
|
||||
<i class="fa fa-info"></i>
|
||||
<?php echo $sprache->heading_addons;?>
|
||||
<?php echo $sprache->heading_addons;?> <a href="admin.php?w=ad&d=ad"><span class="btn-success btn-sm"><i class="fa fa-plus-circle"></i> <?php echo $gsprache->add;?></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<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->aname;?></th>
|
||||
<th>ID</a></th>
|
||||
<th><?php echo $sprache->type;?></th>
|
||||
<th><?php echo $sprache->type2;?></th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th><?php echo $sprache->aname;?></th>
|
||||
<th>ID</a></th>
|
||||
<th><?php echo $sprache->type;?></th>
|
||||
<th><?php echo $sprache->type2;?></th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $sprache->heading_addons;?> <a href="admin.php?w=ad&d=ad"<span class="btn-primary btn-sm"><i class="fa fa-plus"></i></span></a>
|
||||
|
||||
<div class="box-footer clearfix">
|
||||
<ul class="pagination pagination-sm no-margin pull-right">
|
||||
<li><a href="admin.php?w=ad&a=<?php echo $amount; ?>&p=<?php echo $zur;?>"><i class="fa fa-step-backward"></i></a></li>
|
||||
<li><a href="admin.php?w=ad&o=<?php echo $o;?>&a=20&p=<?php echo $start; ?>">20</a></li>
|
||||
<li><a href="admin.php?w=ad&o=<?php echo $o;?>&a=50&p=<?php echo $start; ?>">50</a></li>
|
||||
<li><a href="admin.php?w=ad&o=<?php echo $o;?>&a=100&p=<?php echo $start; ?>">100</a></li>
|
||||
<li><a href="admin.php?w=ad&a=<?php echo $amount; ?>&p=<?php echo $vor;?>"><i class="fa fa-step-forward"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<input type="hidden" name="action" value="md">
|
||||
<div class="box box-info">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered table-hover footable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-class="expand"><a href="admin.php?w=ad&a=<?php echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='an') { echo 'dn'; } else { echo 'an'; } ?>"><?php echo $sprache->aname;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=ad&a=<?php echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ai') { echo 'di'; } else { echo 'ai'; } ?>">ID</a></th>
|
||||
<th data-hide="phone"><a href="admin.php?w=ad&a=<?php echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='as') { echo 'ds'; } else { echo 'as'; } ?>"><?php echo $gsprache->status;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=ad&a=<?php echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='at') { echo 'dt'; } else { echo 'at'; } ?>"><?php echo $sprache->type2;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=ad&a=<?php echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='at') { echo 'dt'; } else { echo 'at'; } ?>"><?php echo $sprache->type;?></a></th>
|
||||
<th><?php echo $gsprache->export;?></a></th>
|
||||
<th><?php echo $gsprache->del;?></a></th>
|
||||
<th><?php echo $gsprache->mod;?></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($table as $table_row) { ?>
|
||||
<tr>
|
||||
<td><?php echo $table_row['description'];?></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['gametype'];?></td>
|
||||
<td><?php echo $table_row['type'];?></td>
|
||||
<td><a href="admin.php?w=ad&d=ex&id=<?php echo $table_row['id'];?>" ><span class="btn btn-sm btn-primary"><i class="fa fa-download"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ad&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-sm btn-danger"><i class="fa fa-trash-o"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ad&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-sm btn-primary"><i class="fa fa-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</section>
|
||||
|
@ -1,117 +1,153 @@
|
||||
<section class="content-header">
|
||||
<h1><?php echo $sprache->heading_addons.' '.$gsprache->mod;?></h1>
|
||||
<h1><?php echo $sprache->heading_addons;?></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="admin.php"><i class="fa fa-home"></i> Home</a></li>
|
||||
<li><?php echo $sprache->heading_addons;?></a></li>
|
||||
<li><a href="admin.php?w=ad"><?php echo $sprache->heading_addons;?></a></li>
|
||||
<li><?php echo $gsprache->mod;?></li>
|
||||
<li class="active"><?php echo $menudescription;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<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>
|
||||
<?php }?>
|
||||
|
||||
<form role="from" action="admin.php?w=ad&d=md&id=<?php echo $id;?>&r=ad" 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="form-group">
|
||||
<label for="inputGame2"><?php echo $sprache->game2;?></label>
|
||||
<select class="form-control" id="inputGame2" multiple="multiple" name="shorten[]">
|
||||
<?php foreach ($gamesAssigned as $sid => $shorten){ ?><option value="<?php echo $sid;?>" <?php if(in_array($sid,$shortens)) echo 'selected="selected"';?>><?php echo $shorten;?></option><?php }?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEditRequires"><?php echo $sprache->requires;?></label>
|
||||
<select class="form-control" id="inputEditRequires" name="depending">
|
||||
<option value="0"><?php echo $gsprache->no;?></option>
|
||||
<?php foreach ($dependings as $depending) echo $depending; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputProtect"><?php echo $sprache->protect;?></label>
|
||||
<select class="form-control" id="inputProtect" name="paddon">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($paddon=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="tool"><?php echo $sprache->tool;?></option>
|
||||
<option value="map" <?php if($type=='map') echo 'selected="selected"';?>><?php echo $sprache->map;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' error';?>">
|
||||
<label for="inputAddon"><?php echo $sprache->addon;?></label>
|
||||
<input class="form-control" id="inputAddon" type="text" name="addon" value="<?php echo $addon;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' error';?>">
|
||||
<label for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<input class="form-control" id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<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 class="form-group">
|
||||
<label for="inputFolders"><?php echo $sprache->folders;?></label>
|
||||
<input class="form-control" id="inputFolders" type="text" name="folder" value="<?php echo $folder;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<label>
|
||||
<?php foreach ($foundLanguages as $array) echo '<input type="checkbox"/>'.$array['checkbox'].'<img src="images/flags/'.$array['lang'].'.png" alt="Flag: '.$array['lang'].'.png"/>';?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php foreach ($foundLanguages as $array) { ?>
|
||||
<div id="<?php echo $array['lang'];?>" class="form-group <?php echo $array['display'];?>">
|
||||
<label for="inputLangs-<?php echo $array['lang'];?>"><img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<textarea class="form-control" id="inputLangs-<?php echo $array['lang'];?>" name="description[<?php echo $array['lang'];?>]"></textarea>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputConfigs"><?php echo $sprache->configs;?></label>
|
||||
<textarea class="form-control" id="inputConfigs" rows="5" name="configs"><?php echo $configs;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputStartCmd"><?php echo $sprache->start;?></label>
|
||||
<textarea class="form-control" id="inputStartCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputRmCmd"><?php echo $sprache->rmcmd;?></label>
|
||||
<textarea class="form-control" id="inputRmCmd" rows="5" name="rmcmd"><?php echo $rmcmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<label for="inputEdit"></label>
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><?php echo $gsprache->save;?> <i class="fa fa-edit"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-info">
|
||||
|
||||
<form role="from" action="admin.php?w=ad&d=md&id=<?php echo $id;?>&r=ad" 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">
|
||||
<label for="inputGame2"><?php echo $sprache->game2;?></label>
|
||||
<select class="form-control" id="inputGame2" multiple="multiple" name="shorten[]">
|
||||
<?php foreach ($gamesAssigned as $sid => $shorten){ ?><option value="<?php echo $sid;?>" <?php if(in_array($sid,$shortens)) echo 'selected="selected"';?>><?php echo $shorten;?></option><?php }?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputEditRequires"><?php echo $sprache->requires;?></label>
|
||||
<select class="form-control" id="inputEditRequires" name="depending">
|
||||
<option value="0"></option>
|
||||
<?php foreach ($dependings as $depending) echo $depending; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputProtect"><?php echo $sprache->protect;?></label>
|
||||
<select class="form-control" id="inputProtect" name="paddon">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if($paddon=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['type'])) echo ' error';?>">
|
||||
<label for="inputType"><?php echo $sprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type">
|
||||
<option value="tool"><?php echo $sprache->tool;?></option>
|
||||
<option value="map" <?php if($type=='map') echo 'selected="selected"';?>><?php echo $sprache->map;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['addon'])) echo ' error';?>">
|
||||
<label for="inputAddon"><?php echo $sprache->addon;?></label>
|
||||
<input class="form-control" id="inputAddon" type="text" name="addon" value="<?php echo $addon;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['menudescription'])) echo ' error';?>">
|
||||
<label for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<input class="form-control" id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if(isset($errors['active'])) echo ' error';?>">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<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 class="form-group">
|
||||
<label for="inputFolders"><?php echo $sprache->folders;?></label>
|
||||
<input class="form-control" id="inputFolders" type="text" name="folder" value="<?php echo $folder;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputConfigs"><?php echo $sprache->configs;?></label>
|
||||
<textarea class="form-control" id="inputConfigs" rows="5" name="configs"><?php echo $configs;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputStartCmd"><?php echo $sprache->start;?></label>
|
||||
<textarea class="form-control" id="inputStartCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputRmCmd"><?php echo $sprache->rmcmd;?></label>
|
||||
<textarea class="form-control" id="inputRmCmd" rows="5" name="rmcmd"><?php echo $rmcmd;?></textarea>
|
||||
</div>
|
||||
|
||||
<h3><?php echo $sprache->description;?></h3>
|
||||
|
||||
<div class="form-group">
|
||||
<?php foreach ($foundLanguages as $array){ ?>
|
||||
<label class="checkbox-inline">
|
||||
<input name="language[]" value="<?php echo $array['lang'];?>" onclick="textdrop('<?php echo $array['lang'];?>');" type="checkbox" <?php if(in_array($array['lang'], $definedLanguages)) echo 'checked';?>> <img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php foreach ($foundLanguages as $array) { ?>
|
||||
<div id="<?php echo $array['lang'];?>" class="form-group <?php echo $array['display'];?>">
|
||||
<label for="inputLangs-<?php echo $array['lang'];?>"><img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<textarea class="form-control" id="inputLangs-<?php echo $array['lang'];?>" name="description[<?php echo $array['lang'];?>]"></textarea>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</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>
|
||||
</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>
|
@ -1,4 +1,3 @@
|
||||
<!-- Content Header -->
|
||||
<section class="content-header">
|
||||
<h1><?php echo $gsprache->gameserver;?> Easy Anti Cheat</h1>
|
||||
<ol class="breadcrumb">
|
||||
@ -7,112 +6,154 @@
|
||||
<li class="active">Easy Anti Cheat</li>
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main Content -->
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<form role="form" action="admin.php?w=ea&r=ea" 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="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($eac_active=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-info">
|
||||
|
||||
<form role="form" action="admin.php?w=ea&r=ea" 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">
|
||||
<h3>Easy Anti Cheat <?php echo $gsprache->server;?></h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($eac_active=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputType"><?php echo $gssprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type" onchange="SwitchShowHideRows(this.value)">
|
||||
<option value="M">MySQL</option>
|
||||
<option value="S" <?php if ($type=='S') echo 'selected="selected"';?>>SSH2</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputIP"><?php echo $sprache->haupt_ip;?></label>
|
||||
<input class="form-control" id="inputIP" type="text" name="ip" value="<?php echo $eac_ip;?>" maxlength="15" required="required">
|
||||
</div>
|
||||
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputPortSSH2"><?php echo $sprache->ssh_port;?></label>
|
||||
<input class="form-control" id="inputPortSSH2" type="text" name="port" value="<?php echo $eac_port;?>" maxlength="5" required="required">
|
||||
</div>
|
||||
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputUserSSH2"><?php echo $sprache->ssh_user;?></label>
|
||||
<input class="form-control" id="inputUserSSH2" type="text" name="user" value="<?php echo $eac_user;?>" maxlength="15" required="required">
|
||||
</div>
|
||||
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputKeyuseSSH2"><?php echo $sprache->keyuse;?></label>
|
||||
<select class="form-control" id="inputKeyuseSSH2" name="publickey">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="B" <?php if ($eac_publickey=="B") echo 'selected="selected"';?>><?php echo $gsprache->yes;?> + <?php echo $gsprache->password;?></option>
|
||||
<option value="N" <?php if ($eac_publickey=="N") echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputPassSSH2"><?php echo $sprache->ssh_pass;?></label>
|
||||
<input class="form-control" id="inputPassSSH2" type="password" name="pass" value="<?php echo $eac_pass;?>">
|
||||
</div>
|
||||
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputKeynameSSH2"><?php echo $sprache->keyname;?></label>
|
||||
<input class="form-control" id="inputKeynameSSH2" type="text" name="keyname" maxlength="20" value="<?php echo $eac_keyname;?>">
|
||||
</div>
|
||||
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputCFGDir"><?php echo $sprache->cfgdir;?></label>
|
||||
<input class="form-control" id="inputCFGDir" type="text" name="cfgdir" value="<?php echo $eac_cfgdir;?>" >
|
||||
</div>
|
||||
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlServer">MySQL <?php echo $gssprache->server;?></label>
|
||||
<input class="form-control" id="inputMysqlServer" type="text" name="mysql_server" value="<?php echo $mysql_server;?>">
|
||||
</div>
|
||||
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlPort">MySQL <?php echo $gssprache->port;?></label>
|
||||
<input class="form-control" id="inputMysqlPort" type="number" name="mysql_port" value="<?php echo $mysql_port;?>" min="1" max="65535">
|
||||
</div>
|
||||
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlDB">MySQL <?php echo $mysprache->dbname;?></label>
|
||||
<input class="form-control" id="inputMysqlDB" type="text" name="mysql_db" value="<?php echo $mysql_db;?>">
|
||||
</div>
|
||||
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlTable">MySQL <?php echo $mysprache->table;?></label>
|
||||
<input class="form-control" id="inputMysqlTable" type="text" name="mysql_table" value="<?php echo $mysql_table;?>">
|
||||
</div>
|
||||
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlUser">MySQL <?php echo $mysprache->user;?></label>
|
||||
<input class="form-control" id="inputMysqlUser" type="text" name="mysql_user" value="<?php echo $mysql_user;?>">
|
||||
</div>
|
||||
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlPassword">MySQL <?php echo $mysprache->password;?></label>
|
||||
<input class="form-control" id="inputMysqlPassword" type="text" name="mysql_password" value="<?php echo $mysql_password;?>">
|
||||
</div>
|
||||
|
||||
<h3>Easy Anti Cheat <?php echo $gsprache->settings;?></h3>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="inputSrcdsCOD4War" type="checkbox" name="normal_3" value="Y" <?php if ($normal_3=='Y') echo 'checked="checked"';?>>
|
||||
SRCDS <?php echo $gssprache->war;?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="inputSrcdsCOD4Pub" type="checkbox" name="normal_4" value="Y" <?php if ($normal_4=='Y') echo 'checked="checked"';?>>
|
||||
SRCDS Public
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="inputHLDSWar" type="checkbox" name="hlds_3" value="Y" <?php if ($hlds_3=='Y') echo 'checked="checked"';?>>
|
||||
HLDS <?php echo $gssprache->war;?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="inputHLDSWPub" type="checkbox" name="hlds_4" value="Y" <?php if ($hlds_4=='Y') echo 'checked="checked"';?>>
|
||||
HLDS Public
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="inputHLDSWWar32" type="checkbox" name="hlds_5" value="Y" <?php if ($hlds_5=='Y') echo 'checked="checked"';?>>
|
||||
HLDS <?php echo $gssprache->war;?> 32Bit
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="inputHLDSWPub32" type="checkbox" name="hlds_6" value="Y" <?php if ($hlds_6=='Y') echo 'checked="checked"';?>>
|
||||
HLDS Public 32Bit
|
||||
</label>
|
||||
</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="form-group">
|
||||
<label for="inputType"><?php echo $gssprache->type;?></label>
|
||||
<select class="form-control" id="inputType" name="type" onchange="SwitchShowHideRows(this.value)">
|
||||
<option value="M">MySQL</option>
|
||||
<option value="S" <?php if ($type=='S') echo 'selected="selected"'; ?>>SSH2</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputIP"><?php echo $sprache->haupt_ip;?></label>
|
||||
<input class="form-control" id="inputIP" type="text" name="ip" value="<?php echo $eac_ip;?>" maxlength="15" required="required">
|
||||
</div>
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputPortSSH2"><?php echo $sprache->ssh_port;?></label>
|
||||
<input class="form-control" id="inputPortSSH2" type="text" name="port" value="<?php echo $eac_port;?>" maxlength="5" required="required">
|
||||
</div>
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputUserSSH2"><?php echo $sprache->ssh_user;?></label>
|
||||
<input class="form-control" id="inputUserSSH2" type="text" name="user" value="<?php echo $eac_user;?>" maxlength="15" required="required">
|
||||
</div>
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputKeyuseSSH2"><?php echo $sprache->keyuse;?></label>
|
||||
<select class="form-control" id="inputKeyuseSSH2" name="publickey">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="B" <?php if ($eac_publickey=="B") echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?> + <?php echo $gsprache->password;?></option>
|
||||
<option value="N" <?php if ($eac_publickey=="N") echo 'selected="selected"'; ?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputPassSSH2"><?php echo $sprache->ssh_pass;?></label>
|
||||
<input class="form-control" id="inputPassSSH2" type="password" name="pass" value="<?php echo $eac_pass;?>">
|
||||
</div>
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputKeynameSSH2"><?php echo $sprache->keyname;?></label>
|
||||
<input class="form-control" id="inputKeynameSSH2" type="text" name="keyname" maxlength="20" value="<?php echo $eac_keyname;?>">
|
||||
</div>
|
||||
<div class="S switch<?php if($type=='M') echo 'display_none';?> form-group">
|
||||
<label for="inputCFGDir"><?php echo $sprache->cfgdir;?></label>
|
||||
<input class="form-control" id="inputCFGDir" type="text" name="cfgdir" value="<?php echo $eac_cfgdir;?>" >
|
||||
</div>
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlServer">MySQL <?php echo $gssprache->server;?></label>
|
||||
<input class="form-control" id="inputMysqlServer" type="text" name="mysql_server" value="<?php echo $mysql_server;?>">
|
||||
</div>
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlPort">MySQL <?php echo $gssprache->port;?></label>
|
||||
<input class="form-control" id="inputMysqlPort" type="text" name="mysql_port" value="<?php echo $mysql_port;?>">
|
||||
</div>
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlDB">MySQL <?php echo $mysprache->dbname;?></label>
|
||||
<input class="form-control" id="inputMysqlDB" type="number" name="mysql_db" value="<?php echo $mysql_db;?>">
|
||||
</div>
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlTable">MySQL <?php echo $mysprache->table;?></label>
|
||||
<input class="form-control" id="inputMysqlTable" type="number" name="mysql_table" value="<?php echo $mysql_table;?>">
|
||||
</div>
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlUser">MySQL <?php echo $mysprache->user;?></label>
|
||||
<input class="form-control" id="inputMysqlUser" type="number" name="mysql_user" value="<?php echo $mysql_user;?>">
|
||||
</div>
|
||||
<div class="M switch<?php if($type=='S') echo 'display_none';?> form-group">
|
||||
<label for="inputMysqlPassword">MySQL <?php echo $mysprache->password;?></label>
|
||||
<input class="form-control" id="inputMysqlPassword" type="number" name="mysql_password" value="<?php echo $mysql_password;?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputSrcdsCOD4War">SRCDS <?php echo $gssprache->war?></label>
|
||||
<input class="form-control" id="inputSrcdsCOD4War" type="checkbox" name="normal_3" value="Y" <?php if ($normal_3=='Y') echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputSrcdsCOD4Pub">SRCDS Public</label>
|
||||
<input class="form-control" id="inputSrcdsCOD4Pub" type="checkbox" name="normal_4" value="Y" <?php if ($normal_4=='Y') echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputHLDSWar">HLDS <?php echo $gssprache->war?></label>
|
||||
<input class="form-control" id="inputHLDSWar" type="checkbox" name="hlds_3" value="Y" <?php if ($hlds_3=='Y') echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputHLDSWPub">HLDS Public</label>
|
||||
<input class="form-control" id="inputHLDSWPub" type="checkbox" name="hlds_4" value="Y" <?php if ($hlds_4=='Y') echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputHLDSWWar32">HLDS <?php echo $gssprache->war?> 32Bit</label>
|
||||
<input class="form-control" id="inputHLDSWWar32" type="checkbox" name="hlds_5" value="Y" <?php if ($hlds_5=='Y') echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputHLDSWPub32">HLDS Public 32Bit</label>
|
||||
<input class="form-control" id="inputHLDSWPub32" type="checkbox" name="hlds_6" value="Y" <?php if ($hlds_6=='Y') echo 'checked="checked"'; ?>>
|
||||
</div>
|
||||
|
||||
<label for="inputEdit"></label>
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save"> <?php echo $gsprache->save;?></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -8,6 +8,18 @@
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<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>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<form role="form" action="admin.php?w=im&d=ad" enctype="multipart/form-data" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
@ -18,7 +30,7 @@
|
||||
|
||||
<div class="box box-success">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php echo $gsprache->template;?> <?php echo $gsprache->import;?></h3>
|
||||
<h3 class="box-title"><?php echo $gsprache->template;?> XML <?php echo $gsprache->import;?></h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
@ -38,6 +50,7 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-success">
|
||||
|
@ -9,6 +9,18 @@
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<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>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-info">
|
||||
|
@ -8,6 +8,18 @@
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<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>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-success">
|
||||
|
@ -15,7 +15,6 @@
|
||||
<?php echo $gsprache->gameroot;?> <a href="admin.php?w=ro&d=ad"><span class="btn btn-success btn-sm"><i class="fa fa-plus-circle"></i> <?php echo $gsprache->add;?></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<?php }?>
|
||||
|
||||
|
@ -9,6 +9,18 @@
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<?php if (count($errors)>0){ ?>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<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>
|
||||
<?php }?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-info">
|
||||
|
Loading…
x
Reference in New Issue
Block a user