示例#1
0
    } else {
        ?>
					This user hasn't registered on our website yet.
					<?php 
    }
    ?>
				</div>
				<div role="tabpanel" class="tab-pane" id="ingame">
					<br />
					<h4>Network stats</h4>
					<strong>Disabled</strong>
				</div>
				<?php 
    $infractions_query = $queries->getWhere("settings", array("name", "=", "infractions"));
    if ($infractions_query[0]->value != "false") {
        $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));
示例#2
0
 *  License: MIT
 */
// Infractions addon page
$page = 'Infractions';
// for navbar
// Ensure the addon is enabled
if (!in_array('Infractions', $enabled_addon_pages)) {
    // Not enabled, redirect to homepage
    echo '<script data-cfasync="false">window.location.replace(\'/\');</script>';
    die;
}
require 'core/includes/paginate.php';
require 'addons/Infractions/config.php';
require 'addons/Infractions/Infractions.php';
require 'core/integration/uuid.php';
$infractions = new Infractions($inf_db, $infractions_language);
$pagination = new Pagination();
$timeago = new Timeago();
// Get current plugin in use
$inf_plugin = $queries->getWhere('infractions_settings', array('id', '=', 1));
if (!count($inf_plugin)) {
    // Need to configure addon
    echo 'Please set up the addon in the AdminCP -> Addons tab.';
    die;
}
$inf_plugin = $inf_plugin[0]->value;
// Redirect to fix pagination if URL does not end in /
if (substr($_SERVER['REQUEST_URI'], -1) !== '/' && !strpos($_SERVER['REQUEST_URI'], '?')) {
    echo '<script data-cfasync="false">window.location.replace(\'/infractions/\');</script>';
    die;
}
示例#3
0
<?php

/* 
 *	Made by Samerton
 *  http://worldscapemc.co.uk
 *
 *  License: MIT
 */
require_once 'inc/ext_conf.php';
require_once 'inc/functions/paginate.php';
$infractions = $queries->getWhere("settings", array("name", "=", "infractions"));
if ($infractions[0]->value == "false") {
    Redirect::to('/');
    die;
}
$infractions = new Infractions();
// Get the plugin in use
$infractions_plugin = $queries->getWhere("settings", array("name", "=", "infractions_plugin"));
$infractions_plugin = $infractions_plugin[0]->value;
if (isset($_GET['p'])) {
    if (!is_numeric($_GET['p'])) {
        Redirect::to("/infractions");
    } else {
        $p = $_GET['p'];
    }
} else {
    $p = 1;
}
?>

<!DOCTYPE html>