Tickets 19 and 21
https://github.com/easy-wi/developer/issues/19 https://github.com/easy-wi/developer/issues/21
@ -19,4 +19,10 @@ http://opensource.org/licenses/MIT
|
||||
|
||||
* HTML5 Shiv v3.6.2
|
||||
https://github.com/aFarkas/html5shiv
|
||||
@afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
@afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
|
||||
* Flag icons - http://www.famfamfam.com
|
||||
These icons are public domain, and as such are free for any use (attribution appreciated but not required).
|
||||
Note that these flags are named using the ISO3166-1 alpha-2 country codes where appropriate. A list of codes can be found at http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
||||
If you find these icons useful, please donate via paypal to mjames@gmail.com (or click the donate button available at http://www.famfamfam.com/lab/icons/silk)
|
||||
Contact: mjames@gmail.com
|
9
web/css/default/bootstrap-responsive.min.css
vendored
Normal file
9
web/css/default/bootstrap.min.css
vendored
Normal file
37
web/css/default/easy-wi.css
Normal file
@ -0,0 +1,37 @@
|
||||
.footable {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
border: solid #ccc 1px;
|
||||
}
|
||||
|
||||
.footable.breakpoint > tbody > tr > td.expand {
|
||||
background-image:url("../../images/footable/plus.png");
|
||||
background-repeat:no-repeat;
|
||||
background-position:5px center;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.footable.breakpoint > tbody > tr.footable-detail-show > td.expand {
|
||||
background-image:url("../../images/footable/minus.png");
|
||||
}
|
||||
|
||||
.footable.breakpoint > tbody > tr.footable-row-detail {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.footable.breakpoint > tbody > tr:hover:not(.footable-row-detail) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.footable > tbody > tr > td.footable-cell-detail {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.footable > thead > tr > th.footable-first-column, .footable > thead > tr > td.footable-first-column, .footable > tbody > tr > td.footable-first-column {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.footable > tbody img {
|
||||
vertical-align:middle;
|
||||
}
|
BIN
web/images/flags/de.png
Normal file
After Width: | Height: | Size: 545 B |
BIN
web/images/flags/dk.png
Normal file
After Width: | Height: | Size: 495 B |
BIN
web/images/flags/es.png
Normal file
After Width: | Height: | Size: 469 B |
BIN
web/images/flags/fr.png
Normal file
After Width: | Height: | Size: 545 B |
BIN
web/images/flags/ru.png
Normal file
After Width: | Height: | Size: 420 B |
BIN
web/images/flags/uk.png
Normal file
After Width: | Height: | Size: 599 B |
BIN
web/images/footable/minus.png
Normal file
After Width: | Height: | Size: 284 B |
BIN
web/images/footable/plus.png
Normal file
After Width: | Height: | Size: 563 B |
BIN
web/images/games/icons/aa3.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/ageofchivalry.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/bukkit.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/bukkitbeta.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/canary.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/cod.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
web/images/games/icons/cod2.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
web/images/games/icons/cod4.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/cod4mwar.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/cod4pam.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/cod4pml.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/cod5.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
web/images/games/icons/coduo.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
web/images/games/icons/csgo.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/cspromod.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
web/images/games/icons/css.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/cssbeta.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/cstrike.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
web/images/games/icons/czero.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
web/images/games/icons/czero_beta.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
web/images/games/icons/defencealliance2.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/dmc.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/dod.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
web/images/games/icons/dods.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
web/images/games/icons/doom3.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
web/images/games/icons/esmod.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/farcry2.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
web/images/games/icons/garrysmod.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/hl2mp.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
web/images/games/icons/insurgency.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
web/images/games/icons/killingfloor.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
web/images/games/icons/left4dead.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
web/images/games/icons/left4dead2.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
web/images/games/icons/mc.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/mcbeta.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/nucleardawn.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
web/images/games/icons/pvkii.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
web/images/games/icons/q3.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/redorchestra.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
web/images/games/icons/serioussamhdfe.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
web/images/games/icons/serioussamhdse.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/synergy.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/teeworlds.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
web/images/games/icons/tf.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
web/images/games/icons/tfc.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
web/images/games/icons/tmnf.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
web/images/games/icons/zps.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
web/images/twitterbootstrap/glyphicons-halflings-white.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
web/images/twitterbootstrap/glyphicons-halflings.png
Normal file
After Width: | Height: | Size: 12 KiB |
6
web/js/default/bootstrap.min.js
vendored
Normal file
547
web/js/default/footable.js
Normal file
@ -0,0 +1,547 @@
|
||||
/*!
|
||||
* FooTable - Awesome Responsive Tables
|
||||
* Version : 0.5
|
||||
* http://themergency.com/footable
|
||||
*
|
||||
* Requires jQuery - http://jquery.com/
|
||||
*
|
||||
* Copyright 2012 Steven Usher & Brad Vincent
|
||||
* Released under the MIT license
|
||||
* You are free to use FooTable in commercial projects as long as this copyright header is left intact.
|
||||
*
|
||||
* Date: 22 Apr 2013
|
||||
*/
|
||||
(function ($, w, undefined) {
|
||||
w.footable = {
|
||||
options: {
|
||||
delay: 100, // The number of millseconds to wait before triggering the react event
|
||||
breakpoints: { // The different screen resolution breakpoints
|
||||
phone: 480,
|
||||
tablet: 765
|
||||
},
|
||||
parsers: { // The default parser to parse the value out of a cell (values are used in building up row detail)
|
||||
alpha: function (cell) {
|
||||
return $(cell).data('value') || $.trim($(cell).text());
|
||||
}
|
||||
},
|
||||
calculateWidthAndHeightOverride: null,
|
||||
toggleSelector: ' > tbody > tr:not(.footable-row-detail)', //the selector to show/hide the detail row
|
||||
columnDataSelector: '> thead > tr:last-child > th, > thead > tr:last-child > td', //the selector used to find the column data in the thead
|
||||
createDetail: function (element, data) {
|
||||
/// <summary>This function is used by FooTable to generate the detail view seen when expanding a collapsed row.</summary>
|
||||
/// <param name="element">This is the div that contains all the detail row information, anything could be added to it.</param>
|
||||
/// <param name="data">
|
||||
/// This is an array of objects containing the cell information for the current row.
|
||||
/// These objects look like the below:
|
||||
/// obj = {
|
||||
/// 'name': String, // The name of the column
|
||||
/// 'value': Object, // The value parsed from the cell using the parsers. This could be a string, a number or whatever the parser outputs.
|
||||
/// 'display': String, // This is the actual HTML from the cell, so if you have images etc you want moved this is the one to use and is the default value used.
|
||||
/// 'group': String, // This is the identifier used in the data-group attribute of the column.
|
||||
/// 'groupName': String // This is the actual name of the group the column belongs to.
|
||||
/// }
|
||||
/// </param>
|
||||
|
||||
var groups = { '_none': { 'name': null, 'data': [] } };
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
var groupid = data[i].group;
|
||||
if (groupid != null) {
|
||||
if (!(groupid in groups))
|
||||
groups[groupid] = { 'name': data[i].groupName, 'data': [] };
|
||||
|
||||
groups[groupid].data.push(data[i]);
|
||||
} else {
|
||||
groups._none.data.push(data[i]);
|
||||
}
|
||||
}
|
||||
|
||||
for (var group in groups) {
|
||||
if (groups[group].data.length == 0) continue;
|
||||
if (group != '_none') element.append('<h4>' + groups[group].name + '</h4>');
|
||||
|
||||
for (var j = 0; j < groups[group].data.length; j++) {
|
||||
var separator = (groups[group].data[j].name) ? ':' : '';
|
||||
element.append('<div><strong>' + groups[group].data[j].name + '</strong> ' + separator + ' ' + groups[group].data[j].display + '</div>');
|
||||
}
|
||||
}
|
||||
},
|
||||
classes: {
|
||||
loading: 'footable-loading',
|
||||
loaded: 'footable-loaded',
|
||||
sorted: 'footable-sorted',
|
||||
descending: 'footable-sorted-desc',
|
||||
indicator: 'footable-sort-indicator'
|
||||
},
|
||||
debug: false // Whether or not to log information to the console.
|
||||
},
|
||||
|
||||
version: {
|
||||
major: 0, minor: 5,
|
||||
toString: function () {
|
||||
return w.footable.version.major + '.' + w.footable.version.minor;
|
||||
},
|
||||
parse: function (str) {
|
||||
version = /(\d+)\.?(\d+)?\.?(\d+)?/.exec(str);
|
||||
return {
|
||||
major: parseInt(version[1]) || 0,
|
||||
minor: parseInt(version[2]) || 0,
|
||||
patch: parseInt(version[3]) || 0
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
plugins: {
|
||||
_validate: function (plugin) {
|
||||
///<summary>Simple validation of the <paramref name="plugin"/> to make sure any members called by Foobox actually exist.</summary>
|
||||
///<param name="plugin">The object defining the plugin, this should implement a string property called "name" and a function called "init".</param>
|
||||
|
||||
if (typeof plugin['name'] !== 'string') {
|
||||
if (w.footable.options.debug == true) console.error('Validation failed, plugin does not implement a string property called "name".', plugin);
|
||||
return false;
|
||||
}
|
||||
if (!$.isFunction(plugin['init'])) {
|
||||
if (w.footable.options.debug == true) console.error('Validation failed, plugin "' + plugin['name'] + '" does not implement a function called "init".', plugin);
|
||||
return false;
|
||||
}
|
||||
if (w.footable.options.debug == true) console.log('Validation succeeded for plugin "' + plugin['name'] + '".', plugin);
|
||||
return true;
|
||||
},
|
||||
registered: [], // An array containing all registered plugins.
|
||||
register: function (plugin, options) {
|
||||
///<summary>Registers a <paramref name="plugin"/> and its default <paramref name="options"/> with Foobox.</summary>
|
||||
///<param name="plugin">The plugin that should implement a string property called "name" and a function called "init".</param>
|
||||
///<param name="options">The default options to merge with the Foobox's base options.</param>
|
||||
|
||||
if (w.footable.plugins._validate(plugin)) {
|
||||
w.footable.plugins.registered.push(plugin);
|
||||
if (options != undefined && typeof options === 'object') $.extend(true, w.footable.options, options);
|
||||
if (w.footable.options.debug == true) console.log('Plugin "' + plugin['name'] + '" has been registered with the Foobox.', plugin);
|
||||
}
|
||||
},
|
||||
init: function (instance) {
|
||||
///<summary>Loops through all registered plugins and calls the "init" method supplying the current <paramref name="instance"/> of the Foobox as the first parameter.</summary>
|
||||
///<param name="instance">The current instance of the Foobox that the plugin is being initialized for.</param>
|
||||
|
||||
for (var i = 0; i < w.footable.plugins.registered.length; i++) {
|
||||
try {
|
||||
w.footable.plugins.registered[i]['init'](instance);
|
||||
} catch (err) {
|
||||
if (w.footable.options.debug == true) console.error(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var instanceCount = 0;
|
||||
|
||||
$.fn.footable = function (options) {
|
||||
///<summary>The main constructor call to initialize the plugin using the supplied <paramref name="options"/>.</summary>
|
||||
///<param name="options">
|
||||
///<para>A JSON object containing user defined options for the plugin to use. Any options not supplied will have a default value assigned.</para>
|
||||
///<para>Check the documentation or the default options object above for more information on available options.</para>
|
||||
///</param>
|
||||
|
||||
options = options || {};
|
||||
var o = $.extend(true, {}, w.footable.options, options); //merge user and default options
|
||||
return this.each(function () {
|
||||
instanceCount++;
|
||||
this.footable = new Footable(this, o, instanceCount);
|
||||
});
|
||||
};
|
||||
|
||||
//helper for using timeouts
|
||||
function Timer() {
|
||||
///<summary>Simple timer object created around a timeout.</summary>
|
||||
var t = this;
|
||||
t.id = null;
|
||||
t.busy = false;
|
||||
t.start = function (code, milliseconds) {
|
||||
///<summary>Starts the timer and waits the specified amount of <paramref name="milliseconds"/> before executing the supplied <paramref name="code"/>.</summary>
|
||||
///<param name="code">The code to execute once the timer runs out.</param>
|
||||
///<param name="milliseconds">The time in milliseconds to wait before executing the supplied <paramref name="code"/>.</param>
|
||||
|
||||
if (t.busy) {
|
||||
return;
|
||||
}
|
||||
t.stop();
|
||||
t.id = setTimeout(function () {
|
||||
code();
|
||||
t.id = null;
|
||||
t.busy = false;
|
||||
}, milliseconds);
|
||||
t.busy = true;
|
||||
};
|
||||
t.stop = function () {
|
||||
///<summary>Stops the timer if its runnning and resets it back to its starting state.</summary>
|
||||
|
||||
if (t.id != null) {
|
||||
clearTimeout(t.id);
|
||||
t.id = null;
|
||||
t.busy = false;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
function Footable(t, o, id) {
|
||||
///<summary>Inits a new instance of the plugin.</summary>
|
||||
///<param name="t">The main table element to apply this plugin to.</param>
|
||||
///<param name="o">The options supplied to the plugin. Check the defaults object to see all available options.</param>
|
||||
///<param name="id">The id to assign to this instance of the plugin.</param>
|
||||
|
||||
var ft = this;
|
||||
ft.id = id;
|
||||
ft.table = t;
|
||||
ft.options = o;
|
||||
ft.breakpoints = [];
|
||||
ft.breakpointNames = '';
|
||||
ft.columns = {};
|
||||
|
||||
var opt = ft.options;
|
||||
var cls = opt.classes;
|
||||
var indexOffset = 0;
|
||||
|
||||
// This object simply houses all the timers used in the footable.
|
||||
ft.timers = {
|
||||
resize: new Timer(),
|
||||
register: function (name) {
|
||||
ft.timers[name] = new Timer();
|
||||
return ft.timers[name];
|
||||
}
|
||||
};
|
||||
|
||||
w.footable.plugins.init(ft);
|
||||
|
||||
ft.init = function () {
|
||||
var $window = $(w), $table = $(ft.table);
|
||||
|
||||
if ($table.hasClass(cls.loaded)) {
|
||||
//already loaded FooTable for the table, so don't init again
|
||||
ft.raise('footable_already_initialized');
|
||||
return;
|
||||
}
|
||||
|
||||
$table.addClass(cls.loading);
|
||||
|
||||
// Get the column data once for the life time of the plugin
|
||||
$table.find(opt.columnDataSelector).each(function () {
|
||||
var data = ft.getColumnData(this);
|
||||
ft.columns[data.index] = data;
|
||||
|
||||
if (data.className != null) {
|
||||
var selector = '', first = true;
|
||||
$.each(data.matches, function (m, match) { //support for colspans
|
||||
if (!first) {
|
||||
selector += ', ';
|
||||
}
|
||||
selector += '> tbody > tr:not(.footable-row-detail) > td:nth-child(' + (parseInt(match) + 1) + ')';
|
||||
first = false;
|
||||
});
|
||||
//add the className to the cells specified by data-class="blah"
|
||||
$table.find(selector).not('.footable-cell-detail').addClass(data.className);
|
||||
}
|
||||
});
|
||||
|
||||
// Create a nice friendly array to work with out of the breakpoints object.
|
||||
for (var name in opt.breakpoints) {
|
||||
ft.breakpoints.push({ 'name': name, 'width': opt.breakpoints[name] });
|
||||
ft.breakpointNames += (name + ' ');
|
||||
}
|
||||
|
||||
// Sort the breakpoints so the smallest is checked first
|
||||
ft.breakpoints.sort(function (a, b) {
|
||||
return a['width'] - b['width'];
|
||||
});
|
||||
|
||||
//bind the toggle selector click events
|
||||
ft.bindToggleSelectors();
|
||||
|
||||
ft.raise('footable_initializing');
|
||||
|
||||
$table.bind('footable_initialized', function () {
|
||||
//resize the footable onload
|
||||
ft.resize();
|
||||
|
||||
//remove the loading class
|
||||
$table.removeClass(cls.loading);
|
||||
|
||||
//hides all elements within the table that have the attribute data-hide="init"
|
||||
//what does this do? LOL
|
||||
$table.find('[data-init="hide"]').hide();
|
||||
$table.find('[data-init="show"]').show();
|
||||
|
||||
//add the loaded class
|
||||
$table.addClass(cls.loaded);
|
||||
});
|
||||
|
||||
$table.bind('footable_resize', function () {
|
||||
ft.resize();
|
||||
});
|
||||
|
||||
$window
|
||||
.bind('resize.footable', function () {
|
||||
ft.timers.resize.stop();
|
||||
ft.timers.resize.start(function () {
|
||||
ft.resize();
|
||||
}, opt.delay);
|
||||
});
|
||||
|
||||
ft.raise('footable_initialized');
|
||||
};
|
||||
|
||||
//moved this out into it's own function so that it can be called from other add-ons
|
||||
ft.bindToggleSelectors = function () {
|
||||
var $table = $(ft.table);
|
||||
$table.find(opt.toggleSelector).unbind('click.footable').bind('click.footable', function (e) {
|
||||
if ($table.is('.breakpoint') && $(e.target).is('td')) {
|
||||
var $row = $(this).is('tr') ? $(this) : $(this).parents('tr:first');
|
||||
ft.toggleDetail($row.get(0));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
ft.parse = function (cell, column) {
|
||||
var parser = opt.parsers[column.type] || opt.parsers.alpha;
|
||||
return parser(cell);
|
||||
};
|
||||
|
||||
ft.getColumnData = function (th) {
|
||||
var $th = $(th), hide = $th.data('hide'), index = $th.index();
|
||||
hide = hide || '';
|
||||
hide = hide.split(',');
|
||||
var data = {
|
||||
'index': index,
|
||||
'hide': { },
|
||||
'type': $th.data('type') || 'alpha',
|
||||
'name': $.trim($th.data('name') || $th.text()),
|
||||
'ignore': $th.data('ignore') || false,
|
||||
'className': $th.data('class') || null,
|
||||
'matches': [],
|
||||
'names': { },
|
||||
'group': $th.data('group') || null,
|
||||
'groupName': null
|
||||
};
|
||||
|
||||
if (data.group != null) {
|
||||
var $group = $(ft.table).find('> thead > tr.footable-group-row > th[data-group="' + data.group + '"], > thead > tr.footable-group-row > td[data-group="' + data.group + '"]').first();
|
||||
data.groupName = ft.parse($group, { 'type': 'alpha' });
|
||||
}
|
||||
|
||||
var pcolspan = parseInt($th.prev().attr('colspan') || 0);
|
||||
indexOffset += pcolspan > 1 ? pcolspan - 1 : 0;
|
||||
var colspan = parseInt($th.attr('colspan') || 0), curindex = data.index + indexOffset;
|
||||
if (colspan > 1) {
|
||||
var names = $th.data('names');
|
||||
names = names || '';
|
||||
names = names.split(',');
|
||||
for (var i = 0; i < colspan; i++) {
|
||||
data.matches.push(i + curindex);
|
||||
if (i < names.length) data.names[i + curindex] = names[i];
|
||||
}
|
||||
} else {
|
||||
data.matches.push(curindex);
|
||||
}
|
||||
|
||||
data.hide['default'] = ($th.data('hide') === "all") || ($.inArray('default', hide) >= 0);
|
||||
|
||||
for (var name in opt.breakpoints) {
|
||||
data.hide[name] = ($th.data('hide') === "all") || ($.inArray(name, hide) >= 0);
|
||||
}
|
||||
var e = ft.raise('footable_column_data', { 'column': { 'data': data, 'th': th } });
|
||||
return e.column.data;
|
||||
};
|
||||
|
||||
ft.getViewportWidth = function () {
|
||||
return window.innerWidth || (document.body ? document.body.offsetWidth : 0);
|
||||
};
|
||||
|
||||
ft.getViewportHeight = function () {
|
||||
return window.innerHeight || (document.body ? document.body.offsetHeight : 0);
|
||||
};
|
||||
|
||||
ft.calculateWidthAndHeight = function ($table, info) {
|
||||
if (jQuery.isFunction(opt.calculateWidthAndHeightOverride)) {
|
||||
return opt.calculateWidthAndHeightOverride($table, info);
|
||||
}
|
||||
if (info.viewportWidth < info.width) info.width = info.viewportWidth;
|
||||
if (info.viewportHeight < info.height) info.height = info.viewportHeight;
|
||||
|
||||
return info;
|
||||
};
|
||||
|
||||
ft.hasBreakpointColumn = function (breakpoint) {
|
||||
for (var c in ft.columns) {
|
||||
if (ft.columns[c].hide[breakpoint]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
ft.resize = function () {
|
||||
var $table = $(ft.table);
|
||||
var info = {
|
||||
'width': $table.width(), //the table width
|
||||
'height': $table.height(), //the table height
|
||||
'viewportWidth': ft.getViewportWidth(), //the width of the viewport
|
||||
'viewportHeight': ft.getViewportHeight(), //the width of the viewport
|
||||
'orientation': null
|
||||
};
|
||||
info.orientation = info.viewportWidth > info.viewportHeight ? 'landscape' : 'portrait';
|
||||
|
||||
info = ft.calculateWidthAndHeight($table, info);
|
||||
|
||||
var pinfo = $table.data('footable_info');
|
||||
$table.data('footable_info', info);
|
||||
ft.raise('footable_resizing', { 'old': pinfo, 'info': info });
|
||||
|
||||
// This (if) statement is here purely to make sure events aren't raised twice as mobile safari seems to do
|
||||
if (!pinfo || ((pinfo && pinfo.width && pinfo.width != info.width) || (pinfo && pinfo.height && pinfo.height != info.height))) {
|
||||
var current = null, breakpoint;
|
||||
for (var i = 0; i < ft.breakpoints.length; i++) {
|
||||
breakpoint = ft.breakpoints[i];
|
||||
if (breakpoint && breakpoint.width && info.width <= breakpoint.width) {
|
||||
current = breakpoint;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var breakpointName = (current == null ? 'default' : current['name']);
|
||||
|
||||
var hasBreakpointFired = ft.hasBreakpointColumn(breakpointName);
|
||||
|
||||
$table
|
||||
.removeClass('default breakpoint').removeClass(ft.breakpointNames)
|
||||
.addClass(breakpointName + (hasBreakpointFired ? ' breakpoint' : ''))
|
||||
.find('> thead > tr:last-child > th')
|
||||
.each(function () {
|
||||
var data = ft.columns[$(this).index()], selector = '', first = true;
|
||||
$.each(data.matches, function (m, match) {
|
||||
if (!first) {
|
||||
selector += ', ';
|
||||
}
|
||||
var count = match + 1;
|
||||
selector += '> tbody > tr:not(.footable-row-detail) > td:nth-child(' + count + ')';
|
||||
selector += ', > tfoot > tr:not(.footable-row-detail) > td:nth-child(' + count + ')';
|
||||
selector += ', > colgroup > col:nth-child(' + count + ')';
|
||||
first = false;
|
||||
});
|
||||
|
||||
selector += ', > thead > tr[data-group-row="true"] > th[data-group="' + data.group + '"]';
|
||||
var $column = $table.find(selector).add(this);
|
||||
if (data.hide[breakpointName] == false) $column.show();
|
||||
else $column.hide();
|
||||
|
||||
if ($table.find('> thead > tr.footable-group-row').length == 1) {
|
||||
var $groupcols = $table.find('> thead > tr:last-child > th[data-group="' + data.group + '"]:visible, > thead > tr:last-child > th[data-group="' + data.group + '"]:visible'),
|
||||
$group = $table.find('> thead > tr.footable-group-row > th[data-group="' + data.group + '"], > thead > tr.footable-group-row > td[data-group="' + data.group + '"]'),
|
||||
groupspan = 0;
|
||||
|
||||
$.each($groupcols, function () {
|
||||
groupspan += parseInt($(this).attr('colspan') || 1);
|
||||
});
|
||||
|
||||
if (groupspan > 0) $group.attr('colspan', groupspan).show();
|
||||
else $group.hide();
|
||||
}
|
||||
})
|
||||
.end()
|
||||
.find('> tbody > tr.footable-detail-show').each(function () {
|
||||
ft.createOrUpdateDetailRow(this);
|
||||
});
|
||||
|
||||
$table.find('> tbody > tr.footable-detail-show:visible').each(function () {
|
||||
var $next = $(this).next();
|
||||
if ($next.hasClass('footable-row-detail')) {
|
||||
if (!hasBreakpointFired) $next.hide();
|
||||
else $next.show();
|
||||
}
|
||||
});
|
||||
|
||||
// adding .footable-first-column and .footable-last-column to the first and last th and td of each row in order to allow
|
||||
// for styling if the first or last column is hidden (which won't work using :first-child or :last-child)
|
||||
$table.find('> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column').removeClass('footable-last-column');
|
||||
$table.find('> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column').removeClass('footable-first-column');
|
||||
$table.find('> thead > tr, > tbody > tr')
|
||||
.find('> th:visible:last, > td:visible:last')
|
||||
.addClass('footable-last-column')
|
||||
.end()
|
||||
.find('> th:visible:first, > td:visible:first')
|
||||
.addClass('footable-first-column');
|
||||
|
||||
ft.raise('footable_breakpoint_' + breakpointName, { 'info': info });
|
||||
}
|
||||
|
||||
ft.raise('footable_resized', { 'old': pinfo, 'info': info });
|
||||
};
|
||||
|
||||
ft.toggleDetail = function (actualRow) {
|
||||
var $row = $(actualRow),
|
||||
created = ft.createOrUpdateDetailRow($row.get(0)),
|
||||
$next = $row.next();
|
||||
|
||||
if (!created && $next.is(':visible')) {
|
||||
$row.removeClass('footable-detail-show');
|
||||
//only hide the next row if it's a detail row
|
||||
if ($next.hasClass('footable-row-detail')) $next.hide();
|
||||
} else {
|
||||
$row.addClass('footable-detail-show');
|
||||
$next.show();
|
||||
}
|
||||
};
|
||||
|
||||
ft.getColumnFromTdIndex = function (index) {
|
||||
/// <summary>Returns the correct column data for the supplied index taking into account colspans.</summary>
|
||||
/// <param name="index">The index to retrieve the column data for.</param>
|
||||
/// <returns type="json">A JSON object containing the column data for the supplied index.</returns>
|
||||
var result = null;
|
||||
for (var column in ft.columns) {
|
||||
if ($.inArray(index, ft.columns[column].matches) >= 0) {
|
||||
result = ft.columns[column];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
ft.createOrUpdateDetailRow = function (actualRow) {
|
||||
var $row = $(actualRow), $next = $row.next(), $detail, values = [];
|
||||
if ($row.is(':hidden')) return false; //if the row is hidden for some readon (perhaps filtered) then get out of here
|
||||
ft.raise('footable_rowdetailupdated', { 'row': $row, 'detail': $next });
|
||||
$row.find('> td:hidden').each(function () {
|
||||
var index = $(this).index(), column = ft.getColumnFromTdIndex(index), name = column.name;
|
||||
if (column.ignore == true) return true;
|
||||
|
||||
if (index in column.names) name = column.names[index];
|
||||
values.push({ 'name': name, 'value': ft.parse(this, column), 'display': $.trim($(this).html()), 'group': column.group, 'groupName': column.groupName });
|
||||
return true;
|
||||
});
|
||||
if (values.length == 0) return false; //return if we don't have any data to show
|
||||
var colspan = $row.find('> td:visible').length;
|
||||
var exists = $next.hasClass('footable-row-detail');
|
||||
if (!exists) { // Create
|
||||
$next = $('<tr class="footable-row-detail"><td class="footable-cell-detail"><div class="footable-row-detail-inner"></div></td></tr>');
|
||||
$row.after($next);
|
||||
}
|
||||
$next.find('> td:first').attr('colspan', colspan);
|
||||
$detail = $next.find('.footable-row-detail-inner').empty();
|
||||
opt.createDetail($detail, values);
|
||||
return !exists;
|
||||
};
|
||||
|
||||
ft.raise = function (eventName, args) {
|
||||
args = args || { };
|
||||
var def = { 'ft': ft };
|
||||
$.extend(true, def, args);
|
||||
var e = $.Event(eventName, def);
|
||||
if (!e.ft) {
|
||||
$.extend(true, e, def);
|
||||
} //pre jQuery 1.6 which did not allow data to be passed to event object constructor
|
||||
$(ft.table).trigger(e);
|
||||
return e;
|
||||
};
|
||||
|
||||
ft.init();
|
||||
return ft;
|
||||
};
|
||||
})(jQuery, window);
|
8
web/js/default/html5shiv.js
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
*/
|
||||
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
|
||||
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
|
||||
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
|
||||
"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();
|
||||
for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
|
274
web/js/default/main.js
Normal file
@ -0,0 +1,274 @@
|
||||
/**
|
||||
* File: main.js.
|
||||
* Author: Ulrich Block
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
function textdrop(id) {
|
||||
if (document.getElementById(id).style.display == "") {
|
||||
document.getElementById(id).style.display = "none";
|
||||
} else {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
}
|
||||
function getdetails(file, str) {
|
||||
if (str=="") {
|
||||
document.getElementById("information").innerHTML="";
|
||||
return;
|
||||
} else {
|
||||
file += str;
|
||||
}
|
||||
xmlhttp=new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange=function() {
|
||||
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
|
||||
document.getElementById("information").innerHTML=xmlhttp.responseText;
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET",file,true);
|
||||
xmlhttp.send();
|
||||
}
|
||||
function getdetails2(file, str, id) {
|
||||
if (str=="") {
|
||||
document.getElementById(id).innerHTML="";
|
||||
return;
|
||||
} else {
|
||||
file += str;
|
||||
}
|
||||
xmlhttp2=new XMLHttpRequest();
|
||||
xmlhttp2.onreadystatechange=function() {
|
||||
if (xmlhttp2.readyState==4 && xmlhttp2.status==200) {
|
||||
document.getElementById(id).innerHTML=xmlhttp2.responseText;
|
||||
}
|
||||
}
|
||||
xmlhttp2.open("GET",file,true);
|
||||
xmlhttp2.send();
|
||||
}
|
||||
function onloaddata(file, str, id) {
|
||||
file += str;
|
||||
var xmlhttp = id;
|
||||
xmlhttp=new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange=function() {
|
||||
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
|
||||
document.getElementById(id).innerHTML=xmlhttp.responseText;
|
||||
} else if (xmlhttp.readyState==4) {
|
||||
document.getElementById(id).innerHTML="Connection Error";
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET",file,true);
|
||||
xmlhttp.send();
|
||||
}
|
||||
function details(select) {
|
||||
var details = document.getElementsByTagName("table");
|
||||
for(var x=0; x<details.length; x++) {
|
||||
name = details[x].getAttribute("name");
|
||||
if (name == 'details') {
|
||||
if (details[x].id == select) {
|
||||
details[x].style.display = 'block';
|
||||
} else {
|
||||
details[x].style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function details2(select,namevalue) {
|
||||
var details = document.getElementsByTagName("table");
|
||||
for(var x=0; x<details.length; x++) {
|
||||
name = details[x].getAttribute("name");
|
||||
if (name == namevalue) {
|
||||
if (details[x].id == select) {
|
||||
details[x].style.display = 'block';
|
||||
} else {
|
||||
details[x].style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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 popup(url) {
|
||||
window.open(url, "popup_id", "scrollbars,resizable,width=1024,height=756");
|
||||
return false;
|
||||
}
|
||||
function SwitchShowHideRows (Element) {
|
||||
var TheRest = document.getElementsByTagName('div');
|
||||
var ElementLenght = Element.length;
|
||||
for(var x=0; x<TheRest.length; x++) {
|
||||
var TheClass = TheRest[x].getAttribute('class');
|
||||
if (TheClass != null) {
|
||||
if (Element == 'init_ready') {
|
||||
if (TheClass.indexOf("display_none") != '-1') {
|
||||
TheRest[x].style.display = 'none';
|
||||
} else {
|
||||
TheRest[x].style.display = '';
|
||||
}
|
||||
} else {
|
||||
if (TheClass.indexOf('switch')!=-1) {
|
||||
if (TheClass.substring(0,ElementLenght) == Element) {
|
||||
if (TheRest[x].style.display == 'none') {
|
||||
TheRest[x].style.display = '';
|
||||
} else {
|
||||
TheRest[x].style.display = 'none';
|
||||
}
|
||||
} else {
|
||||
TheRest[x].style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function trim(Trim) {
|
||||
return Trim.replace(/^\s+|\s+$/g,'');
|
||||
}
|
||||
function TextToHtml(Text) {
|
||||
Text = Text.replace(/\</g,"<");
|
||||
Text = Text.replace(/\>/g,">");
|
||||
return Text;
|
||||
}
|
||||
function AddKey (ThisValue,Target) {
|
||||
var keys = document.getElementById(Target).value.split(',');
|
||||
var exists = false;
|
||||
for (var i=0; i<keys.length; i++) {
|
||||
if (trim(keys[i]).toLowerCase()==ThisValue.toLowerCase()) {
|
||||
exists = true;
|
||||
}
|
||||
}
|
||||
if (exists==false) {
|
||||
if (document.getElementById(Target).value=="") {
|
||||
document.getElementById(Target).value = ThisValue;
|
||||
} else {
|
||||
document.getElementById(Target).value += ", "+ThisValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
function AddCategory (UseFrom,Target,Language) {
|
||||
var exists = false;
|
||||
var catlist = document.getElementById(Target);
|
||||
var cats = document.getElementsByName('categories['+Language+']');
|
||||
var newcat = document.getElementById(UseFrom).value;
|
||||
if (newcat!="") {
|
||||
for (var i=0; i<cats.length; i++) {
|
||||
if (trim(cats[i].value).toLowerCase()==newcat.toLowerCase()) {
|
||||
exists = true;
|
||||
}
|
||||
}
|
||||
if (exists==false) {
|
||||
var NewRow = catlist.insertRow(-1);
|
||||
var NewCell = NewRow.insertCell(0);
|
||||
NewCell.innerHTML += '<input type="checkbox" name="categories['+Language+'][]" value="'+newcat+'" checked="checked"> '+TextToHtml(newcat);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function creatediv(id, html, width, height, left, top) {
|
||||
var newdiv = document.createElement('div');
|
||||
newdiv.setAttribute('id', id);
|
||||
if (width) {
|
||||
newdiv.style.width = 300;
|
||||
}
|
||||
if (height) {
|
||||
newdiv.style.height = 300;
|
||||
}
|
||||
if ((left || top) || (left && top)) {
|
||||
newdiv.style.position = "absolute";
|
||||
if (left) {
|
||||
newdiv.style.left = left;
|
||||
}
|
||||
if (top) {
|
||||
newdiv.style.top = top;
|
||||
}
|
||||
}
|
||||
newdiv.style.background = "#00C";
|
||||
newdiv.style.border = "4px solid #000";
|
||||
if (html) {
|
||||
newdiv.innerHTML = html;
|
||||
} else {
|
||||
newdiv.innerHTML = "nothing";
|
||||
}
|
||||
document.body.appendChild(newdiv);
|
||||
}
|
||||
function AddInput (Form,Target,Name) {
|
||||
var theTarget = document.getElementById(Target);
|
||||
var IPCount = document.getElementsByName(Name).length;
|
||||
var newDiv = document.createElement('div');
|
||||
IPCount++;
|
||||
newDiv.setAttribute('id',IPCount);
|
||||
newDiv.innerHTML += '<div id="'+IPCount+'" class="control-group"><label class="control-label" for="inputIPs-'+IPCount+'">IP</label><div class="controls"><input id="inputIPs-'+ IPCount +'" type="text" name="ip[]" value="" maxlength="15" required> <span class="btn btn-mini btn-primary" onclick="Remove('+ IPCount +')"><i class="icon-white icon-remove-sign"></i></span></div>';
|
||||
theTarget.appendChild(newDiv);
|
||||
}
|
||||
function Remove (ID) {
|
||||
var toBeRemoved = document.getElementById(ID);
|
||||
toBeRemoved.parentNode.removeChild(toBeRemoved);
|
||||
}
|
||||
function post_data (target,id_array) {
|
||||
var invisibleTempForm = document.createElement('form');
|
||||
invisibleTempForm.method='post';
|
||||
invisibleTempForm.setAttribute('target',id_array[0]);
|
||||
invisibleTempForm.action = target;
|
||||
for (i = 0; i < id_array.length;i++) {
|
||||
var TheID = id_array[i];
|
||||
var RawData = document.getElementById(TheID);
|
||||
var TheText = RawData.value;
|
||||
var TheName = RawData.name;
|
||||
var UserInput = document.createElement('input') ;
|
||||
UserInput.setAttribute('name', TheName);
|
||||
UserInput.setAttribute('value', TheText);
|
||||
invisibleTempForm.appendChild(UserInput);
|
||||
}
|
||||
document.body.appendChild(invisibleTempForm);
|
||||
invisibleTempForm.submit();
|
||||
document.body.removeChild(invisibleTempForm);
|
||||
}
|
2
web/keys/.htaccess
Normal file
@ -0,0 +1,2 @@
|
||||
Order deny,allow
|
||||
deny from all
|
@ -16,14 +16,16 @@
|
||||
<delSafe>Sicheres Löschen</delSafe>
|
||||
<delAny>In jedem Fall Löschen</delAny>
|
||||
<delDB>Aus der Datenbank Löschen</delDB>
|
||||
<edit>Bearbeiten</edit>
|
||||
<export>Exportieren</export>
|
||||
<feeds>Feeds</feeds>
|
||||
<edit>Bearbeiten</edit>
|
||||
<fastdownload>Fastdownload</fastdownload>
|
||||
<gameroot>Game Rootserver</gameroot>
|
||||
<gameserver>Gameserver</gameserver>
|
||||
<groups>Gruppen</groups>
|
||||
<hostsystem>Hostsystem</hostsystem>
|
||||
<hotline>Hotline</hotline>
|
||||
<import>Importieren</import>
|
||||
<imprint>Impressum</imprint>
|
||||
<jobs>Jobs</jobs>
|
||||
<jobPending>Job ausstehend</jobPending>
|
||||
|
@ -16,14 +16,16 @@
|
||||
<delSafe>Safe Delete</delSafe>
|
||||
<delAny>Delete in any case</delAny>
|
||||
<delDB>Remove from database</delDB>
|
||||
<edit>Edit</edit>
|
||||
<export>Export</export>
|
||||
<feeds>Feeds</feeds>
|
||||
<edit>Edit</edit>
|
||||
<fastdownload>Fastdownload</fastdownload>
|
||||
<gameserver>Gameserver</gameserver>
|
||||
<gameroot>Game Rootserver</gameroot>
|
||||
<groups>Groups</groups>
|
||||
<hostsystem>Hostsystem</hostsystem>
|
||||
<hotline>Hotline</hotline>
|
||||
<import>Import</import>
|
||||
<imprint>Imprint</imprint>
|
||||
<jobs>Jobs</jobs>
|
||||
<jobPending>Job pending</jobPending>
|
||||
|
@ -7,17 +7,38 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form class="form-horizontal" 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="control-group">
|
||||
<label class="control-label" for="inputUpload"><?php echo $gsprache->import;?></label>
|
||||
<div class="controls">
|
||||
<input id="inputUpload" type="file" name="file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary pull-right" id="inputEdit" type="submit"><i class="icon-upload icon-white"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form class="form-horizontal" 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="token" value="<?php echo $token;?>">
|
||||
<input type="hidden" name="action" value="ad">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputGame2"><?php echo $sprache->game2;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputGame2" name="shorten">
|
||||
<?php foreach ($table as $table_row){ ?><option value="<?php echo $table_row['shorten'];?>"><?php echo $sprache->single?>: <?php echo $table_row['description'];?></option><?php } ?>
|
||||
<?php foreach ($table2 as $table_row2){ ?><option value="<?php echo $table_row2['qstat'];?>"><?php echo $sprache->multi?>: <?php echo $table_row2['description'];?></option><?php } ?>
|
||||
<?php foreach ($table as $table_row){ ?><option value="<?php echo $table_row['shorten'];?>" <?php if($table_row['shorten']==$shorten) echo 'selected="selected"';?>><?php echo $sprache->single?>: <?php echo $table_row['description'];?></option><?php } ?>
|
||||
<?php foreach ($table2 as $table_row2){ ?><option value="<?php echo $table_row2['qstat'];?>" <?php if($table_row2['qstat']==$shorten) echo 'selected="selected"';?>><?php echo $sprache->multi?>: <?php echo $table_row2['description'];?></option><?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -35,7 +56,7 @@
|
||||
<div class="controls">
|
||||
<select id="inputProtect" name="paddon">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="Y" <?php if($paddon=='Y') echo 'selected="selected"';?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -44,52 +65,52 @@
|
||||
<div class="controls">
|
||||
<select id="inputType" name="type">
|
||||
<option value="tool"><?php echo $sprache->tool;?></option>
|
||||
<option value="map"><?php echo $sprache->map;?></option>
|
||||
<option value="map" <?php if($type=='map') echo 'selected="selected"';?>><?php echo $sprache->map;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputAddon"><?php echo $sprache->addon;?></label>
|
||||
<div class="controls"><input id="inputAddon" type="text" name="addon" value=""></div>
|
||||
<div class="controls"><input id="inputAddon" type="text" name="addon" value="<?php echo $addon;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputAddon2"><?php echo $sprache->addon2;?></label>
|
||||
<div class="controls"><input id="inputAddon2" type="text" name="menudescription" value=""></div>
|
||||
<div class="controls"><input id="inputAddon2" type="text" name="menudescription" value="<?php echo $menudescription;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<div class="controls">
|
||||
<select id="inputActive" name="active">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="N" <?php if($active=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputFolders"><?php echo $sprache->folders;?></label>
|
||||
<div class="controls"><input id="inputFolders" type="text" name="folder" value=""></div>
|
||||
<div class="controls"><input id="inputFolders" type="text" name="folder" value="<?php echo $folder;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><?php foreach ($foundlanguages as $array) echo '<label class="checkbox inline">'.$array['checkbox'].'<img src="images/flags/16_'.$array['lang'].'.png" alt="Flag: '.$array['lang'].'.png"/></label>';?></div>
|
||||
<div class="controls"><?php foreach ($foundlanguages as $array) echo '<label class="checkbox inline">'.$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="control-group <?php echo $array['display'];?>">
|
||||
<label class="control-label" for="inputLangs-<?php echo $array['lang'];?>"><img src="images/flags/16_<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<label class="control-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>
|
||||
<div class="controls"><textarea id="inputLangs-<?php echo $array['lang'];?>" name="description_<?php echo $array['lang'];?>"></textarea></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputConfigs"><?php echo $sprache->configs;?></label>
|
||||
<div class="controls"><textarea id="inputConfigs" rows="5" name="configs"></textarea></div>
|
||||
<div class="controls"><textarea id="inputConfigs" rows="5" name="configs"><?php echo $configs;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputStartCmd"><?php echo $sprache->start;?></label>
|
||||
<div class="controls"><textarea id="inputStartCmd" rows="5" name="cmd"></textarea></div>
|
||||
<div class="controls"><textarea id="inputStartCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputRmCmd"><?php echo $sprache->rmcmd;?></label>
|
||||
<div class="controls"><textarea id="inputRmCmd" rows="5" name="rmcmd"></textarea></div>
|
||||
<div class="controls"><textarea id="inputRmCmd" rows="5" name="rmcmd"><?php echo $rmcmd;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEdit"></label>
|
||||
|
@ -8,7 +8,7 @@
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<?php echo $gsprache->heading_addons;?> <a href="admin.php?w=ad&d=ad"<span class="btn btn-primary btn-mini"><i class="icon-white icon-plus-sign"></i></span></a>
|
||||
<?php echo $sprache->heading_addons;?> <a href="admin.php?w=ad&d=ad"<span class="btn btn-primary btn-mini"><i class="icon-white icon-plus-sign"></i></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
@ -34,6 +34,7 @@
|
||||
<th data-hide="phone"><a href="admin.php?w=ad&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&t=<?php echo $list_type; ?>&g=<?php echo $list_gtype; ?>&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&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&t=<?php echo $list_type; ?>&g=<?php echo $list_gtype; ?>&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&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&t=<?php echo $list_type; ?>&g=<?php echo $list_gtype; ?>&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>
|
||||
@ -46,7 +47,8 @@
|
||||
<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=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ad&d=ex&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-download"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ad&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ad&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -72,11 +72,11 @@
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDescription"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><?php foreach ($foundlanguages as $array) echo '<label class="checkbox inline">'.$array['checkbox'].'<img src="images/flags/16_'.$array['lang'].'.png" alt="Flag: '.$array['lang'].'.png"/></label>';?></div>
|
||||
<div class="controls"><?php foreach ($foundlanguages as $array) echo '<label class="checkbox inline">'.$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="control-group <?php echo $array['display'];?>">
|
||||
<label class="control-label" for="inputLangs-<?php echo $array['lang'];?>"><img src="images/flags/16_<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<label class="control-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>
|
||||
<div class="controls"><textarea id="inputLangs-<?php echo $array['lang'];?>" name="description_<?php echo $array['lang'];?>"><?php echo $array['description'];?></textarea></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
@ -46,7 +46,7 @@
|
||||
<td><?php echo $table_row['id'];?></td>
|
||||
<td><?php echo $table_row['lastCheck'];?></td>
|
||||
<td><?php echo $table_row['lastID'];?></td>
|
||||
<td><a href="admin.php?w=ui&d=dl&id=<?php echo $table_row['id'];?>"><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ui&d=dl&id=<?php echo $table_row['id'];?>"><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ui&d=md&id=<?php echo $table_row['id'];?>"><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -44,7 +44,7 @@
|
||||
<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['twitter'];?></td>
|
||||
<td><a href="admin.php?w=fe&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=fe&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=fe&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -52,7 +52,7 @@
|
||||
<td><a href="admin.php?w=gs&d=st&id=<?php echo $table_row['serverid'];?>&r=gs"><span class="btn btn-mini btn-danger"><i class="icon-white icon-stop"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=rs&id=<?php echo $table_row['serverid'];?>&r=gs"><span class="btn btn-mini btn-success"><i class="icon-white icon-play"></i></span></a></td>
|
||||
<td><?php echo $table_row['jobPending'];?></td>
|
||||
<td><a href="admin.php?w=gs&d=dl&id=<?php echo $table_row['serverid'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=dl&id=<?php echo $table_row['serverid'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=md&id=<?php echo $table_row['serverid'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -35,7 +35,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<p class="navbar-text pull-left">
|
||||
<?php foreach ($languages as $language){ echo '<a href="userpanel.php?l='.$language.'"><img src="images/flags/16_'.$language.'.png" alt="Flag: '.$language.'.png."></a>';} ?>
|
||||
<?php foreach ($languages as $language){ echo '<a href="userpanel.php?l='.$language.'"><img src="images/flags/'.$language.'.png" alt="Flag: '.$language.'.png."></a>';} ?>
|
||||
</p>
|
||||
<div class="nav-collapse collapse">
|
||||
<ul class="nav">
|
||||
|
@ -7,19 +7,40 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<form class="form-horizontal" action="admin.php?w=im&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="control-group">
|
||||
<label class="control-label" for="inputUpload"><?php echo $gsprache->import;?></label>
|
||||
<div class="controls">
|
||||
<input id="inputUpload" type="file" name="file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary pull-right" id="inputEdit" type="submit"><i class="icon-upload icon-white"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<form class="form-horizontal" action="admin.php?w=im&d=ad&r=im" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="token" value="<?php echo $token;?>">
|
||||
<input type="hidden" name="action" value="ad">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputUpdates">Autoupdate</label>
|
||||
<div class="controls">
|
||||
<select class="span12" id="inputUpdates" name="updates">
|
||||
<option value="1">Vendor + Rsync/FTP Sync</option>
|
||||
<option value="2">Vendor</option>
|
||||
<option value="4">Rsync/FTP Sync</option>
|
||||
<option value="3"><?php echo $gsprache->no;?></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>
|
||||
@ -28,21 +49,21 @@
|
||||
<div class="controls">
|
||||
<select class="span12" id="inputSteamGame" name="steamgame">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y">HLDSUpdater</option>
|
||||
<option value="S">SteamCmd</option>
|
||||
<option value="Y" <?php if($steamgame=='Y') echo 'selected="selected"';?>>HLDSUpdater</option>
|
||||
<option value="S" <?php if($steamgame=='S') echo 'selected="selected"';?>>SteamCmd</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputSteamAppID">Steam appID</label>
|
||||
<div class="controls"><input class="span12" id="inputSteamAppID" type="text" name="appID" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputSteamAppID" type="text" name="appID" value="<?php echo $appID;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputMods"><?php echo $sprache->mods;?></label>
|
||||
<div class="controls">
|
||||
<select class="span12" id="inputMods" name="gamemod" onchange="textdrop('mods');">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="N" <?php if($gamemod=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -51,7 +72,7 @@
|
||||
<div class="controls">
|
||||
<select class="span12" id="inputMods2" name="gamemod2">
|
||||
<?php foreach ($table as $table_row) { ?>
|
||||
<option value="<?php echo $table_row['shorten'];?>"><?php echo $table_row['shorten'];?></option>
|
||||
<option value="<?php echo $table_row['shorten'];?>" <?php if($shorten==$table_row['shorten']) echo 'selected="selected"';?>><?php echo $table_row['shorten'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
@ -61,13 +82,13 @@
|
||||
<div class="controls">
|
||||
<select class="span12" id="inputProtect" name="protected">
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="N" <?php if($protected=='N') echo 'selected="selected"';?>><?php echo $gsprache->no;?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputShorten"><?php echo $sprache->abkuerz;?></label>
|
||||
<div class="controls"><input class="span12" id="inputShorten" type="text" name="shorten" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputShorten" type="text" name="shorten" value="<?php echo $shorten;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputQstat"><?php echo $sprache->qstat;?></label>
|
||||
@ -79,83 +100,83 @@
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputDesc"><?php echo $sprache->description;?></label>
|
||||
<div class="controls"><input class="span12" id="inputDesc" type="text" name="description" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputDesc" type="text" name="description" value="<?php echo $description;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputBin"><?php echo $sprache->bin;?></label>
|
||||
<div class="controls"><input class="span12" id="inputBin" type="text" name="gamebinary" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputBin" type="text" name="gamebinary" value="<?php echo $gamebinary;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputBinDir"><?php echo $sprache->bin_folder;?>Binary Dir</label>
|
||||
<div class="controls"><input class="span12" id="inputBinDir" type="text" name="binarydir" value=""></div>
|
||||
<label class="control-label" for="inputBinDir"><?php echo $sprache->bin_folder;?></label>
|
||||
<div class="controls"><input class="span12" id="inputBinDir" type="text" name="binarydir" value="<?php echo $binarydir;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputModfolder"><?php echo $sprache->mod;?></label>
|
||||
<div class="controls"><input class="span12" id="inputModfolder" type="text" name="modfolder" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputModfolder" type="text" name="modfolder" value="<?php echo $modfolder;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputMap"><?php echo $sprache->startmap;?></label>
|
||||
<div class="controls"><input class="span12" id="inputMap" type="text" name="map" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputMap" type="text" name="map" value="<?php echo $map;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputMapgroup"><?php echo $sprache->startmapgroup;?></label>
|
||||
<div class="controls"><input class="span12" id="inputMapgroup" type="text" name="mapGroup" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputMapgroup" type="text" name="mapGroup" value="<?php echo $mapGroup;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputQstatParam"><?php echo $sprache->qstatpassparam;?></label>
|
||||
<div class="controls"><input class="span12" id="inputQstatParam" type="text" name="qstatpassparam" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputQstatParam" type="text" name="qstatpassparam" value="<?php echo $qstatpassparam;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPortMax"><?php echo $sprache->portMax;?></label>
|
||||
<div class="controls">
|
||||
<select class="span12" id="inputPortMax" name="portMax">
|
||||
<option>1</option>
|
||||
<option>2</option>
|
||||
<option>3</option>
|
||||
<option>4</option>
|
||||
<option>5</option>
|
||||
<option <?php if($portMax==2) echo 'selected="selected"';?>>2</option>
|
||||
<option <?php if($portMax==3) echo 'selected="selected"';?>>3</option>
|
||||
<option <?php if($portMax==4) echo 'selected="selected"';?>>4</option>
|
||||
<option <?php if($portMax==5) echo 'selected="selected"';?>>5</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPortStep"><?php echo $sprache->portStep;?></label>
|
||||
<div class="controls"><input class="span12" id="inputPortStep" type="text" name="portStep" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputPortStep" type="text" name="portStep" value="<?php echo $portStep;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPort1"><?php echo $sprache->port;?> 1</label>
|
||||
<div class="controls"><input class="span12" id="inputPort1" type="text" name="portOne" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputPort1" type="text" name="portOne" value="<?php echo $portOne;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPort2"><?php echo $sprache->port;?> 2</label>
|
||||
<div class="controls"><input class="span12" id="inputPort2" type="text" name="portTwo" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputPort2" type="text" name="portTwo" value="<?php echo $portTwo;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPort3"><?php echo $sprache->port;?> 3</label>
|
||||
<div class="controls"><input class="span12" id="inputPort3" type="text" name="portThree" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputPort3" type="text" name="portThree" value="<?php echo $portThree;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPort4"><?php echo $sprache->port;?> 4</label>
|
||||
<div class="controls"><input class="span12" id="inputPort4" type="text" name="portFour" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputPort4" type="text" name="portFour" value="<?php echo $portFour;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPort5"><?php echo $sprache->port;?> 5</label>
|
||||
<div class="controls"><input class="span12" id="inputPort5" type="text" name="portFive" value=""></div>
|
||||
<div class="controls"><input class="span12" id="inputPort5" type="text" name="portFive" value="<?php echo $portFive;?>"></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputCmd"><?php echo $sprache->start;?></label>
|
||||
<div class="controls"><textarea class="span12" id="inputCmd" rows="5" name="cmd"></textarea></div>
|
||||
<div class="controls"><textarea class="span12" id="inputCmd" rows="5" name="cmd"><?php echo $cmd;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputConfigs"><?php echo $sprache->configs;?></label>
|
||||
<div class="controls"><textarea class="span12" id="inputConfigs" rows="5" name="configs"></textarea></div>
|
||||
<div class="controls"><textarea class="span12" id="inputConfigs" rows="5" name="configs"><?php echo $configs;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputConfigsEdit"><?php echo $sprache->configedit;?></label>
|
||||
<div class="controls"><textarea class="span12" id="inputConfigsEdit" rows="5" name="configedit"></textarea></div>
|
||||
<div class="controls"><textarea class="span12" id="inputConfigsEdit" rows="5" name="configedit"><?php echo $configedit;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputModsCmd"><?php echo $sprache->modcmds;?></label>
|
||||
<div class="controls"><textarea class="span12" id="inputModsCmd" rows="5" name="modcmds"></textarea></div>
|
||||
<div class="controls"><textarea class="span12" id="inputModsCmd" rows="5" name="modcmds"><?php echo $modcmds;?></textarea></div>
|
||||
</div>
|
||||
<!--<div class="control-group">
|
||||
<label class="control-label" for="inputIptables"><?php echo $sprache->iptables;?></label>
|
||||
@ -163,7 +184,7 @@
|
||||
</div>-->
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputProtectedSaveCFGs"><?php echo $sprache->protectedSaveCFGs;?></label>
|
||||
<div class="controls"><textarea class="span12" id="inputProtectedSaveCFGs" rows="5" name="protectedSaveCFGs"></textarea></div>
|
||||
<div class="controls"><textarea class="span12" id="inputProtectedSaveCFGs" rows="5" name="protectedSaveCFGs"><?php echo $protectedSaveCFGs;?></textarea></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputEdit"></label>
|
||||
|
@ -31,6 +31,7 @@
|
||||
<th data-class="expand"><a href="admin.php?w=im&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ad') { echo 'dd'; } else { echo 'ad'; } ?>"><?php echo $sprache->game;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=im&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='di') { echo 'ai'; } else { echo 'di'; } ?>">ID</a></th>
|
||||
<th data-hide="phone"><a href="admin.php?w=im&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='as') { echo 'ds'; } else { echo 'as'; } ?>"><?php echo $sprache->abkuerz;?></a></th>
|
||||
<th><?php echo $gsprache->export;?></a></th>
|
||||
<th><?php echo $gsprache->del;?></a></th>
|
||||
<th><?php echo $gsprache->mod;?></a></th>
|
||||
</tr>
|
||||
@ -41,7 +42,8 @@
|
||||
<td><img src="images/games/icons/<?php echo $table_row['shorten'];?>.png" alt="<?php echo $table_row['shorten'];?>" width="16"/> <?php echo $table_row['description'];?></td>
|
||||
<td><?php echo $table_row['id'];?></td>
|
||||
<td><?php echo $table_row['shorten'];?></td>
|
||||
<td><a href="admin.php?w=im&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=im&d=ex&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-download"></i></span></a></td>
|
||||
<td><a href="admin.php?w=im&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=im&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -52,8 +52,8 @@
|
||||
<td><?php echo $table_row['lenderip'];?></td>
|
||||
<td>
|
||||
<form method="post" action="admin.php?w=le&r=le" onsubmit="return confirm('<?php echo $gsprache->sure;?>');">
|
||||
<input type="hidden" name="id" value="<?php echo $table_row['id'];?>" />
|
||||
<input type="image" name="delete" src="images/16_delete.png" />
|
||||
<input type="hidden" name="id" value="<?php echo $table_row['id'];?>">
|
||||
<button class="btn btn-small btn-primary"><i class="icon-white icon-remove-sign"></i></button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -41,7 +41,7 @@
|
||||
<td><i class="<?php if($table_row['active']=='Y') echo 'icon-ok'; else echo 'icon-ban-circle';?>"></i></td>
|
||||
<td><?php echo $table_row['description'];?></td>
|
||||
<td><?php foreach($table_row['statusList'] as $k=>$v){ echo ($v=='16_installing') ? '<i class="icon-refresh"></i>'.$k.' ' : '<i class="icon-ok"></i>'.$k.' '; };?></td>
|
||||
<td><a href="admin.php?w=ma&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ma&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ma&d=ad&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-plus-sign"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -50,7 +50,7 @@
|
||||
<td><?php echo $table_row['names'];?></td>
|
||||
<td><a href="<?php echo $table_row['interface'];?>" target="_blank"><?php echo $table_row['ip'];?></a></td>
|
||||
<td><?php echo $table_row['jobPending'];?></td>
|
||||
<td><a href="admin.php?w=my&d=dd&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=my&d=dd&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=my&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -61,7 +61,7 @@
|
||||
<?php foreach($table_row['server'] as $row){ ?>
|
||||
<tr class="<?php if($row['status']==1) echo 'success'; else if($row['status']==2) echo 'warning'; else echo 'error';?>">
|
||||
<td><?php echo $row['address'];?></td>
|
||||
<td><a href="admin.php?w=my&d=dd&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=my&d=dd&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=my&d=md&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
@ -74,7 +74,7 @@
|
||||
<td><i class="<?php if($table_row['active']=='Y') echo 'icon-ok'; else echo 'icon-ban-circle';?>"></i></td>
|
||||
<td><a href="<?php echo $table_row['interface'];?>" target="_blank"><?php echo $table_row['interface'];?></a></td>
|
||||
<td><?php echo $table_row['dbcount']."/".$table_row['max_databases'];?></td>
|
||||
<td><a href="admin.php?w=my&d=ds&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=my&d=ds&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=my&d=ms&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -49,7 +49,7 @@
|
||||
<td onclick="textdrop('<?php echo $table_row['commentID'];?>');"><?php echo $table_row['date'];?></td>
|
||||
<td onclick="textdrop('<?php echo $table_row['commentID'];?>');"><?php echo $table_row['moderated'];?></td>
|
||||
<td onclick="textdrop('<?php echo $table_row['commentID'];?>');"><?php echo $table_row['spam'];?></td>
|
||||
<td><a href="admin.php?w=pc&d=dl&r=pc&id=<?php echo $table_row['commentID'];?>"onclick="return confirm('<?php echo $gsprache->sure;?>');"><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=pc&d=dl&r=pc&id=<?php echo $table_row['commentID'];?>"onclick="return confirm('<?php echo $gsprache->sure;?>');"><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=pc&d=md&id=<?php echo $table_row['commentID'];?>"><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<label class="checkbox inline">
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" checked> <img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" checked> <img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@ -58,7 +58,7 @@
|
||||
<div id="<?php echo $lg;?>" class="row-fluid">
|
||||
<div class="span8">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<div class="controls">
|
||||
<input class="span11" type="text" name="title[<?php echo $lg;?>]" id="title[<?php echo $lg;?>]" value="">
|
||||
</div>
|
||||
|
@ -48,7 +48,7 @@
|
||||
<td><?php echo $table_row['released'];?></td>
|
||||
<td><?php echo $table_row['author'];?></td>
|
||||
<td><?php echo $table_row['date'];?></td>
|
||||
<td><a href="admin.php?w=pn&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=pn&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=pn&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -41,7 +41,7 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<label class="checkbox inline">
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" <?php if($table[$lg]['text']!=false) echo 'checked';?>> <img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" <?php if($table[$lg]['text']!=false) echo 'checked';?>> <img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@ -59,7 +59,7 @@
|
||||
<div id="<?php echo $lg;?>" class="row-fluid <?php if($table[$lg]['text']==false) echo 'display_none';?>">
|
||||
<div class="span8">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<div class="controls">
|
||||
<input class="span11" type="text" name="title[<?php echo $lg;?>]" id="title[<?php echo $lg;?>]" value="<?php echo $table[$lg]['title'];?>">
|
||||
</div>
|
||||
|
@ -40,7 +40,7 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<label class="checkbox inline">
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" checked> <img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" checked> <img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@ -58,7 +58,7 @@
|
||||
<div id="<?php echo $lg;?>" class="row-fluid">
|
||||
<div class="span8">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<div class="controls">
|
||||
<input class="span11" type="text" name="title[<?php echo $lg;?>]" id="title[<?php echo $lg;?>]" value="">
|
||||
</div>
|
||||
|
@ -53,7 +53,7 @@
|
||||
<td><?php echo $table_row['author'];?></td>
|
||||
<td><?php echo $table_row['date'];?></td>
|
||||
<td><label class="form-inline"><input class="input-mini" type="number" name="pageid[<?php echo $table_row['id'];?>]" value="<?php echo $table_row['sort'];?>" class="page_order" ></label></td>
|
||||
<td><a href="admin.php?w=pp&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=pp&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=pp&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -41,7 +41,7 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<label class="checkbox inline">
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" <?php if($table[$lg]['text']!=false) echo 'checked';?>> <img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
<input id="checkboxLanguage-<?php echo $lg;?>" type="checkbox" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" <?php if($table[$lg]['text']!=false) echo 'checked';?>> <img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@ -59,7 +59,7 @@
|
||||
<div id="<?php echo $lg;?>" class="row-fluid <?php if($table[$lg]['text']==false) echo 'display_none';?>">
|
||||
<div class="span8">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<label class="control-label" for="title[<?php echo $lg;?>]"><img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<div class="controls">
|
||||
<input class="span11" type="text" name="title[<?php echo $lg;?>]" id="title[<?php echo $lg;?>]" value="<?php echo $table[$lg]['title'];?>">
|
||||
</div>
|
||||
|
@ -151,14 +151,14 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<label class="checkbox inline">
|
||||
<input type="checkbox" id="inlineCheckbox<?php echo $array['lang'];?>" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" <?php if($about_text[$lg]!=false) echo 'checked';?>> <img src="images/flags/16_<?php echo $lg;?>.png" alt="Flag: <?php echo $lg;?>.png" class="inline">
|
||||
<input type="checkbox" id="inlineCheckbox<?php echo $array['lang'];?>" name="language[]" value="<?php echo $lg;?>" onclick="textdrop('<?php echo $lg;?>');" <?php if($about_text[$lg]!=false) echo 'checked';?>> <img src="images/flags/<?php echo $lg;?>.png" alt="Flag: <?php echo $lg;?>.png" class="inline">
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<div id="<?php echo $lg;?>" class="control-group <?php if($about_text[$lg]==false) echo 'display_none';?>">
|
||||
<label class="control-label" for="inputAbout<?php echo $lg;?>"><img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<label class="control-label" for="inputAbout<?php echo $lg;?>"><img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<div class="controls">
|
||||
<textarea id="inputAbout<?php echo $lg;?>" name="about[<?php echo $lg;?>]" rows="5"><?php echo $about_text[$lg];?></textarea>
|
||||
</div>
|
||||
@ -192,14 +192,14 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<label class="checkbox inline">
|
||||
<input type="checkbox" id="inlineCheckboxTou<?php echo $array['lang'];?>" name="touLanguages[]" value="<?php echo $lg;?>" onclick="textdrop('tou_<?php echo $lg;?>');" <?php if($tous[$lg]!=false) echo 'checked';?>> <img src="images/flags/16_<?php echo $lg;?>.png" alt="Flag: <?php echo $lg;?>.png" class="inline">
|
||||
<input type="checkbox" id="inlineCheckboxTou<?php echo $array['lang'];?>" name="touLanguages[]" value="<?php echo $lg;?>" onclick="textdrop('tou_<?php echo $lg;?>');" <?php if($tous[$lg]!=false) echo 'checked';?>> <img src="images/flags/<?php echo $lg;?>.png" alt="Flag: <?php echo $lg;?>.png" class="inline">
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ($lang_avail as $lg) { ?>
|
||||
<div id="tou_<?php echo $lg;?>" class="control-group <?php if($tous[$lg]==false) echo 'display_none';?>">
|
||||
<label class="control-label" for="inputTou<?php echo $lg;?>"><img src="images/flags/16_<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<label class="control-label" for="inputTou<?php echo $lg;?>"><img src="images/flags/<?php echo $lg;?>.png" alt="<?php echo $lg;?>"/></label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputTou<?php echo $lg;?>" name="tou[<?php echo $lg;?>]" value="<?php echo $tous[$lg];?>" placeholder="http://domain.tld/tou.pdf">
|
||||
</div>
|
||||
|
@ -48,7 +48,7 @@
|
||||
<td><?php if(isid($table_row['userID'],10)) { ?><a href="switch.php?id=<?php echo $table_row['userID'];?>"><?php echo $table_row['cname'];?></a><?php }?></td>
|
||||
<td><?php echo $table_row['jobPending'];?></td>
|
||||
<td><a href="admin.php?w=rh&d=ri&id=<?php echo $table_row['id'];?>"><span class="btn btn-mini btn-primary"><i class="icon-white icon-refresh"></i></span></a></td>
|
||||
<td><a href="admin.php?w=rh&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=rh&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=rh&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -33,7 +33,7 @@
|
||||
<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['description'];?></td>
|
||||
<td><a href="admin.php?w=rd&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=rd&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=rd&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -33,7 +33,7 @@
|
||||
<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['description'];?></td>
|
||||
<td><a href="admin.php?w=rp&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=rp&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=rp&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -33,7 +33,7 @@
|
||||
<td><?php echo $table_row['id'];?></td>
|
||||
<td><?php echo $table_row['bitversion'];?></td>
|
||||
<td><?php echo $table_row['distro'];?></td>
|
||||
<td><a href="admin.php?w=ot&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ot&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=ot&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -35,7 +35,7 @@
|
||||
<td><i class="<?php if($table_row['active']=='Y') echo 'icon-ok'; else echo 'icon-ban-circle';?>"></i></td>
|
||||
<td><?php echo $table_row['description'];?></td>
|
||||
<td><?php echo $table_row['installedserver'];?></td>
|
||||
<td><a href="admin.php?w=vh&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=vh&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=vh&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -50,7 +50,7 @@
|
||||
<td><?php echo $table_row['status'];?></td>
|
||||
<td><?php echo $table_row['jobPending'];?></td>
|
||||
<td><a href="admin.php?w=vs&d=va&id=<?php echo $table_row['id'];?>"><span class="btn btn-mini btn-primary"><i class="icon-white icon-refresh"></i></span></a></td>
|
||||
<td><a href="admin.php?w=vs&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=vs&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=vs&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -67,7 +67,7 @@
|
||||
<td><a href="admin.php?w=gs&d=ri&id=<?php echo $row['id'];?>"><span class="btn btn-mini btn-warning"><i class="icon-white icon-refresh"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=st&id=<?php echo $row['id'];?>&r=gs"><span class="btn btn-mini btn-danger"><i class="icon-white icon-stop"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=rs&id=<?php echo $row['id'];?>&r=gs"><span class="btn btn-mini btn-success"><i class="icon-white icon-play"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=dl&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=dl&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=gs&d=md&id=<?php echo $row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
@ -80,7 +80,7 @@
|
||||
<td><i class="<?php if($table_row['active']=='Y') echo 'icon-ok'; else echo 'icon-ban-circle';?>"></i></td>
|
||||
<td><?php echo $table_row['installedserver']."/".$table_row['maxserver'];?></td>
|
||||
<td><?php echo $table_row['description'];?></td>
|
||||
<td><?php if($reseller_id==0 and $pa['roots'] and $table_row['deleteAllowed']) { ?><a href="admin.php?w=ro&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a><?php } ?></td>
|
||||
<td><?php if($reseller_id==0 and $pa['roots'] and $table_row['deleteAllowed']) { ?><a href="admin.php?w=ro&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></span></a><?php } ?></td>
|
||||
<td><a href="admin.php?w=ro&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -63,7 +63,7 @@
|
||||
<td><?php echo $r['id'];?></td>
|
||||
<td><?php echo $r['type'];?></td>
|
||||
<td><?php echo ($r['owner']!='')?$r['owner']:$r['name'];?></td>
|
||||
<td><a href="admin.php<?php echo $r['delete'];?>"><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php<?php echo $r['delete'];?>"><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php<?php echo $r['edit'];?>"><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -223,14 +223,14 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($foundlanguages as $array) { ?>
|
||||
<label class="checkbox inline">
|
||||
<input type="checkbox" id="inlineCheckbox<?php echo $array['lang'];?>" name="languages[]" value="<?php echo $array['lang'];?>" onclick="textdrop('<?php echo $array['lang'];?>');" <?php if ($array['style']!=0) echo 'checked';?>> <img src="images/flags/16_<?php echo $array['lang'];?>.png" alt="Flag: <?php echo $array['lang'];?>.png" class="inline"/>
|
||||
<input type="checkbox" id="inlineCheckbox<?php echo $array['lang'];?>" name="languages[]" value="<?php echo $array['lang'];?>" onclick="textdrop('<?php echo $array['lang'];?>');" <?php if ($array['style']!=0) echo 'checked';?>> <img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: <?php echo $array['lang'];?>.png" class="inline"/>
|
||||
</label>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ($foundlanguages as $array) { ?>
|
||||
<div id="<?php echo $array['lang'];?>" class="control-group <?php if ($array['style']==0) echo 'display_none';?>">
|
||||
<label class="control-label" for="inputImprint<?php echo $array['lang'];?>"><img src="images/flags/16_<?php echo $array['lang'];?>.png" alt="Flag: <?php echo $array['lang'];?>.png"/></label>
|
||||
<label class="control-label" for="inputImprint<?php echo $array['lang'];?>"><img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: <?php echo $array['lang'];?>.png"/></label>
|
||||
<div class="controls">
|
||||
<textarea class="span10" id="inputImprint<?php echo $array['lang'];?>" name="description_<?php echo $array['lang'];?>" rows="8"><?php echo $array['imprint'];?></textarea>
|
||||
</div>
|
||||
|
@ -60,14 +60,14 @@
|
||||
<div class="controls">
|
||||
<?php foreach ($foundlanguages as $array){ ?>
|
||||
<label class="checkbox inline">
|
||||
<?php echo $array['checkbox'];?> <img src="images/flags/16_<?php echo $array['lang'];?>.png" alt="Flag: <?php echo $array['lang'];?>.png"/>
|
||||
<?php echo $array['checkbox'];?> <img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: <?php echo $array['lang'];?>.png"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ($foundlanguages as $array) { ?>
|
||||
<div id="<?php echo $array['lang'];?>" class="control-group<?php echo $array['class'];?>">
|
||||
<label class="control-label" for="inputMenuName<?php echo $array['lang'];?>"><img src="images/flags/16_<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<label class="control-label" for="inputMenuName<?php echo $array['lang'];?>"><img src="images/flags/<?php echo $array['lang'];?>.png" alt="Flag: 16_<?php echo $array['lang'];?>'.png"/></label>
|
||||
<div class="controls">
|
||||
<input id="inputMenuName<?php echo $array['lang'];?>" type="text" name="menu[<?php echo $array['lang'];?>]" value="" pattern="^[a-zA-Z0-9-_ ]{1,255}$">
|
||||
</div>
|
||||
|
@ -43,7 +43,7 @@
|
||||
<td><i class="<?php if($table_row['active']=='Y') echo 'icon-ok'; else echo 'icon-ban-circle';?>"></i></td>
|
||||
<td><?php echo $table_row['id'];?></td>
|
||||
<td><?php echo $table_row['type'];?></td>
|
||||
<td><a href="admin.php?w=cc&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=cc&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-danger"><i class="icon-white icon-remove-sign"></i></span></a></td>
|
||||
<td><a href="admin.php?w=cc&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-mini btn-primary"><i class="icon-white icon-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|