Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
assignment.work.zone /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
includes
[ DIR ]
drwxr-xr-x
2026-03-11 22:58
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
404.php
5.09
KB
-rw-r--r--
2026-03-12 12:29
admin-profile.php
4.68
KB
-rw-r--r--
2026-03-13 19:31
assignments.php
20.91
KB
-rw-r--r--
2026-03-30 15:12
deposits.php
8.48
KB
-rw-r--r--
2026-03-12 13:18
error_log
3.7
KB
-rw-r--r--
2026-03-23 09:01
index.php
137
B
-rw-r--r--
2026-03-12 12:26
index_real.php
3.95
KB
-rw-r--r--
2026-03-13 19:31
login.php
2.46
KB
-rw-r--r--
2026-03-13 19:32
logout.php
88
B
-rw-r--r--
2026-03-11 22:57
maintenance.php
3.68
KB
-rw-r--r--
2026-03-12 12:35
payment-methods.php
7.03
KB
-rw-r--r--
2026-03-12 12:35
plans.php
7.85
KB
-rw-r--r--
2026-03-12 12:35
referrals.php
4.91
KB
-rw-r--r--
2026-03-31 10:44
settings.php
17.83
KB
-rw-r--r--
2026-03-31 10:21
tickets.php
9.89
KB
-rw-r--r--
2026-03-12 13:15
users.php
19.8
KB
-rw-r--r--
2026-03-29 05:10
withdraw-methods.php
8.28
KB
-rw-r--r--
2026-03-12 15:17
withdrawals.php
6.26
KB
-rw-r--r--
2026-03-12 15:18
wp-blog-header.php
2.74
KB
-r--r--r--
2026-04-01 03:43
wp-cron.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
Save
Rename
<?php require_once '../includes/config.php'; require_once 'includes/header.php'; require_once 'includes/sidebar.php'; $success = ''; $error = ''; // Handle Settings Update if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['update_settings'])) { $referral_json = isset($_POST['settings']['referral_commissions']) ? $_POST['settings']['referral_commissions'] : ''; // Safety check for JSON if (!empty($referral_json) && json_decode($referral_json) === null) { $error = "Invalid JSON format in Referral Commissions. Settings not saved."; } else { // Ensure boolean settings are captured even if checkboxes are not sent $settings_to_save = $_POST['settings']; $boolean_fields = ['show_owner', 'show_cofounder']; foreach ($boolean_fields as $field) { if (!isset($settings_to_save[$field])) { $settings_to_save[$field] = 'off'; } } foreach ($settings_to_save as $key => $value) { $stmt = $pdo->prepare("INSERT INTO site_settings (setting_key, setting_value) VALUES (:key, :val) ON DUPLICATE KEY UPDATE setting_value = :val2"); $stmt->execute([ 'key' => $key, 'val' => $value, 'val2' => $value ]); } // Handle Image Uploads $upload_dir = '../assets/images/founders/'; $allowed_ext = ['jpg', 'jpeg', 'png', 'webp', 'gif']; foreach (['owner_image', 'cofounder_image'] as $file_key) { if (!empty($_FILES[$file_key]['name'])) { $file = $_FILES[$file_key]; $ext = strtolower(pathinfo($file['name'], PATHINFO_EXTENSION)); if (in_array($ext, $allowed_ext)) { $new_name = $file_key . '_' . time() . '.' . $ext; $target_path = $upload_dir . $new_name; if (move_uploaded_file($file['tmp_name'], $target_path)) { // Store the path relative to site root $db_path = 'assets/images/founders/' . $new_name; $stmt = $pdo->prepare("INSERT INTO site_settings (setting_key, setting_value) VALUES (:key, :val) ON DUPLICATE KEY UPDATE setting_value = :val2"); $stmt->execute([ 'key' => $file_key, 'val' => $db_path, 'val2' => $db_path ]); } } } } $success = "Site settings updated successfully."; } } // Fetch all settings $stmt = $pdo->query("SELECT * FROM site_settings"); $settings = []; while ($row = $stmt->fetch()) { $settings[$row['setting_key']] = $row['setting_value']; } ?> <div style="margin-bottom:30px;"> <h2>Global Site Settings</h2> <p style="color:var(--text-muted);">Configure the core rules and information for your platform.</p> </div> <?php if ($success): ?> <div class="badge badge-success" style="display:block; margin-bottom:20px; text-align:center; padding:15px; border-radius:8px;"><?php echo $success; ?></div> <?php endif; ?> <?php if ($error): ?> <div class="badge badge-danger" style="display:block; margin-bottom:20px; text-align:center; padding:15px; border-radius:8px; background:#e74c3c;"><?php echo $error; ?></div> <?php endif; ?> <form method="POST" enctype="multipart/form-data"> <div class="settings-grid"> <!-- General Information --> <div class="card"> <h3 style="margin-bottom:20px; color:var(--primary-color); border-bottom:1px solid rgba(255,255,255,0.05); padding-bottom:10px;">Platform Info</h3> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Site Name</label> <input type="text" name="settings[site_name]" class="form-control" value="<?php echo htmlspecialchars(isset($settings['site_name']) ? $settings['site_name'] : ''); ?>"> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Currency Symbol</label> <input type="text" name="settings[currency_symbol]" class="form-control" value="<?php echo htmlspecialchars(isset($settings['currency_symbol']) ? $settings['currency_symbol'] : 'Rs'); ?>"> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Minimum Withdrawal (<?php echo $settings['currency_symbol'] ?? 'Rs'; ?>)</label> <input type="number" step="0.01" name="settings[min_withdrawal]" class="form-control" value="<?php echo htmlspecialchars(isset($settings['min_withdrawal']) ? $settings['min_withdrawal'] : '500.00'); ?>"> </div> </div> <!-- Assignment Work Logic --> <div class="card"> <h3 style="margin-bottom:20px; color:var(--primary-color); border-bottom:1px solid rgba(255,255,255,0.05); padding-bottom:10px;">Assignment Work Logic</h3> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Work Duration (Days)</label> <input type="number" name="settings[assignment_days_limit]" class="form-control" value="<?php echo htmlspecialchars(isset($settings['assignment_days_limit']) ? $settings['assignment_days_limit'] : '5'); ?>"> <small style="color:var(--text-muted);">How many days a user gets assignments before needing a refill.</small> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Referrals Required for Refill</label> <input type="number" name="settings[referrals_per_cycle]" class="form-control" value="<?php echo htmlspecialchars(isset($settings['referrals_per_cycle']) ? $settings['referrals_per_cycle'] : '2'); ?>"> <small style="color:var(--text-muted);">How many new referrals are required to continue work for another cycle.</small> </div> </div> <!-- Referral Settings --> <div class="card"> <h3 style="margin-bottom:20px; color:var(--primary-color); border-bottom:1px solid rgba(255,255,255,0.05); padding-bottom:10px;">Referral Logic</h3> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Max Referral Levels</label> <input type="number" name="settings[referral_levels]" class="form-control" value="<?php echo htmlspecialchars(isset($settings['referral_levels']) ? $settings['referral_levels'] : '3'); ?>"> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Commissions JSON (v1:%, v2:%, ...)</label> <textarea name="settings[referral_commissions]" class="form-control" rows="3" style="font-family:monospace;"><?php echo htmlspecialchars(isset($settings['referral_commissions']) ? $settings['referral_commissions'] : '{"1": 10, "2": 5, "3": 2}'); ?></textarea> <small style="color:var(--text-muted);">Format: {"1": Level1%, "2": Level2%, "3": Level3%}</small> </div> </div> <!-- Founder Profiles --> <div class="card"> <div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.05); padding-bottom:10px;"> <h3 style="margin:0; color:var(--primary-color);">Founder Profiles (Muhammad Ali)</h3> <div style="display:flex; align-items:center; gap:10px;"> <span style="font-size:0.8rem; color:var(--text-muted);">Status</span> <select name="settings[show_owner]" class="form-control" style="width: auto; padding: 2px 10px; height: 30px; font-size: 0.8rem;"> <option value="on" <?php echo (isset($settings['show_owner']) && $settings['show_owner'] === 'on') ? 'selected' : ''; ?>>Visible</option> <option value="off" <?php echo (isset($settings['show_owner']) && $settings['show_owner'] === 'off') ? 'selected' : ''; ?>>Hidden</option> </select> </div> </div> <div class="form-group" style="margin-bottom:20px;"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Founder Profile Picture</label> <div style="display:flex; align-items:center; gap:15px;"> <img src="../<?php echo !empty($settings['owner_image']) ? $settings['owner_image'] : 'assets/images/default-avatar.png'; ?>" style="width:60px; height:60px; border-radius:50%; object-fit:cover; border:2px solid var(--primary-color);"> <input type="file" name="owner_image" class="form-control" style="padding:8px;"> </div> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Founder Name</label> <input type="text" name="settings[owner_name]" class="form-control" value="<?php echo htmlspecialchars($settings['owner_name'] ?? ''); ?>"> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Founder Email</label> <input type="email" name="settings[owner_email]" class="form-control" value="<?php echo htmlspecialchars($settings['owner_email'] ?? ''); ?>"> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Founder Bio</label> <textarea name="settings[owner_bio]" class="form-control" rows="3"><?php echo htmlspecialchars($settings['owner_bio'] ?? ''); ?></textarea> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Founder Phone</label> <input type="text" name="settings[owner_phone]" class="form-control" value="<?php echo htmlspecialchars($settings['owner_phone'] ?? ''); ?>"> </div> </div> <!-- Co-Founder Profiles --> <div class="card"> <div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.05); padding-bottom:10px;"> <h3 style="margin:0; color:#3498db;">Co-Founder Profiles (Hania Bibi)</h3> <div style="display:flex; align-items:center; gap:10px;"> <span style="font-size:0.8rem; color:var(--text-muted);">Status</span> <select name="settings[show_cofounder]" class="form-control" style="width: auto; padding: 2px 10px; height: 30px; font-size: 0.8rem;"> <option value="on" <?php echo (isset($settings['show_cofounder']) && $settings['show_cofounder'] === 'on') ? 'selected' : ''; ?>>Visible</option> <option value="off" <?php echo (isset($settings['show_cofounder']) && $settings['show_cofounder'] === 'off') ? 'selected' : ''; ?>>Hidden</option> </select> </div> </div> <div class="form-group" style="margin-bottom:20px;"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Co-Founder Profile Picture</label> <div style="display:flex; align-items:center; gap:15px;"> <img src="../<?php echo !empty($settings['cofounder_image']) ? $settings['cofounder_image'] : 'assets/images/default-avatar.png'; ?>" style="width:60px; height:60px; border-radius:50%; object-fit:cover; border:2px solid #3498db;"> <input type="file" name="cofounder_image" class="form-control" style="padding:8px;"> </div> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Co-Founder Name</label> <input type="text" name="settings[cofounder_name]" class="form-control" value="<?php echo htmlspecialchars($settings['cofounder_name'] ?? ''); ?>"> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Co-Founder Email</label> <input type="email" name="settings[cofounder_email]" class="form-control" value="<?php echo htmlspecialchars($settings['cofounder_email'] ?? ''); ?>"> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Co-Founder Bio</label> <textarea name="settings[cofounder_bio]" class="form-control" rows="3"><?php echo htmlspecialchars($settings['cofounder_bio'] ?? ''); ?></textarea> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Co-Founder Phone</label> <input type="text" name="settings[cofounder_phone]" class="form-control" value="<?php echo htmlspecialchars($settings['cofounder_phone'] ?? ''); ?>"> </div> </div> <!-- Community Link Settings --> <div class="card" style="border-left: 4px solid #25d366;"> <div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.05); padding-bottom:10px;"> <h3 style="margin:0; color:#25d366;"><i class="fab fa-whatsapp" style="margin-right:10px;"></i> Community Link</h3> <div style="display:flex; align-items:center; gap:10px;"> <span style="font-size:0.8rem; color:var(--text-muted);">Status</span> <select name="settings[community_status]" class="form-control" style="width: auto; padding: 2px 10px; height: 30px; font-size: 0.8rem;"> <option value="on" <?php echo (isset($settings['community_status']) && $settings['community_status'] === 'on') ? 'selected' : ''; ?>>Active (On)</option> <option value="off" <?php echo (!isset($settings['community_status']) || $settings['community_status'] === 'off') ? 'selected' : ''; ?>>Hidden (Off)</option> </select> </div> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">Display Name (Inside Dashboard)</label> <input type="text" name="settings[community_name]" class="form-control" placeholder="Join Official WhatsApp Group" value="<?php echo htmlspecialchars($settings['community_name'] ?? 'Join Official WhatsApp Group'); ?>"> <small style="color:var(--text-muted);">This name will be shown on the user dashboard link.</small> </div> <div class="form-group"> <label style="display:block; margin-bottom:8px; font-size:0.9rem;">WhatsApp Group Link</label> <input type="url" name="settings[community_link]" class="form-control" placeholder="https://chat.whatsapp.com/..." value="<?php echo htmlspecialchars($settings['community_link'] ?? ''); ?>"> <small style="color:var(--text-muted);">Enter the full URL of your WhatsApp community or group.</small> </div> </div> </div> <div style="margin-top:20px;"> <button type="submit" name="update_settings" class="btn-primary" style="padding:15px 40px; font-size:1.1rem; box-shadow: 0 10px 20px rgba(0,210,106,0.3);">Save Detailed Settings</button> </div> </form> <style> .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; margin-bottom: 25px; } @media (max-width: 768px) { .settings-grid { grid-template-columns: 1fr; } .card { padding: 20px !important; } } .form-control { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 12px; border-radius: 8px; transition: all 0.3s ease; } .form-control:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); outline: none; box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.1); } .card h3 { font-size: 1.1rem; letter-spacing: 0.5px; } /* Switch Styles */ .switch { position: relative; display: inline-block; width: 46px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); -webkit-transition: .4s; transition: .4s; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; -webkit-transition: .4s; transition: .4s; } input:checked + .slider { background-color: var(--primary-color); } input:focus + .slider { box-shadow: 0 0 1px var(--primary-color); } input:checked + .slider:before { -webkit-transform: translateX(22px); -ms-transform: translateX(22px); transform: translateX(22px); } .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } </style> <?php require_once 'includes/footer.php'; ?>