if ($name == "v_code") { $vCode = $value; } } } if ($keyIdYo != -1) { $itemIDs[0] = 0; $typeIDs[0] = 0; $locationIDs[0] = 0; $moonIDs[0] = 0; $states[0] = 0; $stateTimes[0] = ""; $onlineTimes[0] = ""; $lastUpdates[0] = ""; $api = new eveAPI(); $api->Init($keyIdYo, $vCode); $ret = $api->getTowerListXML(); if ($ret) { $itemIDs = $api->getValueArrayFromXML($ret, "itemID"); $typeIDs = $api->getValueArrayFromXML($ret, "typeID"); $locationIDs = $api->getValueArrayFromXML($ret, "locationID"); $moonIDs = $api->getValueArrayFromXML($ret, "moonID"); $states = $api->getValueArrayFromXML($ret, "state"); $stateTimes = $api->getValueArrayFromXML($ret, "stateTimestamp"); $onlineTimes = $api->getValueArrayFromXML($ret, "onlineTimestamp"); } else { $fail = true; } } else { $fail = true; }
} if (isset($_POST["vCode"])) { $v_Code = $_POST["vCode"]; if (trim($v_Code) == "") { $fail = true; } } else { $fail = true; } if (!$fail) { $api = new eveAPI(); $charIds[0] = 0; $charNames[0] = ""; $corpIds[0] = 0; $corpNames[0] = 0; $api->Init($key_ID, $v_Code); $ret = $api->getCharXML(); if ($ret) { $charIds = $api->getValueArrayFromXML($ret, "characterID"); $charNames = $api->getValueArrayFromXML($ret, "name"); $corpIds = $api->getValueArrayFromXML($ret, "corporationID"); $corpNames = $api->getValueArrayFromXML($ret, "corporationName"); } else { $fail = true; } if (!$fail) { if (IsProduction()) { mysql_select_db("eve.tdsin"); } else { mysql_select_db("naed_Sapphire"); }