├── .gitignore ├── API ├── api.php ├── apiExample.php ├── apiFunctions.php └── readME.md ├── ArmaRConClass ├── .DS_Store └── rcon.php ├── Backend ├── changeLicense.php ├── updateGangs.php ├── updateHouses.php ├── updatePlayers.php └── updateVehicles.php ├── Contributors.txt ├── LICENSE ├── README.md ├── addStaff.php ├── changePerms.php ├── create.php ├── delete.php ├── dist ├── .DS_Store ├── css │ ├── .DS_Store │ ├── bootstrap.css │ └── bootstrap.min.css.map ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 └── js │ └── bootstrap.min.js ├── editHouses.php ├── editPlayer.php ├── functions.php ├── gangs.php ├── header ├── .DS_Store └── header.php ├── help.php ├── home.php ├── houses.php ├── images ├── Admin.png ├── img1.jpg ├── img10.jpg ├── img2.jpg ├── img3.jpg ├── img4.jpg ├── img5.jpg ├── img6.jpg ├── img7.jpg ├── img8.jpg ├── img9.jpg ├── jason.png └── man.png ├── index.php ├── locked.php ├── login.php ├── logout.php ├── logs.php ├── lvlError.php ├── notes.php ├── notesView.php ├── permissions.php ├── players.php ├── profile.php ├── rCon ├── Kmenu.php ├── Kplayer.php ├── SKPlayerv1.php ├── header │ └── header.php ├── player.php ├── rcon-Skick.php ├── rcon-ban.php ├── rcon-check.php ├── rcon-kick.php ├── rcon-mess.php ├── rcon-restart.php ├── rcon-stop.php ├── rcon-unBan.php └── unBan.php ├── reimbursement.php ├── scripts ├── jquery-1.12.3.min.js └── jquery.backstretch.js ├── settings.php ├── staff.php ├── steam.php ├── styles ├── .DS_Store ├── dashboard.css └── global.css ├── updateSettings.php ├── vehicles.php ├── verifyCheck.php └── whitelist.php /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /API/api.php: -------------------------------------------------------------------------------- 1 | '; 197 | $time = microtime(); 198 | $time = explode(' ', $time); 199 | $time = $time[1] + $time[0]; 200 | $finish = $time; 201 | $total_time = round(($finish - $start), 4); 202 | echo 'Page generated in '.$total_time.' seconds.'; 203 | } 204 | } else { 205 | echo 'Invalid credentials'; 206 | } 207 | } else { 208 | echo 'Disabled'; 209 | } 210 | -------------------------------------------------------------------------------- /API/apiExample.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | Admin Panel 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
26 |

Players

27 |
28 |
29 |

30 |
31 |
32 | 33 |
34 | 35 | 36 |
37 | 38 | 39 | 40 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /API/apiFunctions.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | Build Status 5 | Build Status 6 | 7 | 8 | Join the chat at https://discord.gg/kZCTRPk 9 | 10 |

11 | 12 | ## AdminPanel API Info 13 | 14 |

AdminPanel now has a brand new API available to be used, 15 | it returns the data in json so many languages can use it for various things. 16 | 17 | The panel currently has 12 functions which you can use at this moment in time. 18 |

19 | 20 | 21 | * all - This returns info about every player in your database and things such as total amount of money, and player count. 22 | * search - This allows you to get information about a certain player(use the players id ex.76561198035548503). 23 | * money - Returns amount of money through out the entire server. 24 | * players - Returns the amount of players in the database. 25 | * wanted - Returns the players wanted and what they are wanted for. 26 | * vehicles - Returns the amount of vehicles in the database. 27 | * coplevel - Returns a list of all the players with the highest cop level first. 28 | * mediclevel - Returns a list of all the players with the highest medic level first. 29 | * donorlevel - Returns a list of all the players with the highest donor level first. 30 | * adminlevel - Returns a list of all the players with the highest admin level first. 31 | * gangs - Returns the information about all the gangs on the server. 32 | * richlist - Returns a default of the richest 10 players (ordered by bank), you can add the optional 'limit' to the url to change the number of players returned 33 | 34 |

The API was made to help out people who are using things such as IPS where you dont want to add 35 | queries etc into the code itself so instead you can just use the API to simply get the data instead. 36 | However it can be used for various other things such as discord bots and more.

37 | 38 | Examples 39 | 40 | * http://139.59.163.114/Other/Admin/AdminPanel_V2/API/api.php?user=test&pass=test&request=all 41 | * http://139.59.163.114/Other/Admin/AdminPanel_V2/API/api.php?user=test&pass=test&request=richlist 42 | * http://139.59.163.114/Other/Admin/AdminPanel_V2/API/api.php?user=test&pass=test&request=richlist&limit=2 43 | * http://139.59.163.114/Other/Admin/AdminPanel_V2/API/apiExample.php 44 | -------------------------------------------------------------------------------- /ArmaRConClass/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/ArmaRConClass/.DS_Store -------------------------------------------------------------------------------- /Backend/changeLicense.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 29 | 30 | $licences = $player->$col; 31 | $num = strpos($licences, $change['2']) + strlen($change['2']) + 2; 32 | 33 | $pid = playerID($player); 34 | 35 | if ($licences[$num] == 0) { 36 | $licences[$num] = 1; 37 | $message = 'Admin '.$user.' has added license '.$id.' to '.$player->name.'('.$pid.')'; 38 | logIt($user, $message, $dbcon); 39 | } elseif ($licences[$num] == 1) { 40 | $message = 'Admin '.$user.' has removed license '.$id.' from '.$player->name.'('.$pid.')'; 41 | logIt($user, $message, $dbcon); 42 | $licences[$num] = 0; 43 | } 44 | 45 | $sql = 'UPDATE `players` SET `'.$col."`='$licences' WHERE uid ='$uid'"; 46 | $result = mysqli_query($dbcon, $sql); 47 | } 48 | -------------------------------------------------------------------------------- /Backend/updateGangs.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 20 | 21 | switch ($_POST['column']) { 22 | 23 | case 'maxmembers': 24 | $maxmembers = logs($staffPerms['gangs'], $_POST['column'], $gang->pid, $user, $dbcon, $gang, $_POST['editval']); 25 | $UpdateQ = "UPDATE gangs SET $_POST[column]='$maxmembers' WHERE id='$_POST[id]'"; 26 | break; 27 | 28 | case 'members': 29 | $members = logs($staffPerms['gangs'], $_POST['column'], $gang->pid, $user, $dbcon, $gang, $_POST['editval']); 30 | $UpdateQ = "UPDATE gangs SET $_POST[column]='$members' WHERE id='$_POST[id]'"; 31 | break; 32 | 33 | case 'bank': 34 | $bank = logs($staffPerms['gangs'], $_POST['column'], $gang->pid, $user, $dbcon, $gang, $_POST['editval']); 35 | $UpdateQ = "UPDATE gangs SET $_POST[column]='$bank' WHERE id='$_POST[id]'"; 36 | break; 37 | 38 | case 'active': 39 | $active = logs($staffPerms['gangs'], $_POST['column'], $gang->pid, $user, $dbcon, $gang, $_POST['editval']); 40 | $UpdateQ = "UPDATE gangs SET $_POST[column]='$active' WHERE id='$_POST[id]'"; 41 | break; 42 | 43 | default: 44 | $message = 'ERROR'; 45 | logIt($user, $message, $dbcon); 46 | break; 47 | } 48 | 49 | mysqli_query($dbcon, $UpdateQ); 50 | -------------------------------------------------------------------------------- /Backend/updateHouses.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 20 | 21 | switch ($_POST['column']) { 22 | 23 | case 'owned': 24 | $owned = logs($staffPerms['housing'], $_POST['column'], $houses->pid, $user, $dbcon, $houses, $_POST['editval']); 25 | $UpdateQ = "UPDATE houses SET $_POST[column]='$owned' WHERE id='$_POST[id]'"; 26 | break; 27 | 28 | case 'ownedCrate': 29 | $ownedCrate = logs($staffPerms['housing'], $_POST['column'], $houses->pid, $user, $dbcon, $houses, $_POST['editval']); 30 | $UpdateQ = "UPDATE containers SET owned='$owned' WHERE id='$_POST[id]'"; 31 | break; 32 | 33 | case 'active': 34 | $active = logs($staffPerms['housing'], $_POST['column'], $houses->pid, $user, $dbcon, $houses, $_POST['editval']); 35 | $UpdateQ = "UPDATE containers SET $_POST[column]='$owned' WHERE id='$_POST[id]'"; 36 | break; 37 | 38 | case 'gear': 39 | $gear = logs($staffPerms['housing'], $_POST['column'], $houses->pid, $user, $dbcon, $houses, $_POST['editval']); 40 | $UpdateQ = "UPDATE containers SET $_POST[column]='$gear' WHERE id='$_POST[id]'"; 41 | break; 42 | 43 | case 'inventory': 44 | $inventory = logs($staffPerms['housing'], $_POST['column'], $houses->pid, $user, $dbcon, $houses, $_POST['editval']); 45 | $UpdateQ = "UPDATE containers SET $_POST[column]='$inventory' WHERE id='$_POST[id]'"; 46 | break; 47 | 48 | default: 49 | $message = 'ERROR'; 50 | logIt($user, $message, $dbcon); 51 | break; 52 | } 53 | 54 | mysqli_query($dbcon, $UpdateQ); 55 | -------------------------------------------------------------------------------- /Backend/updatePlayers.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 20 | 21 | $cash = $player->cash; 22 | $bank = $player->bankacc; 23 | $cop = $player->coplevel; 24 | $medic = $player->mediclevel; 25 | $admin = $player->adminlevel; 26 | 27 | if ($player->playerid != '' || $player->pid != '') { 28 | if ($player->playerid == '') { 29 | $pid = $player->pid; 30 | } else { 31 | $pid = $player->playerid; 32 | } 33 | } 34 | 35 | switch ($_POST['column']) { 36 | case 'cash': 37 | $cash = logs($staffPerms['money'], 'cash', $pid, $user, $dbcon, $player, $_POST['editval']); 38 | $UpdateQ = "UPDATE players SET $_POST[column]='$cash' WHERE uid='$_POST[uid]'"; 39 | break; 40 | case 'bankacc': 41 | $bankacc = logs($staffPerms['money'], 'bankacc', $pid, $user, $dbcon, $player, $_POST['editval']); 42 | $UpdateQ = "UPDATE players SET $_POST[column]='$bankacc' WHERE uid='$_POST[uid]'"; 43 | break; 44 | case 'coplevel': 45 | $coplevel = logs($staffPerms['cop'], 'coplevel', $pid, $user, $dbcon, $player, $_POST['editval']); 46 | $UpdateQ = "UPDATE players SET $_POST[column]='$coplevel' WHERE uid='$_POST[uid]'"; 47 | break; 48 | case 'mediclevel': 49 | $mediclevel = logs($staffPerms['medic'], 'mediclevel', $pid, $user, $dbcon, $player, $_POST['editval']); 50 | $UpdateQ = "UPDATE players SET $_POST[column]='$mediclevel' WHERE uid='$_POST[uid]'"; 51 | break; 52 | case 'adminlevel': 53 | $adminlevel = logs($staffPerms['IG-Admin'], 'adminlevel', $pid, $user, $dbcon, $player, $_POST['editval']); 54 | $UpdateQ = "UPDATE players SET $_POST[column]='$adminlevel' WHERE uid='$_POST[uid]'"; 55 | break; 56 | case 'donatorlvl': 57 | $donatorlvl = logs($staffPerms['editPlayer'], $_POST['column'], $pid, $user, $dbcon, $player, $_POST['editval']); 58 | $UpdateQ = "UPDATE players SET $_POST[column]='$donatorlvl' WHERE uid='$_POST[uid]'"; 59 | break; 60 | case 'donorlevel': 61 | $donorlevel = logs($staffPerms['editPlayer'], $_POST['column'], $pid, $user, $dbcon, $player, $_POST['editval']); 62 | $UpdateQ = "UPDATE players SET $_POST[column]='$donorlevel' WHERE uid='$_POST[uid]'"; 63 | break; 64 | case 'blacklist': 65 | $blacklist = logs($staffPerms['editPlayer'], $_POST['column'], $pid, $user, $dbcon, $player, $_POST['editval']); 66 | $UpdateQ = "UPDATE players SET $_POST[column]='$blacklist' WHERE uid='$_POST[uid]'"; 67 | break; 68 | 69 | default: 70 | $message = 'ERROR'; 71 | logIt($user, $message, $dbcon); 72 | break; 73 | } 74 | 75 | mysqli_query($dbcon, $UpdateQ); 76 | -------------------------------------------------------------------------------- /Backend/updateVehicles.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 20 | 21 | switch ($_POST['column']) { 22 | 23 | case 'classname': 24 | $classname = logs($staffPerms['vehicles'], $_POST['column'], $vehicles->pid, $user, $dbcon, $vehicles, $_POST['editval']); 25 | $UpdateQ = "UPDATE vehicles SET $_POST[column]='$classname' WHERE id='$_POST[id]'"; 26 | break; 27 | 28 | case 'alive': 29 | $alive = logs($staffPerms['vehicles'], $_POST['column'], $vehicles->pid, $user, $dbcon, $vehicles, $_POST['editval']); 30 | $UpdateQ = "UPDATE vehicles SET $_POST[column]='$alive' WHERE id='$_POST[id]'"; 31 | break; 32 | 33 | case 'active': 34 | $active = logs($staffPerms['vehicles'], $_POST['column'], $vehicles->pid, $user, $dbcon, $vehicles, $_POST['editval']); 35 | $UpdateQ = "UPDATE vehicles SET $_POST[column]='$active' WHERE id='$_POST[id]'"; 36 | break; 37 | 38 | case 'plate': 39 | $plate = logs($staffPerms['vehicles'], $_POST['column'], $vehicles->pid, $user, $dbcon, $vehicles, $_POST['editval']); 40 | $UpdateQ = "UPDATE vehicles SET $_POST[column]='$plate' WHERE id='$_POST[id]'"; 41 | break; 42 | 43 | default: 44 | $message = 'ERROR'; 45 | logIt($user, $message, $dbcon); 46 | break; 47 | } 48 | 49 | mysqli_query($dbcon, $UpdateQ); 50 | -------------------------------------------------------------------------------- /Contributors.txt: -------------------------------------------------------------------------------- 1 | Jarret(itsJarrett): For much needed cleanups and additions to the panel 2 | 3 | Trahax/BigJ: Big thanks to these two, they have tested the panel thoroughly and reported many security flaws/bugs within the panel 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AdminPanel 2 | 3 | **This project was one which was created at the beginning of my "career", and looking back on it now, is frankly, a mess. This project is in desperate need of a re-write, however i unfortunately do not have the time nor energy to invest into this which results in the project being archived.** 4 | 5 | 6 | Join the chat at https://discord.gg/kZCTRPk 7 | 8 | 9 | 10 | ## AdminPanel Info 11 | AdminPanel was a project started after owning a community and my admins not knowing fully how to use database admin tools, so I created a very user friendly panel instead! 12 | 13 | The panel also has access to Rcon, meaning your server can be maintained and run without the need to be in-game or even your computer! 14 | 15 | ### Screenshots 16 | 17 | See the AdminPanel in action here! 18 | 19 | ### Install 20 | 21 | Just drop these files into a webserver. Everything else is configured from the panel itself so no need for file configuration! 22 | Note - The DB info is that of your Arma 3 Altis Life Database. 23 | 24 | Default user is Username: AdminPanel Password: Admin1234 25 | Please change this after the first login. 26 | 27 | The Default API Username and Password if not specified: Username: default Password: password 28 | 29 | Thanks for the support! 30 | -------------------------------------------------------------------------------- /addStaff.php: -------------------------------------------------------------------------------- 1 | 21 | 22 | 27 | 28 | 29 |
30 |

Staff Menu

31 | 32 | 33 |
34 |
35 | 36 |
37 |



38 | 39 | User successfully added!
'; 51 | } else { 52 | echo ''; 53 | } 54 | } 55 | ?> 56 | 57 |
58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | '; 69 | echo ''; 70 | 71 | echo ''; 77 | echo ''; 78 | 79 | echo '
UsernamePasswordUpdate
'.""; 72 | echo ''.""; 73 | 74 | echo ''."'; 75 | 76 | echo '
'; 80 | ?> 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /changePerms.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 27 | 28 | $licences = $user->permissions; 29 | $num = strpos($licences, $change['0']) + strlen($change['0']) + 2; 30 | 31 | if ($licences[$num] == 0) { 32 | $licences[$num] = 1; 33 | } elseif ($licences[$num] == 1) { 34 | $licences[$num] = 0; 35 | } 36 | 37 | $sql = "UPDATE `users` SET `permissions` = '$licences' WHERE ID = $staffId"; 38 | $result = mysqli_query($dbcon, $sql); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /create.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | Admin Panel - Create 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 27 | 28 |
29 |
30 | 31 | 76 |
77 |
78 | 79 | 96 | 97 | -------------------------------------------------------------------------------- /delete.php: -------------------------------------------------------------------------------- 1 | 21 |
22 |

Edit Houses

23 | 24 |
25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | '; 45 | echo ''; 62 | } 63 | echo '
Container InventoryContainer GearContainer ActiveContainer Owned
' ?> 46 | ' > 47 | '; 49 | echo '' ?> 50 | ' > 51 | '; 53 | echo '' ?> 54 | 55 | '; 57 | echo '' ?> 58 | 59 | '; 61 | echo '
'; 64 | ?> 65 | 66 | 87 | 88 | 89 |
90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /editPlayer.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 24 | 25 | $username = utf8_encode($player->name); 26 | $pid = playerID($player); 27 | include 'header/header.php'; 28 | ?> 29 | 30 | 31 |
32 |

Edit Player

33 | 34 |
35 |
36 |
37 | 38 |
39 |
40 | 41 |
42 | > 43 | > 44 |
45 | 46 | 47 |
48 |
49 | 50 | 51 | 52 | 94 | 95 |
96 |
97 |

Player Info

98 |
99 |
100 | "; 102 | echo "

".$username.'

'; 103 | echo '

UID: '.$player->uid.'

'; 104 | echo '

Player ID: '.$pid.'

'; 105 | echo '

GUID: '.$guidPlayer.'

'; 106 | echo '

Bank: $'.$player->bankacc.'

'; 107 | echo '

Cash: $'.$player->cash.'

'; 108 | echo '

Cop Level: '.$player->coplevel.'

'; 109 | echo '

Medic Level: '.$player->mediclevel.'

'; 110 | echo '

Admin Level: '.$player->adminlevel.'

'; 111 | 112 | echo '
'; 113 | echo '
'; 114 | 115 | echo "
116 |
117 |

Edit Player

118 |
119 |
"; 120 | 121 | ?> 122 |
123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | '; 149 | outputSelection($maxDonator, $version, $don, $row['uid']); 150 | outputSelection(1, 'blacklist', $row['blacklist'], $row['uid']); 151 | echo ''; 152 | } 153 | echo '
Donator LevelBlacklisted
'; 154 | 155 | echo '
'; 156 | echo '
'; 157 | 158 | echo "
159 |
160 |

Player Notes

161 |
162 |
"; 163 | ?> 164 |
165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | '; 183 | } elseif ($row['warning'] == 3) { 184 | echo ''; 185 | } else { 186 | echo ''; 187 | } 188 | 189 | echo ''; 190 | echo ''; 191 | echo ''; 192 | echo ''; 193 | } 194 | echo '
Added byNoteDate added
'.$row['staff_name'].' '.$row['note_text'].' '.$row['note_updated'].'
'; 195 | echo '
'; 196 | echo '
'; 197 | 198 | echo "
"; 199 | 200 | if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { 201 | $return = explode('],[', $player->civ_licenses); 202 | 203 | echo "
204 |
205 |

Civ Licenses

206 |
207 |
"; 208 | 209 | foreach ($return as $value) { 210 | license($value, $staffPerms); 211 | } 212 | echo '
213 |
'; 214 | } 215 | echo '
'; 216 | 217 | echo "
"; 218 | if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '[]') { 219 | $return = explode('],[', $player->med_licenses); 220 | 221 | echo "
222 |
223 |

Medic Licenses

224 |
225 |
"; 226 | 227 | foreach ($return as $value) { 228 | license($value, $staffPerms); 229 | } 230 | echo '
231 |
'; 232 | } 233 | echo '
'; 234 | echo "
"; 235 | if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { 236 | $return = explode('],[', $player->cop_licenses); 237 | 238 | echo "
239 |
240 |

Cop Licenses

241 |
242 |
"; 243 | 244 | foreach ($return as $value) { 245 | license($value, $staffPerms); 246 | } 247 | echo '
'; 248 | } 249 | echo '
'; 250 | echo "
"; 251 | echo '
'; 252 | 253 | if (isset($_POST['remove'])) { 254 | if ($staffPerms['editPlayer'] == '1') { 255 | $licReset = str_replace('1', '0', $player->civ_licenses); 256 | $sql = "UPDATE `players` SET `civ_licenses`='$licReset' WHERE uid ='$uidPlayer'"; 257 | $result = mysqli_query($dbcon, $sql); 258 | 259 | $message = 'Admin '.$user.' has removed all licenses from '.utf8_encode($player->name).'('.$pid.')'; 260 | logIt($user, $message, $dbcon); 261 | } 262 | } 263 | if (isset($_POST['give'])) { 264 | $uidPlayer = $_POST['hidden']; 265 | if ($staffPerms['editPlayer'] == '1') { 266 | $licReset = str_replace('0', '1', $player->civ_licenses); 267 | $sql = "UPDATE `players` SET `civ_licenses`='$licReset' WHERE uid ='$uidPlayer'"; 268 | $result = mysqli_query($dbcon, $sql); 269 | 270 | $message = 'Admin '.$user.' has added all licenses to '.utf8_encode($player->name).'('.$pid.')'; 271 | logIt($user, $message, $dbcon); 272 | } 273 | } 274 | ?> 275 | 276 | 277 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | playerid != '' || $player->pid != '') { 7 | if ($player->playerid == '') { 8 | $pid = $player->pid; 9 | 10 | return $pid; 11 | } 12 | $pid = $player->playerid; 13 | 14 | return $pid; 15 | } 16 | } 17 | 18 | function remove($value) 19 | { 20 | $value = replace('`', $value); 21 | $value = replace('"[[', $value); 22 | $value = replace(']]"', $value); 23 | 24 | return $value; 25 | } 26 | 27 | function replace($string, $text) 28 | { 29 | return str_replace($string, '', $text); 30 | } 31 | 32 | function license($value, $staffPerms) 33 | { 34 | $val = remove($value); 35 | $newVal = explode(',', $val); 36 | if ($newVal[1] == 1) { 37 | $display = explode('_', $newVal[0]); 38 | $displayN = $display['2']; 39 | if ($staffPerms['editPlayer'] == '1') { 40 | echo " '; 41 | } else { 42 | echo " '; 43 | } 44 | } else { 45 | if ($newVal[0] != '') { 46 | $display = explode('_', $newVal[0]); 47 | $displayN = $display['2']; 48 | if ($staffPerms['editPlayer'] == '1') { 49 | echo " '; 50 | } else { 51 | echo " '; 52 | } 53 | } 54 | } 55 | } 56 | 57 | function guid($max, $pid) 58 | { 59 | if ($max != 2147483647) { 60 | $steamID = $pid; 61 | $temp = ''; 62 | 63 | for ($i = 0; $i < 8; ++$i) { 64 | $temp .= chr($steamID & 0xFF); 65 | $steamID >>= 8; 66 | } 67 | 68 | $return = md5('BE'.$temp); 69 | 70 | return $return; 71 | } 72 | $return = 'GUID can not be used with 32 bit php!'; 73 | 74 | return $return; 75 | } 76 | 77 | function logIt($admin, $log, $dbcon) 78 | { 79 | $logQ = "INSERT INTO log (user,action,level) VALUES ('$admin','$log',1)"; 80 | mysqli_query($dbcon, $logQ); 81 | } 82 | 83 | function filterTable($dbcon, $sqlget) 84 | { 85 | $sqldata = mysqli_query($dbcon, $sqlget); 86 | 87 | return $sqldata; 88 | } 89 | 90 | function outputSelection($max, $column, $value, $uid) 91 | { 92 | ++$max; 93 | echo '' ?> 94 | '; 104 | } 105 | 106 | function logs($perms, $column, $pid, $user, $dbcon, $player, $val) 107 | { 108 | if ($perms == '1') { 109 | if ($val != $player->$column) { 110 | $message = 'Admin '.$user.' has changed '.utf8_encode($player->name).'('.$pid.')'.' '.$column.' from '.$player->$column.' to '.$val; 111 | logIt($user, $message, $dbcon); 112 | 113 | $return = $val; 114 | 115 | return $return; 116 | } 117 | } else { 118 | if ($val != $player->$column) { 119 | $message = 'Admin '.$user.' tried to change '.utf8_encode($player->name).'('.$pid.')'.' '.$column.' from '.$player->$column.' to '.$val; 120 | logIt($user, $message, $dbcon); 121 | 122 | $return = $player->$column; 123 | 124 | return $return; 125 | } 126 | } 127 | } 128 | -------------------------------------------------------------------------------- /gangs.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | Admin Panel - Gangs 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 51 | 52 | 53 |
54 |

Gang Menu

55 | 56 |
57 | 62 |
63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | '; 78 | echo ''; 79 | echo ''; 80 | 81 | echo ''; 103 | } 104 | 105 | echo '
OwnerNameMembersMax MembersBankActive
'.$row['owner'].' '.$row['name'].' ' ?> 82 | ' > 83 | '; 85 | 86 | echo '' ?> 87 | 88 | '; 90 | 91 | echo '' ?> 92 | 93 | '; 95 | 96 | 97 | echo '' ?> 98 | 99 | '; 101 | 102 | echo '
'; 106 | ?> 107 | 108 | 109 |
110 | 111 | 112 | 113 | 114 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /header/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/header/.DS_Store -------------------------------------------------------------------------------- /header/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Admin Panel 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 51 | 52 |
53 |
54 | -------------------------------------------------------------------------------- /help.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 |
16 |

Panel Help

17 | 18 | 19 |
20 |
21 |

Players

22 |
23 |
24 |

The players tab has a filter bar, exactly the same as a search bar, this allows you to seach for a players name or UID.

25 |
26 |
27 | 28 |
29 |
30 |

Ban Menu

31 |
32 |
33 |

Ban menu, this allows you to ban players who are in/out of game, with a reason and a time. The time is scaled in minutes, 60 = 1 hour. Note - When a player is banned they will remain in the server so please kick them straight after!

34 |
35 |
36 | 37 |
38 |
39 |

Kick Menu

40 |
41 |
42 |

Kick player, this has two options, RCON kick and Server kick. Server kick comes up with every single player who is in your database and all you need to do it hit kick, obviously they have to be on the server for it to kick them.

43 |

RCON kick is a little more complicated however it does have the ability to give a reason for your kick. To kick someone you need the Battleye id for the player, this is found by clicking the battleye list button. This is the number you need to use to kick people from your server - Not their UID or thier GUID.

44 |
45 |
46 | 47 |
48 |
49 |

Log Menu

50 |
51 |
52 |

The logs tab shows you exactly which admin has done what at the exact time. Note - The timing will depend on where your database is situated!

53 |
54 |
55 | 56 |
57 |
58 |

Thanks!

59 |
60 |
61 |

The rest of the panel should hopefully be pretty self exploratory, however if you need any help then let me know! jasonhall96686@yahoo.com

62 |
63 |
64 | 65 | 66 |
67 |
68 |
69 | 70 | 71 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /home.php: -------------------------------------------------------------------------------- 1 | 37 |
38 |

Dashboard

39 | 40 | 44 |
45 | '; 46 | 47 | echo "
"; 48 | echo "

Players

"; 49 | echo "

"; 50 | echo '


There are currently '.$players.' players signed up on the server.

'; 51 | echo '
'; 52 | echo '
'; 53 | 54 | echo '
'; 55 | echo '
'; 56 | 57 | //Vehicles 58 | 59 | echo "
"; 60 | echo "

Vehicles

"; 61 | echo "

"; 62 | echo '


There are currently '.$vehicles.' vehicles.

'; 63 | echo '
'; 64 | echo '
'; 65 | 66 | echo '
'; 67 | echo '
'; 68 | 69 | //? 70 | $money = '$'.number_format($money, 2); 71 | 72 | echo "
"; 73 | echo "

Total Money

"; 74 | echo "

"; 75 | echo '


There is a total of '.$money.' on the server.

'; 76 | echo '
'; 77 | echo '
'; 78 | 79 | echo '
'; 80 | echo '
'; 81 | echo '
'; 82 | echo '
'; 83 | 84 | echo "
"; 85 | echo "

Restart Server

"; 86 | echo "

"; 87 | echo '
'; 88 | echo "
"."
'; 89 | echo '
'; 90 | echo '
'; 91 | echo ''; 92 | 93 | echo '
'; 94 | echo '
'; 95 | 96 | echo "
"; 97 | echo "

Global Message

"; 98 | echo "

"; 99 | echo '
'; 100 | echo "
"."

"; 101 | echo "
"."
'; 102 | echo '
'; 103 | echo '
'; 104 | echo ''; 105 | 106 | echo '
'; 107 | echo '
'; 108 | 109 | echo "
"; 110 | echo "

Stop Server

"; 111 | echo "

"; 112 | echo '
'; 113 | echo "
"."
'; 114 | echo '
'; 115 | echo '
'; 116 | echo ''; 117 | 118 | echo '
'; 119 | echo '
'; 120 | echo '
'; 121 | echo '
'; 122 | echo '
'; 123 | echo '
'; 124 | 125 | echo "
"; 126 | echo "

Help

"; 127 | echo "

For general help on the panel!

"; 128 | echo "

"; 129 | echo '
'; 130 | echo "
"."
'; 131 | echo '
'; 132 | echo '
'; 133 | echo ''; 134 | 135 | echo '
'; 136 | echo '
'; 137 | 138 | if (isset($_POST['send'])) { 139 | if ($staffPerms['globalMessage'] == '1') { 140 | $send = $_POST['global']; 141 | $_SESSION['send'] = $send; 142 | header('Location: rCon/rcon-mess.php'); 143 | $message = 'Admin '.$user.' has sent a global message ('.$send.')'; 144 | logIt($user, $message, $dbcon); 145 | } else { 146 | header('Location: lvlError.php'); 147 | die(); 148 | } 149 | } 150 | 151 | if (isset($_POST['restart'])) { 152 | if ($staffPerms['restartServer'] == '1') { 153 | $message = 'Admin '.$user.' has restarted the server.'; 154 | logIt($user, $message, $dbcon); 155 | header('Location: rCon/rcon-restart.php'); 156 | } else { 157 | header('Location: lvlError.php'); 158 | die(); 159 | } 160 | } 161 | 162 | if (isset($_POST['stop'])) { 163 | if ($staffPerms['stopServer'] == '1') { 164 | $message = 'Admin '.$user.' has stopped the server.'; 165 | logIt($user, $message, $dbcon); 166 | header('Location: rCon/rcon-stop.php'); 167 | } else { 168 | header('Location: lvlError.php'); 169 | die(); 170 | } 171 | } 172 | 173 | if (isset($_POST['help'])) { 174 | header('Location: help.php'); 175 | die(); 176 | } 177 | ob_end_flush(); 178 | ?> 179 | 193 | 194 |
195 |
196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | -------------------------------------------------------------------------------- /houses.php: -------------------------------------------------------------------------------- 1 | 21 |
22 |

House Menu

23 | 24 | 25 |
26 | 31 |
32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | '; 46 | echo ''; 47 | echo ''; 48 | echo ''; 49 | 50 | echo ''; 60 | } 61 | 62 | echo '
IDOwner UIDHouse PosOwnedContainers
'.$row['id'].''.$row['pid'].' '.$row['pos'].' ' ?> 51 | 52 | '; 54 | echo '
'; 55 | echo '
'."'; 56 | echo "".''; 57 | echo ''; 58 | 59 | echo '
'; 63 | ?> 64 | 65 | 89 | 90 | 91 |
92 | 93 | 94 | 95 | 96 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /images/Admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/Admin.png -------------------------------------------------------------------------------- /images/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img1.jpg -------------------------------------------------------------------------------- /images/img10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img10.jpg -------------------------------------------------------------------------------- /images/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img2.jpg -------------------------------------------------------------------------------- /images/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img3.jpg -------------------------------------------------------------------------------- /images/img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img4.jpg -------------------------------------------------------------------------------- /images/img5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img5.jpg -------------------------------------------------------------------------------- /images/img6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img6.jpg -------------------------------------------------------------------------------- /images/img7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img7.jpg -------------------------------------------------------------------------------- /images/img8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img8.jpg -------------------------------------------------------------------------------- /images/img9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/img9.jpg -------------------------------------------------------------------------------- /images/jason.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/jason.png -------------------------------------------------------------------------------- /images/man.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/images/man.png -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | = 5) { 6 | header('Location: locked.php'); 7 | die(); 8 | } 9 | } 10 | 11 | if (!file_exists('verifyPanel.php')) { 12 | header('Location: create.php'); 13 | die(); 14 | } 15 | ?> 16 | 17 | 18 | 19 | Admin Panel - Login 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
60 | 64 |
65 | 66 |
67 |
68 | '; 76 | } 77 | 78 | if (isset($_COOKIE['fail']) && $_COOKIE['fail'] == '1') { 79 | echo'
Username or password incorrect.
'; 80 | } 81 | ?> 82 | 83 |
84 | 85 | 86 | 87 | 88 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /locked.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | Admin Panel - Locked 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 46 | 47 | 48 | 49 |
50 | 54 |
55 | 56 |
57 | 58 | 59 | 60 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 48 | 49 | $_SESSION['failedLogin'] = $user->failed; 50 | 51 | if ($user->failed == 5) { 52 | echo 'something went wrong'; 53 | header('Location: locked.php'); 54 | die(); 55 | } 56 | } 57 | $sqlget = "SELECT * FROM users WHERE username ='$username' "; 58 | $res = mysqli_query($dbconL, $sqlget); 59 | 60 | $numrows = mysqli_num_rows($res); 61 | 62 | if ($numrows != 0) { 63 | while ($row = mysqli_fetch_assoc($res)) { 64 | $dbusername = $row['username']; 65 | $dbpassword = $row['password']; 66 | 67 | if ($row['permissions'] !== '"[]"' && $row['permissions'] !== '') { 68 | $return = explode('],[', $row['permissions']); 69 | 70 | foreach ($return as $value) { 71 | $val = remove($value); 72 | $newVal = explode(',', $val); 73 | if ($newVal[1] == 1) { 74 | $perms[$newVal[0]] = 1; 75 | } else { 76 | $perms[$newVal[0]] = 0; 77 | } 78 | } 79 | } 80 | } 81 | 82 | //block 83 | if ($username == $dbusername && $encPass == $dbpassword) { 84 | if (isset($_COOKIE['conecFail'])): 85 | setcookie('conecFail', '', time() - 7000000, '/'); 86 | endif; 87 | 88 | setcookie('fail', '0'); 89 | 90 | if (isset($_COOKIE['fail'])): 91 | setcookie('fail', '', time() - 7000000, '/'); 92 | endif; 93 | 94 | $_SESSION = array(); 95 | $_SESSION['logged'] = 1; 96 | $_SESSION['user'] = $dbusername; 97 | $_SESSION['perms'] = $perms; 98 | $_SESSION['failedLogin'] = 0; 99 | 100 | $sqlget = "UPDATE access SET failed = 0 WHERE address = '$_SERVER[REMOTE_ADDR]'"; 101 | $res = mysqli_query($dbconL, $sqlget); 102 | 103 | if ($_SESSION['failedLogin'] >= 5) { 104 | header('Location: locked.php'); 105 | die(); 106 | } else { 107 | header('Location: home.php'); 108 | die(); 109 | } 110 | } else { 111 | echo 'Your user/password is incorrect!'; 112 | setcookie('fail', '1'); 113 | $_SESSION['failedLogin'] = $_SESSION['failedLogin'] + 1; 114 | if ($_SESSION['failedLogin'] >= 5) { 115 | header('Location: locked.php'); 116 | die(); 117 | } else { 118 | header('Location: index.php'); 119 | die(); 120 | } 121 | }//block 122 | } else { 123 | echo 'That user does not exist!'; 124 | setcookie('fail', '1'); 125 | $_SESSION['failedLogin'] = $_SESSION['failedLogin'] + 1; 126 | if ($_SESSION['failedLogin'] >= 5) { 127 | header('Location: locked.php'); 128 | die(); 129 | } else { 130 | header('Location: index.php'); 131 | die(); 132 | } 133 | } 134 | } else { 135 | echo 'please enter username/password!'; 136 | setcookie('fail', '1'); 137 | header('Location: index.php'); 138 | die(); 139 | } 140 | -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 32 | 33 |
34 |

Log Menu

35 | 36 | 37 | $amount) { 56 | $addPage = $amount; 57 | } 58 | 59 | ?> 60 |
61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | '; 76 | echo ''; 77 | 78 | echo ''; 79 | echo ''; 80 | echo ''; 81 | 82 | echo ''; 83 | echo ''; 84 | } 85 | 86 | echo '
Date/TimeAdmin NameAction
'.$row['date_time'].''.$row['user'].' '.$row['action'].'
'; 87 | ?> 88 | 89 | 90 | 160 |
161 | 162 | 163 | 164 | 165 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /lvlError.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 |
16 |

Unauthorised

17 | 18 |
19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /notes.php: -------------------------------------------------------------------------------- 1 | 36 | 37 |
38 |

Notes Menu

39 | 40 | 41 |
42 |
43 | 44 |
45 |
46 | 47 | 48 |
49 | 61 |
62 | 63 |
64 | 65 | 66 |
67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | '; 82 | echo ''; 83 | echo ''; 84 | echo ''; 85 | echo ''; 86 | echo '"; 87 | echo '"; 88 | echo ''; 89 | echo "'; 90 | echo ''; 91 | echo ''; 92 | } 93 | 94 | if (isset($_POST['update'])) { 95 | $sql = "SELECT * FROM `players` WHERE `uid` = $_POST[hidden]"; 96 | $result = mysqli_query($dbcon, $sql); 97 | $player = $result->fetch_object(); 98 | 99 | $pid = playerID($player); 100 | 101 | if ($_POST['note'] != $player->note_text) { 102 | $message = 'Admin '.$user.' has added the note ('.$_POST['note'].') to '.$player->name.'('.$pid.')'; 103 | logIt($user, $message, $dbcon); 104 | $note = $_POST['note']; 105 | $note = '"'.$note.'"'; 106 | $UpdateN = "INSERT INTO notes (uid, staff_name, name, alias, note_text, warning) VALUES ('$_POST[hidden]', '$user', '$player->name', '$player->aliases', '$note','$_POST[warn]')"; 107 | mysqli_query($dbcon, $UpdateN); 108 | } 109 | } 110 | 111 | echo '
Player IDNameAliasNote TypeNew NotesUpdate
'.$row['uid'].' '.$row['name'].' '.$row['aliases'].' '." '." '." ".'
'; 112 | ?> 113 | 114 | 115 |
116 | 117 | 118 | 119 | 120 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /notesView.php: -------------------------------------------------------------------------------- 1 | 49 | 50 |
51 |

Notes View

52 | 53 | 54 |
55 |
56 | 57 |
58 |
59 | 60 | 61 |
62 | 74 |
75 | 76 |
77 | 78 | 79 |
80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | '; 96 | switch ($row['warning']) { 97 | default: 98 | echo ''; 99 | break; 100 | case 2: 101 | echo ''; 102 | break; 103 | case 3: 104 | echo ''; 105 | break; 106 | case 4: 107 | echo ''; 108 | break; 109 | } 110 | echo ''; 111 | echo ''; 112 | echo ''; 113 | echo ''; 114 | echo ''; 115 | echo ''; 116 | echo ''; 124 | echo ''; 125 | } 126 | 127 | echo '
Player IDPlayerPlayer AliasPlayer NoteStaff MemberTimestampDelete
'.htmlspecialchars($row['uid'], ENT_QUOTES, 'UTF-8').' '.htmlspecialchars($row['name'], ENT_QUOTES, 'UTF-8').' '.htmlspecialchars($row['alias'], ENT_QUOTES, 'UTF-8').' '.htmlspecialchars($row['note_text'], ENT_QUOTES, 'UTF-8').' '.htmlspecialchars($row['staff_name'], ENT_QUOTES, 'UTF-8').' '.htmlspecialchars($row['note_updated'], ENT_QUOTES, 'UTF-8').' '."'; 117 | echo "".''; 118 | echo "".''; 119 | echo "".''; 120 | echo "".''; 121 | echo "".''; 122 | 123 | echo '
'; 128 | ?> 129 | 130 | 131 |
132 | 133 | 134 | 135 | 136 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /permissions.php: -------------------------------------------------------------------------------- 1 | fetch_object(); 20 | 21 | include 'header/header.php'; 22 | ?> 23 |
24 |

Permission Menu

25 | 26 | 27 |
28 |
29 | 30 |
31 |
32 |

33 | "; 36 | 37 | if ($user->permissions !== '"[]"' && $user->permissions !== '') { 38 | $return = explode('],[', $user->permissions); 39 | 40 | echo "
41 |
42 |

Permissions

43 |
44 |
"; 45 | 46 | foreach ($return as $value) { 47 | $val = remove($value); 48 | $newVal = explode(',', $val); 49 | if ($newVal[1] == 1) { 50 | echo " '; 51 | } else { 52 | echo " '; 53 | } 54 | } 55 | 56 | echo '
57 | 58 |
'; 59 | } 60 | echo '
'; 61 | echo ''; 62 | ?> 63 | 94 | 95 | 96 | 97 | 98 | 99 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /profile.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
16 |

Profile Menu

17 | 18 | 19 | fetch_object(); 48 | $passR = $dbPass->password; 49 | 50 | if ($passR == $curPass) { 51 | if ($pass == $pass1) { 52 | //same 53 | 54 | echo ''; 55 | 56 | $pass = hash('sha256', $pass); 57 | 58 | $UpdateQ = "UPDATE users SET password='$pass' WHERE username='$user'"; 59 | mysqli_query($dbconL, $UpdateQ); 60 | } else { 61 | //not same 62 | 63 | echo ''; 64 | } 65 | } else { 66 | echo''; 67 | } 68 | } else { 69 | echo''; 70 | } 71 | }//end of update 72 | ?> 73 | 74 |
75 |
76 |

User Info

77 |
78 |
79 |

80 |
81 |
User Pic 82 |
83 | 84 |
85 |

Current Password

86 | 87 |

Password

88 | 89 |

Repeat Password

90 | 91 |
92 | 93 |
94 |
95 |
96 |
97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /rCon/Kmenu.php: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | Admin Panel - Kick Menu 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 52 | 53 |
54 |

Kick Menu

55 | 56 | 57 |
58 |
59 | 60 |
61 |
62 | 63 |
64 |
65 | 66 |



67 | 68 | 69 |
70 | 71 |
72 |
73 | 74 |
75 |
76 | 77 | 78 |
79 |
80 | 81 |
82 |
83 | 84 |
85 |
86 | 87 | 88 | 89 | 90 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /rCon/Kplayer.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Admin Panel - Kick 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 48 | 49 |
50 |

Kick Menu

51 | 52 | 53 |
54 |
55 | 56 |
57 |
58 | 59 |
60 |
61 | 62 |



63 | This is a whitelisted staff member!
'; 82 | $message = 'Admin '.$user.' tried to kick a whitelisted staff member - '.$uid; 83 | logIt($user, $message, $dbcon); 84 | } else { 85 | $_SESSION['guid'] = $guid; 86 | $_SESSION['reason'] = $reason; 87 | 88 | header('Location: rcon-kick.php'); 89 | } 90 | } else { 91 | echo ''; 92 | } 93 | } 94 | ?> 95 | 96 |
97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | '; 109 | echo ''; 110 | 111 | echo ''; 118 | echo ''; 119 | 120 | echo '
Battleye IDUIDReasonUpdate
'.""; 112 | echo ''.""; 113 | echo ''.""; 114 | 115 | echo ''."'; 116 | 117 | echo '
'; 121 | ?> 122 |

To use the kick feature you need to find the player ID, this is found by pressing the battleye list and typing in the [#] value. This is betwen 0-amount of players on server. So please check, this is NOT uid or GUID!

123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /rCon/SKPlayerv1.php: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | Admin Panel - Kick 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | 52 | 53 |
54 |

Kick Menu

55 | 56 | 57 |
58 |
59 | 60 |
61 |
62 | 63 |
64 |
65 | 66 |



67 | 68 |
69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | This is a whitelisted staff member!'; 96 | $message = 'Admin '.$user.' tried to kick a whitelisted staff member - '.$guid; 97 | logIt($user, $message, $dbcon); 98 | } else { 99 | $name = $_POST['hiddenName']; 100 | $_SESSION['SKguid'] = $guid; 101 | 102 | $message = 'Admin '.$user.' has kicked '.$player->name.'('.$guid.')'; 103 | logIt($user, $message, $dbcon); 104 | header('Location: rcon-Skick.php'); 105 | } 106 | } 107 | 108 | $sqlget = 'SELECT * FROM players'; 109 | $sqldata = mysqli_query($dbcon, $sqlget) or die('Connection could not be established'); 110 | 111 | while ($row = mysqli_fetch_array($sqldata, MYSQLI_ASSOC)) { 112 | if ($row['playerid'] != '' || $row['pid'] != '') { 113 | if ($row['playerid'] == '') { 114 | $pid = $row['pid']; 115 | } else { 116 | $pid = $row['playerid']; 117 | } 118 | } 119 | 120 | echo ''; 121 | echo ''; 122 | 123 | echo "'; ?> 125 | 135 | '.$pid.' '; 139 | echo ''; 143 | echo ''; 144 | } 145 | 146 | echo '
NameAliasUIDKick
".''; 124 | echo ''.$row['name'].' 126 | '; ?> 127 | Toggle Aliases 128 | 129 | ' ?> 130 |
131 | 132 |
133 | 134 |
'."'; 140 | echo "".''; 141 | 142 | echo '
'; 147 | ?> 148 |


149 | 150 | 151 |
152 | 153 | 154 | 155 | 156 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | -------------------------------------------------------------------------------- /rCon/header/header.php: -------------------------------------------------------------------------------- 1 | 23 | 24 |
25 |
26 | 41 | -------------------------------------------------------------------------------- /rCon/player.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Admin Panel - Ban 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 50 | 51 | 52 |
53 |

Ban Menu

54 | 55 | 56 |
57 |
58 | 59 |
60 |
61 | 62 |
63 |
64 | 65 |



66 | This is a whitelisted staff member!
'; 85 | $message = 'Admin '.$user.' tried to ban a whitelisted staff member - '.$guid; 86 | logIt($user, $message, $dbcon); 87 | } else { 88 | $_SESSION['guid'] = $guid; 89 | $_SESSION['reason'] = $reason; 90 | $_SESSION['time'] = $time; 91 | 92 | if ($_POST['guid'] != '') { 93 | $message = 'Admin '.$user.' has banned '.$guid.' for '.$time.' minutes under the reason of ('.$reason.')'; 94 | logIt($user, $message, $dbcon); 95 | header('Location: rcon-ban.php'); 96 | } 97 | } 98 | } 99 | ?> 100 | 101 |
102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | '; 114 | echo ''; 115 | 116 | echo ''; 123 | echo ''; 124 | 125 | echo '
Battle Eye GUIDReasonTimeUpdate
'.""; 117 | echo ''.""; 118 | echo ''.""; 119 | 120 | echo ''."'; 121 | 122 | echo '
'; 126 | ?> 127 |




To use the ban feature, batteye needs to use the GUID and not a player UID
NOTE: if the player is currently on the server please make sure you kick them else they will be banned however still playing until they have left!

128 |

0 - Perm Ban, and the time is scaled in minutes!

129 | 130 | 131 |
132 |
133 | 134 | 135 | 136 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /rCon/rcon-Skick.php: -------------------------------------------------------------------------------- 1 |




'; 45 | 46 | $command = '#kick '.$uid; 47 | echo $command; 48 | $kick = $rcon->command($command); 49 | 50 | header('Location: ../players.php'); 51 | -------------------------------------------------------------------------------- /rCon/rcon-ban.php: -------------------------------------------------------------------------------- 1 | '; 30 | 31 | $reason = $_SESSION['reason']; 32 | 33 | echo $reason; 34 | echo '
'; 35 | 36 | $time = $_SESSION['time']; 37 | 38 | if ($time == '') { 39 | $time = 0; 40 | } 41 | 42 | echo $time; 43 | echo '
'; 44 | 45 | $intTime = (int) $time; 46 | 47 | echo $intTime; 48 | 49 | $addBan = $rcon->add_ban($guid, $reason, $intTime); 50 | 51 | header('Location: player.php'); 52 | } 53 | -------------------------------------------------------------------------------- /rCon/rcon-check.php: -------------------------------------------------------------------------------- 1 | get_players(); 23 | preg_match_all("#(\d+)\s+(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d+\b)\s+(\d+)\s+([0-9a-fA-F]+)\(\w+\)\s([\S ]+)$#im", $check, $players); 24 | 25 | $bansRaw = $rcon->get_bans(); 26 | preg_match_all("#(\d+)\s+([0-9a-fA-F]+)\s([perm|\d]+)\s([\S ]+)$#im", $bansRaw, $str); 27 | ?> 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | Admin Panel - Battleye 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 54 | 55 | 76 | 77 |
78 |
79 | 94 |
95 |

BattleEye Logs

96 | 97 | 98 |
99 |
100 | 101 |
102 |



103 | 104 |
105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | '; 117 | echo ''; 118 | ++$i; 119 | } 120 | echo '
Battle IDPlayer Name
'.$players[1][$i].''.$players[5][$i].'
'; 121 | ?> 122 | 123 |
124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | '; 138 | echo ''; 139 | echo ''; 140 | echo ''; 141 | ++$ii; 142 | } 143 | 144 | echo '
Ban IDGUIDTimeReason
'.$str[1][$ii].''.$str[2][$ii].''.$str[3][$ii].''.$str[4][$ii].'
'; 145 | 146 | if ($debug) { 147 | echo '
'; 148 | $time = microtime(); 149 | $time = explode(' ', $time); 150 | $time = $time[1] + $time[0]; 151 | $finish = $time; 152 | $total_time = round(($finish - $start), 4); 153 | echo 'Page generated in '.$total_time.' seconds.'; 154 | } 155 | ?> 156 | 157 | 158 |
159 |
160 |
161 | 162 | 163 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /rCon/rcon-kick.php: -------------------------------------------------------------------------------- 1 | '; 30 | 31 | $reason = $_SESSION['reason']; 32 | 33 | echo $reason; 34 | echo '
'; 35 | 36 | $addBan = $rcon->kick_player($guid, $reason); 37 | 38 | header('Location: ../players.php'); 39 | } 40 | -------------------------------------------------------------------------------- /rCon/rcon-mess.php: -------------------------------------------------------------------------------- 1 | say_global($mess); 28 | header('Location: ../home.php'); 29 | } 30 | -------------------------------------------------------------------------------- /rCon/rcon-restart.php: -------------------------------------------------------------------------------- 1 | command($command); 27 | 28 | header('Location: ../home.php'); 29 | -------------------------------------------------------------------------------- /rCon/rcon-stop.php: -------------------------------------------------------------------------------- 1 | command($command); 25 | 26 | header('Location: ../home.php'); 27 | -------------------------------------------------------------------------------- /rCon/rcon-unBan.php: -------------------------------------------------------------------------------- 1 | remove_ban($banid); 30 | 31 | header('Location: unBan.php'); 32 | } 33 | -------------------------------------------------------------------------------- /rCon/unBan.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | Admin Panel - UnBan 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 54 | 55 |
56 |

UnBan Menu

57 | 58 | 59 |
60 |
61 | 62 |
63 |
64 | 65 |
66 |
67 | 68 |



69 | 70 |
71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | '; 82 | echo ''; 83 | 84 | echo ''; 90 | echo ''; 91 | echo '
Ban IDGUIDUpdate
'.""; 85 | echo ''.""; 86 | 87 | echo ''."'; 88 | 89 | echo '
'; 92 | 93 | if (isset($_POST['update'])) { 94 | $banid = $_POST['banid']; 95 | $guidUBan = $_POST['guid']; 96 | 97 | $_SESSION['banid'] = $banid; 98 | $_SESSION['guidUBan'] = $guidUBan; 99 | 100 | if ($guidUBan != '' and $banid != '') { 101 | $message = 'Admin '.$user.' has unbanned '.$guidUBan; 102 | logIt($user, $message, $dbcon); 103 | header('Location: rcon-unBan.php'); 104 | } 105 | } 106 | ?> 107 |




To unban a player you will need to get the ban ID from the Battleye List, and their GUID from the player menu!

108 | 109 | 110 | 111 |
112 | 113 | 114 | 115 | 116 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /reimbursement.php: -------------------------------------------------------------------------------- 1 | "; 18 | header('Location: lvlError.php'); 19 | die(); 20 | } 21 | 22 | include 'header/header.php'; 23 | ?> 24 | 25 | 26 | 27 |
28 |

Reimbursement Logs

29 | 30 | 31 |
32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | '; 44 | echo ''; 45 | 46 | echo ''; 52 | echo ''; 53 | 54 | echo '
Player UIDAmount GivenComp ReasonAdd Log
'.""; 47 | echo ''.""; 48 | echo ''.""; 49 | echo ''."'; 50 | 51 | echo '
'; 55 | 56 | if (isset($_POST['update'])) { 57 | $uid = $_POST['uid']; 58 | $amount = $_POST['amount']; 59 | $reason = $_POST['reason']; 60 | 61 | $UpdateQ = "INSERT INTO reimbursement_log (playerid,comp,reason,staff_name) VALUES ('$uid','$amount','$reason','$user');"; 62 | mysqli_query($dbcon, $UpdateQ); 63 | } 64 | ?> 65 | 66 |

67 | 68 | 74 | 75 |
76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | '; 92 | echo ''; 93 | echo ''; 94 | echo ''; 95 | echo ''; 96 | echo ''; 97 | echo ''; 98 | echo ''; 99 | } 100 | 101 | echo '
Reimbursement IdPlayerIDAmount GivenReasonAdminTime Stamp
'.$row['reimbursement_id'].''.$row['playerid'].' '.$row['comp'].' '.$row['reason'].' '.$row['staff_name'].' '.$row['timestamp'].'
'; 102 | ?> 103 | 104 | 105 |
106 | 107 | 108 | 109 | 110 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /settings.php: -------------------------------------------------------------------------------- 1 | 22 |
23 |

Settings Menu

24 | 25 |
26 |
27 |

Server Info

28 |
29 |
30 | 31 |
32 |

Database Host

33 | 34 | 35 |
36 |

Username

37 | 38 | 39 |
40 |

Password

41 | 42 | 43 |
44 |

Database Name

45 | 46 | 47 |

RCON Host

48 | 49 | 50 |
51 |

RCON Pass

52 | 53 | 54 |
55 |

RCON Port

56 | 57 | 58 |
59 |

Max Cop Level

60 | 61 | 62 |
63 |

Max Medic Level

64 | 65 | 66 |
67 |

Max Admin Level

68 | 69 | 70 |
71 |

Max Donator Level

72 | 73 | 74 |
75 |

API Username

76 | 77 | 78 |
79 |

API Password

80 | 81 | 82 |
83 |

API Enabled

84 | 96 | 97 | 98 |
99 | 100 |
101 | 102 |
103 |
104 | 108 | 109 | 110 |
111 | 112 | 113 | 114 | 115 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /staff.php: -------------------------------------------------------------------------------- 1 | 19 |
20 |

Staff Menu

21 | 22 | 23 |
24 |
25 | 26 |
27 |
28 |
29 |
30 | 31 |
32 |
33 |
34 | 35 |
36 | 37 | 38 | 60 | 61 |

62 | Staff account deleted!
'; 78 | } 79 | 80 | if (isset($_POST['update'])) { 81 | if ($_POST['password'] == '') { 82 | $UpdateQ = "UPDATE users SET username='$_POST[username]' WHERE ID='$_POST[hidden]'"; 83 | mysqli_query($dbconL, $UpdateQ); 84 | echo ''; 85 | } else { 86 | $password = $_POST['password']; 87 | $pass = hash('sha256', $password); 88 | $UpdateQ = "UPDATE users SET username='$_POST[username]', password='$pass' WHERE ID='$_POST[hidden]'"; 89 | mysqli_query($dbconL, $UpdateQ); 90 | echo ''; 91 | } 92 | } 93 | 94 | ?> 95 |
96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | '; 110 | echo ''; 111 | echo ''; 122 | } 123 | 124 | echo '
UsernamePasswordDeleteUpdatePermissions
'.""; 113 | echo ''."'; 114 | echo ''."'; 115 | echo "".''; 116 | echo ''; 117 | echo '
'; 118 | echo '
'."'; 119 | echo "".''; 120 | echo ''; 121 | echo '
'; 125 | ?> 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /steam.php: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 |

Steam Menu

25 | 26 | 35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | '; 60 | echo ''; 61 | echo ''; 62 | echo ''; 63 | echo ''; 64 | echo ""; 65 | echo ''; 66 | } 67 | 68 | echo '
NameAliasUIDGUIDSteam Account
'.$row['name'].''.$row['aliases'].' '.$pid.' '.$return.'Steam Accounts
'; 69 | ?> 70 | 71 | 72 |
73 | 74 | 75 | 76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /styles/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jason2605/AdminPanel/4ab6e82fd04bc9a51212bbcc66a4bd41168855d6/styles/.DS_Store -------------------------------------------------------------------------------- /styles/dashboard.css: -------------------------------------------------------------------------------- 1 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300italic,300,400italic,600,600italic,700,700italic,800,800italic); 2 | @import url(http://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100); 3 | /* ------- The comments content ------- */ 4 | 5 | .shoutbox { 6 | width: 100%; 7 | overflow: hidden; 8 | } 9 | 10 | .shoutbox-content { 11 | list-style: none; 12 | width: 100%; 13 | margin: 0; 14 | padding: 0; 15 | color: #df377a; 16 | font-size: 14px; 17 | font-weight: 700; 18 | text-align: left; 19 | } 20 | 21 | .shoutbox-content li { 22 | padding: 20px; 23 | border-bottom: 1px solid #d5dbe1; 24 | } 25 | 26 | .shoutbox-username { 27 | display: inline; 28 | color: #df377a; 29 | font-size: 14px; 30 | font-weight: bold; 31 | text-align: left; 32 | margin-right: 5px; 33 | } 34 | 35 | .shoutbox-comment { 36 | display: inline; 37 | color: #717c87; 38 | font-size: 14px; 39 | font-weight: 400; 40 | line-height: 21px; 41 | text-align: left; 42 | } 43 | 44 | .shoutbox-comment-details { 45 | width: 100%; 46 | margin: 5px auto; 47 | height: 11px; 48 | } 49 | 50 | .shoutbox-comment-reply { 51 | display: inline-block; 52 | float: left; 53 | color: #5896cb; 54 | font-size: 12px; 55 | font-weight: bold; 56 | line-height: 20px; 57 | text-align: left; 58 | height: 9px; 59 | cursor: pointer; 60 | } 61 | 62 | .shoutbox-comment-ago { 63 | display: inline-block; 64 | float: right; 65 | color: #9aa1a7; 66 | font-size: 11px; 67 | font-weight: normal; 68 | line-height: 20px; 69 | text-align: right; 70 | height: 11px; 71 | } 72 | 73 | h2 { 74 | position: relative; 75 | background-color: #f9fafb; 76 | border-bottom: 2px solid #e2e8eb; 77 | max-width: 100%; 78 | height: 45px; 79 | margin: 0; 80 | text-align: center; 81 | color: #df377a; 82 | font-size: 14px; 83 | font-weight: bold; 84 | line-height: 45px; 85 | cursor: pointer; 86 | } 87 | 88 | h2 span { 89 | display: none; 90 | position: absolute; 91 | float: right; 92 | right: 13px; 93 | font-size: 22px; 94 | top: 0; 95 | width: 20px; 96 | height: 20px; 97 | z-index: 20px; 98 | } 99 | 100 | .shoutbox-form form { 101 | display: none; 102 | background-color: #f9fafb; 103 | box-shadow: 0px 2px 0px 0.00px #e2e8eb; 104 | max-width: 100%; 105 | text-align: left; 106 | padding: 20px 20px 30px; 107 | } 108 | 109 | .shoutbox-form form label { 110 | display: inline-block; 111 | color: #df377a; 112 | font-size: 14px; 113 | font-weight: 700; 114 | text-align: left; 115 | width: 80px; 116 | height: 11px; 117 | line-height: 11px; 118 | margin-bottom: 15px; 119 | } 120 | 121 | .shoutbox-form form .shoutbox-comment-label { 122 | position: relative; 123 | top: 0px; 124 | } 125 | 126 | .shoutbox-form form #shoutbox-name { 127 | display: inline-block; 128 | background-color: #ffffff; 129 | box-shadow: 1px 3px 0px 0.00px rgba(0, 0, 0, 0.04); 130 | border: 1px solid #bfcdda; 131 | outline: none; 132 | max-width: 170px; 133 | width: 100%; 134 | height: 41px; 135 | font-size: 14px; 136 | margin-right: 150px; 137 | margin-bottom: 20px; 138 | padding: 0 10px; 139 | box-sizing: border-box; 140 | color:inherit; 141 | } 142 | 143 | .shoutbox-form form #shoutbox-comment { 144 | background-color: #ffffff; 145 | box-shadow: 1px 3px 0px 0.00px rgba(0, 0, 0, 0.04); 146 | border: 1px solid #bfcdda; 147 | outline: none; 148 | max-width: 400px; 149 | width: 100%; 150 | height: 41px; 151 | margin-bottom: 15px; 152 | resize: none; 153 | font-weight: normal; 154 | font: inherit; 155 | font-size: 14px; 156 | padding: 10px; 157 | box-sizing: border-box; 158 | color:inherit; 159 | } 160 | 161 | .shoutbox-form form input[type=submit] { 162 | background-color: #87bfef; 163 | border: 1px solid #e6e7e8; 164 | box-shadow: 0px 1px 2px 0.00px rgba(0, 0, 0, 0.1); 165 | width: 110px; 166 | height: 41px; 167 | color: #ffffff; 168 | font-size: 14px; 169 | font-weight: bold; 170 | text-align: center; 171 | line-height: 38px; 172 | outline: none; 173 | margin-left: 83px; 174 | cursor: pointer; 175 | } 176 | 177 | /* ------- Make the page responsive ------- */ 178 | /* 179 | * Base structure 180 | */ 181 | 182 | /* Move down content because we have a fixed navbar that is 50px tall */ 183 | 184 | /*login page*/ 185 | 186 | .kick { 187 | margin-left: 35%; 188 | margin-right: 10px; 189 | } 190 | 191 | .rKick { 192 | margin-left: 40%; 193 | } 194 | 195 | div#rcorners1 { 196 | margin-bottom: 10px; 197 | border-radius: 15px 50px; 198 | background: #fff; 199 | padding: 20px; 200 | width: auto; 201 | height: 200px; 202 | 203 | border-bottom:4px solid #9ea7af; 204 | border-top:4px solid #9ea7af; 205 | border-right: 4px solid #9ea7af; 206 | border-left: 4px solid #9ea7af; 207 | } 208 | 209 | div#rcorners2 { 210 | border-radius: 15px 50px; 211 | background: #fff; 212 | padding: 20px; 213 | width: auto; 214 | height: 200px; 215 | 216 | border-bottom:4px solid #9ea7af; 217 | border-top:4px solid #9ea7af; 218 | border-right: 4px solid #9ea7af; 219 | border-left: 4px solid #9ea7af; 220 | } 221 | 222 | div#rcorners3 { 223 | border-radius: 15px 50px; 224 | background: #fff; 225 | padding: 20px; 226 | width: auto; 227 | height: 200px; 228 | 229 | border-bottom:4px solid #9ea7af; 230 | border-top:4px solid #9ea7af; 231 | border-right: 4px solid #9ea7af; 232 | border-left: 4px solid #9ea7af; 233 | } 234 | 235 | div#rcorners4 { 236 | margin-bottom: 10px; 237 | border-radius: 15px 50px; 238 | background: #fff; 239 | padding: 10px; 240 | width: auto; 241 | height: 200px; 242 | 243 | border-bottom:4px solid #9ea7af; 244 | border-top:4px solid #9ea7af; 245 | border-right: 4px solid #9ea7af; 246 | border-left: 4px solid #9ea7af; 247 | } 248 | 249 | div#rcorners5 { 250 | border-radius: 15px 50px; 251 | background: #fff; 252 | padding: 20px; 253 | width: auto; 254 | height: 200px; 255 | 256 | border-bottom:4px solid #9ea7af; 257 | border-top:4px solid #9ea7af; 258 | border-right: 4px solid #9ea7af; 259 | border-left: 4px solid #9ea7af; 260 | } 261 | 262 | div#rcorners6 { 263 | border-radius: 15px 50px; 264 | background: #fff; 265 | padding: 20px; 266 | width: auto; 267 | height: 200px; 268 | 269 | border-bottom:4px solid #9ea7af; 270 | border-top:4px solid #9ea7af; 271 | border-right: 4px solid #9ea7af; 272 | border-left: 4px solid #9ea7af; 273 | } 274 | 275 | div#rcorners7 { 276 | border-radius: 15px 50px; 277 | background: #fff; 278 | padding: 20px; 279 | width: auto; 280 | height: 200px; 281 | 282 | border-bottom:4px solid #9ea7af; 283 | border-top:4px solid #9ea7af; 284 | border-right: 4px solid #9ea7af; 285 | border-left: 4px solid #9ea7af; 286 | } 287 | 288 | div#rcorners8 { 289 | border-radius: 15px 50px; 290 | background: #fff; 291 | padding: 20px; 292 | width: auto; 293 | height: 200px; 294 | 295 | border-bottom:4px solid #9ea7af; 296 | border-top:4px solid #9ea7af; 297 | border-right: 4px solid #9ea7af; 298 | border-left: 4px solid #9ea7af; 299 | } 300 | 301 | .donate { 302 | border-radius: 15px 50px; 303 | background: #fff; 304 | padding: 20px; 305 | width: auto; 306 | height: 200px; 307 | 308 | border-bottom:4px solid #9ea7af; 309 | border-top:4px solid #9ea7af; 310 | border-right: 4px solid #9ea7af; 311 | border-left: 4px solid #9ea7af; 312 | } 313 | .donateB{ 314 | text-align: center; 315 | margin-top: 30px; 316 | } 317 | 318 | 319 | body { 320 | font-family: 'Open Sans'; 321 | } 322 | 323 | /* 324 | * Global add-ons 325 | */ 326 | 327 | .sub-header { 328 | padding-bottom: 10px; 329 | border-bottom: 1px solid #eee; 330 | } 331 | 332 | .searchBar { 333 | margin-left: 60%; 334 | margin-top: -30px; 335 | } 336 | 337 | .searchBar-Bar { 338 | width: 300px; 339 | } 340 | 341 | .searchBarCash { 342 | margin-left: calc(100% - 375px); 343 | } 344 | 345 | 346 | /* 347 | * Top navigation 348 | * Hide default border to remove 1px line. 349 | */ 350 | .navbar-fixed-top { 351 | background-color: #428bca; 352 | } 353 | 354 | .navbar-brand { 355 | font-size: 1.5em; 356 | color: #fff; 357 | } 358 | 359 | .navbar-brand span { 360 | color: #fff; 361 | font-weight: 300; 362 | } 363 | 364 | .navbar-brand a { 365 | margin-left: 5px; 366 | color: #fff; 367 | } 368 | 369 | 370 | /* 371 | * Sidebar 372 | */ 373 | 374 | /* Hide for mobile, show later */ 375 | .sidebar { 376 | display: none; 377 | } 378 | @media (min-width: 768px) { 379 | .sidebar { 380 | position: fixed; 381 | top: 50px; 382 | bottom: 0; 383 | left: 0; 384 | z-index: 1000; 385 | display: block; 386 | padding: 20px; 387 | overflow-x: hidden; 388 | overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ 389 | background-color: #f5f5f5; 390 | border-right: 1px solid #eee; 391 | } 392 | } 393 | 394 | /* Sidebar navigation */ 395 | .nav-sidebar { 396 | margin: -20px -21px 20px -20px; 397 | } 398 | .nav-sidebar > li > a { 399 | padding-right: 20px; 400 | padding-left: 20px; 401 | border-bottom: 2px solid #D3D3D3; 402 | font-size: 1.2em; 403 | color: #000; 404 | } 405 | .nav-sidebar > .active > a, 406 | .nav-sidebar > .active > a:hover, 407 | .nav-sidebar > .active > a:focus { 408 | background-color: #F0F0F0; 409 | } 410 | 411 | .nav-sidebar > li > a:hover { 412 | background-color: #fff; 413 | padding-left: 30px; 414 | transition: all .5s; 415 | } 416 | /* 417 | div#txt{ 418 | margin-top:10%; 419 | font-family: 'Open Sans'; 420 | font-size: 100px; 421 | color: white; 422 | } 423 | */ 424 | .playerButtons { 425 | display: inline; 426 | float: left; 427 | margin: 0; 428 | margin-right: 5px; 429 | margin-top: -5px; 430 | 431 | } 432 | 433 | /* 434 | * Main content 435 | */ 436 | 437 | .main { 438 | padding: 0px; 439 | } 440 | @media (min-width: 768px) { 441 | .main { 442 | padding-right: 40px; 443 | padding-left: 40px; 444 | } 445 | } 446 | 447 | .btn-outline { 448 | background-color: transparent; 449 | color: inherit; 450 | transition: all .5s; 451 | } 452 | 453 | .btn-primary.btn-outline { 454 | color: #428bca; 455 | } 456 | /* 457 | * Placeholder dashboard ideas 458 | */ 459 | 460 | .placeholders { 461 | margin-bottom: 30px; 462 | text-align: center; 463 | } 464 | .placeholders h4 { 465 | margin-bottom: 0; 466 | } 467 | .placeholder { 468 | margin-bottom: 20px; 469 | } 470 | .placeholder img { 471 | display: inline-block; 472 | border-radius: 50%; 473 | } 474 | 475 | 476 | @media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) { 477 | .nav-sidebar { 478 | margin-top: 50px; 479 | margin-bottom: -20px; 480 | } 481 | 482 | .searchBar { 483 | margin-top: 10px; 484 | margin-left: calc(100% - 350px); 485 | } 486 | } 487 | -------------------------------------------------------------------------------- /styles/global.css: -------------------------------------------------------------------------------- 1 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300italic,300,400italic,600,600italic,700,700italic,800,800italic); 2 | @import url(http://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100); 3 | 4 | .login-block { 5 | width: 400px; 6 | padding: 20px; 7 | background: #fff; 8 | border-radius: 5px; 9 | border-top: 5px solid #428bca; 10 | margin: 0 auto; 11 | } 12 | 13 | .login-block h1 { 14 | text-align: center; 15 | color: #000; 16 | font-size: 18px; 17 | text-transform: uppercase; 18 | margin-top: 0; 19 | margin-bottom: 20px; 20 | } 21 | 22 | .login-block input { 23 | width: 100%; 24 | height: 42px; 25 | box-sizing: border-box; 26 | border-radius: 5px; 27 | border: 1px solid #ccc; 28 | margin-bottom: 20px; 29 | font-size: 14px; 30 | font-family: 'Open Sans'; 31 | padding: 0 20px 0 50px; 32 | outline: none; 33 | } 34 | 35 | .login-block input#username { 36 | background: #fff url('http://i.imgur.com/u0XmBmv.png') 20px top no-repeat; 37 | background-size: 16px 80px; 38 | } 39 | 40 | .login-block input#password { 41 | background: #fff url('http://i.imgur.com/Qf83FTt.png') 20px top no-repeat; 42 | background-size: 16px 80px; 43 | } 44 | 45 | .login-block input:active, .login-block input:focus { 46 | border: 1px solid #428bca; 47 | } 48 | 49 | .login-block button { 50 | width: 100%; 51 | height: 40px; 52 | background: #428bca; 53 | box-sizing: border-box; 54 | border-radius: 5px; 55 | border: 1px solid #428bca; 56 | color: #fff; 57 | font-weight: bold; 58 | text-transform: uppercase; 59 | font-size: 14px; 60 | font-family: 'Open Sans'; 61 | outline: none; 62 | cursor: pointer; 63 | } 64 | 65 | .login-block button:hover { 66 | background: #afcee9; 67 | } 68 | 69 | /* 70 | .credits { 71 | /*margin-left: 1100px; 72 | margin-top: 470px; 73 | margin-left: -650px; 74 | font-size:20px; 75 | } 76 | */ 77 | * { 78 | margin: 0; 79 | padding: 0; 80 | box-sizing: border-box; 81 | } 82 | 83 | body { 84 | font-family: 'Open Sans'; 85 | } 86 | 87 | a { 88 | text-decoration: none; 89 | } 90 | /*Start of making table*/ 91 | 92 | 93 | /*End of making table*/ 94 | div#header{ 95 | width: 100%; 96 | height: 50px; 97 | background-color: #428bca; 98 | margin: 0 auto; 99 | } 100 | 101 | 102 | .logo { 103 | float: left; 104 | margin-top: 4px; 105 | margin-left: 10px; 106 | } 107 | 108 | .logoE { 109 | float: left; 110 | margin-top: 4px; 111 | margin-left: calc(100% - 320px); 112 | } 113 | 114 | .logoE a { 115 | font-size: 1.5em; 116 | color: #fff; 117 | } 118 | 119 | .logoE a span { 120 | font-weight: 300; 121 | } 122 | 123 | .logo a { 124 | font-size: 1.6em; 125 | color: #fff; 126 | } 127 | 128 | .logo a span { 129 | font-weight: 300; 130 | } 131 | 132 | input[type=submit]{ 133 | padding:5px 20px; 134 | background:#ccc; 135 | border:0 none; 136 | cursor:pointer; 137 | -webkit-border-radius: 5px; 138 | border-radius: 5px; 139 | margin-top: 10px; 140 | margin-right:auto; 141 | margin-left:auto; 142 | } 143 | 144 | 145 | div#login{ 146 | width:600px; 147 | margin: 0% auto auto auto; 148 | font-weight: 300; 149 | } 150 | 151 | div#txt{ 152 | margin-top:10%; 153 | font-family: 'Open Sans'; 154 | font-size: 100px; 155 | color: white; 156 | } 157 | 158 | div#login1{ 159 | width:600px; 160 | margin: 100px auto auto auto; 161 | font-weight: 300; 162 | } 163 | 164 | 165 | 166 | 167 | .content { 168 | width: auto; 169 | height: calc(100% - 86px); 170 | /*height: 100%;*/ 171 | margin-left: 250px; 172 | background-color: #F0F0F0; 173 | padding: 15px; 174 | } 175 | 176 | 177 | a.mobile { 178 | display: block; 179 | color: #fff; 180 | background-color: #000; 181 | text-align: centre; 182 | padding: 7px; 183 | } 184 | 185 | a.mobile:active { 186 | background-color: #4A4A4A; 187 | 188 | } 189 | @media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) { 190 | 191 | 192 | .sidebar { 193 | width: calc(100% + 280px); 194 | display: none; 195 | height: calc(100% + 115px); 196 | } 197 | 198 | div#txt{ 199 | font-family: 'Open Sans'; 200 | font-size: 100px; 201 | color: white; 202 | margin-left: 30%; 203 | } 204 | 205 | .content { 206 | margin-left: 0px; 207 | width: calc(100% + 280px); 208 | height: calc(100% + 320px); 209 | /*height: 100%;*/ 210 | background-color: #F0F0F0; 211 | padding: 15px; 212 | } 213 | div#header{ 214 | width: calc(100% + 280px); 215 | height: 50px; 216 | background-color: #428bca; 217 | margin: 0 auto; 218 | } 219 | 220 | 221 | a.mobile { 222 | /*display: none;*/ 223 | width: calc(100% + 280px); 224 | } 225 | div#login{ 226 | margin-bottom: 390px; 227 | } 228 | 229 | } 230 | 231 | @media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) { 232 | .sidebar { 233 | width: calc(100% + 900px); 234 | display: none; 235 | height: calc(100% + 255px); 236 | } 237 | 238 | .content { 239 | margin-left: 0px; 240 | height: calc(100% + 500px); 241 | width: calc(100% + 900px); 242 | } 243 | div#txt{ 244 | margin-top:1%; 245 | font-family: 'Open Sans'; 246 | font-size: 100px; 247 | color: white; 248 | margin-left: 92%; 249 | } 250 | 251 | div#header{ 252 | width: 100%; 253 | height: 50px; 254 | margin: 0 auto; 255 | } 256 | .content { 257 | width: calc(100% + 900px); 258 | height: calc(100% + 500px); 259 | background-color: #F0F0F0; 260 | padding: 15px; 261 | } 262 | .table-fill { 263 | background: white; 264 | border-radius:3px; 265 | border-collapse: collapse; 266 | height: auto; 267 | margin: auto; 268 | padding:5px; 269 | width: auto; 270 | box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); 271 | animation: float 5s infinite; 272 | } 273 | .search { 274 | margin-left: 0; 275 | margin-top: -30px; 276 | } 277 | 278 | .searchBar { 279 | margin-left: 70; 280 | margin-top: 20px; 281 | } 282 | .logoE { 283 | float: left; 284 | margin-top: 4px; 285 | margin-left: calc(100% - 300px); 286 | } 287 | div#header{ 288 | width: calc(100% + 900px); 289 | height: 50px; 290 | background-color: #428bca; 291 | margin: 0 auto; 292 | } 293 | .kick { 294 | margin-left: 100px; 295 | margin-top: -30px; 296 | } 297 | 298 | .note { 299 | margin-left: 200px; 300 | margin-top: -30px; 301 | } 302 | a.mobile { 303 | width: calc(100% + 900px); 304 | /*display: none;*/ 305 | } 306 | div#login{ 307 | margin-left: 75%; 308 | margin-top: 20%; 309 | margin-bottom: 40px; 310 | } 311 | } 312 | -------------------------------------------------------------------------------- /updateSettings.php: -------------------------------------------------------------------------------- 1 | 176 | "; 177 | 178 | fwrite($ourFileHandle, $written); 179 | fclose($ourFileHandle); 180 | 181 | header('Location: settings.php'); 182 | die(); 183 | } else { 184 | echo $fail; 185 | } 186 | -------------------------------------------------------------------------------- /vehicles.php: -------------------------------------------------------------------------------- 1 | $amount) { 42 | $addPage = $amount; 43 | } 44 | 45 | if (isset($_POST['search'])) { 46 | $valuetosearch = $_POST['SearchValue']; 47 | $sqlget = "SELECT * FROM vehicles WHERE CONCAT (`pid`) LIKE '%".$valuetosearch."%'"; 48 | $sqldata = filterTable($dbcon, $sqlget); 49 | } else { 50 | $sqlget = 'SELECT * FROM vehicles ORDER BY id DESC limit '.$page.',100'; 51 | $sqldata = filterTable($dbcon, $sqlget); 52 | } 53 | 54 | include 'header/header.php'; 55 | ?> 56 | 57 |
58 |

Vehicle Menu

59 |
60 |
61 | 62 |
63 | 75 |

76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | '; 95 | echo ''; 96 | echo ''; 97 | echo ''; 98 | 99 | echo ''; 104 | echo ''; 105 | 106 | echo '
IDSideClass NameUIDTypeAliveActivePlate
'.$row['id'].''.$row['side'].' ' ?> 100 | 101 | '.$row['pid'].' '.$row['type'].' ' ?> 107 | 108 | ' ?> 111 | 112 | ' ?> 115 | 116 | '; 118 | } 119 | 120 | echo '
'; 121 | ?> 122 | 123 | 124 | 198 | 199 | 220 | 221 | 222 |
223 | 224 | 225 | 226 | 227 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | -------------------------------------------------------------------------------- /verifyCheck.php: -------------------------------------------------------------------------------- 1 | 172 | "; 173 | 174 | 175 | $dbconnect = mysqli_connect($host, $user, $pass, $name, $port) or die('Database connection failed'); 176 | 177 | $sql = array(); 178 | 179 | $sql[] = 'DROP TABLE IF EXISTS `users`;'; 180 | $sql[] = 'DROP TABLE IF EXISTS `log`;'; 181 | $sql[] = 'DROP TABLE IF EXISTS `notes`;'; 182 | $sql[] = 'DROP TABLE IF EXISTS `reimbursement_log`;'; 183 | $sql[] = 'DROP TABLE IF EXISTS `whitelist`;'; 184 | $sql[] = 'DROP TABLE IF EXISTS `access`;'; 185 | $sql[] = ' 186 | CREATE TABLE IF NOT EXISTS `log` ( 187 | `logid` int(11) NOT NULL AUTO_INCREMENT, 188 | `date_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 189 | `user` varchar(64) DEFAULT NULL, 190 | `action` varchar(255) DEFAULT NULL, 191 | `level` int(11) NOT NULL, 192 | PRIMARY KEY (`logid`), 193 | UNIQUE KEY `logid` (`logid`), 194 | KEY `logid_2` (`logid`) 195 | ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; 196 | '; 197 | 198 | $sql[] = ' 199 | CREATE TABLE IF NOT EXISTS `users` ( 200 | `ID` mediumint(9) NOT NULL AUTO_INCREMENT, 201 | `username` varchar(60) NOT NULL, 202 | `password` varchar(80) NOT NULL, 203 | `permissions` text NOT NULL, 204 | PRIMARY KEY (`ID`) 205 | ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;' 206 | ; 207 | 208 | $sql[] = " 209 | CREATE TABLE IF NOT EXISTS `notes` ( 210 | `note_id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'auto incrementing note_id of each user, unique index', 211 | `uid` VARCHAR(50) NOT NULL COLLATE 'utf8_unicode_ci', 212 | `staff_name` VARCHAR(50) NOT NULL COLLATE 'utf8_unicode_ci', 213 | `name` VARCHAR(50) NOT NULL COLLATE 'utf8_unicode_ci', 214 | `alias` VARCHAR(50) NOT NULL COLLATE 'utf8_unicode_ci', 215 | `note_text` VARCHAR(255) NOT NULL, 216 | `warning` ENUM('1','2','3','4') NOT NULL, 217 | `note_updated` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 218 | PRIMARY KEY (`note_id`), 219 | UNIQUE INDEX `note_id` (`note_id`) 220 | ) COLLATE='latin1_swedish_ci' ENGINE=InnoDB AUTO_INCREMENT=6;" 221 | ; 222 | 223 | $sql[] = " 224 | CREATE TABLE IF NOT EXISTS `reimbursement_log` ( 225 | `reimbursement_id` INT(11) NOT NULL AUTO_INCREMENT, 226 | `playerid` VARCHAR(50) NOT NULL, 227 | `comp` INT(100) NOT NULL DEFAULT '0', 228 | `reason` VARCHAR(255) NOT NULL, 229 | `staff_name` VARCHAR(50) NOT NULL COLLATE 'utf8_unicode_ci', 230 | `timestamp` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 231 | PRIMARY KEY (`reimbursement_id`), 232 | UNIQUE INDEX `reimbursement_id` (`reimbursement_id`) 233 | ) 234 | COLLATE='latin1_swedish_ci' 235 | ENGINE=InnoDB 236 | AUTO_INCREMENT=1;" 237 | ; 238 | 239 | $sql[] = ' 240 | CREATE TABLE IF NOT EXISTS `whitelist` ( 241 | `id` int(0) NOT NULL AUTO_INCREMENT, 242 | `date_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 243 | `user` varchar(64) DEFAULT NULL, 244 | `guid` varchar(64) DEFAULT NULL, 245 | `uid` varchar(64) DEFAULT NULL, 246 | PRIMARY KEY (`id`) 247 | ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;' 248 | ; 249 | 250 | $sql[] = ' 251 | CREATE TABLE `access` ( 252 | `accessID` int(11) NOT NULL AUTO_INCREMENT, 253 | `date_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 254 | `address` varchar(64) DEFAULT NULL, 255 | `failed` int(11) NOT NULL, 256 | PRIMARY KEY (`accessID`), 257 | UNIQUE KEY `accessID` (`accessID`), 258 | KEY `accessID_1` (`accessID`) 259 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;' 260 | ; 261 | 262 | $sql[] = "INSERT INTO `users` (`username`, `password`, `permissions`) VALUES ('AdminPanel','60fe74406e7f353ed979f350f2fbb6a2e8690a5fa7d1b0c32983d1d8b3f95f67', '\"[[`notes`,1],[`cop`,1],[`medic`,1],[`money`,1],[`IG-Admin`,1],[`editPlayer`,1],[`housing`,1],[`gangs`,1],[`vehicles`,1],[`logs`,1],[`steamView`,1],[`ban`,1],[`kick`,1],[`unban`,1],[`globalMessage`,1],[`restartServer`,1],[`stopServer`,1],[`superUser`,1]]\"');"; 263 | 264 | foreach ($sql as $x) { 265 | mysqli_query($dbconnect, $x) or die('Error while executing SQL statement'); 266 | } 267 | 268 | $ourFileHandle = fopen($ourFileName, 'w'); 269 | fwrite($ourFileHandle, $written); 270 | fclose($ourFileHandle); 271 | 272 | header('Location: index.php'); 273 | } else { 274 | echo 'There has been an error setting up your database, please recheck all inputs'; 275 | } 276 | } else { 277 | header('Location: index.php'); 278 | } 279 | -------------------------------------------------------------------------------- /whitelist.php: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 |

Battleye Whitelist

25 | 26 | 27 |
28 |
29 | 30 |
31 |


32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | '; 45 | echo ''; 46 | echo ''; 51 | echo ''; 52 | 53 | echo '
Staff UIDStaff GUIDAdd Whitelist
'.""; 47 | echo ''.""; 48 | echo ''."'; 49 | 50 | echo '
'; 54 | 55 | if (isset($_POST['update'])) { 56 | $guid = $_POST['guid']; 57 | $uid = $_POST['uid']; 58 | 59 | $UpdateQ = "INSERT INTO whitelist (user,uid,guid) VALUES ('$user','$uid','$guid');"; 60 | mysqli_query($dbcon, $UpdateQ); 61 | } 62 | 63 | if (isset($_POST['delete'])) { 64 | $sql = "DELETE FROM whitelist WHERE ID='$_POST[hidden]'"; 65 | mysqli_query($dbcon, $sql); 66 | 67 | echo ''; 68 | } 69 | ?> 70 | 71 |

72 | 73 | 78 | 79 |
80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | '; 96 | echo ''; 97 | echo ''; 98 | echo ''; 99 | echo ''; 100 | echo ''; 101 | echo ''; 102 | 103 | echo ''; 106 | echo ''; 107 | } 108 | 109 | echo '
Whitelist IdUIDGUIDStaff AddedTime StampDelete
'.$row['id'].''.$row['uid'].''.$row['guid'].' '.$row['user'].' '.$row['date_time'].' '."'; 104 | echo "".''; 105 | echo '
'; 110 | ?> 111 | 112 | 113 |
114 | 115 | 116 | 117 | 118 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | --------------------------------------------------------------------------------