📁 Folder Navigator
Position:
Root
/
faith
/
vpnp1
Create
Folders
📁 admin
Rename
Copy
Delete
📁 connect
Rename
Copy
Delete
📁 content
Rename
Copy
Delete
📁 network
Rename
Copy
Delete
📁 store
Rename
Copy
Delete
Files
📄 admin_settings.php
📄 dialadmin_settings.php
📄 dialdropdown_config.txt
📄 dropdown_config.txt
📄 index.php
📄 url_config.json
📄 url_setting.php
📝 File Editor
Editing:
admin_settings.php
<?php $configFile = 'dropdown_config.txt'; // The exact tiers matching your current interface structure $allTiers = [ "1" => "SOCIALMEDIA", "7" => "LIVE STREAM", "14" => "ONDEMAND TV" ]; // Save changes when you submit the form if ($_SERVER['REQUEST_METHOD'] === 'POST') { $allowedTiers = isset($_POST['allowed_tiers']) ? $_POST['allowed_tiers'] : []; // Save the allowed keys as a comma-separated text string file_put_contents($configFile, implode(',', $allowedTiers)); $message = "<div style='color:#00ff00; margin-bottom:15px;'>Configuration Saved Successfully!</div>"; } // Load your currently saved active tiers (default to opening everything if file is empty) $savedTiersStr = file_exists($configFile) ? trim(file_get_contents($configFile)) : ''; $activeTiers = !empty($savedTiersStr) ? explode(',', $savedTiersStr) : array_keys($allTiers); ?> <!DOCTYPE html> <html> <head> <title>Dropdown Access Controller</title> <style> body { background: #0b0b0b; color: #e0e0e0; font-family: sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; } .config-card { background: #161616; padding: 30px; border-radius: 8px; border: 1px solid #333; width: 340px; box-sizing: border-box; } h2 { color: #00ff00; font-size: 16px; text-align: center; text-transform: uppercase; margin-top: 0; margin-bottom: 20px; } .tier-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #222; } label { font-size: 13px; font-weight: bold; cursor: pointer; } input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #00ff00; } button { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; margin-top: 20px; text-transform: uppercase; } button:hover { background: #0056b3; } </style> </head> <body> <div class="config-card"> <h2>Dropdown Authorization Policy</h2> <?php if (isset($message)) echo $message; ?> <form method="POST"> <?php foreach ($allTiers as $value => $label): ?> <div class="tier-row"> <label for="tier_<?php echo $value; ?>"><?php echo $label; ?></label> <input type="checkbox" name="allowed_tiers[]" value="<?php echo $value; ?>" id="tier_<?php echo $value; ?>" <?php if (in_array($value, $activeTiers)) echo 'checked'; ?>> </div> <?php endforeach; ?> <button type="submit">Apply Selection Policy</button> </form> </div> </body> </html>
💾 Save Changes