chore: remove 22 stray backup files (.bak/.BAK/.orig/.backup); update CHANGELOG and timestamp
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/fe14a5ef-8993-48c4-a867-17971b58ac92 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
02fd03539e
commit
d4332808e6
24 changed files with 5 additions and 9886 deletions
|
|
@ -1,6 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## 2026-05-01 (latest)
|
||||
## 2026-05-02 (latest)
|
||||
- Removed 22 stray backup/duplicate files left by manual editing (`.bak`, `.BAK`, `.orig`, `.backup` extensions). Files inside `modules/config_games/server_configs/backup/` (intentional runtime backup folder) were left untouched.
|
||||
|
||||
## 2026-05-01
|
||||
- Changed panel update backup location from `/var/backups/gsp-panel` to `<panel_root>/backups/` so all backups are self-contained inside the panel directory and require no external path or elevated permissions.
|
||||
- Removed stale "Dev Testing" placeholder heading from the panel login page (`index.php`).
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
|
|
@ -1,151 +0,0 @@
|
|||
<script type="text/javascript" src="js/modules/administration.js"></script>
|
||||
<?php
|
||||
/*
|
||||
*
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2018 The OGP Development Team
|
||||
*
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program 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 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
function exec_ogp_module() {
|
||||
global $db, $view, $loggedInUserInfo;
|
||||
|
||||
$search_field = (isset($_GET['search']) && !empty($_GET['search'])) ? $_GET['search'] : false;
|
||||
$p = (isset($_GET['page']) && (int)$_GET['page'] > 0) ? (int)$_GET['page'] : 1;
|
||||
$l = (isset($_GET['limit']) && (int)$_GET['limit'] > 0) ? (int)$_GET['limit'] : 10;
|
||||
|
||||
if(hasValue($loggedInUserInfo) && is_array($loggedInUserInfo) && $loggedInUserInfo["users_page_limit"] && !(isset($_GET['limit']) and !empty($_GET['limit']))){
|
||||
$l = $loggedInUserInfo["users_page_limit"];
|
||||
}
|
||||
|
||||
echo "<h2>".get_lang('watch_logger')."</h2>";
|
||||
|
||||
$logs = $db->read_logger($p, $l, $search_field);
|
||||
|
||||
if (empty($logs) && !empty($search_field)) {
|
||||
print_failure(get_lang_f('no_results_found', htmlentities($search_field)));
|
||||
$view->refresh("?m=administration&p=watch_logger", 5);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
<!-- Search, Empty Logger, and Paging Options Table -->
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td style="width: 50%; vertical-align: middle; text-align: left;">
|
||||
<form action="home.php" method="GET" style="display: inline;">
|
||||
<input type ="hidden" name="m" value="administration" />
|
||||
<input type ="hidden" name="p" value="watch_logger" />
|
||||
<input name="search" type="text" id="search" value="<?php if(hasValue($search_field)){ echo $search_field; } ?>" />
|
||||
<input type="submit" value="<?php echo get_lang('search'); ?>" />
|
||||
</form>
|
||||
<form method=POST style="display: inline;">
|
||||
<input type="submit" name="empty_logger" value="<?php print_lang('empty_logger'); ?>" >
|
||||
</form>
|
||||
</td>
|
||||
<td style="width: 50%; vertical-align: middle; text-align: right;">
|
||||
<?php echo print_lang('view'); ?> <a href='?m=administration&p=watch_logger&limit=10'>10</a> / <a href='?m=administration&p=watch_logger&limit=20'>20</a> / <a href='?m=administration&p=watch_logger&limit=50'>50</a> / <a href='?m=administration&p=watch_logger&limit=100'>100</a> <?php echo print_lang('per_page'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- END Search, Empty Logger, and Paging Options Table -->
|
||||
|
||||
<table id="servermonitor" class="tablesorter" data-sortlist="[[1,1]]">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:16px;background-position: center;" class="sorter-false"></th>
|
||||
<th class="dateFormat-ddmmyyyy"><?php print_lang('when'); ?></th>
|
||||
<th><?php print_lang('who'); ?></th>
|
||||
<th><?php print_lang('where'); ?></th>
|
||||
<th><?php print_lang('what'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if( isset( $_POST['log_id'] ) ){
|
||||
$db->del_logger_log($_POST['log_id']);
|
||||
$newLogs = array();
|
||||
foreach($logs as $log){
|
||||
if($log['log_id'] != $_POST['log_id']){
|
||||
$newLogs[] = $log;
|
||||
}
|
||||
}
|
||||
$logs = $newLogs;
|
||||
}
|
||||
|
||||
if( isset( $_POST['empty_logger'] ) ){
|
||||
$db->empty_logger();
|
||||
$logs = false;
|
||||
}
|
||||
|
||||
if($logs)
|
||||
{
|
||||
foreach($logs as $log)
|
||||
{
|
||||
$user = $db->getUserById($log['user_id']);
|
||||
$when = $log['date'];
|
||||
$who = $user['users_login'];
|
||||
$where = $log['ip'];
|
||||
$what = $log['message'];
|
||||
$log_id = $log['log_id'];
|
||||
// Template
|
||||
echo "<tr class='maintr'>\n".
|
||||
"<td class='collapsible'>\n".
|
||||
"<center>\n".
|
||||
"<form method=POST>\n".
|
||||
"<input type='hidden' name='log_id' value='$log_id' />\n".
|
||||
"<input type='image' name='remove_log' onclick=\"this.form.submit();\" src='modules/administration/images/remove.gif' />\n".
|
||||
"</form>\n".
|
||||
"</center>\n".
|
||||
"</td>\n".
|
||||
"<td class='collapsible'>$when</td>\n".
|
||||
"<td class='collapsible'>$who</td>\n".
|
||||
"<td class='collapsible'>$where</td>\n".
|
||||
"<td class='collapsible'>$what</td>\n".
|
||||
"</tr>\n";
|
||||
|
||||
echo "<tr class='expand-child'>\n".
|
||||
"<td colspan='5' >\n".
|
||||
"<table>\n";
|
||||
|
||||
$show_values = array( "users_login", "users_lang", "users_role", "users_email", "user_expires");
|
||||
foreach($user as $key => $value)
|
||||
{
|
||||
if( in_array( $key, $show_values ) )
|
||||
echo "<tr><td>".str_replace("_", "", substr($key,5))."</td><td>$value</td></tr>\n";
|
||||
}
|
||||
echo "</tr>\n".
|
||||
"</td>\n".
|
||||
"</table>\n";
|
||||
}
|
||||
}
|
||||
echo "</tbody>\n";
|
||||
echo "<tfoot style='border:1px solid grey;'></tfoot>\n";
|
||||
echo "</table>\n";
|
||||
$count_logs = $db->get_logger_count($search_field);
|
||||
|
||||
if (isset($_GET['search']) && !empty($_GET['search'])) {
|
||||
$uri = '?m=administration&p=watch_logger&search='.$_GET['search'].'&limit='.$l.'&page=';
|
||||
} else {
|
||||
$uri = '?m=administration&p=watch_logger&limit='.$l.'&page=';
|
||||
}
|
||||
echo paginationPages($count_logs[0]['total'], $p, $l, $uri, 3, 'watchLogger');
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<?php
|
||||
###############################################
|
||||
# Website Database Configuration
|
||||
# This file contains the database connection
|
||||
# settings for the _website standalone site.
|
||||
#
|
||||
# These settings should match the panel's
|
||||
# database configuration in includes/config.inc.php
|
||||
###############################################
|
||||
$db_host="localhost";
|
||||
$db_user="localuser";
|
||||
$db_pass="password123";
|
||||
$db_name="panel";
|
||||
$table_prefix="ogp_";
|
||||
$db_type="mysql";
|
||||
// Optional: base URL used by admin pages to build absolute image previews.
|
||||
// Leave empty to prefer relative paths (local folder).
|
||||
// To enable production base URL, uncomment and set it to your site, e.g.:
|
||||
// $SITE_BASE_URL = 'https://gameservers.world/';
|
||||
$SITE_BASE_URL = '';
|
||||
|
||||
// Normalize: ensure either empty or ends without trailing slash (we use join_base to handle joining)
|
||||
$SITE_BASE_URL = trim((string)$SITE_BASE_URL);
|
||||
|
||||
// Site-wide background image (relative to site root). Change to your preferred background.
|
||||
$SITE_BACKGROUND = 'images/dark.jpg';
|
||||
// Normalize
|
||||
$SITE_BACKGROUND = trim((string)$SITE_BACKGROUND);
|
||||
|
||||
// Data directory for persisted payment webhook JSON files (relative to repo root)
|
||||
$SITE_DATA_DIR = realpath(__DIR__ . '/..') . DIRECTORY_SEPARATOR . 'data';
|
||||
?>
|
||||
|
|
@ -1 +1 @@
|
|||
Last Updated at 1:58pm on 2026-04-23
|
||||
Last Updated at 12:49pm on 2026-02-05
|
||||
|
|
|
|||
|
|
@ -1,166 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>7daystodie_linux64</game_key>
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>7 Days to Die</game_name>
|
||||
<server_exec_name>7DaysToDieServer.x86_64</server_exec_name>
|
||||
<cli_template>-logfile output_log.txt -batchmode -nographics -dedicated -configfile=serverconfig.xml</cli_template>
|
||||
<console_log>output_log.txt</console_log>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<mods>
|
||||
<mod key="7daystodie1">
|
||||
<name>Stable</name>
|
||||
<installer_name>294420</installer_name>
|
||||
<installer_login>anonymous</installer_login>
|
||||
</mod>
|
||||
<mod key="7daystodie2">
|
||||
<name>Unstable build</name>
|
||||
<installer_name>294420</installer_name>
|
||||
<installer_login>anonymous</installer_login>
|
||||
<betaname>latest_experimental</betaname>
|
||||
</mod>
|
||||
</mods>
|
||||
<replace_texts>
|
||||
<text key="port">
|
||||
<default>property</default>
|
||||
<var>ServerPort</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
</text>
|
||||
<text key="home_name">
|
||||
<default>property</default>
|
||||
<var>ServerName</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
</text>
|
||||
<text key="max_players">
|
||||
<default>property</default>
|
||||
<var>ServerMaxPlayerCount</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
</text>
|
||||
<text key="control_password">
|
||||
<default>property</default>
|
||||
<var>ControlPanelPassword</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
</text>
|
||||
<text key="control_password">
|
||||
<default>property</default>
|
||||
<var>TelnetPassword</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
</text>
|
||||
<text key="home_path">
|
||||
<default>(.*)(property\s+name="SaveGameFolder"\s+value=")(.*)(")(.*>)(.*<.*>.*)</default>
|
||||
<var> <${2}%key%/Saves${4}/>${6}</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
</replace_texts>
|
||||
<custom_fields>
|
||||
<field key="Control Panel Enabled" type="select">
|
||||
<option value="false">False</option>
|
||||
<option value="true">True</option>
|
||||
<default>property</default>
|
||||
<default_value>false</default_value>
|
||||
<var>ControlPanelEnabled</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<desc>Enable/Disable the web control panel.</desc>
|
||||
</field>
|
||||
<field key="Control Panel Port" type="text">
|
||||
<default>property</default>
|
||||
<default_value>8080</default_value>
|
||||
<var>ControlPanelPort</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<access>admin</access>
|
||||
<desc>Port of the control panel webpage.</desc>
|
||||
</field>
|
||||
<field key="Telnet Enabled" type="select">
|
||||
<option value="false">False</option>
|
||||
<option value="true">True</option>
|
||||
<default>property</default>
|
||||
<default_value>true</default_value>
|
||||
<var>TelnetEnabled</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<desc>Enable/Disable the Telnet.</desc>
|
||||
</field>
|
||||
<field key="Telnet Port" type="text">
|
||||
<default>property</default>
|
||||
<default_value>8081</default_value>
|
||||
<var>TelnetPort</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<access>admin</access>
|
||||
<desc>Port of the Telnet server.</desc>
|
||||
</field>
|
||||
<field key="EAC Enabled" type="select">
|
||||
<option value="false">False</option>
|
||||
<option value="true">True</option>
|
||||
<default>property</default>
|
||||
<default_value>true</default_value>
|
||||
<var>EACEnabled</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<desc>Enables/Disables EasyAntiCheat.</desc>
|
||||
</field>
|
||||
<field key="Game World" type="select">
|
||||
<option value="Navezgane">Navezgane</option>
|
||||
<option value="RWG">RWG</option>
|
||||
<default>property</default>
|
||||
<default_value>Navezgane</default_value>
|
||||
<var>GameWorld</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<desc>Defines the map of the server.</desc>
|
||||
</field>
|
||||
<field key="WorldGen Seed" type="text">
|
||||
<default>property</default>
|
||||
<default_value>asdf</default_value>
|
||||
<var>WorldGenSeed</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<desc>If RWG this is the seed for the generation of the new world. If a world with the resulting name already exists it will simply load it.</desc>
|
||||
</field>
|
||||
<field key="WorldGen Size" type="text">
|
||||
<default>property</default>
|
||||
<default_value>4096</default_value>
|
||||
<var>WorldGenSize</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<desc>If RWG this controls the width and height of the created world. It is also used in combination with WorldGenSeed to create the internal RWG seed thus also creating a unique map name even if using the same WorldGenSeed. Has to be between 2048 and 16384, though large map sizes will take long to generate / download / load.</desc>
|
||||
</field>
|
||||
<field key="Game Name" type="text">
|
||||
<default>property</default>
|
||||
<default_value>My Game</default_value>
|
||||
<var>GameName</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<desc>Whatever you want the game name to be. This affects the save game name as well as the seed used when placing decoration (trees etc) in the world. It does not control the generic layout of the world if creating an RWG world.</desc>
|
||||
</field>
|
||||
<field key="Max Spawned Zombies" type="text">
|
||||
<default>property</default>
|
||||
<default_value>60</default_value>
|
||||
<var>MaxSpawnedZombies</var>
|
||||
<filepath>serverconfig.xml</filepath>
|
||||
<options>tagValueByName</options>
|
||||
<access>admin</access>
|
||||
<desc>Making this number too large (more than about 80) may cause servers to run at poor framerates which will effect lag and play quality for clients.</desc>
|
||||
</field>
|
||||
</custom_fields>
|
||||
<post_install>
|
||||
wget http://files.iaregamer.com/installers/7dtd/serverconfig.xml
|
||||
</post_install>
|
||||
<environment_variables>
|
||||
export LD_LIBRARY_PATH={OGP_HOME_DIR}/7DaysToDieServer_Data/Plugins/x86_64
|
||||
</environment_variables>
|
||||
<lock_files>
|
||||
7DaysToDieServer.x86
|
||||
</lock_files>
|
||||
<configuration_files>
|
||||
<file description="Server Configurations">serverconfig.xml</file>
|
||||
<file description="Admin Configurations">Saves/serveradmin.xml</file>
|
||||
</configuration_files>
|
||||
</game_config>
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>arma2_linux</game_key>
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>Arma 2</game_name>
|
||||
<server_exec_name>server</server_exec_name><!-- arma2/arma2free -->
|
||||
<cli_template>netlog -maxMem=2047 -cpuCount=8 %PORT% %PLAYERS%</cli_template>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<control_protocol>armabe</control_protocol>
|
||||
<mods>
|
||||
<mod key='arma2'>
|
||||
<name>none</name>
|
||||
<installer_name>33900</installer_name>
|
||||
</mod>
|
||||
</mods>
|
||||
<server_params>
|
||||
</server_params>
|
||||
<post_install>
|
||||
wget http://files.iaregamer.com/installers/database/setup_db.sh
|
||||
chmod +x ./setup_db.sh
|
||||
./setup_db.sh
|
||||
rm setup_db.sh
|
||||
</post_install>
|
||||
|
||||
|
||||
|
||||
</game_config>
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>arma2co_linux</game_key>
|
||||
<game_name>Arma 2 Combined Operations</game_name>
|
||||
<server_exec_name>server</server_exec_name><!-- arma2arrowhead -->
|
||||
<cli_template>%PORT% %PLAYERS%</cli_template>
|
||||
<cli_params>
|
||||
<cli_param id="PORT" cli_string="-netlog -maxMem=2047 -cpuCount=8 -port=" />
|
||||
<cli_param id="PLAYERS" cli_string="-maxplayers=" />
|
||||
</cli_params>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<control_protocol>armabe</control_protocol>
|
||||
<mods>
|
||||
<mod key='arma2co'>
|
||||
<name>none</name>
|
||||
<installer_name>arma2co</installer_name>
|
||||
</mod>
|
||||
</mods>
|
||||
<server_params>
|
||||
<param key="-name=" type="select">
|
||||
<option value="public-no-mods -cfg=public-no-mods/arma2.cfg -config=public-no-mods/server.cfg">Public Server Without Mods</option>
|
||||
<option value="public-ace -cfg=public-ace/arma2.cfg -config=public-ace/server.cfg -mod=@ACE\;@CBA">Public Server ACE</option>
|
||||
<option value="public-ace-acre -cfg=public-ace-acre/arma2.cfg -config=public-ace-acre/server.cfg -mod=@ACE\;@ACRE\;@CBA">Public Server ACE+ACRE</option>
|
||||
<option value="public-official-mods -cfg=public-official-mods/arma2.cfg -config=public-official-mods/server.cfg -mod=@ACE\;@ACRE\;@CBA\;@CiaEagleIslas\;@CiaEagleMods\;@CiaEagleUnits">Public Server Official Mods</option>
|
||||
<option value="private-no-mods -cfg=private-no-mods/arma2.cfg -config=private-no-mods/server.cfg">Private Server Without Mods</option>
|
||||
<option value="private-ace -cfg=private-ace/arma2.cfg -config=private-ace/server.cfg -mod=@ACE\;@CBA">Private Server ACE</option>
|
||||
<option value="private-ace-acre -cfg=private-ace-acre/arma2.cfg -config=private-ace-acre/server.cfg -mod=@ACE\;@ACRE\;@CBA">Private Server ACE+ACRE</option>
|
||||
<option value="private-official-mods -cfg=private-official-mods/arma2.cfg -config=private-official-mods/server.cfg -mod=@ACE\;@ACRE\;@CBA\;@CiaEagleIslas\;@CiaEagleMods\;@CiaEagleUnits">Private Server Official Mods</option>
|
||||
<caption>Server Role</caption>
|
||||
<desc>Starts the server with the selected role.</desc>
|
||||
<options>ns</options>
|
||||
</param>
|
||||
</server_params>
|
||||
</game_config>
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
<game_config>
|
||||
|
||||
<game_key>dayzmod_win32</game_key>
|
||||
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>Arma 2 Operation Arrowhead</game_name>
|
||||
<server_exec_name>server</server_exec_name><!-- arma2arrowhead -->
|
||||
<cli_template>%MODLIST% -cfg=cfg/basic.cfg -config=cfg/server.cfg -name=arma2oa -profiles=cfg %IP% %PORT%</cli_template>
|
||||
<cli_params>
|
||||
|
||||
<cli_param id="IP" cli_string="-ip=" />
|
||||
<cli_param id="PORT" cli_string="-port=" />
|
||||
<cli_param id="PLAYERS" cli_string="-maxplayers=" />
|
||||
</cli_params>
|
||||
<console_log>cfg/arma2oaserver.RPT</console_log>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<control_protocol>armabe</control_protocol>
|
||||
<mods>
|
||||
<mod key='arma2oa'>
|
||||
<name>arma2oa</name>
|
||||
<installer_name></installer_name>
|
||||
</mod>
|
||||
</mods>
|
||||
|
||||
|
||||
<replace_texts>
|
||||
<text key="max_players">
|
||||
<default>(maxPlayers\s*=\s*)(.*)(;)</default>
|
||||
<var>maxPlayers = "%key%";</var>
|
||||
<filepath>cfg/server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
|
||||
<text key="port">
|
||||
<default>Port =.*</default>
|
||||
<var>Port = %key% </var>
|
||||
<filepath>bec/config/config.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="ip">
|
||||
<default>Ip =.*</default>
|
||||
<var>Ip = %key% </var>
|
||||
<filepath>bec/config/config.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
</replace_texts>
|
||||
|
||||
<server_params>
|
||||
<param id="MODLIST" key="-mod=" type="text">
|
||||
<default></default>
|
||||
<option>ns</option>
|
||||
<caption>Mods ex: @cba;</caption>
|
||||
<desc>Semicolon after each mod and you MUST copy the KEY into your keys folder.
|
||||
Make sure if you install a MOD, you list the name here or else it wont get loaded.
|
||||
</desc>
|
||||
</param>
|
||||
</server_params>
|
||||
|
||||
<post_install>
|
||||
wget files.iaregamer.com/installers/arma2oa/arma2oa_linux.tar.gz
|
||||
tar -xzvf arma2oa_linux.tar.gz
|
||||
rm arma2oa_linux.tar.gz
|
||||
|
||||
</post_install>
|
||||
<lock_files>
|
||||
server.exe
|
||||
</lock_files>
|
||||
|
||||
<configuration_files>
|
||||
<file description="Server settings">cfg/server.cfg</file>
|
||||
<file description="Basic Network settings" >cfg/basic.cfg</file>
|
||||
<file description="BattlEye Rcon Password" >cfg/battleye/beserver.cfg</file>
|
||||
</configuration_files>
|
||||
|
||||
</game_config>
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>arma2oa_win32</game_key>
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>Arma2 Operation Arrowhead</game_name>
|
||||
<server_exec_name>arma2oaserver.exe</server_exec_name>
|
||||
<cli_template>%MODLIST% -cfg=profile\basic.cfg -config=profile\server.cfg -name=player -profiles=profile %IP% %PORT%</cli_template>
|
||||
<cli_params>
|
||||
<cli_param id="PORT" cli_string="-port=" />
|
||||
<cli_param id="IP" cli_string="-ip=" />
|
||||
</cli_params>
|
||||
<reserve_ports>
|
||||
<port type="add" id="QUERY_PORT">1</port>
|
||||
</reserve_ports>
|
||||
<cli_allow_chars>;</cli_allow_chars>
|
||||
<console_log>profile/arma2oaserver.RPT</console_log>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<control_protocol>armabe</control_protocol>
|
||||
<mods>
|
||||
<mod key='arma2oa'>
|
||||
<name>none</name>
|
||||
<installer_name>33930</installer_name>
|
||||
</mod>
|
||||
</mods>
|
||||
<replace_texts>
|
||||
<text key="max_players">
|
||||
<default>(maxPlayers\s*=\s*)(.*)(;)</default>
|
||||
<var>maxPlayers = "%key%";</var>
|
||||
<filepath>cfg/server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
</replace_texts>
|
||||
<server_params>
|
||||
<param id="MODLIST" key="-mod=" type="text">
|
||||
<default></default>
|
||||
<option>ns</option>
|
||||
<caption>Mods ex: @A-Map;@AI;@Moreguns;@TurboCars</caption>
|
||||
<desc>Semicolon after each mod and you MUST copy the KEY into your keys folder.
|
||||
Make sure if you install a MOD, you list the name here or else it wont get loaded.
|
||||
</desc>
|
||||
</param>
|
||||
</server_params>
|
||||
<post_install>
|
||||
wget http://files.iaregamer.com/installers/arma2oa_win/arma2oa.tar
|
||||
tar -xvf arma2oa.tar
|
||||
chmod +x setup_db.sh
|
||||
./setup_db.sh
|
||||
rm setup_db.sh
|
||||
rm arma2oa.tar
|
||||
|
||||
#wget -r -np -nH --cut-dirs=1 -R "index.html*" http://files.iaregamer.com/installers/bec_win64/
|
||||
#wget http://files.com/files/installers/arma2oa/mpmissions/thenewworldorder_wasteland.chernarus.zip
|
||||
#mv thenewworldorder_wasteland.chernarus.zip mpmissions/
|
||||
#cd mpmission
|
||||
#unzip thenewworldorder_wasteland.chernarus.zip
|
||||
#rm thenewworldorder_wasteland.chernarus.zip
|
||||
</post_install>
|
||||
<pre_start>
|
||||
#rm cfg/battleye/beserver_active*
|
||||
#rm cfg/*.RPT
|
||||
#rm cfg/*.log
|
||||
</pre_start>
|
||||
<lock_files>
|
||||
arma2oaserver.exe
|
||||
</lock_files>
|
||||
<configuration_files>
|
||||
<file description="Server settings">profile\server.cfg</file>
|
||||
<file description="Basic Network settings">profile\basic.cfg</file>
|
||||
<file description="BattlEye RconPassword">profile\battleye\beserver.cfg</file>
|
||||
<file description="Difficulty Settings">profile\users\player\player.arma2oaprofile</file>
|
||||
|
||||
<file description="BEC Scheduler">bec\config\scheduler.xml</file>
|
||||
<file description="BEC Admins">bec\config\admins.xml</file>
|
||||
<file description="BEC Whitelist">bec\config\whitelist.xml</file>
|
||||
<file description="BEC Message List">bec\config\fortune.txt</file>
|
||||
</configuration_files>
|
||||
</game_config>
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>arma3_linux32</game_key>
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>Arma 3</game_name>
|
||||
<server_exec_name>arma3server</server_exec_name>
|
||||
<cli_template>%CONFIG% %CFG% %PROFILES% %NAME% %IP% %PORT% %PLAYERS% %MODLIST% %SERVERMODLIST% %AUTOINIT%</cli_template>
|
||||
<cli_params>
|
||||
<cli_param cli_string="-ip=" id="IP"/>
|
||||
<cli_param cli_string="-port=" id="PORT"/>
|
||||
<cli_param cli_string="-maxplayers=" id="PLAYERS"/>
|
||||
</cli_params>
|
||||
<cli_allow_chars>@</cli_allow_chars> <!-- escaped by default: \ " ' | & ; > < ` $ ( ) [ ] -->
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<control_protocol>rcon</control_protocol>
|
||||
<mods>
|
||||
<mod key='Arma3'>
|
||||
<name>none</name>
|
||||
<installer_name>233780</installer_name>
|
||||
</mod>
|
||||
</mods>
|
||||
<replace_texts>
|
||||
<text key="home_name">
|
||||
<default>(hostname\s*=\s*")(.*)(";)</default>
|
||||
<var>hostname = "%key%";</var>
|
||||
<filepath>profile/server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="max_players">
|
||||
<default>(maxPlayers\s*=\s*)(.*)(;)</default>
|
||||
<var>maxPlayers = %key%;</var>
|
||||
<filepath>profile/server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="control_password">
|
||||
<default>(passwordAdmin\s*=\s*")(.*)(";)</default>
|
||||
<var>passwordAdmin = "%key%";</var>
|
||||
<filepath>profile/server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="control_password">
|
||||
<default>(RconPassword\s*=\s*")(.*)(";)</default>
|
||||
<var>RconPassword = "%key%";</var>
|
||||
<filepath>profile/beserver/beserver.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
</replace_texts>
|
||||
<server_params>
|
||||
<param id="CONFIG" key="-config=" type="text">
|
||||
<default>profile/server.cfg</default>
|
||||
<option>ns</option>
|
||||
<caption>Config file to load</caption>
|
||||
<desc>Selects the Server Config File. Config file for server specific settings like admin password and mission selection</desc>
|
||||
</param>
|
||||
<param id="CFG" key="-cfg=" type="text">
|
||||
<default>profile/basic.cfg</default>
|
||||
<option>ns</option>
|
||||
<caption>Arma Basic settings file to load</caption>
|
||||
<desc>Selects the Server Basic Config file. Config file for server specific settings like network performance tuning</desc>
|
||||
</param>
|
||||
<param id="NAME" key="-name=" type="text">
|
||||
<default>player</default>
|
||||
<option>ns</option>
|
||||
<caption>Name of User-Profile</caption>
|
||||
<desc> </desc>
|
||||
</param>
|
||||
<param id="MODLIST" key="-mod=" type="text">
|
||||
<option>ns</option>
|
||||
<caption>Mods ex: @A-Map;@AI;@Moreguns;@TurboCars</caption>
|
||||
<desc>Semicolon after each mod and you MUST copy the KEY into your keys folder. </desc>
|
||||
</param>
|
||||
<param id="SERVERMODLIST" key="-servermod=" type="text">
|
||||
<option>ns</option>
|
||||
<caption>SERVER SIDE Mods ex: @A-Map;@AI;@Moreguns;@TurboCars</caption>
|
||||
<desc>Semicolon after each mod. A SERVERMOD is a mod that is ONLY required on the server. Clients do not need to download this mod. If its a SERVERSIDE mod, it will probably tell you so. Otherwise assume its a MOD</desc>
|
||||
</param>
|
||||
<param key="-autoinit" type="checkbox_key_value" id="AUTOINIT">
|
||||
<caption>Automatically initialize mission just like first client does</caption>
|
||||
<desc>Server config file (server.cfg) must contain "Persistent=1;", if it's 0 autoInit skips</desc>
|
||||
</param>
|
||||
</server_params>
|
||||
<post_install>
|
||||
# wget http://files.iaregamer.com/installers/arma3linux/arma3linux.tar
|
||||
# tar -xvf arma3linux.tar
|
||||
# chmod +x setup_db.sh
|
||||
# ./setup_db.sh
|
||||
# rm setup_db.sh
|
||||
# rm arma3.tar
|
||||
</post_install>
|
||||
<pre_start>
|
||||
</pre_start>
|
||||
<lock_files>
|
||||
arma3server
|
||||
arma3server_x64
|
||||
</lock_files>
|
||||
<configuration_files>
|
||||
<file description="Server settings">profile/server.cfg</file>
|
||||
<file description="Basic Network settings">profile/basic.cfg</file>
|
||||
</configuration_files>
|
||||
</game_config>
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>arma3_win32</game_key>
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>Arma 3</game_name>
|
||||
<server_exec_name>arma3server.exe</server_exec_name>
|
||||
<cli_template>-profiles=profile -name=player -config=profile\server.cfg -cfg=profile\basic.cfg %PORT% %PLAYERS% %RANKING% %AUTOINIT% %DEBUG% %MODS% %SERVERMODS%</cli_template>
|
||||
<cli_params>
|
||||
<cli_param cli_string="-port=" id="PORT"/>
|
||||
<cli_param cli_string="-maxplayers=" id="PLAYERS"/>
|
||||
</cli_params>
|
||||
<cli_allow_chars>;</cli_allow_chars> <!-- escaped by default: \ " ' | & ; > < ` $ ( ) [ ] -->
|
||||
<console_log>profile/server_console.log</console_log>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<mods>
|
||||
<mod key='Arma3'>
|
||||
<name>none</name>
|
||||
<installer_name>233780</installer_name>
|
||||
</mod>
|
||||
</mods>
|
||||
<replace_texts>
|
||||
<text key="max_players">
|
||||
<default>(maxPlayers\s*=\s*)(.*)(;)</default>
|
||||
<var>maxPlayers = %key%;</var>
|
||||
<filepath>profile\server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="home_name">
|
||||
<default>(hostname\s*=\s*")(.*)(";)</default>
|
||||
<var>hostname = "%key%";</var>
|
||||
<filepath>profile\server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="control_password">
|
||||
<default>(passwordAdmin\s*=\s*")(.*)(";)</default>
|
||||
<var>passwordAdmin = "%key%";</var>
|
||||
<filepath>profile\server.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="ip">
|
||||
<default>Ip =.*</default>
|
||||
<var>Ip = %key% </var>
|
||||
<filepath>bec/config/config.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="home_path">
|
||||
<default>BePath =.*</default>
|
||||
<var>BePath = %key%\profile\Battleye</var>
|
||||
<filepath>bec\config\config.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
</replace_texts>
|
||||
<server_params>
|
||||
<param id="DEBUG" key="-debug" type="checkbox_key_value">
|
||||
<caption>Extra logging info in RPT</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
<param id="AUTOINIT" key="-autoInit" type="checkbox_key_value">
|
||||
<caption>Start mission when server starts</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
<param id="RANKING" key="-ranking=" type="text">
|
||||
<option>q</option>
|
||||
<caption>Filename to save RANKING</caption>
|
||||
<desc>such as ranking.txt</desc>
|
||||
</param>
|
||||
<param id="MODS" key="-mod=" type="text">
|
||||
<option>q</option>
|
||||
<caption>Mods ex: @A-Map;@AI;@Moreguns;@TurboCars</caption>
|
||||
<desc>Semicolon after each mod and you MUST copy the KEY into your keys folder</desc>
|
||||
</param>
|
||||
<param id="SERVERMODS" key="-serverMod=" type="text">
|
||||
<option>q</option>
|
||||
<caption>Server Side ONLY Mods ex: @mod1;@mod2;</caption>
|
||||
<desc>Semicolon after each mod</desc>
|
||||
</param>
|
||||
<param id="MEMORY" key="-maxMem=" type="text">
|
||||
<option>ns</option>
|
||||
<default>1024</default>
|
||||
<caption>Max RAM allocated</caption>
|
||||
<desc>Maximum usable memory in MB, for example: 1024</desc>
|
||||
</param>
|
||||
</server_params>
|
||||
<post_install>
|
||||
wget http://files.iaregamer.com/installers/arma3/arma3.tar
|
||||
tar -xvf arma3.tar
|
||||
chmod +x setup_db.sh
|
||||
./setup_db.sh
|
||||
rm setup_db.sh
|
||||
rm arma3.tar
|
||||
</post_install>
|
||||
<pre_start>
|
||||
</pre_start>
|
||||
<lock_files>
|
||||
Arma3Server.exe
|
||||
Arma3Server_x64.exe
|
||||
</lock_files>
|
||||
<configuration_files>
|
||||
<file description="Server settings">profile\server.cfg</file>
|
||||
<file description="Basic Network settings" >profile\basic.cfg</file>
|
||||
<file description="Difficulty Settings">profile\users\player\player.arma3profile</file>
|
||||
<file description="BEC Scheduler">bec\config\scheduler.xml</file>
|
||||
<file description="BEC Admins">bec\config\admins.xml</file>
|
||||
<file description="BEC Whitelist">bec\config\whitelist.xml</file>
|
||||
<file description="BEC Config">bec\config\config.cfg</file>
|
||||
</configuration_files>
|
||||
</game_config>
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>harsh_win64</game_key>
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>Operation Harsh Doorstop</game_name>
|
||||
<server_exec_name>HarshDoorstopServer-Win64-Shipping.exe</server_exec_name>
|
||||
|
||||
|
||||
<query_port type="add">1</query_port>
|
||||
<cli_template>%MAP%?%GAMEMODE%?%bBotAutofill%%BLUFORFACTION%?%OPFORFACTION%?%BLUFORNUMBOTS%?%OPFORNUMBOTS%?%BLUFORTICKETS%?%OPFORTICKETS%?%bDisableKitRestrictions% %IP% %PORT% %QUERY_PORT% %SERVERNAME%</cli_template>
|
||||
<cli_params>
|
||||
<cli_param id="IP" cli_string="-ip=" />
|
||||
<cli_param id="PORT" cli_string="-port=" />
|
||||
<cli_param id="MAP" cli_string="" />
|
||||
<cli_param id="PLAYERS" cli_string="Maxplayers=" options="s" />
|
||||
</cli_params>
|
||||
<reserve_ports>
|
||||
<port type="add" id="RCON_PORT" cli_string="-RCONport=">2</port>
|
||||
<port type="add" id="QUERY_PORT" cli_string="-QueryPort=">3</port>
|
||||
</reserve_ports>
|
||||
<cli_allow_chars>@;[]-_.</cli_allow_chars>
|
||||
|
||||
<map_list>Maplist.txt</map_list>
|
||||
<console_log>HarshDoorstop\Saved\Logs\HarshDoorstop.log</console_log>
|
||||
|
||||
<exe_location>HarshDoorStop\Binaries\Win64\</exe_location>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<control_protocol>armabe</control_protocol>
|
||||
<mods>
|
||||
<mod key="default">
|
||||
<name>None</name>
|
||||
<installer_name>950900</installer_name>
|
||||
<installer_login>anonymous</installer_login>
|
||||
</mod>
|
||||
</mods>
|
||||
|
||||
<server_params>
|
||||
<param id="MINPLAYERS" key="MinPlayers=" type="text">
|
||||
<option>ns</option>
|
||||
<default>4</default>
|
||||
<caption>Mininum Player Count</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
<param id="GAMEMODE" key="game=" type="text">
|
||||
<option>ns</option>
|
||||
<caption>Path to game mode</caption>
|
||||
</param>
|
||||
<param key="bBotAutofill?" type="checkbox_key_value" id="bBotAutofill">
|
||||
<desc>Fill all empty player slots with bots</desc>
|
||||
</param>
|
||||
|
||||
<param id="BLUFORFACTION" key="BluforFaction=" type="text">
|
||||
<option>ns</option>
|
||||
<default>Default</default>
|
||||
<caption>Which faction for BluFor</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
|
||||
<param id="OPFORFACTION" key="OpforFaction=" type="text">
|
||||
<option>ns</option>
|
||||
<default>Default</default>
|
||||
<caption>Which faction for OpFor</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
|
||||
<param id="BLUFORNUMBOTS" key="BluforNumBots=" type="text">
|
||||
<option>ns</option>
|
||||
<default>0</default>
|
||||
<caption>How many bots on Opfor</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
|
||||
<param id="OPFORNUMBOTS" key="OpforNumBots=" type="text">
|
||||
<option>ns</option>
|
||||
<default>0</default>
|
||||
<caption>How many bots on Opfor</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
<param id="BLUFORTICKETS" key="BluforTickets=" type="text">
|
||||
<option>ns</option>
|
||||
<default>500</default>
|
||||
<caption>How many tickets on Blufor</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
|
||||
<param id="OPFORTICKETS" key="OpforTickets=" type="text">
|
||||
<option>ns</option>
|
||||
<default>500</default>
|
||||
<caption>How many tickets on Opfor</caption>
|
||||
<desc></desc>
|
||||
</param>
|
||||
|
||||
<param key="bDisableKitRestrictions?" type="checkbox_key_value" id="bDisableKitRestrictions">
|
||||
<desc>Allow all Kits</desc>
|
||||
</param>
|
||||
|
||||
<param id="SERVERNAME" key="-ServerName=" type="text">
|
||||
<option>q</option>
|
||||
<default>BlackMarket Server</default>
|
||||
<caption>Server name</caption>
|
||||
<desc>Shown in server browser</desc>
|
||||
</param>
|
||||
</server_params>
|
||||
|
||||
|
||||
|
||||
<post_install>
|
||||
echo "Argonne" >> Maplist.txt
|
||||
echo "Monte Cassino" >> Maplist.txt
|
||||
echo "Lam Dong" >> Maplist.txt
|
||||
echo "Khafji" >> Maplist.txt
|
||||
echo "Risala" >> Maplist.txt
|
||||
</post_install>
|
||||
<pre_start>
|
||||
</pre_start>
|
||||
|
||||
<lock_files>
|
||||
HarshDoorstopServer-Win64-Shipping.exe
|
||||
</lock_files>
|
||||
|
||||
<configuration_files>
|
||||
<file description="Maplist.txt">Maplist.txt</file>
|
||||
<file description="Game.ini">HarshDoorstop\Saved\Config\WindowsServer\Game.ini</file>
|
||||
<file description="Engine.ini" >HarshDoorstop\Saved\Config\WindowsServer\Engine.ini</file>
|
||||
<file description="Engine.ini" >HarshDoorstop\Saved\Config\WindowsServer\Admins.cfg</file>
|
||||
<file description="Mapcycle.cfg" >HarshDoorstop\Saved\Config\WindowsServer\Mapcycle.cfg</file>
|
||||
|
||||
</configuration_files>
|
||||
</game_config>
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
<game_config>
|
||||
<game_key>harsh_win64</game_key>
|
||||
<installer>steamcmd</installer>
|
||||
<game_name>Operation Harsh Doorstep</game_name>
|
||||
<server_exec_name>HarshDoorstop\Binaries\Win64\HarshDoorstopServer-Win64-Shipping.exe</server_exec_name>
|
||||
<query_port type="add">1</query_port>
|
||||
<cli_template>%SERVERNAME% %PASSWORD%</cli_template>
|
||||
<cli_params>
|
||||
<cli_param id="IP" cli_string="-ip=" />
|
||||
<cli_param id="PORT" cli_string="-port=" />
|
||||
</cli_params>
|
||||
<reserve_ports>
|
||||
<port type="add" id="STEAM_PORT" cli_string="-STEAMport=">1</port>
|
||||
<port type="add" id="RCON_PORT" cli_string="-RCONport=">2</port>
|
||||
<port type="add" id="RCON_PORT" cli_string="-RCONport=">3</port>
|
||||
</reserve_ports>
|
||||
<cli_allow_chars>@;[]-_.</cli_allow_chars>
|
||||
|
||||
<console_log>harsh.log</console_log>
|
||||
<max_user_amount>64</max_user_amount>
|
||||
<control_protocol>armabe</control_protocol>
|
||||
<mods>
|
||||
<mod key="default">
|
||||
<name>None</name>
|
||||
<installer_name>950900</installer_name>
|
||||
<installer_login>anonymous</installer_login>
|
||||
</mod>
|
||||
</mods>
|
||||
<replace_texts>
|
||||
|
||||
<text key="query_port">
|
||||
<default>(steamQueryPort\s*=\s*)(.*)(;)</default>
|
||||
<var>steamQueryPort = %key%;</var>
|
||||
<filepath>serverDZ.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
<text key="max_players">
|
||||
<default>(maxPlayers\s*=\s*)(.*)(;)</default>
|
||||
<var>maxPlayers = %key%;</var>
|
||||
<filepath>serverDZ.cfg</filepath>
|
||||
<options>key-regex</options>
|
||||
</text>
|
||||
|
||||
|
||||
</replace_texts>
|
||||
<server_params>
|
||||
<param id="SERVERNAME" key="-ServerName=" type="text">
|
||||
<default>My Server</default>
|
||||
<option>q</option>
|
||||
<caption>Server Name</caption>
|
||||
<desc>Shown in server browser</desc>
|
||||
</param>
|
||||
|
||||
<param id="PASSWORD" key="-password=" type="text">
|
||||
<option>q</option>
|
||||
<caption>Server Password</caption>
|
||||
<desc>Required to join server</desc>
|
||||
</param>
|
||||
|
||||
</server_params>
|
||||
<post_install>
|
||||
</post_install>
|
||||
<pre_start>
|
||||
</pre_start>
|
||||
|
||||
<lock_files>
|
||||
DayZServer_x64.exe
|
||||
</lock_files>
|
||||
|
||||
<configuration_files>
|
||||
<file description="Game.ini">\HarshDoorstop\Saved\Config\WindowsServer\game.ini</file>
|
||||
<file description="Engine.ini" >\HarshDoorstop\Saved\Config\WindowsServer\engine.ini</file>
|
||||
<file description="Mapcycle.cfg" >\HarshDoorstop\Saved\Config\WindowsServer\mapcycle.cfg</file>
|
||||
<file description="Admins.cfg" >\HarshDoorstop\Saved\Config\WindowsServer\admins.cfg</file>
|
||||
|
||||
</configuration_files>
|
||||
</game_config>
|
||||
|
|
@ -1,355 +0,0 @@
|
|||
<script type="text/javascript" src="js/jquery/plugins/jquery.json-2.3.min.js"></script>
|
||||
<script type="text/javascript" src="js/modules/dashboard.js"></script>
|
||||
<?php
|
||||
/*
|
||||
*
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2018 The OGP Development Team
|
||||
*
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program 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 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
require('includes/lib_remote.php');
|
||||
|
||||
|
||||
function exec_ogp_module()
|
||||
{
|
||||
global $db, $settings, $loggedInUserInfo;
|
||||
|
||||
$isAdmin = $db->isAdmin($_SESSION['user_id']);
|
||||
$user_id = $_SESSION['user_id'];
|
||||
|
||||
$page_user = (isset($_GET['page']) && (int)$_GET['page'] > 0) ? (int)$_GET['page'] : 1; // thanks for Adjokip
|
||||
$limit_user = isset($_GET['limit']) ? $_GET['limit'] : 10;
|
||||
|
||||
if(hasValue($loggedInUserInfo) && is_array($loggedInUserInfo) && $loggedInUserInfo["users_page_limit"] && !(isset($_GET['limit']) and !empty($_GET['limit']))){
|
||||
$limit_user = $loggedInUserInfo["users_page_limit"];
|
||||
}
|
||||
|
||||
$OnlineServers = "";
|
||||
$OnlineServersTitle = "";
|
||||
$query = "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$user_id."' and end_date = -1";
|
||||
$result = $db->resultQuery($query);
|
||||
$invoicesDue=0;
|
||||
foreach($result as $res){
|
||||
$invoicesDue=$invoicesDue + 1;
|
||||
}
|
||||
|
||||
if( isset($settings['welcome_title']) && $settings['welcome_title'] == "1" )
|
||||
{
|
||||
if( isset($settings['welcome_title_message']) && !empty($settings['welcome_title_message'] ))
|
||||
{
|
||||
echo "<div>" . $settings['welcome_title_message'] . "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
$OnlineServersTitle .= get_lang('online_servers');
|
||||
$player_list = "";
|
||||
|
||||
$server_homes = $db->getIpPortsForUser_limit($_SESSION['user_id'], $page_user, $limit_user);
|
||||
|
||||
require_once("includes/refreshed.php");
|
||||
$refresh = new refreshed();
|
||||
|
||||
if ( !$server_homes )
|
||||
{
|
||||
$OnlineServers .= "<p class='failure'>".get_lang('no_games_to_monitor')."</p>";
|
||||
if ( $isAdmin )
|
||||
$OnlineServers .= "<p class='note'>".get_lang_f("add_games_in","<a href='?m=user_games&p=add'>".get_lang('game_servers')."</a>")."</p>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$player_list = "";
|
||||
$stats_servers = 0;
|
||||
$stats_servers_online = 0;
|
||||
if(isset($settings['old_dashboard_behavior']) and $settings['old_dashboard_behavior'] == 1)
|
||||
{
|
||||
$_SESSION['player_statistics']['players'] = 0;
|
||||
$_SESSION['player_statistics']['playersmax'] = 0;
|
||||
$OnlineServers .= "<table style='width:100%;' class='online_servers' id='ref'>";
|
||||
foreach( $server_homes as $server_home )
|
||||
{
|
||||
// Count the number of servers.
|
||||
$stats_servers++;
|
||||
$remote = new OGPRemoteLibrary( $server_home['agent_ip'], $server_home['agent_port'],
|
||||
$server_home['encryption_key'], $server_home['timeout'] );
|
||||
// Check if the screen running the server is running.
|
||||
if( $remote->is_screen_running(OGP_SCREEN_TYPE_HOME,$server_home['home_id']) === 1 )
|
||||
{
|
||||
$stats_servers_online++;
|
||||
$server_key = 'server_'.$server_home['ip'].'_'.$server_home['port'];
|
||||
$_SESSION[$server_key] = $server_home;
|
||||
if( isset($_SESSION[$server_key]['server_playersmax']) )
|
||||
unset($_SESSION[$server_key]['server_players'],
|
||||
$_SESSION[$server_key]['server_playersmax']);
|
||||
$OnlineServers .= '<tr><td>'.$refresh->getdiv($refresh->add("home.php?m=dashboard&p=query_ref&type=cleared&ip=".$server_home['ip']."&port=".$server_home['port']),'width:100%;').'</td></tr>';
|
||||
$player_list .= $refresh->getdiv($refresh->add("home.php?m=dashboard&p=query_ref&show=players&type=cleared&ip=".$server_home['ip']."&port=".$server_home['port']));
|
||||
}
|
||||
}
|
||||
|
||||
$OnlineServers .= "</table><br>";
|
||||
|
||||
if ($isAdmin) {
|
||||
$count_homes = $db->getIpPorts_count('admin',$_SESSION['user_id']);
|
||||
} else {
|
||||
$isSubUser = $db->isSubUser($_SESSION['user_id']);
|
||||
|
||||
if ($isSubUser) {
|
||||
$count_homes = $db->getIpPorts_count('subuser',$_SESSION['user_id']);
|
||||
} else {
|
||||
$count_homes = $db->getIpPorts_count('user_and_group',$_SESSION['user_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$uri = '?m=dashboard&p=dashboard&limit='.$limit_user.'&page=';
|
||||
$OnlineServers .= paginationPages($count_homes[0]['total'], $page_user, $limit_user, $uri, 3, 'dashboardHomes');
|
||||
|
||||
$OnlineServers .= "<center>" . statistics . ":<br>$stats_servers_online/$stats_servers " . servers . "<br>" .
|
||||
$refresh->getdiv($refresh->add("home.php?m=dashboard&p=query_ref&show=player_statistics&type=cleared&ip=" .
|
||||
$server_home['ip']."&port=".$server_home['port'])) . "</center>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$OnlineServers .= "<table style='width:100%;' class='online_servers' id='noref'>";
|
||||
require("protocol/lgsl/lgsl_protocol.php");
|
||||
foreach( $server_homes as $server_home )
|
||||
{
|
||||
// Count the number of servers.
|
||||
$stats_servers++;
|
||||
$remote = new OGPRemoteLibrary( $server_home['agent_ip'],$server_home['agent_port'],
|
||||
$server_home['encryption_key'],$server_home['timeout'] );
|
||||
// Check if the screen running the server is running.
|
||||
if ( $remote->is_screen_running(OGP_SCREEN_TYPE_HOME,$server_home['home_id']) === 1 )
|
||||
{
|
||||
require_once("modules/config_games/server_config_parser.php");
|
||||
$server_xml = read_server_config(SERVER_CONFIG_LOCATION."/".$server_home['home_cfg_file']);
|
||||
if ( $server_home['use_nat'] == 1 ){
|
||||
$ip = $server_home['agent_ip'];
|
||||
}else{
|
||||
$ip = $server_home['ip'] != $server_home['agent_ip'] ? $server_home['ip'] : $server_home['agent_ip'];
|
||||
}
|
||||
$ip = checkDisplayPublicIP($server_home['display_public_ip'],$ip);
|
||||
|
||||
$port = $server_home['port'];
|
||||
|
||||
if($server_xml->protocol == "lgsl")
|
||||
{
|
||||
$get_q_and_s = lgsl_port_conversion((string)$server_xml->lgsl_query_name, $port, "", "");
|
||||
//Connection port
|
||||
$c_port = $get_q_and_s['0'];
|
||||
//query port
|
||||
$q_port = $get_q_and_s['1'];
|
||||
//software port
|
||||
$s_port = $get_q_and_s['2'];
|
||||
$address = "<a href='" . lgsl_software_link($server_xml->lgsl_query_name, $ip, $c_port, $q_port, $s_port) . "'>".$ip.":".$port."</a>";
|
||||
}
|
||||
elseif($server_xml->protocol == "teamspeak3")
|
||||
$address = "<a href='ts3server://$ip:$port'>$ip:$port</a>";
|
||||
elseif($server_xml->installer == "steamcmd")
|
||||
$address = "<a href='steam://connect/$ip:$port'>$ip:$port</a>";
|
||||
else
|
||||
$address = "$ip:$port";
|
||||
|
||||
$OnlineServers .= "<tr><td><div class='name' ><a href='?m=gamemanager&p=game_monitor&home_id-mod_id-ip-port=" . $server_home['home_id'] . "-" . $server_home['mod_id'] . "-" . $server_home['ip'] . "-" . $server_home['port'] . "' ><img style='border:0;height:12px;' src='images/magnifglass.png'/>" . htmlentities($server_home['home_name']) . "</a></div> | ";
|
||||
$OnlineServers .= "<div id='gamelink' >$address</div>";
|
||||
$OnlineServers .= "</td></tr>";
|
||||
$stats_servers_online++;
|
||||
}
|
||||
}
|
||||
$OnlineServers .= "</table>";
|
||||
$OnlineServers .= "<center>".get_lang('statistics').
|
||||
":<br>$stats_servers_online/$stats_servers ".
|
||||
get_lang('online_servers')."</center>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div style="margin-top:20px;">
|
||||
<?php
|
||||
//$title[$id] = "The Title";
|
||||
//$content[$id] = "Content of the Widget";
|
||||
$title = array();
|
||||
$content = array();
|
||||
$href = array();
|
||||
// Game Monitor
|
||||
$title[1] = get_lang('game_monitor');
|
||||
$content[1] = '<img src="themes/' . $settings['theme'] . '/images/icons/game_monitor.png" style="width:48px;float:right;margin:0 0 0 8px" />View all your servers from the Game Monitor. This is where you can START/STOP and configure your server. ';
|
||||
$href[1] = 'home.php?m=gamemanager&p=game_monitor';
|
||||
// Online Server
|
||||
$title[2] = $OnlineServersTitle;
|
||||
$content[2] = $OnlineServers;
|
||||
$href[2] = null;
|
||||
// Currently Online
|
||||
$title[3] = get_lang('currently_online');
|
||||
$content[3] = $player_list;
|
||||
$href[3] = null;
|
||||
// Invoices
|
||||
$title[4] = 'View Invoices';
|
||||
$content[4] ='<img src="images/invoice.png" style="width:48px;float:right;margin:0 0 0 8px" />Invoices Due : '. $invoicesDue . '<p>Servers expire after 1 month and an invoice will be created after which you have 7 days to renew the server.</p>The time remaining for each server is at the lower right of each server in the Game Monitor ';
|
||||
|
||||
$href[4] = 'home.php?m=simple-billing&p=cart';
|
||||
// Support
|
||||
$title[5] = (isset($settings['support_widget_title']) && $settings['support_widget_title'] != "") ?
|
||||
$settings['support_widget_title'] : get_lang('support');
|
||||
$content[5] = (isset($settings['support_widget_content']) && $settings['support_widget_content'] != "") ?
|
||||
$settings['support_widget_content'] : '<img src="themes/' . $settings['theme'] .
|
||||
'/images/icons/support.png" style="width:48px;float:right;margin:0 0 0 8px" />' . get_lang('dashboard_support_text');
|
||||
$href[5] = (isset($settings['support_widget_link']) && $settings['support_widget_link'] != "") ?
|
||||
$settings['support_widget_link'] : '';
|
||||
|
||||
|
||||
$widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
if(!$widgets)
|
||||
{
|
||||
if($db->createUserWidgets($_SESSION['user_id']))
|
||||
$widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
}
|
||||
|
||||
if($widgets)
|
||||
{
|
||||
$colhtml[1] = '<div class="column one_fourth" id="column1" >';
|
||||
$colhtml[2] = '<div class="column one_two" id="column2" >';
|
||||
$colhtml[3] = '<div class="column one_fourth" id="column3" >';
|
||||
foreach($widgets as $widget)
|
||||
{
|
||||
if( (!isset($settings['old_dashboard_behavior']) or $settings['old_dashboard_behavior'] == 0) AND $widget['widget_id'] == "3" )
|
||||
continue;
|
||||
$colhtml[$widget['column_id']] .= '<div class="dragbox bloc rounded" id="item'.$widget['widget_id'].'">'.
|
||||
'<h4><span class="configure"></span>';
|
||||
if(!is_null($title[$widget['widget_id']]))
|
||||
$colhtml[$widget['column_id']] .= $title[$widget['widget_id']];
|
||||
|
||||
$colhtml[$widget['column_id']] .= '</h4><div class="dragbox-content" ';
|
||||
if(!is_null($href[$widget['widget_id']]))
|
||||
{
|
||||
$colhtml[$widget['column_id']] .= "onclick=\"location.href='". $href[$widget['widget_id']] . "'\" style=\"cursor:pointer;";
|
||||
if($widget['collapsed']==1)
|
||||
$colhtml[$widget['column_id']] .= 'display:none;';
|
||||
$colhtml[$widget['column_id']] .= '"';
|
||||
}
|
||||
elseif($widget['collapsed']==1)
|
||||
$colhtml[$widget['column_id']] .= 'style="display:none;"';
|
||||
|
||||
$colhtml[$widget['column_id']] .= '>';
|
||||
|
||||
if(!is_null($content[$widget['widget_id']]))
|
||||
$colhtml[$widget['column_id']] .= $content[$widget['widget_id']];
|
||||
|
||||
$colhtml[$widget['column_id']] .= '</div></div>';
|
||||
}
|
||||
foreach($colhtml as $html )
|
||||
echo $html.'</div>';
|
||||
}
|
||||
if( $isAdmin AND $db->isModuleInstalled('status') )
|
||||
{
|
||||
echo "<h0>".get_lang('server_status')."</h0><br>";
|
||||
$servers = $db->getRemoteServers();
|
||||
|
||||
echo "<div id='column4' style='float:left;width:40%;' >
|
||||
<div class='bloc rounded' >
|
||||
<h4>".get_lang('select_remote_server')."</h4>
|
||||
<div>
|
||||
<br>
|
||||
<center>
|
||||
<form action='' method='GET'>
|
||||
<input type='hidden' name='m' value='".$_GET['m']."'/>
|
||||
<input type='hidden' name='p' value='".$_GET['p']."'/>
|
||||
<select name='remote_server_id' onchange=".'"this.form.submit()"'.">\n";
|
||||
|
||||
$agents_ips = array();
|
||||
foreach ( $servers as $server_row )
|
||||
{
|
||||
$agents_ips[$server_row['remote_server_id']] = gethostbyname($server_row['agent_ip']);
|
||||
if( !empty( $server_row['remote_server_id'] ) and !isset( $_GET['remote_server_id'] ) OR !empty( $server_row['remote_server_id'] ) and empty( $_GET['remote_server_id'] ) )
|
||||
{
|
||||
$_GET['remote_server_id'] = $server_row['remote_server_id'];
|
||||
}
|
||||
|
||||
if( isset($_GET['remote_server_id']) AND $_GET['remote_server_id'] == $server_row['remote_server_id'] )
|
||||
{
|
||||
$remote = new OGPRemoteLibrary( $server_row['agent_ip'], $server_row['agent_port'],
|
||||
$server_row['encryption_key'], $server_row['timeout'] );
|
||||
$host_stat = $remote->status_chk();
|
||||
if( $host_stat === 1 )
|
||||
{
|
||||
$checked = "selected='selected'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$checked = '';
|
||||
$_GET['remote_server_id'] = 'webhost';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$checked = '';
|
||||
}
|
||||
echo "<option value='".$server_row['remote_server_id']."' $checked >".$server_row['remote_server_name']."</option>\n";
|
||||
}
|
||||
|
||||
if ( function_exists('exec') )
|
||||
{
|
||||
$host_ip = isset($_SERVER['LOCAL_ADDR']) ? $_SERVER['LOCAL_ADDR'] : $_SERVER['SERVER_ADDR'];
|
||||
$remote_server_id = array_search($host_ip,$agents_ips);
|
||||
$show_webhost = true;
|
||||
if($remote_server_id)
|
||||
{
|
||||
$remote_server = $db->getRemoteServer($remote_server_id);
|
||||
$remote = new OGPRemoteLibrary( $remote_server['agent_ip'], $remote_server['agent_port'],
|
||||
$remote_server['encryption_key'], $remote_server['timeout'] );
|
||||
$host_stat = $remote->status_chk();
|
||||
if( $host_stat === 1 )
|
||||
$show_webhost = false;
|
||||
}
|
||||
if($show_webhost)
|
||||
{
|
||||
$checked = ( isset($_GET['remote_server_id']) AND $_GET['remote_server_id'] == 'webhost' ) ? "selected='selected'" : "";
|
||||
echo "<option value='webhost' $checked >Webhost Status</option>";
|
||||
}
|
||||
}
|
||||
|
||||
echo " </select>
|
||||
</form>
|
||||
</center>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
</div>\n";
|
||||
|
||||
if( isset($_GET['remote_server_id']) AND ( $_GET['remote_server_id'] == "webhost" or $_GET['remote_server_id'] == "" ) )
|
||||
unset($_GET['remote_server_id']);
|
||||
|
||||
if( isset($_GET['remote_server_id']) )
|
||||
$remote_server = "&remote_server_id=".$_GET['remote_server_id'];
|
||||
else
|
||||
$remote_server = "";
|
||||
|
||||
if( isset($_GET['remote_server_id']) OR function_exists('exec') )
|
||||
echo $refresh->getdiv($refresh->add("home.php?m=status&type=cleared".$remote_server));
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
<?php echo $refresh->build(isset($settings['query_cache_life']) ? $settings['query_cache_life'] * 2000 : 60000); ?>
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
@ -1,356 +0,0 @@
|
|||
<script type="text/javascript" src="js/jquery/plugins/jquery.json-2.3.min.js"></script>
|
||||
<script type="text/javascript" src="js/modules/dashboard.js"></script>
|
||||
<?php
|
||||
/*
|
||||
*
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2018 The OGP Development Team
|
||||
*
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program 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 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
require('includes/lib_remote.php');
|
||||
|
||||
|
||||
function exec_ogp_module()
|
||||
{
|
||||
global $db, $settings, $loggedInUserInfo;
|
||||
|
||||
$isAdmin = $db->isAdmin($_SESSION['user_id']);
|
||||
|
||||
$page_user = (isset($_GET['page']) && (int)$_GET['page'] > 0) ? (int)$_GET['page'] : 1; // thanks for Adjokip
|
||||
$limit_user = isset($_GET['limit']) ? $_GET['limit'] : 10;
|
||||
|
||||
if(hasValue($loggedInUserInfo) && is_array($loggedInUserInfo) && $loggedInUserInfo["users_page_limit"] && !(isset($_GET['limit']) and !empty($_GET['limit']))){
|
||||
$limit_user = $loggedInUserInfo["users_page_limit"];
|
||||
}
|
||||
|
||||
$OnlineServers = "";
|
||||
$OnlineServersTitle = "";
|
||||
|
||||
if( isset($settings['welcome_title']) && $settings['welcome_title'] == "1" )
|
||||
{
|
||||
if( isset($settings['welcome_title_message']) && !empty($settings['welcome_title_message'] ))
|
||||
{
|
||||
echo "<div>" . $settings['welcome_title_message'] . "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
$OnlineServersTitle .= get_lang('online_servers');
|
||||
$player_list = "";
|
||||
|
||||
if ( $isAdmin )
|
||||
{
|
||||
$server_homes = $db->getIpPorts_limit(0, $page_user, $limit_user);
|
||||
}
|
||||
else
|
||||
{
|
||||
$OnlineServersTitle = "Open Game Panel";
|
||||
$OnlineServers .= "<p>" . get_lang("welcome_text") . "</p><br><b>".get_lang('online_servers').":</b><br><br>";
|
||||
$server_homes = $db->getIpPortsForUser_limit($_SESSION['user_id'],$page_user,$limit_user);
|
||||
}
|
||||
|
||||
require_once("includes/refreshed.php");
|
||||
$refresh = new refreshed();
|
||||
|
||||
if ( !$server_homes )
|
||||
{
|
||||
$OnlineServers .= "<p class='failure'>".get_lang('no_games_to_monitor')."</p>";
|
||||
if ( $isAdmin )
|
||||
$OnlineServers .= "<p class='note'>".get_lang_f("add_games_in","<a href='?m=user_games&p=add'>".get_lang('game_servers')."</a>")."</p>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$player_list = "";
|
||||
$stats_servers = 0;
|
||||
$stats_servers_online = 0;
|
||||
if(isset($settings['old_dashboard_behavior']) and $settings['old_dashboard_behavior'] == 1)
|
||||
{
|
||||
$_SESSION['player_statistics']['players'] = 0;
|
||||
$_SESSION['player_statistics']['playersmax'] = 0;
|
||||
$OnlineServers .= "<table style='width:100%;' class='online_servers' id='ref'>";
|
||||
foreach( $server_homes as $server_home )
|
||||
{
|
||||
// Count the number of servers.
|
||||
$stats_servers++;
|
||||
$remote = new OGPRemoteLibrary( $server_home['agent_ip'], $server_home['agent_port'],
|
||||
$server_home['encryption_key'], $server_home['timeout'] );
|
||||
// Check if the screen running the server is running.
|
||||
if( $remote->is_screen_running(OGP_SCREEN_TYPE_HOME,$server_home['home_id']) === 1 )
|
||||
{
|
||||
$stats_servers_online++;
|
||||
$server_key = 'server_'.$server_home['ip'].'_'.$server_home['port'];
|
||||
$_SESSION[$server_key] = $server_home;
|
||||
if( isset($_SESSION[$server_key]['server_playersmax']) )
|
||||
unset($_SESSION[$server_key]['server_players'],
|
||||
$_SESSION[$server_key]['server_playersmax']);
|
||||
$OnlineServers .= '<tr><td>'.$refresh->getdiv($refresh->add("home.php?m=dashboard&p=query_ref&type=cleared&ip=".$server_home['ip']."&port=".$server_home['port']),'width:100%;').'</td></tr>';
|
||||
$player_list .= $refresh->getdiv($refresh->add("home.php?m=dashboard&p=query_ref&show=players&type=cleared&ip=".$server_home['ip']."&port=".$server_home['port']));
|
||||
}
|
||||
}
|
||||
|
||||
$OnlineServers .= "</table><br>";
|
||||
|
||||
if ($isAdmin) {
|
||||
$count_homes = $db->getIpPorts_count('admin',$_SESSION['user_id']);
|
||||
} else {
|
||||
$isSubUser = $db->isSubUser($_SESSION['user_id']);
|
||||
|
||||
if ($isSubUser) {
|
||||
$count_homes = $db->getIpPorts_count('subuser',$_SESSION['user_id']);
|
||||
} else {
|
||||
$count_homes = $db->getIpPorts_count('user_and_group',$_SESSION['user_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$uri = '?m=dashboard&p=dashboard&limit='.$limit_user.'&page=';
|
||||
$OnlineServers .= paginationPages($count_homes[0]['total'], $page_user, $limit_user, $uri, 3, 'dashboardHomes');
|
||||
|
||||
$OnlineServers .= "<center>" . statistics . ":<br>$stats_servers_online/$stats_servers " . servers . "<br>" .
|
||||
$refresh->getdiv($refresh->add("home.php?m=dashboard&p=query_ref&show=player_statistics&type=cleared&ip=" .
|
||||
$server_home['ip']."&port=".$server_home['port'])) . "</center>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$OnlineServers .= "<table style='width:100%;' class='online_servers' id='noref'>";
|
||||
require("protocol/lgsl/lgsl_protocol.php");
|
||||
foreach( $server_homes as $server_home )
|
||||
{
|
||||
// Count the number of servers.
|
||||
$stats_servers++;
|
||||
$remote = new OGPRemoteLibrary( $server_home['agent_ip'],$server_home['agent_port'],
|
||||
$server_home['encryption_key'],$server_home['timeout'] );
|
||||
// Check if the screen running the server is running.
|
||||
if ( $remote->is_screen_running(OGP_SCREEN_TYPE_HOME,$server_home['home_id']) === 1 )
|
||||
{
|
||||
require_once("modules/config_games/server_config_parser.php");
|
||||
$server_xml = read_server_config(SERVER_CONFIG_LOCATION."/".$server_home['home_cfg_file']);
|
||||
|
||||
$ip = $server_home['ip'];
|
||||
$ip = checkDisplayPublicIP($server_home['display_public_ip'],$ip);
|
||||
|
||||
$port = $server_home['port'];
|
||||
|
||||
if($server_xml->protocol == "lgsl")
|
||||
{
|
||||
$get_q_and_s = lgsl_port_conversion((string)$server_xml->lgsl_query_name, $port, "", "");
|
||||
//Connection port
|
||||
$c_port = $get_q_and_s['0'];
|
||||
//query port
|
||||
$q_port = $get_q_and_s['1'];
|
||||
//software port
|
||||
$s_port = $get_q_and_s['2'];
|
||||
$address = "<a href='" . lgsl_software_link($server_xml->lgsl_query_name, $ip, $c_port, $q_port, $s_port) . "'>".$ip.":".$port."</a>";
|
||||
}
|
||||
elseif($server_xml->protocol == "teamspeak3")
|
||||
$address = "<a href='ts3server://$ip:$port'>$ip:$port</a>";
|
||||
elseif($server_xml->installer == "steamcmd")
|
||||
$address = "<a href='steam://connect/$ip:$port'>$ip:$port</a>";
|
||||
else
|
||||
$address = "$ip:$port";
|
||||
|
||||
$OnlineServers .= "<tr><td><div class='name' ><a href='?m=gamemanager&p=game_monitor&home_id-mod_id-ip-port=" . $server_home['home_id'] . "-" . $server_home['mod_id'] . "-" . $server_home['ip'] . "-" . $server_home['port'] . "' ><img style='border:0;height:12px;' src='images/magnifglass.png'/>" . htmlentities($server_home['home_name']) . "</a></div> | ";
|
||||
$OnlineServers .= "<div id='gamelink' >$address</div>";
|
||||
$OnlineServers .= "</td></tr>";
|
||||
$stats_servers_online++;
|
||||
}
|
||||
}
|
||||
$OnlineServers .= "</table>";
|
||||
$OnlineServers .= "<center>".get_lang('statistics').
|
||||
":<br>$stats_servers_online/$stats_servers ".
|
||||
get_lang('online_servers')."</center>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div style="margin-top:20px;">
|
||||
<?php
|
||||
//$title[$id] = "The Title";
|
||||
//$content[$id] = "Content of the Widget";
|
||||
$title = array();
|
||||
$content = array();
|
||||
$href = array();
|
||||
// Game Monitor
|
||||
$title[1] = get_lang('game_monitor');
|
||||
$content[1] = '<img src="themes/' . $settings['theme'] . '/images/icons/game_monitor.png" style="width:48px;float:right;margin:0 0 0 8px" />' . get_lang('dashboard_game_monitor_text');
|
||||
$href[1] = 'home.php?m=gamemanager&p=game_monitor';
|
||||
// Online Server
|
||||
$title[2] = $OnlineServersTitle;
|
||||
$content[2] = $OnlineServers;
|
||||
$href[2] = null;
|
||||
// Currently Online
|
||||
$title[3] = get_lang('currently_online');
|
||||
$content[3] = $player_list;
|
||||
$href[3] = null;
|
||||
|
||||
// Commented out per https://github.com/OpenGamePanel/OGP-Website/issues/407
|
||||
// FTP
|
||||
// $title[4] = get_lang('login');
|
||||
// $content[4] = '<img src="themes/' . $settings['theme'] . '/images/icons/folder.png" style="width:48px;float:right;margin:0 0 0 8px" />' . get_lang('welcome_text');
|
||||
// $href[4] = 'home.php?m=user_admin&p=edit_user&user_id='.$_SESSION['user_id'];
|
||||
|
||||
// Support
|
||||
$title[5] = (isset($settings['support_widget_title']) && $settings['support_widget_title'] != "") ?
|
||||
$settings['support_widget_title'] : get_lang('support');
|
||||
$content[5] = (isset($settings['support_widget_content']) && $settings['support_widget_content'] != "") ?
|
||||
$settings['support_widget_content'] : '<img src="themes/' . $settings['theme'] .
|
||||
'/images/icons/support.png" style="width:48px;float:right;margin:0 0 0 8px" />' . get_lang('dashboard_support_text');
|
||||
$href[5] = (isset($settings['support_widget_link']) && $settings['support_widget_link'] != "") ?
|
||||
$settings['support_widget_link'] : 'http://www.opengamepanel.org/forum';
|
||||
|
||||
$widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
|
||||
if(!$widgets)
|
||||
{
|
||||
if($db->createUserWidgets($_SESSION['user_id']))
|
||||
$widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no");
|
||||
}
|
||||
|
||||
if($widgets)
|
||||
{
|
||||
$colhtml[1] = '<div class="column one_fourth" id="column1" >';
|
||||
$colhtml[2] = '<div class="column one_two" id="column2" >';
|
||||
$colhtml[3] = '<div class="column one_fourth" id="column3" >';
|
||||
foreach($widgets as $widget)
|
||||
{
|
||||
if(array_key_exists($widget["widget_id"], $title)){
|
||||
if( (!isset($settings['old_dashboard_behavior']) or $settings['old_dashboard_behavior'] == 0) AND $widget['widget_id'] == "3" )
|
||||
continue;
|
||||
$colhtml[$widget['column_id']] .= '<div class="dragbox bloc rounded" id="item'.$widget['widget_id'].'">'.
|
||||
'<h4><span class="configure"></span>';
|
||||
if(!is_null($title[$widget['widget_id']]))
|
||||
$colhtml[$widget['column_id']] .= $title[$widget['widget_id']];
|
||||
|
||||
$colhtml[$widget['column_id']] .= '</h4><div class="dragbox-content" ';
|
||||
if(!is_null($href[$widget['widget_id']]))
|
||||
{
|
||||
$colhtml[$widget['column_id']] .= "onclick=\"location.href='". $href[$widget['widget_id']] . "'\" style=\"cursor:pointer;";
|
||||
if($widget['collapsed']==1)
|
||||
$colhtml[$widget['column_id']] .= 'display:none;';
|
||||
$colhtml[$widget['column_id']] .= '"';
|
||||
}
|
||||
elseif($widget['collapsed']==1)
|
||||
$colhtml[$widget['column_id']] .= 'style="display:none;"';
|
||||
|
||||
$colhtml[$widget['column_id']] .= '>';
|
||||
|
||||
if(!is_null($content[$widget['widget_id']]))
|
||||
$colhtml[$widget['column_id']] .= $content[$widget['widget_id']];
|
||||
|
||||
$colhtml[$widget['column_id']] .= '</div></div>';
|
||||
}
|
||||
}
|
||||
foreach($colhtml as $html )
|
||||
echo $html.'</div>';
|
||||
}
|
||||
if( $isAdmin AND $db->isModuleInstalled('status') )
|
||||
{
|
||||
echo "<h0>".get_lang('server_status')."</h0><br>";
|
||||
$servers = $db->getRemoteServers();
|
||||
|
||||
echo "<div id='column4' style='float:left;width:40%;' >
|
||||
<div class='bloc rounded' >
|
||||
<h4>".get_lang('select_remote_server')."</h4>
|
||||
<div>
|
||||
<br>
|
||||
<center>
|
||||
<form action='' method='GET'>
|
||||
<input type='hidden' name='m' value='".$_GET['m']."'/>
|
||||
<input type='hidden' name='p' value='".$_GET['p']."'/>
|
||||
<select name='remote_server_id' onchange=".'"this.form.submit()"'.">\n";
|
||||
|
||||
$agents_ips = array();
|
||||
foreach ( $servers as $server_row )
|
||||
{
|
||||
$agents_ips[$server_row['remote_server_id']] = gethostbyname($server_row['agent_ip']);
|
||||
if( !empty( $server_row['remote_server_id'] ) and !isset( $_GET['remote_server_id'] ) OR !empty( $server_row['remote_server_id'] ) and empty( $_GET['remote_server_id'] ) )
|
||||
{
|
||||
$_GET['remote_server_id'] = $server_row['remote_server_id'];
|
||||
}
|
||||
|
||||
if( isset($_GET['remote_server_id']) AND $_GET['remote_server_id'] == $server_row['remote_server_id'] )
|
||||
{
|
||||
$remote = new OGPRemoteLibrary( $server_row['agent_ip'], $server_row['agent_port'],
|
||||
$server_row['encryption_key'], $server_row['timeout'] );
|
||||
$host_stat = $remote->status_chk();
|
||||
if( $host_stat === 1 )
|
||||
{
|
||||
$checked = "selected='selected'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$checked = '';
|
||||
$_GET['remote_server_id'] = 'webhost';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$checked = '';
|
||||
}
|
||||
echo "<option value='".$server_row['remote_server_id']."' $checked >".$server_row['remote_server_name']."</option>\n";
|
||||
}
|
||||
|
||||
if ( function_exists('exec') )
|
||||
{
|
||||
$host_ip = isset($_SERVER['LOCAL_ADDR']) ? $_SERVER['LOCAL_ADDR'] : $_SERVER['SERVER_ADDR'];
|
||||
$remote_server_id = array_search($host_ip,$agents_ips);
|
||||
$show_webhost = true;
|
||||
if($remote_server_id)
|
||||
{
|
||||
$remote_server = $db->getRemoteServer($remote_server_id);
|
||||
$remote = new OGPRemoteLibrary( $remote_server['agent_ip'], $remote_server['agent_port'],
|
||||
$remote_server['encryption_key'], $remote_server['timeout'] );
|
||||
$host_stat = $remote->status_chk();
|
||||
if( $host_stat === 1 )
|
||||
$show_webhost = false;
|
||||
}
|
||||
if($show_webhost)
|
||||
{
|
||||
$checked = ( isset($_GET['remote_server_id']) AND $_GET['remote_server_id'] == 'webhost' ) ? "selected='selected'" : "";
|
||||
echo "<option value='webhost' $checked >Webhost Status</option>";
|
||||
}
|
||||
}
|
||||
|
||||
echo " </select>
|
||||
</form>
|
||||
</center>
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
</div>\n";
|
||||
|
||||
if( isset($_GET['remote_server_id']) AND ( $_GET['remote_server_id'] == "webhost" or $_GET['remote_server_id'] == "" ) )
|
||||
unset($_GET['remote_server_id']);
|
||||
|
||||
if( isset($_GET['remote_server_id']) )
|
||||
$remote_server = "&remote_server_id=".$_GET['remote_server_id'];
|
||||
else
|
||||
$remote_server = "";
|
||||
|
||||
if( isset($_GET['remote_server_id']) OR function_exists('exec') )
|
||||
echo $refresh->getdiv($refresh->add("home.php?m=status&type=cleared".$remote_server));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
<?php echo $refresh->build(isset($settings['query_cache_life']) ? $settings['query_cache_life'] * 2000 : 60000); ?>
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
1740
modules/faq/faq.bak
1740
modules/faq/faq.bak
File diff suppressed because it is too large
Load diff
|
|
@ -1,190 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<rss version="2.0"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
|
||||
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
>
|
||||
<channel>
|
||||
|
||||
<title>IAREGAMER FAQ</title>
|
||||
<link>https://iaregamer.com</link>
|
||||
<description></description>
|
||||
<dc:language>en</dc:language>
|
||||
<generator>Serendipity 2.0.4 - http://www.s9y.org/</generator>
|
||||
<pubDate>Wed, 17 Jun 2020 20:10:54 GMT</pubDate>
|
||||
|
||||
<image>
|
||||
<url></url>
|
||||
<title>RSS: IAREGAMER FAQ - </title>
|
||||
<link>https://iaregamer.com</link>
|
||||
<width>100</width>
|
||||
<height>21</height>
|
||||
</image>
|
||||
|
||||
<item>
|
||||
<title>What if I need help with my server?</title>
|
||||
<category>General</category>
|
||||
|
||||
<content:encoded>
|
||||
(1) if your server is not responding, submit a ticket or contact us on Discord
|
||||
(2) if you need help with scripting, contact us on Discord and let us know what you need
|
||||
(3) confused? contact us on Discord
|
||||
|
||||
</content:encoded>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>What is the Query Port (or other port) for my server</title>
|
||||
<category>General</category>
|
||||
|
||||
<content:encoded>
|
||||
Each game has its own category with specific information about that game including the query (and other) ports.
|
||||
Look in the FAQ category for your game.
|
||||
If your game is not listed, or the query port is not specified then its probably the SAME as your SERVER PORT. If it still doesnt work, submit a ticket and we will find out ASAP for you (and update the FAQ)
|
||||
|
||||
|
||||
</content:encoded>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>What are subusers and groups? How do I add them?</title>
|
||||
<category>Panel</category>
|
||||
|
||||
<content:encoded>
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/g45JbifloFQ" frameborder="0" allowfullscreen></iframe>
|
||||
|
||||
</content:encoded>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>My server won't start. Error: "Failed to start the remote server. Error code: -1" or "Failed with server query"</title>
|
||||
<category>Error Messages</category>
|
||||
|
||||
<content:encoded>
|
||||
Often the message (Failed with Server Query) means its just taking a long time for the server to start, give it some time and see what happens.
|
||||
Check your logs for error messages.
|
||||
Your server MAY have been misconfigured and is not starting correctly.
|
||||
BUT have you recently changed any files?
|
||||
The most common reason is the server is crashing or fails to start because of invalid, missing files
|
||||
or something is misconfigured.
|
||||
Restore the BACKUP you made before editing your server. (You DID backup, right?)
|
||||
If you have NOT made any changes, contact support and we will investigate.
|
||||
</content:encoded>
|
||||
|
||||
</item>
|
||||
<item>
|
||||
<title>What is my Query or Rcon port?</title>
|
||||
<category>Ark</category>
|
||||
|
||||
<content:encoded>
|
||||
Query port is your SERVER port +2
|
||||
|
||||
</content:encoded>
|
||||
</item>
|
||||
<item>
|
||||
<title>What is my Query or Rcon port?</title>
|
||||
<category>Arma</category>
|
||||
|
||||
<content:encoded>
|
||||
Query port is your SERVER port +1
|
||||
|
||||
</content:encoded>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>What is my Query or Rcon port?</title>
|
||||
<category>Conan Exiles</category>
|
||||
|
||||
<content:encoded>
|
||||
Query port is your SERVER port +2
|
||||
Rcon port is your SERVER port + 3
|
||||
</content:encoded>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>What is my Query port?</title>
|
||||
<category>Dayz</category>
|
||||
|
||||
<content:encoded>
|
||||
Dayz MOD query port is your SERVER port +1
|
||||
Dayz STANDALONE query port is your SERVER port +3
|
||||
</content:encoded>
|
||||
|
||||
</item>
|
||||
<item>
|
||||
<title>What is my Query or Rcon port?</title>
|
||||
<category>Killing Floor</category>
|
||||
|
||||
<content:encoded>
|
||||
Query port is your SERVER port +1
|
||||
|
||||
</content:encoded>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>I get an ERROR when trying to connect to the FTP using my client</title>
|
||||
<category>Panel</category>
|
||||
|
||||
<content:encoded>
|
||||
Does the error mention TLS or secure connection? Try different encryption settings. Our FTP servers do not have TLS enabled.
|
||||
</content:encoded>
|
||||
|
||||
</item>
|
||||
<item>
|
||||
<title>How can I backup and restore my Gameserver database?</title>
|
||||
<category>Panel</category>
|
||||
|
||||
<content:encoded>
|
||||
In your Game Monitor, click on the MYSQL button and then login to PHPMYADMIN.
|
||||
Select EXPORT and save the file on your local PC.
|
||||
To RESTORE, delete ALL TABLES, FUNCTIONS and DATA from your DB then IMPORT your file
|
||||
</content:encoded>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Why can't I delete some files in my game server folder?</title>
|
||||
<category>Panel</category>
|
||||
|
||||
<content:encoded>
|
||||
We protect the <strong>server executable</strong> and the <strong>startup script</strong> to disallow modifications by the user.
|
||||
If you need to change this file, contact support.
|
||||
|
||||
|
||||
</content:encoded>
|
||||
|
||||
|
||||
</item>
|
||||
<item>
|
||||
<title>How do I validate my files with Steam?</title>
|
||||
<category>Panel</category>
|
||||
|
||||
<content:encoded>
|
||||
If you click on the INSTALL/UPDATE button it will validate all your Steam files. If you want to WIPE your server and reinstall fresh, 'check' the checkbox on the upper left of the
|
||||
FILE MANAGER and REMOVE all files. Then press INSTALL/UPDATE and Steam will replace all the missing files.
|
||||
</content:encoded>
|
||||
</item>
|
||||
|
||||
|
||||
<item>
|
||||
<title>How do I restart my server?</title>
|
||||
<category>Dayz</category>
|
||||
|
||||
<content:encoded>
|
||||
BEC is preinstalled with your server. You can set the scheduler.xml to restart at intervals.
|
||||
There is a scheduler_faq.xml file inside your bec/config folder that will explain in detail
|
||||
how to configure the scheduler.
|
||||
As always, if you need help just ask on Discord.
|
||||
</content:encoded>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
*
|
||||
* OGP - Open Game Panel
|
||||
* Copyright (C) 2008 - 2018 The OGP Development Team
|
||||
*
|
||||
* http://www.opengamepanel.org/
|
||||
*
|
||||
* This program 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 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$module_buttons = array(
|
||||
"<a class='monitorbutton' target='_blank' href='http://" . $server_home['ip'] . "/phpmyadmin' '>
|
||||
<img src='" . check_theme_image("modules/administration/images/mysql_admin.png") . "' title='". get_lang("mysql_databases") ."'>
|
||||
<span>". get_lang("mysql_databases") ."</span>
|
||||
</a>"
|
||||
);
|
||||
?>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
<?php exit;?>
|
||||
|
||||
[website]
|
||||
date_format = "d/m/Y"
|
||||
results_per_page = "10"
|
||||
image_quality = "90"
|
||||
max_image_width = "1280"
|
||||
enable_search = "0"
|
||||
WYSIWYG = "TinyMCE"
|
||||
tinymce_lang = "en_GB"
|
||||
tinymce_skin = "lightgray"
|
||||
gallery_theme = "default"
|
||||
images_bottom = "0"
|
||||
safe_HTML = "0"
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<listings>
|
||||
</listings>
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,930 +0,0 @@
|
|||
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400');
|
||||
@import url("font-awesome.min.css");
|
||||
|
||||
body {
|
||||
-webkit-background-size: cover !important;
|
||||
-moz-background-size: cover !important;
|
||||
-o-background-size: cover !important;
|
||||
background-size: cover !important;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
background-position: center;
|
||||
text-shadow: 0 1px 3px rgba(0,0,0,.5);
|
||||
}
|
||||
|
||||
#editor_wrapper {
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
body > .container-fluid {
|
||||
display: none;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-button{
|
||||
display: none;
|
||||
}
|
||||
::-webkit-scrollbar-button:hover{
|
||||
background-color: #AAA;
|
||||
}
|
||||
::-webkit-scrollbar-thumb{
|
||||
background-color: #CCC;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover{
|
||||
background-color: #CCC;
|
||||
}
|
||||
::-webkit-scrollbar-track{
|
||||
background-color: rgba(40, 42, 49, 1);
|
||||
}
|
||||
::-webkit-scrollbar-track:hover{
|
||||
background-color: #CCC;
|
||||
}
|
||||
::-webkit-scrollbar{
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
@-webkit-keyframes autofill {
|
||||
to {
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
input:-webkit-autofill,
|
||||
textarea:-webkit-autofill,
|
||||
select:-webkit-autofill {
|
||||
-webkit-animation-name: autofill;
|
||||
-webkit-animation-fill-mode: both;
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.g-recaptcha {
|
||||
-ms-zoom: 0.95;
|
||||
-moz-transform: scale(0.95);
|
||||
-moz-transform-origin: 0 0;
|
||||
-o-transform: scale(0.95);
|
||||
-o-transform-origin: 0 0;
|
||||
-webkit-transform: scale(0.95);
|
||||
-webkit-transform-origin: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="image"]{
|
||||
margin-right: 5px;
|
||||
}
|
||||
input[type="radio"], input[type="checkbox"] {
|
||||
margin: 4px 6px;
|
||||
}
|
||||
|
||||
input#search,
|
||||
input#search + input[type="submit"] {
|
||||
display: inline-block !important;
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
.input-group-btn > .btn-file {
|
||||
line-height: 22px;
|
||||
border: 0px solid transparent;
|
||||
margin-left: 2px;
|
||||
}
|
||||
.input-group-btn > .btn-file > .fa {
|
||||
line-height: 22px;
|
||||
}
|
||||
.input-group .fa {
|
||||
min-width: 12px;
|
||||
}
|
||||
|
||||
.btn-file {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.btn-file input[type=file] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
font-size: 100px;
|
||||
text-align: right;
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
outline: none;
|
||||
background: white;
|
||||
cursor: inherit;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.btn,
|
||||
.btn-primary {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
.btn-primary:after,
|
||||
.btn:after,
|
||||
.input-hack:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -10%;
|
||||
right: -25%;
|
||||
width: 60%;
|
||||
height: 800%;
|
||||
background-color: rgba(255,255,255,0.2);
|
||||
z-index: 1;
|
||||
-ms-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-ms-transform: rotate(-15deg);
|
||||
transform: rotate(-15deg);
|
||||
transition: all .3s ease-in-out;
|
||||
}
|
||||
.input-hack {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 4px;
|
||||
margin: 2px;
|
||||
}
|
||||
.input-hack > input {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
.btn-primary:hover:after,
|
||||
.btn:hover:after,
|
||||
.input-hack:hover:after {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.loading-overlay {
|
||||
background-color: rgba(26, 28, 34, 0.8);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 99;
|
||||
text-align: center;
|
||||
}
|
||||
.loading-overlay img {
|
||||
top: 40%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.loadinggif {
|
||||
font-size: 100px;
|
||||
}
|
||||
|
||||
.redirectLink {
|
||||
margin-bottom: 15px !important;
|
||||
}
|
||||
|
||||
h0, h1, h2, h3, h4, h5, h6, legend {
|
||||
font-family: Roboto;
|
||||
font-weight: 300;
|
||||
}
|
||||
h0, h1, h2, h3, h4, h5, h6 {
|
||||
text-transform: uppercase;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
td > h3 {
|
||||
margin: 0px !important;
|
||||
padding: 0px !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
.logo{
|
||||
padding: 20px;
|
||||
}
|
||||
.logo h2 {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.login-container {
|
||||
max-width: 550px;
|
||||
padding: 20px;
|
||||
margin: auto;
|
||||
border-radius: 5px;
|
||||
background-color: rgba(26, 28, 34, 0.3);
|
||||
border: 1px solid rgba(35, 40, 46, 0.8);
|
||||
}
|
||||
.login-container input, .login-container select {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.login-container h3 {
|
||||
margin-top: 0px;
|
||||
}
|
||||
.login-container .input-group {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.input-group > .form-control {
|
||||
border-left: 0px;
|
||||
}
|
||||
.input-group > .form-control:focus {
|
||||
box-shadow: none !important;
|
||||
-webkit-box-shadow: none !important;
|
||||
}
|
||||
select.form-control {
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.btn:not(span) {
|
||||
margin: 2px;
|
||||
}
|
||||
h4.collapse,
|
||||
.subUserShowHideTextTd.collapse {
|
||||
display: block !important;
|
||||
}
|
||||
.bloc {
|
||||
padding: 10px;
|
||||
}
|
||||
.col.footer {
|
||||
background-color: rgba(26, 28, 34, 0.5);
|
||||
padding: 40px;
|
||||
margin-top: 40px;
|
||||
}
|
||||
.footer.center {
|
||||
text-align: left !important;
|
||||
}
|
||||
.hidden, .hide {
|
||||
display: none !important;
|
||||
}
|
||||
.inline-block{
|
||||
display: inline-block;
|
||||
}
|
||||
div.OGPVersionArea{
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
span.copyVersionResult{
|
||||
position: absolute;
|
||||
left: 90%;
|
||||
top: 0;
|
||||
}
|
||||
.bootstrap-datetimepicker-widget > ul{
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
span.versionInfo{
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
#dialog
|
||||
{
|
||||
height: auto !important;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#dialog p{
|
||||
text-align: left;
|
||||
text-align: initial;
|
||||
}
|
||||
|
||||
.table .table {
|
||||
background-color: inherit;
|
||||
}
|
||||
.table>thead>tr>th {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: normal;
|
||||
}
|
||||
.label-size {
|
||||
font-size: 90%;
|
||||
line-height: 1.5;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.tablesorter .header:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
.headerSortDown:before,
|
||||
.headerSortUp:before
|
||||
{
|
||||
font-family: 'FontAwesome';
|
||||
margin-right: 5px;
|
||||
float: left;
|
||||
}
|
||||
.headerSortDown:before { content: "\f107"; }
|
||||
.headerSortUp:before { content: "\f106"; }
|
||||
|
||||
fieldset.infoBox {
|
||||
margin-right: 10px;
|
||||
}
|
||||
th {
|
||||
font-weight: 400 !important;
|
||||
text-transform: uppercase !important;
|
||||
background-color: rgba(26, 28, 34, 0.5);
|
||||
}
|
||||
|
||||
.collapsible:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.expandme:hover {
|
||||
background-color: rgba(67,72,87,0.6);
|
||||
}
|
||||
|
||||
[data-toggle="tooltip"]:not(#bg_preview) {
|
||||
font-size: 130%;
|
||||
}
|
||||
#bg_preview + .tooltip.in {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
.image-tooltip + .tooltip {
|
||||
left: 40px !important;
|
||||
}
|
||||
.image-tooltip + .tooltip > .tooltip-inner {
|
||||
max-width: 100%;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.online { color: #5cb85c; }
|
||||
.offline { color: #d9534f; }
|
||||
|
||||
input[type="checkbox"] {
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-o-appearance: none;
|
||||
font-family: FontAwesome;
|
||||
border: 1px solid rgba(67, 72, 87, 1);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-color: rgba(26, 28, 34, 0.2) !important;
|
||||
border-radius: 3px;
|
||||
display: inline-block;
|
||||
outline: none;
|
||||
margin: 0px 4px;
|
||||
}
|
||||
input[type="checkbox"][disabled] {
|
||||
border: 1px solid rgba(67, 72, 87, 0.5);
|
||||
}
|
||||
input[type=checkbox]:before {
|
||||
content: "\f00c";
|
||||
color: transparent;
|
||||
}
|
||||
input[type=checkbox]:checked:before {
|
||||
color: #fff;
|
||||
}
|
||||
select{
|
||||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAAGFBMVEUAAAD///////////////////////////8jfp1fAAAAB3RSTlMAGjG+6/P1wTTolgAAACVJREFUCFtjYEAC5uXl5Q4MYkBSgYExvbwIKCQGZDIwMAYxYAEA1swFyXm1qtoAAAAASUVORK5CYII=") no-repeat calc(100% - 10px) 50% rgba(26, 28, 34, 0.4) !important;
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
/* *** Button Fix *** */
|
||||
button { -webkit-appearance: button; }
|
||||
#server_icon,
|
||||
input[name="empty_logger"]
|
||||
{
|
||||
cursor: pointer;
|
||||
background-image: -webkit-linear-gradient(top, #1997c6 0, #126e90 100%);
|
||||
background-image: -o-linear-gradient(top, #1997c6 0, #126e90 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #1997c6), to(#126e90));
|
||||
background-image: linear-gradient(to bottom, #1997c6 0, #126e90 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1997c6', endColorstr='#ff126e90', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #116787;
|
||||
text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 1px rgba(0,0,0,0.075);
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 1px rgba(0,0,0,0.075);
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
background-color:#126e90;
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
white-space: nowrap;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
#server_icon:hover,
|
||||
input[name="empty_logger"]:hover
|
||||
{
|
||||
background-color: #126e90;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
|
||||
/* *** Magnifier Restyling *** */
|
||||
.mfp-bg {
|
||||
opacity: 1 !important;
|
||||
background: rgba(170, 170, 170, 0.3) !important;
|
||||
}
|
||||
.white-popup {
|
||||
background-color: rgba(26, 28, 34, 0.9) !important;
|
||||
border: 1px solid #23282e !important;
|
||||
color: #fff !important;
|
||||
border-radius: 4px !important;
|
||||
padding: 2px !important;
|
||||
}
|
||||
.magnificTitle {
|
||||
background-color: #1997C6 !important;
|
||||
border-radius: 4px !important;
|
||||
font-size: 15px !important;
|
||||
}
|
||||
.magnificSubTitle {
|
||||
background-color: transparent !important;
|
||||
padding: 5px !important;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
.mfp-close {
|
||||
width: 30px !important;
|
||||
height: 30px !important;
|
||||
margin: 5px !important;
|
||||
background-image: -webkit-linear-gradient(top, #1997c6 0, #126e90 100%) !important;
|
||||
background-image: -o-linear-gradient(top, #1997c6 0, #126e90 100%) !important;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #1997c6), to(#126e90)) !important;
|
||||
background-image: linear-gradient(to bottom, #1997c6 0, #126e90 100%) !important;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1997c6', endColorstr='#ff126e90', GradientType=0) !important;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false) !important;
|
||||
background-repeat: repeat-x !important;
|
||||
border-color: #116787 !important;
|
||||
overflow: hidden !important;
|
||||
display: inline-block !important;
|
||||
position: absolute !important;
|
||||
}
|
||||
button.mfp-close:hover {
|
||||
background-color: #126e90 !important;
|
||||
}
|
||||
button.mfp-close:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
|
||||
/* *** Alert Styling *** */
|
||||
.alert {
|
||||
padding-left: 50px;
|
||||
position: relative;
|
||||
}
|
||||
.alert:before {
|
||||
font-family: FontAwesome;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 15px;
|
||||
font-size: 20px;
|
||||
}
|
||||
.alert.alert-info:before {
|
||||
content: "\f05a";
|
||||
}
|
||||
.alert.alert-success:before {
|
||||
content: "\f046";
|
||||
}
|
||||
.alert.alert-warning:before {
|
||||
content: "\f071";
|
||||
}
|
||||
.alert.alert-danger:before {
|
||||
content: "\f057";
|
||||
}
|
||||
.alert-success,
|
||||
.alert-danger {
|
||||
text-shadow: 0 1px 3px rgba(0,0,0,.2);
|
||||
}
|
||||
|
||||
|
||||
/* *** UI-Dialog Restyling *** */
|
||||
.ui-widget-content {
|
||||
background-color: transparent !important;
|
||||
border-color: transparent !important;
|
||||
}
|
||||
.ui-dialog {
|
||||
background-color: rgba(26, 28, 34, 0.8) !important;
|
||||
border: 1px solid #23282e !important;
|
||||
}
|
||||
.ui-draggable .ui-dialog-titlebar {
|
||||
background-color: #1997c6;
|
||||
border: none;
|
||||
color: #fff;
|
||||
}
|
||||
input[name="map-image"] {
|
||||
color: #fff;
|
||||
outline: none;
|
||||
}
|
||||
.ui-widget-content {
|
||||
height: auto !important;
|
||||
}
|
||||
.ui-dialog-titlebar-close:before {
|
||||
content: "\f00d";
|
||||
}
|
||||
.ui-dialog-titlebar-close
|
||||
{
|
||||
font-family: FontAwesome !important;
|
||||
background-image: -webkit-linear-gradient(top, #d9534f 0, #c12e2a 100%);
|
||||
background-image: -o-linear-gradient(top, #d9534f 0, #c12e2a 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #d9534f), to(#c12e2a));
|
||||
background-image: linear-gradient(to bottom, #d9534f 0, #c12e2a 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #b92c28;
|
||||
}
|
||||
.ui-dialog-titlebar-close:hover
|
||||
{
|
||||
background-color: #c12e2a;
|
||||
}
|
||||
.ui-widget input, .ui-widget select, .ui-widget textarea {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 6px 12px;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857143;
|
||||
color: #fff;
|
||||
background-color: rgba(26, 28, 34, 0.4);
|
||||
background-image: none;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
||||
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
|
||||
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
||||
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
||||
margin-bottom: 2px;
|
||||
border: 1px solid #22252f;
|
||||
}
|
||||
|
||||
.ui-widget .btn:focus,
|
||||
.ui-widget input:focus,
|
||||
.ui-widget select:focus,
|
||||
.ui-widget textarea:focus {
|
||||
outline: 0;
|
||||
}
|
||||
.ui-widget button:not(.ui-dialog-titlebar-close) {
|
||||
color: #fff;
|
||||
background-color: #0f5c79;
|
||||
border-color: #082f3e;
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
border-radius: 3px;
|
||||
background-image: -webkit-linear-gradient(top, #1997c6 0, #126e90 100%);
|
||||
background-image: -o-linear-gradient(top, #1997c6 0, #126e90 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #1997c6), to(#126e90));
|
||||
background-image: linear-gradient(to bottom, #1997c6 0, #126e90 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1997c6', endColorstr='#ff126e90', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #116787;
|
||||
text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 1px rgba(0,0,0,0.075);
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 1px rgba(0,0,0,0.075);
|
||||
border: 1px transparent;
|
||||
}
|
||||
.ui-widget button:not(.ui-dialog-titlebar-close):hover, .ui-widget button:not(.ui-dialog-titlebar-close):focus {
|
||||
background-color: #126e90;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.list-group {
|
||||
border: 1px solid #23282e;
|
||||
background-color: rgba(26, 28, 34, 0.2);
|
||||
}
|
||||
.list-group-item:not(:last-child) {
|
||||
border-bottom: 1px solid #22252f;
|
||||
}
|
||||
.list-group > .list-group-item:nth-of-type(odd) {
|
||||
background-color: rgba(26, 28, 34, 0.2);
|
||||
}
|
||||
|
||||
|
||||
/* ***** MENU ***** */
|
||||
@media (min-width: 992px) {
|
||||
.navbar-header {
|
||||
display: none;
|
||||
}
|
||||
.navigation {
|
||||
padding-right: 0px;
|
||||
}
|
||||
}
|
||||
.navbar-header {
|
||||
background-color: rgba(25, 151, 198, 0.8);
|
||||
border-radius: 4px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.navbar-brand {
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
font-weight: 300;
|
||||
}
|
||||
.navbar-toggle {
|
||||
margin: 8px !important;
|
||||
}
|
||||
.navbar.navbar-default {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.navbar:not(.navbar-default) {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
|
||||
.navbar:not(.navbar-default) .menu {
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid #22252f;
|
||||
}
|
||||
.menu .panel{
|
||||
margin-bottom: 0px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.menu li:not(:last-of-type) {
|
||||
border-bottom: 1px solid #23282e;
|
||||
}
|
||||
.menu ul:not(:first-child) {
|
||||
border-top: 1px solid #23282e;
|
||||
}
|
||||
|
||||
.menu ul {
|
||||
list-style: none;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
line-height: 35px;
|
||||
cursor: pointer;
|
||||
background-color: rgba(26, 28, 34, 0.2);
|
||||
transition: height 0.1s ease-in;
|
||||
}
|
||||
.menu > ul {
|
||||
background-color: rgba(26, 28, 34, 0.5);
|
||||
}
|
||||
|
||||
.menu li li {
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.menu a:hover,
|
||||
.menu .ready{
|
||||
background-color: rgba(25, 151, 198, 0.8) !important;
|
||||
text-decoration: none;
|
||||
transition: max-height 0.1s;
|
||||
}
|
||||
[class$="menu_link_selected"],
|
||||
.menu a[aria-expanded="true"] {
|
||||
background-color: #1686af !important;
|
||||
}
|
||||
.menu [id$=#submenu_] .btn-primary:hover {
|
||||
background-position: 0 -35px;
|
||||
}
|
||||
.menu .active .btn-primary:hover {
|
||||
background-position: 0 -50px;
|
||||
}
|
||||
.menu a {
|
||||
display: block;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
padding: 0px 10px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.menu ul[id^=submenu] ul[id^=submenu] a {
|
||||
padding: 0px 20px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.menu ul[id^=submenu] a,
|
||||
.menu ul#administration a,
|
||||
.menu ul > li > ul a
|
||||
{
|
||||
font-size: 12px;
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
.menu a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menu a[href^="#mgamemanagerpgamemonitorhomecfgid"] span:before {
|
||||
content: "" !important;
|
||||
width: 0px !important;
|
||||
}
|
||||
|
||||
.menu img {
|
||||
max-height: 15px;
|
||||
margin-right: 5px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.menu a > span {
|
||||
white-space: nowrap;
|
||||
transition: padding 100ms;
|
||||
}
|
||||
#menu:not(.nav) a:hover > span {
|
||||
padding-left: 2px;
|
||||
}
|
||||
.menu .tree ul:not(.opened) .tree:before {
|
||||
visibility: hidden;
|
||||
}
|
||||
.menu .tree ul.opened .tree:before {
|
||||
visibility: visible;
|
||||
}
|
||||
[id^="mgamemanagerpgamemonitorhomecfgid"] a.user_menu_link:before {
|
||||
content: "\25CF";
|
||||
position: relative;
|
||||
left: -5px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* *** Font-Awesome *** */
|
||||
a:before,
|
||||
.menu .tree:before,
|
||||
.menu a span:before
|
||||
{
|
||||
font-family: 'FontAwesome';
|
||||
}
|
||||
.menu a span:before {
|
||||
width: 22px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.menu .panel > a:before {
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
content: "\f104";
|
||||
margin-right: 10px;
|
||||
font-size: 80%;
|
||||
-webkit-transition: all 100ms;
|
||||
transition: all 100ms;
|
||||
}
|
||||
.menu .panel > a[aria-expanded="true"]:before {
|
||||
-webkit-transform: rotate(-90deg);
|
||||
-moz-transform: rotate(-90deg);
|
||||
-o-transform: rotate(-90deg);
|
||||
-ms-transform: rotate(-90deg);
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.monitorbutton:before {
|
||||
display: block;
|
||||
font-size: 40px;
|
||||
//margin-bottom: -5px;
|
||||
}
|
||||
|
||||
.loading:before {
|
||||
content: "\f021" !important;
|
||||
-webkit-animation: fa-spin 2s infinite linear;
|
||||
animation: fa-spin 2s infinite linear;
|
||||
}
|
||||
.loading {
|
||||
content: "Loading..." !important;
|
||||
}
|
||||
|
||||
form:not([name="login_form"]) .form-control,
|
||||
.login-container .input-group,
|
||||
input[type="checkbox"] {
|
||||
-moz-box-shadow: 0px 0px 1px 1px rgba(255,255,255,0.2);
|
||||
-webkit-box-shadow: 0px 0px 1px 1px rgba(255,255,255,0.2);
|
||||
box-shadow: 0px 0px 1px 1px rgba(255,255,255,0.2);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.ace_scroller {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
.ace_scrollbar-inner {
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
/* Default */
|
||||
.menu a > span:before,
|
||||
.administration-table a:before,
|
||||
.monitorButtonContainer a:before
|
||||
{ content: "\f192"; }
|
||||
|
||||
/* Defined */
|
||||
.menu ul[id^="submenu"] span:before { display: none; }
|
||||
.menu [href="?m=dashboard&p=dashboard"] > span:before,
|
||||
.administration-table [href="?m=dashboard&p=dashboard"]:before { content: "\f0e4"; }
|
||||
.menu [href="?m=gamemanager&p=game_monitor"] > span:before,
|
||||
.menu [link="?m=gamemanager&p=game_monitor"] > span:before { content: "\f108"; }
|
||||
.menu [href="?m=administration&p=main"] > span:before,
|
||||
.menu [link="?m=administration&p=main"] > span:before { content: "\f023"; }
|
||||
.menu [href="?m=TS3Admin"] > span:before { content: "\f086"; }
|
||||
.menu [href^="?m=gamemanager&p=log"] > span:before,
|
||||
.monitorButtonContainer [href^="?m=gamemanager&p=log"]:before { content: "\f1da"; }
|
||||
|
||||
.menu [href="?m=addonsmanager&p=addons_manager"] > span:before,
|
||||
.monitorButtonContainer [href^="?m=addonsmanager&p=user_addons"]:before,
|
||||
.administration-table [href="?m=addonsmanager&p=addons_manager"]:before { content: "\f12e"; }
|
||||
.menu [href="?m=extras"] > span:before,
|
||||
.administration-table [href="?m=extras"]:before{ content: "\f1e6"; }
|
||||
.menu [href^="?m=ftp"] > span:before,
|
||||
.monitorButtonContainer [href^="?m=ftp"]:before,
|
||||
.administration-table [href^="?m=ftp"]:before{ content: "\f15c"; }
|
||||
.menu [href="?m=user_games"] > span:before,
|
||||
.administration-table [href="?m=user_games"]:before{ content: "\f11b"; }
|
||||
.menu [href="?m=config_games"] > span:before,
|
||||
.administration-table [href="?m=config_games"]:before{ content: "\f046"; }
|
||||
.menu [href^="?m=litefm"] > span:before,
|
||||
.menu [href="?m=litefm&p=litefm_settings"] > span:before,
|
||||
.administration-table [href="?m=litefm&p=litefm_settings"]:before,
|
||||
.menu [href^="?m=user_games&p=edit"] > span:before,
|
||||
.monitorButtonContainer [href^="?m=user_games&p=edit"]:before{ content: "\f085"; }
|
||||
.menu [href="?m=modulemanager"] > span:before,
|
||||
.administration-table [href="?m=modulemanager"]:before { content: "\f009"; }
|
||||
.menu [href="?m=settings"] > span:before,
|
||||
.administration-table [href="?m=settings"]:before { content: "\f1de"; }
|
||||
.menu [href="?m=server"] > span:before,
|
||||
.administration-table [href="?m=server"]:before { content: "\f233"; }
|
||||
.menu [href="?m=settings&p=themes"] > span:before,
|
||||
.administration-table [href="?m=settings&p=themes"]:before { content: "\f043"; }
|
||||
.menu [href="?m=update"] > span:before,
|
||||
.administration-table [href="?m=update"]:before { content: "\f021"; }
|
||||
.menu [href^="?m=gamemanager&p=update"] > span:before,
|
||||
.menu [href^="?m=steam_workshop"] > span:before,
|
||||
.administration-table [href^="?m=steam_workshop"]:before,
|
||||
.monitorButtonContainer [href^="?m=gamemanager&p=update"]:before { content: "\f1b6"; }
|
||||
.menu [href^="?m=user_admin"] > span:before,
|
||||
.menu [link^="?m=user_admin"] > span:before,
|
||||
.administration-table [href^="?m=user_admin"]:before{ content: "\f007"; }
|
||||
.menu [href="?m=user_admin&p=show_groups"] > span:before { content: "\f0c0"; }
|
||||
.menu [href="?m=administration&p=watch_logger"] > span:before,
|
||||
.administration-table [href="?m=administration&p=watch_logger"]:before { content: "\f017"; }
|
||||
.menu [href^="?m=cron"] > span:before,
|
||||
.administration-table [href^="?m=cron"]:before { content: "\f073"; }
|
||||
.menu [href="?m=mysql&p=mysql_admin"] > span:before,
|
||||
.monitorButtonContainer [href^="?m=mysql"]:before,
|
||||
.administration-table [href="?m=mysql&p=mysql_admin"]:before { content: "\f1c0"; }
|
||||
.menu [href="?m=administration&p=banlist"] > span:before,
|
||||
.administration-table [href="?m=administration&p=banlist"]:before { content: "\f05e"; }
|
||||
.menu [href^="home.php?m=gamemanager&p=rcon_presets"] > span:before,
|
||||
.monitorButtonContainer [href^="home.php?m=gamemanager&p=rcon_presets"]:before,
|
||||
.menu [href="?m=rcon&p=rcon"] > span:before,
|
||||
.administration-table [href="?m=rcon&p=rcon"]:before { content: "\f120"; }
|
||||
.menu [href^="?m=gamemanager&p=rsync_install"] > span:before { content: "\f0ad"; }
|
||||
.menu [href^="?m=support"] > span:before { content: "\f095"; }
|
||||
.menu [href^="?m=faq"] > span:before,
|
||||
.administration-table [href^="?m=faq"]:before{ content: "\f29c"; }
|
||||
.menu [href^="?m=fast_download"] > span:before,
|
||||
.monitorButtonContainer [href^="?m=fast_download"]:before,
|
||||
.administration-table [href^="?m=fast_download"]:before { content: "\f019"; }
|
||||
.menu [href^="?m=dsi"] > span:before,
|
||||
.monitorButtonContainer [href^="?m=dsi"]:before,
|
||||
.administration-table [href^="?m=dsi"]:before{ content: "\f03e"; }
|
||||
.menu [href^="?m=billing"] > span:before,
|
||||
.administration-table [href^="?m=billing"]:before { content: "\f07a"; }
|
||||
.menu [href^="?m=util"] > span:before { content: "\f0ad"; }
|
||||
.menu [href^="?m=lgsl_with_img_mod"] > span:before,
|
||||
.administration-table [href^="?m=lgsl_with_img_mod"]:before { content: "\f022"; }
|
||||
.menu [href^="?m=news"] > span:before,
|
||||
.administration-table [href^="?m=news"]:before { content: "\f1ea"; }
|
||||
.menu [href^="?m=register"] > span:before { content: "\f067"; }
|
||||
.menu [href="?logout"] > span:before { content: "\f08b"; }
|
||||
.menu [href="index.php"] > span:before { content: "\f0e4"; }
|
||||
.monitorButtonContainer [href^="?m=litefm"]:before { content: "\f03a"; }
|
||||
.monitorbutton.size:before { content: "\f115"; }
|
||||
.monitorbutton.getAutoUpdateLink:before { content: "\f0c1"; }
|
||||
.monitorButtonContainer [href^="?m=gamemanager&p=rsync_install"]:before { content: "\f0ed"; }
|
||||
.administration-table [href^="?m=administration&p=iframe&external_link="]:before { content: "\f0c1"; }
|
||||
.menu [href^="?m=tickets"] > span:before,
|
||||
.administration-table [href^="?m=tickets"]:before { content: "\f145"; }
|
||||
.monitorButtonContainer [href^="?m=editconfigfiles"]:before { content: "\f1c9"; }
|
||||
.monitorButtonContainer [href^="?m=user_games&p=custom_fields"]:before { content: "\f1de"; }
|
||||
.menu [href="?m=tshock"] > span:before { content: "\f145"; }
|
||||
.menu [href="?m=circular"] > span:before,
|
||||
.administration-table [href="?m=circular"]:before { content: "\f0e0"; }
|
||||
.monitorbutton.getAPILinks:before { content: "\f0ec"; }
|
||||
|
||||
|
||||
/* *** Theme Styler - Dont remove anything below this Line or it will break the Sheet!!! *** */
|
||||
|
||||
/* *** THEME STYLER *** */
|
||||
body {
|
||||
background-image: url(../images/bg/light.jpg);
|
||||
background-color: #2b343b;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6, legend {
|
||||
border-bottom: 1px solid #9fa1a9;
|
||||
}
|
||||
h0 a
|
||||
{
|
||||
color: #272c32;
|
||||
}
|
||||
h0 a:hover
|
||||
{
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.bloc,
|
||||
.form-control,
|
||||
table:not(.online_servers),
|
||||
input[type="checkbox"] {
|
||||
border: 1px solid #22252f;
|
||||
}
|
||||
|
||||
.input-group > .input-group-addon {
|
||||
border: 1px solid rgba(35, 40, 46, 0.8);
|
||||
border-right: 0px;
|
||||
}
|
||||
|
||||
|
||||
/* *** THEME STYLER END *** */
|
||||
|
|
@ -1,452 +0,0 @@
|
|||
$(document).ready(function() {
|
||||
|
||||
/* *** Call Theme Config Driver *** */
|
||||
$.get('themes/SimpleBootstrap/conf/sbs_conf.php',
|
||||
function(data){
|
||||
console.log(data);
|
||||
}
|
||||
);
|
||||
|
||||
/* *** Cutting Title *** */
|
||||
$('.logo h2').text($('.logo h2').text().substring(0, $('.logo h2').text().lastIndexOf(" [") + 1));
|
||||
|
||||
/* *** Remove CSS and JS Files *** */
|
||||
$('link[href="css/global.css"]').remove();
|
||||
$('link[href="js/bootstrap/css/bootstrap-combined.min.css"]').remove();
|
||||
|
||||
/* *** Removing Chars from Links *** */
|
||||
$('a:not(.user_menu_link), a span').each(function(){
|
||||
$(this).html($(this).html().replace('[','').replace(']',''));
|
||||
});
|
||||
|
||||
/* *** Several Class and Style Stuff *** */
|
||||
$(window).load(function () {
|
||||
$('tr, td, div:not([class*="nicEdit"])').css("background-color", "");
|
||||
$('div:not([class*="nicEdit"], #refreshed-0)').css("border", "").css("height", "");
|
||||
$('input').css("width", "");
|
||||
if($.trim($("div").text()) == "") {
|
||||
$(this).remove();
|
||||
}
|
||||
$('.footer.center').removeClass('center');
|
||||
// $('input[type="submit"]').each(function(){
|
||||
// $(this).replaceWith('<button type="submit" name="'+$(this).attr('name')+'" value="'+$(this).attr('value')+'" class="btn btn-primary btn-sm">'+$(this).attr('value')+'</button>');
|
||||
// });
|
||||
});
|
||||
|
||||
$('table .first_row > td').each(function(){
|
||||
$(this).replaceWith('<th>'+$(this).html()+'</th>');
|
||||
});
|
||||
|
||||
$('.magnificContentsDiv').bind("DOMSubtreeModified",function(){
|
||||
$('.updateLink, .ogpAPIActions').addClass('form-control').css('display','inline-block');
|
||||
$('.copyButton').addClass('btn').addClass('btn-sm').addClass('btn-primary');
|
||||
});
|
||||
|
||||
/* *** Submit Button Replacement *** */
|
||||
$('input[type="submit"]').each(function(){
|
||||
var oSubmitButton = $(this);
|
||||
var oForm = oSubmitButton.closest('form');
|
||||
var sOriginAttrs = '';
|
||||
|
||||
$.each(oSubmitButton[0].attributes, function() {
|
||||
if (this.specified) {
|
||||
sOriginAttrs += ' ' + this.name + '="' + this.value + '"';
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// File Style Hack
|
||||
$.fn.input_file_styling = function() {
|
||||
$('input[type="file"]').each(function(){
|
||||
if($(this).parent().hasClass('btn-file')==false){
|
||||
$(this).css('display', 'none');
|
||||
$(this).wrap('<div class="input-group">').wrap('<label class="input-group-btn">').wrap('<span class="btn btn-sm btn-primary btn-file">');
|
||||
$(this).parent('span').parent('label').parent('.input-group').append('<input type="text" class="form-control" readonly="">');
|
||||
$(this).parent('span').prepend('<i class="fa fa-search"></i> Browse...');
|
||||
}
|
||||
});
|
||||
$(document).on('change', ':file', function() {
|
||||
var input = $(this),
|
||||
numFiles = input.get(0).files ? input.get(0).files.length : 1,
|
||||
label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
|
||||
input.trigger('fileselect', [numFiles, label]);
|
||||
});
|
||||
$(':file').on('fileselect', function(event, numFiles, label) {
|
||||
var input = $(this).parents('.input-group').find(':text'),
|
||||
log = numFiles > 1 ? numFiles + ' files selected' : label;
|
||||
if( input.length ) {
|
||||
input.val(log);
|
||||
} else {
|
||||
if( log ) alert(log);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Init Call of the Function
|
||||
$.fn.input_file_styling();
|
||||
// Restyle after Adding a File Input
|
||||
$('#add_file_attachment').click(function(){
|
||||
setTimeout($.fn.input_file_styling, 1);
|
||||
});
|
||||
|
||||
$('.main .redirectLink').prepend('<i class="fa fa-arrow-right" aria-hidden="true"></i> ');
|
||||
|
||||
var inputs = $('input, textarea, select').not('input[type=button], input[type="submit"], input[type="SUBMIT"], input[type=reset], input[type=radio], input[type=checkbox], input[type=image], input[type="file"]');
|
||||
$(inputs).addClass('form-control').removeAttr('style');
|
||||
var buttons = $('button, input[type="button"], input[type="submit"], input[type="SUBMIT"], input[type="reset"], .redirectLink, [href^="?m=gamemanager&p=update&update=refresh"], .main [href="?m=modulemanager&p=update"], .main [href="?m=simple-billing&p=shop"], .main [href^="home.php?m=TS3Admin&changevServer"], .main [href^="?m=gamemanager&p=game_monitor&home_id="], .serverIdToggle, .main [href="?m=settings&p=api_hosts"]');
|
||||
$(buttons).addClass('btn').addClass('btn-sm').addClass('btn-primary');
|
||||
$('.main [href^="?m=modulemanager&p=del&id="]').addClass('btn').addClass('btn-xs').addClass('btn-danger');
|
||||
$('.main [href^="?m=modulemanager&p=add&module="]').addClass('btn').addClass('btn-xs').addClass('btn-success');
|
||||
|
||||
$('em').each(function(){
|
||||
$(this).replaceWith('<div class="label label-warning inline-block">'+$(this).html()+'</div>');
|
||||
});
|
||||
|
||||
$('.monitorbutton, .administration-buttons').addClass('btn-primary');
|
||||
$('.administration-buttons').removeClass('administration-buttons').addClass('admin-buttons');
|
||||
$('form').addClass('form-group').css('float', '');
|
||||
$('.main #search').parent('form').css('margin-bottom', '10px');
|
||||
$('table').addClass('table').addClass('table-sm').addClass('table-striped').removeAttr('style');
|
||||
$('tfoot, input').removeAttr('style');
|
||||
$('tfoot .bloc').removeClass('bloc');
|
||||
$('.main input[name="remove"], .main input[name="removeJob"]').removeClass('btn-primary').addClass('btn-danger');
|
||||
|
||||
$('.online').addClass('label').addClass('label-success').addClass('label-size');
|
||||
$('.offline').addClass('label').addClass('label-danger').addClass('label-size');
|
||||
$('.success').addClass('alert').addClass('alert-success');
|
||||
$('.attachment_info').addClass('alert').addClass('alert-info');
|
||||
$('td b.success').removeClass('alert').removeClass('alert-success');
|
||||
$('.failure:not(b)').addClass('alert').addClass('alert-danger');
|
||||
|
||||
$('img[src="modules/addonsmanager/loading.gif"]').replaceWith('<i class="fa fa-spinner fa-pulse fa-3x fa-fw loadinggif"></i>');
|
||||
$('img[src="images/online.png"], img[src$="icon_online.gif"]').replaceWith('<i class="fa fa-circle online" aria-hidden="true"></i>');
|
||||
$('img[src="images/offline.png"], img[src$="icon_offline.gif"]').replaceWith('<i class="fa fa-circle offline" aria-hidden="true"></i>');
|
||||
|
||||
$('.main img, .main input[type="image"]').error(function () {
|
||||
$(this).unbind("error").attr("src", "themes/SimpleBootstrap/images/image_not_found.png").attr("style", "max-width:250px;").removeAttr('height');
|
||||
});
|
||||
|
||||
|
||||
/* *** MENU *** */
|
||||
$('.menu ul[id^=submenu] span').each(function() {
|
||||
var img_url = $(this).attr('data-icon_path');
|
||||
$(this).before("<img src='"+img_url+"'/>");
|
||||
});
|
||||
|
||||
$('.menu a').click(function(){
|
||||
if($(this).attr('aria-expanded')=="true"){
|
||||
window.location = $(this).attr('link');
|
||||
}
|
||||
});
|
||||
|
||||
$('.menu [class$="menu_link_selected"]').attr('aria-expanded', 'true').next('ul').addClass('collapse').addClass('in').attr('aria-expanded', 'true');
|
||||
|
||||
$('.menu > ul').attr('id', 'menu');
|
||||
$('.menu ul').each(function() {
|
||||
if($(this).prev('a').length){
|
||||
var data_parent = '#'+$(this).parent('li').parent('ul').attr('id');
|
||||
var link_id = $(this).prev('a').attr('href').replace(/[^a-z0-9\s]/gi, '');
|
||||
if(!$(this).parent().hasClass('menu')){
|
||||
$(this).addClass('collapse');
|
||||
}
|
||||
$(this).parent('li').addClass('panel');
|
||||
$(this).attr('id', link_id);
|
||||
$(this).prev('a').attr({
|
||||
'link': $(this).prev('a').attr('href'),
|
||||
'href': '#'+$(this).attr('id'),
|
||||
'data-parent': data_parent,
|
||||
'data-toggle': 'collapse'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/* *** Menu -> Check & Remove wrong active Links *** */
|
||||
$('.menu [class$="menu_link_selected"]').each(function(){
|
||||
if($(this).attr('href')!=window.location.href.slice(window.location.href.indexOf('?'))){
|
||||
var checkLink = $(this).attr('link');
|
||||
var thisClass = $(this).attr('class');
|
||||
if(typeof checkLink == 'undefined') {
|
||||
$(this).removeClass(thisClass).addClass(thisClass.replace(/_selected/g,'')).removeAttr('aria-expanded');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* *** Pagination *** */
|
||||
$('#pagination').each(function(){
|
||||
$(this).replaceWith('<ul class="pagination">'+$(this).html()+'</ul>');
|
||||
var pm = $('.pagination');
|
||||
|
||||
var ps = $(pm).find('[class$="_paginationStart"]');
|
||||
var pp = $(pm).find('[class$="_paginationPages"]');
|
||||
var pe = $(pm).find('[class$="_paginationEnd"]');
|
||||
|
||||
if($(ps).length){
|
||||
if($(ps).find('span').length){ console.log('divider!'); }
|
||||
$(ps).find('a').each(function(){
|
||||
var tl = $(this).attr('href');
|
||||
var tc = $(this).text();
|
||||
$(pm).append('<li><span><a href="'+tl+'">'+tc+'</a></li>');
|
||||
});
|
||||
if($(ps).find('span').length){
|
||||
$(pm).append('<li><span><a>...</a></span></li>');
|
||||
}
|
||||
$(ps).remove();
|
||||
}
|
||||
$(pp).find('a').each(function(){
|
||||
var tl = $(this).attr('href');
|
||||
var tc = $(this).text().replace('[','').replace(']','');
|
||||
if($(this).is('[class$="_currentPageLink"]')){
|
||||
$(pm).append('<li class="active"><span><a href="'+tl+'">'+tc+'</a></li>');
|
||||
}else{
|
||||
$(pm).append('<li><span><a href="'+tl+'">'+tc+'</a></li>');
|
||||
}
|
||||
});
|
||||
$(pp).remove();
|
||||
|
||||
if($(pe).length){
|
||||
if($(pe).find('span').length){
|
||||
$(pm).append('<li><span><a>...</a></span></li>');
|
||||
}
|
||||
$(pe).find('a').each(function(){
|
||||
var tl = $(this).attr('href');
|
||||
var tc = $(this).text();
|
||||
$(pm).append('<li><span><a href="'+tl+'">'+tc+'</a></li>');
|
||||
});
|
||||
$(pe).remove();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
/* *** Removing CSS File from FTP Page *** */
|
||||
if(window.location.href.indexOf("home.php?m=TS3Admin") != -1 ){
|
||||
$('link[href="modules/TS3Admin/webinterface.css"]').remove();
|
||||
}
|
||||
|
||||
|
||||
/* *** Tooltip *** */
|
||||
$(window).load(function(){
|
||||
$('.image-tip').each(function(){
|
||||
var tip_text = $(this).find('.tip').text();
|
||||
$(this).replaceWith('<i class="fa fa-question-circle-o" aria-hidden="true" data-toggle="tooltip" data-placement="left" title="'+tip_text+'"></i>');
|
||||
});
|
||||
$('[data-toggle="tooltip"]').each(function(){
|
||||
$(this).tooltip({
|
||||
animated: 'fade',
|
||||
html: true
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/* *** Login Redirect Size *** */
|
||||
if(location.pathname.substring(location.pathname.length-1) == "/" || location.pathname.substring(location.pathname.length-9) == "index.php"){
|
||||
if($('#refresh-manual').length){
|
||||
$('.main').removeClass('col-md-12').addClass('col-md-6').addClass('col-md-offset-3');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* *** Login Page Mod *** */
|
||||
if(location.pathname.substring(location.pathname.length-1) == "/" || location.pathname.substring(location.pathname.length-9) == "index.php"){
|
||||
|
||||
if($('form[name="login_form"]').length > 0) {
|
||||
if ($('.g-recaptcha').length > 0) {
|
||||
var recaptcha_pubkey = $('.g-recaptcha').attr('data-sitekey');
|
||||
var recaptcha = "<div class='text-center' style='margin-bottom: 10px;'><script src='//www.google.com/recaptcha/api.js'></script><div style='display: inline-block;' class='g-recaptcha' data-sitekey='"+recaptcha_pubkey+"' data-theme='dark'></div></div>";
|
||||
}else{
|
||||
var recaptcha = "";
|
||||
}
|
||||
|
||||
var title = $('.main h4').text();
|
||||
var lang = $('[name="login_form"] tr:nth-child(1) td:first-child').text().replace(':', '');
|
||||
var user = $('[name="login_form"] tr:nth-child(2) td:first-child').text().replace(':', '');
|
||||
var pass = $('[name="login_form"] tr:nth-child(3) td:first-child').text().replace(':', '');
|
||||
var forgot = $('[href="?m=lostpwd"]').text();
|
||||
var lbtn = $('[name="login"]').val();
|
||||
var optns = $('[name="lang"]').html();
|
||||
|
||||
if($('[href="?m=register&p=form"]').length > 0) {
|
||||
//<input type="submit" name="login" value="'+lbtn+'" class="btn btn-primary btn-block btn-sm">\
|
||||
var buttons = '\
|
||||
<div class="row" style="margin-bottom: 10px;">\
|
||||
<div class="col-xs-6">\
|
||||
<button type="submit" name="login" value="'+lbtn+'" class="btn btn-primary btn-block btn-sm">'+lbtn+'</button>\
|
||||
</div>\
|
||||
<div class="col-xs-6">\
|
||||
<a href="?m=register&p=form" class="btn btn-primary btn-block btn-sm">'+$('[href="?m=register&p=form"] > span').text()+'</a>\
|
||||
</div>\
|
||||
</div>\
|
||||
';
|
||||
}else{
|
||||
//<input type="submit" name="login" value="'+lbtn+'" class="btn btn-primary btn-block btn-sm">\
|
||||
var buttons = '\
|
||||
<div class="row" style="margin-bottom: 10px;">\
|
||||
<div class="col-xs-12">\
|
||||
<button type="submit" name="login" value="'+lbtn+'" class="btn btn-primary btn-block btn-sm">'+lbtn+'</button>\
|
||||
</div>\
|
||||
</div>\
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
var new_form = '\
|
||||
<div class="login-container">\
|
||||
<h3>'+title+'</h3>\
|
||||
<form action="index.php" name="login_form" method="post" class="form-group">\
|
||||
<div class="input-group">\
|
||||
<span class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></span>\
|
||||
<input type="text" name="ulogin" id="ulogin" class="form-control" placeholder="'+user+'">\
|
||||
</div>\
|
||||
<div class="input-group">\
|
||||
<span class="input-group-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>\
|
||||
<input type="password" name="upassword" class="form-control" placeholder="'+pass+'">\
|
||||
</div>\
|
||||
<div class="input-group">\
|
||||
<span class="input-group-addon"><i class="fa fa-language" aria-hidden="true"></i></span>\
|
||||
<select name="lang" onchange="this.form.submit();" class="form-control">'+optns+'</select>\
|
||||
</div>\
|
||||
'+recaptcha+'\
|
||||
'+buttons+'\
|
||||
</form>\
|
||||
<div class="row">\
|
||||
<div class="col-xs-12">\
|
||||
<a class="pull-right label" href="?m=lostpwd">'+forgot+'</a>\
|
||||
</div>\
|
||||
</div>\
|
||||
<div class="clearfix"></div>\
|
||||
</div>';
|
||||
|
||||
$('.main').empty().html(new_form);
|
||||
$('select[name=lang] > option:first-child').replaceWith('<option value="-" selected="selected">'+lang+'</option>');
|
||||
}
|
||||
|
||||
// *** Lost Password Form ***
|
||||
if(window.location.href.indexOf('?m=lostpwd') > -1) {
|
||||
var title = $('.main h2').text();
|
||||
|
||||
if ($('.main > strong').length > 0 || $('.main > p').text().toLowerCase().indexOf('smtp')>=0) {
|
||||
// *** Error Message ***
|
||||
|
||||
var err = $('.main strong').text();
|
||||
var err_msg = $('.main p').text();
|
||||
|
||||
var new_form = '\
|
||||
<div class="login-container">\
|
||||
<h3>'+title+'</h3>\
|
||||
<div class="alert alert-danger" role="alert"><strong>'+err+'</strong><p>'+err_msg+'</p></div>\
|
||||
<a href="?m=lostpwd" class="btn btn-primary btn-sm"><< Back</a>\
|
||||
</div>';
|
||||
}else if ($('.main > p > b[style="color:red;"]').length > 0) {
|
||||
// *** Sent Password ***
|
||||
|
||||
var msgb = $('.main > p > b[style="color:red;"]').text();
|
||||
$('.main > p > b[style="color:red;"]').remove();
|
||||
var msg = $('.main > p').text();
|
||||
|
||||
var new_form = '\
|
||||
<div class="login-container">\
|
||||
<h3>'+title+'</h3>\
|
||||
<div class="alert alert-success" role="alert"><p>'+msg+'</p><p>'+msgb+'</p></div>\
|
||||
<a href="?m=lostpwd" class="btn btn-primary btn-sm"><< Back</a>\
|
||||
</div>';
|
||||
}else{
|
||||
|
||||
if ($('.main td > p').length > 0) {
|
||||
if($('.main td > p').attr('style')=='color: red;'){
|
||||
var alert = '<div class="alert alert-danger" role="alert">';
|
||||
}else{
|
||||
var alert = '<div class="alert alert-success" role="alert">';
|
||||
}
|
||||
$('.main td > p').each(function() {
|
||||
alert += '<p>'+$(this).text()+'</p>';
|
||||
});
|
||||
alert += '</div>';
|
||||
} else {
|
||||
var alert = "";
|
||||
}
|
||||
|
||||
var email = $('.main label[for="email_address"]').text();
|
||||
var lbtn = $('td > [type="submit"]').val();
|
||||
var bbtn = $('[action="index.php"] > input[type="submit"]').val();
|
||||
|
||||
var new_form = '\
|
||||
<div class="login-container">\
|
||||
<h3>'+title+'</h3>\
|
||||
'+alert+'\
|
||||
<form action="?m=lostpwd" method="post" class="form-group">\
|
||||
<input type="text" name="email_address" class="form-control" placeholder="Email">\
|
||||
<button type="submit" name="login" value="'+lbtn+'" class="btn btn-primary btn-block btn-sm">'+lbtn+'</button>\
|
||||
</form>\
|
||||
<a href="index.php" class="label" style="display: block;text-align: right;margin-top: 10px;">'+bbtn+'</a>\
|
||||
</div>';
|
||||
|
||||
}
|
||||
$('.main').empty().html(new_form);
|
||||
}
|
||||
|
||||
|
||||
$('.main').removeClass('col-md-10').addClass('col-md-12');
|
||||
|
||||
$('nav.navbar').addClass('navbar-default');
|
||||
$('#navbar ul').addClass('nav').addClass('navbar-nav');
|
||||
$('#navbar [class*="selected"]').parent('li').addClass('active');
|
||||
|
||||
$('.navigation').removeClass('col-md-2').addClass('col-md-12').css('padding-right','15px')
|
||||
$('.collapse').css('padding','0px 5px');
|
||||
$('.menu').css('margin-bottom','0px');
|
||||
$('body > .container-fluid > .row:first-of-type').remove();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$(window).load(function(){
|
||||
$("body > .container-fluid").fadeIn(50);
|
||||
|
||||
$(':file').on('fileselect', function(event, numFiles, label) {
|
||||
var input = $(this).parents('.input-group').find(':text'),
|
||||
log = numFiles > 1 ? numFiles + ' files selected' : label;
|
||||
if(input.length){
|
||||
input.val(log);
|
||||
}else{
|
||||
if(log) alert(log);
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
$('input[src$="remove.gif"]').each(function(){
|
||||
var NewButton = $("<button />");
|
||||
$.each(this.attributes, function(i, attrib){
|
||||
// Change Type to Submit Mod
|
||||
if(attrib.name=='type'){
|
||||
attrval = 'submit';
|
||||
}else{
|
||||
attrval = attrib.value;
|
||||
}
|
||||
// Skip src Attribute
|
||||
if(attrib.name=='src'){
|
||||
return false;
|
||||
}
|
||||
// Change Stop Update Value for "Cancel Update" Fix
|
||||
if(attrib.value=='stop_update'){
|
||||
attrval = 'stop_update_x';
|
||||
}
|
||||
$(NewButton).attr(attrib.name, attrval);
|
||||
});
|
||||
$(NewButton).attr('class', 'btn btn-xs btn-danger btn-sm btn-primary');
|
||||
$(this).replaceWith(function () {
|
||||
return $(NewButton).append($(this).contents()).prepend('<i class="fa fa-times" aria-hidden="true"></i>');
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
|
||||
$(document).on('change', ':file', function() {
|
||||
var input = $(this),
|
||||
numFiles = input.get(0).files ? input.get(0).files.length : 1,
|
||||
label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
|
||||
input.trigger('fileselect', [numFiles, label]);
|
||||
});
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue