printf('</tr>'); } } printf('<tr class="ftr"><td class="data_r">%d</td><td></td><td class="data_r">%d</td></tr>', $aTempWH->getPlanetCount(), $aTempWH->getMoonCount()); printf('</table>'); } else { printf("<p><b>%s</b> is not a valid locus ID.</p>", $n_LocusID); } // ======================================================================== } elseif ($action == "intel_whanom") { // ======================================================================== $n_LocusID = strtoupper(trim(mysql_real_escape_string($_REQUEST["lid"]))); $aTempWH = new Wormhole($n_LocusID); if ($aTempWH->isValidLocus() && $aTempWH->hasAnomaly()) { // Technically we should check isWHLocus() here, but maybe CCP will make non-wormholes have anoms? $anomalySQL = sprintf("SELECT dgmTypeAttributes.*, dgmAttributeTypes.attributeName, dgmAttributeTypes.displayName " . "FROM " . EVEDB_NAME . ".dgmTypeAttributes INNER JOIN " . EVEDB_NAME . ".dgmAttributeTypes USING(attributeID) " . "WHERE typeID = '%s'", $aTempWH->getAnomalyTypeID()); //print($anomalySQL); $rsAnomaly = mysql_query_cache($anomalySQL, $whConn); if (!empty($rsAnomaly)) { printf('<table class="sTbl">'); printf('<tr class="hdr"><td>Effect</td><td>Strength</td></tr>'); for ($a = 0; $a < count($rsAnomaly); $a++) { printf('<tr><td class="data">%s</td><td class="hdr">%s</td></tr>', $rsAnomaly[$a]["displayName"], $aTempWH->getAnomEffect($rsAnomaly[$a]["attributeID"], $rsAnomaly[$a]["valueFloat"])); } printf('</table>'); } } // ======================================================================== } elseif ($action == "intel_dlgraph") { // ======================================================================== $n_GraphSrc = urldecode(trim($_REQUEST["gsrc"]));