1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-10 04:02:28 +01:00

Update admin PHP script for direct disable

This commit is contained in:
Chaoyi Zha 2015-05-31 10:53:32 -04:00
parent cfdb0b97b2
commit 9f27b76428

View File

@ -8,7 +8,7 @@ $isadmin = $auth->isadminli();
if (!is_array($auth->islogged())) {
echo "<h3>You must login to access this page.</h3><br><a href='index.php'>Home</a>";
require_once '../layout-footerlg.php';
die(); //END NOT LOGGED IN PORTION
die();
} else {
$userinfo = $auth->islogged();
function fetchurls($lstart = 0) {
@ -124,7 +124,10 @@ if (!is_array($auth->islogged())) {
</form>
</div>';
if ($isadmin == true) {
echo '<div class="tab-pane" id="adminpanel"><br>Polr Links - Limited @ 720:' . $linksadmin . '<br>Polr Users - Limited @ 360:' . $usersadmin. '<script src="../js/ucp.js"></script>';
echo '<div class="tab-pane" id="adminpanel"><br />'
echo '<input type="text" id="linkAction" placeholder="baseval" style="width:30%;" class="form-control" /><a href="#" onclick="customDisableLink();" class="btn btn-sm btn-danger">Disable</a>';
echo '<a href="#" onclick="customEnableLink();" class="btn btn-sm btn-success">Enable</a><br />';
echo 'Polr Links - Limited @ 720:' . $linksadmin . '<br>Polr Users - Limited @ 360:' . $usersadmin. '<script src="../js/ucp.js"></script>';
if ($debug == 1) {
'<br>Debug Variables: <br>Default IP Fetch: ' . $ip . '<br>X-Forwarded-For:' . @$headers['X-Forwarded-For'] . '<br>Forwarded-For' . @$headers['forwarded-for'];
}