Esempio n. 1
0
    $list->setLimit(min($maxkillsreturned, (int) $_GET['limit']));
} else {
    $list->setLimit($maxkillsreturned);
}
$qry = DBFactory::getDBQuery();
if (isset($_GET['alliance'])) {
    $arr = explode(',', $_GET['alliance']);
    foreach ($arr as &$val) {
        $val = intval($val);
    }
    $qry->execute("SELECT all_id FROM kb3_alliances WHERE all_external_id IN (" . implode(',', $arr) . ")");
    if (!$qry->recordCount()) {
        show($sxe);
    }
    while ($row = $qry->getRow()) {
        $list->addCombinedAlliance($row['all_id']);
    }
}
if (isset($_GET['corp'])) {
    $arr = explode(',', $_GET['corp']);
    foreach ($arr as &$val) {
        $val = intval($val);
    }
    $qry->execute("SELECT crp_id FROM kb3_corps WHERE crp_external_id IN (" . implode(',', $arr) . ")");
    if (!$qry->recordCount()) {
        show($sxe);
    }
    while ($row = $qry->getRow()) {
        $list->addCombinedCorp($row['crp_id']);
    }
}