Params: $type (string), either ban, kick or mute; $id (int), ID of infraction
public lb_getInfraction ( $type, $id ) |
// Unbanned $expires = '<span class="label label-success" rel="tooltip" data-placement="top" title="' . date('jS M Y, H:i', $infraction[0]->ban_unbandate) . '">' . str_replace('{x}', htmlspecialchars($infraction[0]->ban_unbanstaff), $infractions_language['revoked_by']) . '</span>'; } } } break; } // Staff if (!isset($_GET['past'])) { $staff = htmlspecialchars($infractions->bm_getUsernameFromID($infraction[0]->actor_id)); } else { $staff = htmlspecialchars($infractions->bm_getUsernameFromID($infraction[0]->pastActor_id)); } break; case 'lb': $infraction = $infractions->lb_getInfraction($_GET["type"], $_GET["id"]); $username = htmlspecialchars($infraction[1]); $infraction = $infraction[0]; switch ($_GET['type']) { case 'ban': if ($infraction->active == null) { $expires = '<span class="label label-danger">' . $infractions_language['permanent'] . '</span>'; } else { if ($infraction->active == 0x1) { // active $expires = '<span class="label label-danger">' . $infractions_language['permanent'] . '</span>'; } else { // revoked $expires = '<span class="label label-success">' . $infractions_language['revoked'] . '</span>'; } }