예제 #1
0
    }
    // ========================================================================
} 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"]));
    if (isset($n_GraphSrc)) {
        printf('		<div class="dlChart">');
        printf('			<img src="%s" width="%d" height="%d" border="0"/>', $n_GraphSrc, EVEMAPS_GRAPH_WIDTH, EVEMAPS_GRAPH_HEIGHT);
        printf('		</div>');
    }
    // ========================================================================
} elseif ($action == "intel_evekill_last") {