$finalBlow = $inv; } if ($topDamage == null && @$inv['characterID'] != 0) { $topDamage = $inv; } } // If only NPC's are on the mail give them credit for top damage... if ($topDamage == null) { $topDamage = $first; } } $extra = array(); // And now give all the arrays and whatnots to twig.. if ($pageview == 'overview') { $extra['items'] = Detail::combineditems(md5($id), $killdata['items']); $extra['invAll'] = involvedCorpsAndAllis(md5($id), $killdata['involved']); $extra['involved'] = $involved; $extra['allinvolved'] = $allinvolved; } $extra['location'] = @$killdata['info']['location']['itemName']; $extra['totalisk'] = $killdata['info']['zkb']['totalValue']; $extra['droppedisk'] = droppedIsk(md5($id), $killdata['items']); $extra['shipprice'] = Price::getItemPrice($killdata['victim']['shipTypeID'], date('Ymd', strtotime($killdata['info']['dttm']))); $extra['lostisk'] = $extra['shipprice'] + destroyedIsk(md5($id), $killdata['items']); $extra['fittedisk'] = fittedIsk(md5($id), $killdata['items']); $extra['relatedtime'] = date('YmdH00', strtotime($killdata['info']['dttm'])); $extra['fittingwheel'] = Detail::eftarray(md5($id), $killdata['items'], @$killdata['victim']['characterID']); $extra['involvedships'] = involvedships($killdata['involved']); $extra['involvedshipscount'] = count($extra['involvedships']); $extra['totalprice'] = usdeurgbp($killdata['info']['zkb']['totalValue']); $extra['destroyedprice'] = usdeurgbp($extra['lostisk']);
continue; } $topDamage = $finalBlow = null; if (sizeof($killdata["involved"]) > 1) { $topDamage = $killdata["involved"][0]; foreach ($killdata["involved"] as $inv) { if ($inv["finalBlow"] == 1) { $finalBlow = $inv; } } } $extra = array(); // And now give all the arrays and whatnots to twig.. if ($pageview == "overview") { $extra["items"] = combineditems(md5($id), $killdata["items"]); $extra["invAll"] = involvedCorpsAndAllis(md5($id), $killdata["involved"]); $extra["involved"] = $involved; $extra["allinvolved"] = $allinvolved; } if ($pageview == "comments") { $extra["cmtChars"] = Api::getCharacters($userID); $extra["cmtChars"][] = array("characterID" => 0, "characterName" => "Anonymous"); } $extra["droppedisk"] = droppedIsk(md5($id), $killdata["items"]); $extra["lostisk"] = $killdata["info"]["total_price"] - $extra["droppedisk"]; $extra["fittedisk"] = fittedIsk(md5($id), $killdata["items"]); $extra["relatedtime"] = date("YmdH00", strtotime($killdata["info"]["killTime"])); $extra["fittingwheel"] = eftarray(md5($id), $killdata["items"], $killdata["victim"]["characterID"]); $extra["involvedships"] = involvedships($killdata["involved"]); $extra["involvedshipscount"] = count($extra["involvedships"]); $extra["totalprice"] = usdeurgbp($killdata["info"]["total_price"]);