$infractions = new Infractions(); ?> <div role="tabpanel" class="tab-pane" id="infractions"> <br /> <?php // Get the infractions plugin in use $infractions_plugin = $queries->getWhere("settings", array("name", "=", "infractions_plugin")); $infractions_plugin = $infractions_plugin[0]->value; if ($infractions_plugin == "bat") { $all_infractions = $infractions->bat_getAllInfractions($uuid); } else { if ($infractions_plugin == "bm") { $all_infractions = $infractions->bm_getAllInfractions($uuid); } else { if ($infractions_plugin == "mb") { $all_infractions = $infractions->mb_getAllInfractions(htmlspecialchars($profile)); } else { if ($infractions_plugin == "lb") { $uuid = ProfileUtils::formatUUID($uuid); $all_infractions = $infractions->lb_getAllInfractions($uuid); } } } } ?> <table class="table table-bordered"> <thead> <tr> <th></th> <th>Action</th> <th>Reason</th>
<?php require "inc/templates/navbar.php"; ?> <div class="container"> <?php if (!isset($_GET["type"]) && !isset($_GET["id"])) { if ($infractions_plugin == "bat") { $all_infractions = $infractions->bat_getAllInfractions(); } else { if ($infractions_plugin == "bm") { $all_infractions = $infractions->bm_getAllInfractions(); } else { if ($infractions_plugin == "mb") { $all_infractions = $infractions->mb_getAllInfractions(); } else { if ($infractions_plugin == "lb") { $all_infractions = $infractions->lb_getAllInfractions(); } } } } $paginate = PaginateArray($p); $n = $paginate[0]; $f = $paginate[1]; if (count($all_infractions) > $f) { $d = $p * 10; } else { $d = count($all_infractions) - $n; $d = $d + $n;