Ejemplo n.º 1
0
$xml = "<?xml version='1.0' encoding='UTF-8'?>\n<eveapi version='2' edkapi='{$idfeedversion}'>\n</eveapi>";
$sxe = new SimpleXMLElement($xml);
$list = new KillList();
if (isset($_GET['kll_id'])) {
    $_GET['lastintID'] = $_GET['kll_id'];
    $_GET['allkills'] = 1;
    $_GET['range'] = 0;
}
if (isset($_GET['kll_ext_id'])) {
    $_GET['lastID'] = $_GET['kll_ext_id'];
    $_GET['allkills'] = 0;
    $_GET['range'] = 0;
}
$list->setOrdered(true);
if (isset($_GET['allkills']) && $_GET['allkills'] == 0) {
    $list->setAPIKill();
    $list->setOrderBy(' kll.kll_external_id ASC ');
} else {
    $list->setOrderBy(' kll.kll_id ASC ');
}
if (isset($_GET['limit'])) {
    $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);
    }