loggedIn()) { print 'Log in before accessing this part of the site.'; exit; } // Check if staff if($_SESSION['uid'] != 2 && !$flashii->checkRank($fwSettings['sitemodRanks'])) { print 'You are not allowed to view this part of the site.'; exit; } if(!isset($_GET['sid']) && $_GET['sid'] != session_id()) { header('Location: ./?page='. base64_encode('index') .'&sid='. session_id()); exit; } if(isset($_GET['navi'])) { if(isset($_GET['prof'])) header('Location: ./?page='. base64_encode('profile') .'&sid='. session_id()); if(isset($_GET['bans'])) header('Location: ./?page='. base64_encode('banning') .'&sid='. session_id()); if(isset($_GET['repo'])) header('Location: ./?page='. base64_encode('reports') .'&sid='. session_id()); if(isset($_GET['warn'])) header('Location: ./?page='. base64_encode('warnings') .'&sid='. session_id()); if(isset($_GET['flii'])) header('Location: /'); if(isset($_GET['indx'])) header('Location: ./?page='. base64_encode('index') .'&sid='. session_id()); exit; } // Header print '

Flashii Manage Ban Panel

It\'s a quick "functional" filler, okay.
'; // Navigation print '
'; print ''; print ''; print ''; print ''; print ''; print '
'; print '
'; print '
'; if(isset($_GET['page'])) { switch(base64_decode($_GET['page'])) { case 'index': case 'banning': if(isset($_GET['active']) && $_GET['active'] == base64_encode('active') && !isset($_GET['unban'])) { $users = getUsers(); print 'Return
'; print '
'; print ''; print ''; print ''; print '

Select a user to take action

'; print ''; print ''; print '
'; if(isset($_GET['user'])) { foreach($users as $user) { if($user['id'] == base64_decode($_GET['user'])) { if(isset($_GET['ban']) && $_GET['ban'] == base64_encode('fucking go for it')) { if(in_array(3, unserialize($user['groups']))) { print 'no'; break; } if($user['id'] == 303) { print "we're not doing this"; break; } if(!isset($_GET['time'])) { print 'Time not set.'; exit; } if(!isset($_GET['reason'])) { print 'Reason not set.'; exit; } if(!isset($_GET['type'])) { print 'Type not set.'; exit; } banUser( $user['id'], (empty($user['last_ip']) ? $user['register_ip'] : $user['last_ip']), $_GET['type'], isset($_GET['perma']), ($_GET['time'] == 'custom' ? $_GET['custom'] : (is_numeric($_GET['time']) ? $_GET['time'] : 30)), $_SESSION['uid'], $_SERVER['REMOTE_ADDR'], $_GET['reason'] ); print '

'. $user['username'] .' = ban.

'; break; } print '
';
                            
                            print 'Username: '. $user['username'] .'
'; print 'Primary Group: '. $flashii->getRankdata($user['userrole'])['name'] .'
'; print 'Groups: '; foreach(unserialize($user['groups']) as $group) { print $flashii->getRankdata($group)['name']. ', '; } print '
'; print 'E-mail: '. $user['email'] .'
'; print 'Register IP: '. $user['register_ip'] .'
'; print 'Last IP: '. $user['last_ip'] .'
'; print 'Join date: '. date('r', $user['join_date']) .'
'; print 'Last seen: '. date('r', $user['last_seen']) .'
'; print 'Last namechange: '. date('r', $user['last_namechange']) .'
'; print '
'; print '
'; print ''; print ''; print ''; print ''; print ''; print 'Ban user for: '; print '
'; print 'Reason:
'; print '
'; print 'Type...
'; print '
'; print '
'; print '
'; print ''; print '
'; break; } } } break; } elseif(!isset($_GET['active']) && isset($_GET['unban']) && $_GET['unban'] == base64_encode('unban')) { foreach($_GET as $key => $value) { if(substr($key, 0, 2) == 'uu') { unbanUser(substr($key, 2)); } unset($key); unset($value); } print 'Return

The selected niggers have been unbanned!

'; break; } print 'Ban a user
'; print '
'; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; foreach(getBans() as $ban) { print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print ''; } print '
UsernameIPIssued onBanned tillReasonTypeBanned by
'. $flashii->getUserdata($ban['uid'])['username'] .''. $ban['ip'] .''. date('r', $ban['timestamp']) .''. ($ban['perma'] ? 'Permanent' : date('r', $ban['bannedtill'])) .''. $ban['reason'] .''. ($ban['type'] == 2 ? 'Username and IP Address' : ($ban['type'] ? 'IP Address' : 'Username')) .''. $flashii->getUserdata($ban['mid'])['username'] .'
'; print ''; print ''; print ''; print '
'; break; case 'warnings': print 'ban poop'; break; case 'reports': print 'ban poop'; break; default: header('Location: ./?page='. base64_encode('index') .'&sid='. session_id()); } } else { header('Location: ./?page='. base64_encode('index') .'&sid='. session_id()); } // Footer print '

Manage Version 2.44k
';