server status fix
This commit is contained in:
parent
bb02be7daa
commit
bd3875743e
8 changed files with 555 additions and 306 deletions
|
|
@ -63,30 +63,29 @@
|
|||
color: #d2def4;
|
||||
}
|
||||
|
||||
.dashboard-service-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
gap: 16px;
|
||||
margin-top: 20px;
|
||||
.dashboard-widget-copy {
|
||||
position: relative;
|
||||
padding-right: 56px;
|
||||
}
|
||||
|
||||
.dashboard-promo-card,
|
||||
.dashboard-secondary-card {
|
||||
padding: 18px 20px;
|
||||
background: linear-gradient(180deg, rgba(12, 22, 40, 0.94) 0%, rgba(8, 16, 29, 0.96) 100%);
|
||||
border: 1px solid rgba(77, 160, 255, 0.2);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
|
||||
.dashboard-promo-card {
|
||||
border-left: 3px solid #48c4f5;
|
||||
}
|
||||
|
||||
.dashboard-promo-card p,
|
||||
.dashboard-secondary-card p {
|
||||
.dashboard-widget-copy p {
|
||||
margin: 0 0 12px;
|
||||
color: #d2def4;
|
||||
}
|
||||
|
||||
.dashboard-widget-icon {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 0;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.dashboard-link-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.dashboard-card-note {
|
||||
|
|
@ -121,6 +120,11 @@
|
|||
color: #f0f5ff;
|
||||
}
|
||||
|
||||
.dashboard-support-link-secondary {
|
||||
background: rgba(72, 196, 245, 0.08);
|
||||
border-color: rgba(72, 196, 245, 0.24);
|
||||
}
|
||||
|
||||
.dashboard-support-link:hover,
|
||||
.dashboard-support-link:focus {
|
||||
color: #ffffff;
|
||||
|
|
@ -128,16 +132,32 @@
|
|||
box-shadow: 0 0 0 3px rgba(90, 199, 247, 0.12);
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.dashboard-service-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.dashboard-status-panel {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.dashboard-status-content {
|
||||
padding: 18px 20px;
|
||||
text-align: center;
|
||||
color: #d2def4;
|
||||
}
|
||||
|
||||
.dashboard-status-content p {
|
||||
margin: 0 0 14px;
|
||||
}
|
||||
|
||||
.dashboard-status-button {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.dashboard-status-note {
|
||||
display: block;
|
||||
color: #9fb5d8;
|
||||
}
|
||||
|
||||
@media (max-width: 430px) {
|
||||
.dashboard-promo-card,
|
||||
.dashboard-secondary-card {
|
||||
padding: 16px;
|
||||
.dashboard-widget-copy {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.dashboard-cta-button,
|
||||
|
|
@ -145,4 +165,10 @@
|
|||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dashboard-widget-icon {
|
||||
position: static;
|
||||
display: block;
|
||||
margin: 0 0 12px auto;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ function exec_ogp_module()
|
|||
global $db, $settings, $loggedInUserInfo;
|
||||
|
||||
$projectRequestUrl = htmlspecialchars(gsp_project_request_url(), ENT_QUOTES, 'UTF-8');
|
||||
$discordInviteUrl = htmlspecialchars(gsp_discord_invite_url(), ENT_QUOTES, 'UTF-8');
|
||||
$serverStatusUrl = htmlspecialchars(gsp_server_status_url(), ENT_QUOTES, 'UTF-8');
|
||||
|
||||
$isAdmin = $db->isAdmin($_SESSION['user_id']);
|
||||
$user_id = $_SESSION['user_id'];
|
||||
|
|
@ -85,16 +87,27 @@ function exec_ogp_module()
|
|||
$content[3] = 'View all your notifications. ';
|
||||
$href[3] = 'home.php?m=circular&p=show_circular&list=true';
|
||||
|
||||
// Support Resources quick link
|
||||
$title[4] = 'Support Resources';
|
||||
$content[4] ='Need routine help? Use the support section for tickets, service problems, documentation, and troubleshooting with existing features.';
|
||||
$href[4] = 'home.php?m=tickets';
|
||||
// Custom Server Code
|
||||
$title[4] = 'Custom Server Code';
|
||||
$content[4] = '<div class="dashboard-widget-copy">'
|
||||
. '<p>Need something beyond the standard server options? Our developers can customize, repair, automate, or extend your game server with mods, scripts, integrations, migrations, and server-specific tools.</p>'
|
||||
. '<p class="dashboard-card-note">Tell us what you want to build or improve, and we will review the request with you.</p>'
|
||||
. '<a class="dashboard-cta-button" href="' . $projectRequestUrl . '" target="_blank" rel="noopener noreferrer">Request Custom Development</a>'
|
||||
. '</div>';
|
||||
$href[4] = null;
|
||||
|
||||
// Support
|
||||
$title[5] = (isset($settings['support_widget_title']) && $settings['support_widget_title'] != "") ?
|
||||
$settings['support_widget_title'] : get_lang('support');
|
||||
$content[5] = '<img src="themes/' . $settings['theme'] . '/images/icons/support.png" style="width:48px;float:right;margin:0 0 0 8px" /> Submit a SUPPORT TICKET or use our Discord Chat at the bottom right. Click this box to JOIN our Discord';
|
||||
$href[5] = 'https://discord.gg/cWHAbav';
|
||||
$title[5] = 'Support';
|
||||
$content[5] = '<div class="dashboard-widget-copy">'
|
||||
. '<img src="themes/' . $settings['theme'] . '/images/icons/support.png" class="dashboard-widget-icon" alt="" />'
|
||||
. '<p>Need help with an existing service? Submit a support ticket or join our Discord support server.</p>'
|
||||
. '<p class="dashboard-card-note">Support is for service problems, broken functionality, routine troubleshooting, and help using the features already included with your server.</p>'
|
||||
. '<div class="dashboard-link-group">'
|
||||
. '<a class="dashboard-support-link" href="home.php?m=tickets">Open Support Tickets</a>'
|
||||
. '<a class="dashboard-support-link dashboard-support-link-secondary" href="' . $discordInviteUrl . '" target="_blank" rel="noopener noreferrer">Join Discord Support</a>'
|
||||
. '</div>'
|
||||
. '</div>';
|
||||
$href[5] = null;
|
||||
|
||||
|
||||
|
||||
|
|
@ -145,30 +158,14 @@ function exec_ogp_module()
|
|||
echo $html.'</div>';
|
||||
}
|
||||
|
||||
echo "<div class='dashboard-service-grid'>
|
||||
<div class='dashboard-promo-card'>
|
||||
<h4>CUSTOM SERVER DEVELOPMENT</h4>
|
||||
<p>Need something beyond the standard server options? Our developers can customize, repair, automate, or extend your game server with mods, scripts, integrations, migrations, and server-specific tools.</p>
|
||||
<p class='dashboard-card-note'>Tell us what you want to build or improve, and we will review the request with you.</p>
|
||||
<a class='dashboard-cta-button' href='{$projectRequestUrl}'>Request Custom Development</a>
|
||||
</div>
|
||||
<div class='dashboard-secondary-card'>
|
||||
<h4>Support and Troubleshooting</h4>
|
||||
<p>Use support when something is broken, you need routine troubleshooting, or you need help with the features already included with your service.</p>
|
||||
<a class='dashboard-support-link' href='home.php?m=tickets'>Open Support Resources</a>
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
// Server Status Link - Available to all users
|
||||
echo "<div style='margin-top:20px;'>
|
||||
<div class='bloc rounded' >
|
||||
echo "<div class='dashboard-status-panel'>
|
||||
<div class='bloc rounded'>
|
||||
<h4>Server Status</h4>
|
||||
<div style='text-align: center; padding: 20px;'>
|
||||
<p>View the status of all game servers</p>
|
||||
<a href='server_status.php' target='_blank' style='background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; display: inline-block; margin: 10px;'>
|
||||
🖥️ View Server Status
|
||||
</a>
|
||||
<br><small style='color: #666;'>Opens in a new window</small>
|
||||
<div class='dashboard-status-content'>
|
||||
<p>Check the current state of configured remote servers without delaying the main dashboard.</p>
|
||||
<a class='dashboard-cta-button dashboard-status-button' href='{$serverStatusUrl}' target='_blank' rel='noopener noreferrer'>View Server Status</a>
|
||||
<small class='dashboard-status-note'>Opens in a new tab and runs remote checks only when requested.</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>";
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<link>https://worlddomination.software/projects/gsp</link>
|
||||
<description>Quick answers for GameServer Panel (GSP) operators</description>
|
||||
<dc:language>en</dc:language>
|
||||
<generator>World Domination Software FAQ Generator</generator>
|
||||
<generator>Runlevel Systems FAQ Generator</generator>
|
||||
<pubDate>Tue, 11 Feb 2025 12:00:00 GMT</pubDate>
|
||||
|
||||
<image>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
<category>General</category>
|
||||
<content:encoded>
|
||||
(1) submit a ticket on our Panel menu
|
||||
(2) join our <a href=https://discord.gg/cWHAbav target=_blank > Discord Server</a>
|
||||
(2) join our <a href=https://discord.gg/qt9Hnkj6cv target=_blank rel="noopener noreferrer"> Discord Server</a>
|
||||
(3) Look at the LOWER RIGHT of every page: Click the Discord icon
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue