Example #1
0
 * This program is free software is licensed under the
 * COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
 *
 * You should have received a copy of the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
 * along with this program; if not, visit http://hlstats-community.org/License.html
 *
 */
require 'class/players.class.php';
$playersObj = new Players($game);
/**
 * check the get values
 */
if (isset($_GET["minkills"])) {
    $check = validateInput($_GET['minkills'], 'digit');
    if ($check === true) {
        $playersObj->setOption("minkills", $_GET['minkills']);
    }
}
if (isset($_GET["showall"])) {
    $check = validateInput($_GET['showall'], 'digit');
    if ($check === true) {
        $playersObj->setOption("showall", $_GET['showall']);
    }
}
if (isset($_GET["showToday"])) {
    $check = validateInput($_GET['showToday'], 'digit');
    if ($check === true) {
        $playersObj->setOption("showToday", $_GET['showToday']);
    }
}
if (isset($_GET["showBots"])) {