Params: $uuid (string), UUID of a user. If null, will list all infractions
public lb_getAllInfractions ( $uuid = null ) |
<h2><?php echo $infractions_language['infractions']; ?> </h2> <?php if (!isset($_GET['type']) && !isset($_GET['id'])) { // Get all infractions, depending on plugin switch ($inf_plugin) { case 'bat': $all_infractions = $infractions->bat_getAllInfractions(); break; case 'bm': $all_infractions = $infractions->bm_getAllInfractions(); break; case 'lb': $all_infractions = $infractions->lb_getAllInfractions(); break; case 'bam': $all_infractions = $infractions->bam_getAllInfractions(); break; case 'bu': $all_infractions = $infractions->bu_getAllInfractions(); break; } // Pagination $paginate = PaginateArray($p); $n = $paginate[0]; $f = $paginate[1]; if (count($all_infractions) > $f) { $d = $p * 10; } else {
<?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> <th>Punished By</th> <th>Expires</th> </tr> </thead>