Simplify Steam Workshop UX and wire panel docs links
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/1575c81b-f8a7-433a-8f3b-e068c0992c18 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
5fc301e632
commit
01ad93a11a
13 changed files with 566 additions and 528 deletions
|
|
@ -19,6 +19,7 @@ $docsDir = __DIR__ . '/docs';
|
|||
// Get action and doc parameters
|
||||
$action = $_GET['action'] ?? 'list';
|
||||
$doc = $_GET['doc'] ?? '';
|
||||
$docsPagePath = '/docs.php';
|
||||
|
||||
/**
|
||||
* Get all documentation folders with their metadata
|
||||
|
|
@ -63,9 +64,9 @@ function getDocCategories($docsDir) {
|
|||
// Find icon file
|
||||
$icon = '';
|
||||
if (file_exists($folderPath . '/icon.png')) {
|
||||
$icon = 'docs/' . $folder . '/icon.png';
|
||||
$icon = '/docs/' . $folder . '/icon.png';
|
||||
} elseif (file_exists($folderPath . '/icon.jpg')) {
|
||||
$icon = 'docs/' . $folder . '/icon.jpg';
|
||||
$icon = '/docs/' . $folder . '/icon.jpg';
|
||||
}
|
||||
|
||||
$categories[] = [
|
||||
|
|
@ -137,7 +138,7 @@ uksort($grouped, function($a, $b) use ($categoryOrder) {
|
|||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="0">
|
||||
<title><?php echo $action === 'view' ? 'Documentation' : 'Documentation - GameServers.World'; ?></title>
|
||||
<title><?php echo $action === 'view' ? 'Documentation' : 'Documentation - GSP'; ?></title>
|
||||
<link rel="stylesheet" href="css/header.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<style>
|
||||
|
|
@ -351,7 +352,7 @@ uksort($grouped, function($a, $b) use ($categoryOrder) {
|
|||
<div class="container">
|
||||
<?php if ($action === 'view' && !empty($doc)): ?>
|
||||
<!-- View specific documentation -->
|
||||
<a href="docs.php" class="back-button">← Back to Documentation List</a>
|
||||
<a href="<?php echo htmlspecialchars($docsPagePath, ENT_QUOTES, 'UTF-8'); ?>" class="back-button">← Back to Documentation List</a>
|
||||
|
||||
<div class="doc-view-container">
|
||||
<?php
|
||||
|
|
@ -401,7 +402,7 @@ uksort($grouped, function($a, $b) use ($categoryOrder) {
|
|||
|
||||
<div class="docs-grid">
|
||||
<?php foreach ((array)$docs as $doc): ?>
|
||||
<a href="docs.php?action=view&doc=<?php echo urlencode($doc['folder']); ?>" class="doc-card">
|
||||
<a href="<?php echo htmlspecialchars($docsPagePath . '?action=view&doc=' . urlencode($doc['folder']), ENT_QUOTES, 'UTF-8'); ?>" class="doc-card">
|
||||
<div class="doc-icon-wrapper">
|
||||
<?php if (!empty($doc['icon'])): ?>
|
||||
<img src="<?php echo htmlspecialchars($doc['icon']); ?>" alt="" class="doc-icon">
|
||||
|
|
@ -428,4 +429,3 @@ uksort($grouped, function($a, $b) use ($categoryOrder) {
|
|||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<p>Once your payment is processed, you'll receive:</p>
|
||||
<ul>
|
||||
<li>A confirmation email with your server details</li>
|
||||
<li>Access to the control panel at <a href="http://panel.iaregamer.com" target="_blank">panel.iaregamer.com</a></li>
|
||||
<li>Access to your control panel login page</li>
|
||||
<li>FTP credentials for file management</li>
|
||||
<li>Server IP address and port</li>
|
||||
</ul>
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<h3>Control Panel</h3>
|
||||
<ol>
|
||||
<li>Visit <a href="http://panel.iaregamer.com" target="_blank">panel.iaregamer.com</a></li>
|
||||
<li>Open your panel login URL (provided in your service welcome message)</li>
|
||||
<li>Log in with your account credentials</li>
|
||||
<li>Select your server from "My Servers"</li>
|
||||
<li>Use the control panel to start, stop, restart, and configure your server</li>
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
<ul>
|
||||
<li>Check the game-specific documentation for your server type</li>
|
||||
<li>Review the troubleshooting guides</li>
|
||||
<li>Contact support through your account dashboard</li>
|
||||
<li>Open a support request from the panel support page</li>
|
||||
<li>Check our community forums for tips and solutions</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Last Updated at 12:44pm on 2026-05-07
|
||||
Last Updated at 12:47pm on 2026-05-08
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue