Moved the Agents into their own repo. Kept the agent.pl just for reference

This commit is contained in:
Frank Harris 2025-09-11 13:27:32 -04:00
parent 22381be29a
commit 8680a02b13
18132 changed files with 0 additions and 2569420 deletions

View file

@ -1,281 +0,0 @@
@media only screen and (min-width: 500px) {
.main > form[action="home.php"] {
float: right;
}
.main > form[action="home.php"] .form-control {
display: inline-block;
}
.main select.form-control {
width: auto;
display: inline;
}
.main > form[action="home.php"] .form-control,
.main > form[method="GET"] .form-control {
width: auto !important;
}
}
@media only screen and (max-width: 499px) {
.main > form[method="GET"]:not(form[method="GET"]:last-of-type) {
overflow: auto;
}
.main > form:last-of-type,
.main > form .btn,
.serverIdToggle {
display: block;
width: 100%;
}
.serverIdToggle,
.main > form[action="home.php"] {
margin-bottom: 0.5rem !important;
}
}
.form-control {
margin-bottom: 4px;
}
.monitorbutton,
#server_icon
{
width: 150px;
border-radius: 4px;
margin: 2px;
font-size: 12px;
float: left;
}
.expand-child #server_icon {
width: auto;
}
.monitorbutton {
height: 90px;
text-align: center;
}
.monitorbutton:before {
display: block;
font-size: 36px;
line-height: 40px;
}
.monitorbutton > span {
font-size: 0.8rem;
line-height: 1rem;
display: block;
}
.monitorbutton:last-of-type {
margin-bottom: 20px !important;
}
.monitorbutton.size {
font-size: 0.8rem !important;
}
.monitorbutton:hover,
#server_icon:hover
{
cursor: pointer !important;
}
.monitorbutton:hover {
background-position: 0 -90px !important;
}
.monitorbutton img {
display: none;
}
.monitorButtonContainer form {
clear: both;
}
#server_icon {
line-height: 22px;
padding: 0px 5px;
}
#server_icon div {
display: inline-block;
}
#server_icon input {
vertical-align: middle;
margin-top: 0px;
margin-right: 2px;
margin-top: -4px;
}
#server_icon img {
display: none;
}
.dark-mode table.srvctrl {
background-color: var(--gray-dark);
}
.dark-mode #servermonitor .monitor-2 .srvctrl a {
color: #fff;
}
.light-mode table.srvctrl {
background-color: var(--light);
}
.light-mode #servermonitor .monitor-2 .srvctrl a {
color: var(--gray-dark);
}
.srvctrl td {
padding: 5px 0px;
}
.srvctrl a:before {
display: block;
font-size: 64px;
margin-bottom: -10px;
margin-top: -10px;
}
.srvctrl b {
font-weight: normal !important;
}
.map-icon {
margin-right: 0.5rem;
}
.server-info {
width: 100%;
}
#servermonitor .monitor-2 .srvctrl {
width: auto;
border-radius: 5px;
}
#servermonitor .monitor-2 .srvctrl td:first-of-type {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
#servermonitor .monitor-2 .srvctrl td:last-of-type {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
#servermonitor .monitor-3 table {
width: 100%;
}
#servermonitor .monitor-3 {
width: 100%;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
#servermonitor .monitor-3 > div {
padding: 10px 0px;
border: 1px solid var(--grey) !important;
}
.dark-mode #servermonitor .monitor-3 > div {
background-color: var(--dark-1) !important;
}
.light-mode #servermonitor .monitor-3 > div {
background-color: var(--light) !important;
}
.mapicon {
border-radius: 4px;
margin-bottom: 5px;
padding: 0px;
}
.upload-image {
white-space: nowrap;
}
.owner .form-control {
width: auto !important;
}
#servermonitor .monitor-2 .srvctrl img,
#servermonitor .monitor-2 .srvctrl br {
display: none;
}
#servermonitor .monitor-2 .srvctrl a {
display: inline-block;
}
#servermonitor .monitor-2 .srvctrl tr,
.ts3_viewer tr {
background-color: transparent !important;
}
#servermonitor .monitor-2 .srvctrl td {
width: 100px;
}
#servermonitor .monitor-2 .srvctrl td:first-of-type a:before {
content: "\f144";
}
#servermonitor .monitor-2 .srvctrl td:last-of-type a:before {
content: "\f28d";
}
#servermonitor .monitor-2 .srvctrl td:first-of-type a:hover:before {
color: var(--success);
}
#servermonitor .monitor-2 .srvctrl td:last-of-type a:hover:before {
color: var(--danger);
}
.ts3_viewer b {
font-weight: normal;
}
.ts3_viewer {
border: 0px !important;
background: transparent;
margin: 0px 10px !important;
width: auto !important;
}
tr.maintr td:last-child {
padding: 3px 8px 3px;
}
@media screen and (min-width: 767px){
tr.maintr td:last-child {
width: 330px;
}
}
@media screen and (max-width: 766px){
.table-responsive>.table {
max-width: 800px;
}
}
.header > #action-start {
color: #5cb85c;
}
.header > #action-stop {
color: #d9534f;
}
.header > #action-restart {
color: #f0ad4e;
}
.header > .fa:hover {
color: #fff !important;
}
.table-responsive {
clear: both;
}
@media (max-width: 992px) {
#servermonitor .monitor-1,
#servermonitor .monitor-1 > div,
#servermonitor .monitor-2
{
float: none !important;
}
#servermonitor td:nth-child(4) b {
word-break: break-all;
}
}
.ts3_viewer img {
width: 16px;
height: 16px;
margin-left: 2px;
}
.ts3_viewer td, .ts3_viewer th {
border: none !important;
padding: 0px !important;
font-size: 0.9rem !important;
}
[id^="ui-id"] [class^="status"] {
display: none;
}

View file

@ -1,152 +0,0 @@
$(document).ready(function()
{
// add additional classes to main for ogp scripts
$('.main').addClass('main-content game-monitor');
// responsive table
$('#servermonitor').wrap('<div class="table-responsive"></div>');
// add loading class on size click
$('.monitorbutton.size').click(function()
{
$(this).addClass('loading');
$(this).bind("DOMSubtreeModified",function()
{
$(this).removeClass('loading');
});
});
// table header icons
$('img[id="action-stop"]').replaceWith('<i class="fas fa-stop-circle text-danger text-sm" id="action-stop"></i>');
$('img[id="action-restart"]').replaceWith('<i class="fas fa-arrow-alt-circle-left text-warning text-sm" id="action-restart"></i>');
$('img[id="action-start"]').replaceWith('<i class="fas fa-play-circle text-success text-sm" id="action-start"></i>');
// bulk update buttons
$('#server_icon[class^="action-start"]').addClass('btn btn-sm btn-success');
$('#server_icon[class^="action-stop"]').addClass('btn btn-sm btn-danger');
$('#server_icon[class^="action-restart"]').addClass('btn btn-sm btn-warning');
$('.main .tablesorter-header-inner > [id^="action-"]').click(function()
{
$('div[class^="' + $(this).attr('id') + '"]').trigger('click');
});
// style monitorbuttons
$('.main .monitorbutton').addClass('btn btn-primary d-flex flex-column justify-content-center align-items-center');
// ip's add badge
$('.main .serverIPAddress[data-status="online"] > a').addClass('badge badge-success');
$('.main .serverIPAddress[data-status="offline"]').each(function()
{
$(this).html('<span class="badge badge-danger">' + $(this).text() + '</span>');
});
$('[id^="refreshed"]').addClass('row');
$('[id^="refreshed"] .monitor-1').addClass('col-md-10 d-flex');
$('[id^="refreshed"] .monitor-2').addClass('col-md-2');
$('.main form > input[value="'+langConsts['OGP_LANG_show_all']+'"]').parent('form').addClass('d-inline-block my-2');
// all server images
$('[id^="refreshed"]').each(function()
{
var thisRefresh = $(this);
let thisVar = document.getElementById($(thisRefresh).attr('id'))
observerMapIcon = new MutationObserver(mCallback);
function mCallback(mutations)
{
for (let mutation of mutations)
{
if (mutation.type === 'childList')
{
// add timestamp to image for reload
var timestamp = new Date().getTime();
$('img.mapicon').each(function()
{
$(this).attr('src', $(this).attr('src') + '?t=' + timestamp);
});
$('.upload-image').addClass('btn btn-sm btn-primary');
$('#' + $(thisRefresh).attr('id') + ' .monitor-1').addClass('col-md-10 d-flex');
$('#' + $(thisRefresh).attr('id') + ' .monitor-2').addClass('col-md-2');
}
}
}
observerMapIcon.observe(thisVar, { childList: true });
});
// server image upload form
const observerUploadForm = new MutationObserver(function(mutations_list)
{
mutations_list.forEach(function(mutation)
{
mutation.addedNodes.forEach(function(node)
{
// check if modified node has classes
if(node.classList)
{
var nodeClasses = node.classList.value;
if(nodeClasses.startsWith('status'))
{
var statusText = $('.'+nodeClasses).text();$
if(statusText.length > 0)
{
if(statusText.toLowerCase().indexOf("success") >= 0)
{
toastr.success(statusText);
// add timestamp to image for reload
var timestamp = new Date().getTime();
$('img.mapicon').attr('src', $('img.mapicon').attr('src') + '?t=' + timestamp);
// close all ui dialogs
$('[class^="dialog-form"]').dialog("close");
// reload page after 2 seconds
setTimeout(function () {
location.reload(true);
}, 2000);
}
else
{
toastr.warning(statusText);
}
}
}
}
});
});
});
observerUploadForm.observe(document.querySelector('body'), { subtree: true, childList: true });
});
$(window).load(function()
{
// add loader icon to collapsed servers
$('.main .serverIPAddress[data-status="online"]').parent('tr').next('.expand-child').find('td').each(function()
{
if($(this).css('display')=='none')
{
$(this).find('[id^="refreshed-"]').html('\
<div class="spinner-grow spinner-grow-sm m-3" role="status">\
<span class="sr-only">Loading...</span>\
</div>\
');
}
});
// loading fix when click on ServerID (nothing is loading then)
$('.serverId').click(function()
{
$(this).parent('tr').find('.serverName').trigger('click');
});
// global buttons radio fix
$('#server_icon.btn').click(function()
{
$(this).find('[type="radio"]').prop("checked", true);
});
// remvoe foot style
$('tfoot').removeAttr('style');
});

View file

@ -1,11 +0,0 @@
.main td {
vertical-align: middle !important;
}
.main .form-group {
margin-bottom: 0px !important;
}
.main .form-control:not(.rcon) {
display: inline-block;
width: auto;
}

View file

@ -1,10 +0,0 @@
$(document).ready(function()
{
$('.main [href^="?m=gamemanager&p=game_monitor&home_id-mod_id-ip-port="]').addClass('btn btn-sm btn-primary');
$('.main [name="size"]').addClass('float-right');
});
$(window).load(function()
{
$('.main [name="remote_send_rcon_command"]').removeClass('btn-sm');
});

View file

@ -1,5 +0,0 @@
$(document).ready(function()
{
$('.main [href^="?m=gamemanager&p=game_monitor&home_id="]').addClass('btn btn-sm btn-primary');
$('[name="del_rcon_preset"]').removeClass('btn-primary').addClass('btn-danger');
});