define("SHOW_DEBUGGING", false); define("DISABLE_EVEKILL_COMPLETELY", false); /* This is analogous to CACHE_FORCE_USE_CACHE */ define("CACHE_KILLBOARD_DATA_CACHE", true); /* If set, killboard data will be serialized and saved to disk, and subsequent queries that use a Killboard object will use this cache. Setting this to false will significantly increase the time it takes to output intel. */ define("EVEMAPS_GRAPH_WIDTH", 230); define("EVEMAPS_GRAPH_HEIGHT", 160); define("SHIP_KILL", 1); define("SHIP_LOSS", 2); // Search constants define("GET_CHARACTER_ID", 1); define("GET_CORPORATION_ID", 2); define("GET_ALLIANCE_ID", 4); // Cache usage define("CACHE_FORCE_FULL_REFRESH", 0); /* Forces the system to reload the data even if the cache is fresh (effectively a "no cache" option) */ define("CACHE_USE_CACHE_REFRESH_IF_EXPIRED", 1); /* Forces a full refresh if the cache is expired (delete old cache, acquire new data from scratch) */ define("CACHE_USE_CACHE_UPDATE_NEW_DATA", 2); /* (default) Update the existing cache with new data if it has expired */ define("CACHE_FORCE_USE_CACHE", 3); /* Force using the cache if it exists even if it is expired (e.g. network issues) */ define("NAMING_POLICY_REGEXP", '/^([\-])?[A-Za-z0-9]+([\'\-\.\ ]+[A-Za-z0-9]+)*([\-])?\.?$/'); define("NPC_CORPORATION_START_ID", 1000002); define("NPC_CORPORATION_END_ID", 1000182); define("INTERBUS_CORPORATION_ID", 1000148); define("SLEEPER_CORPORATION_ID", 146033117); define("NO_ALLIANCE_ALLIANCE_ID", 958929439); define("INTERBUS_CUSTOMS_OFFICE_TYPEID", 4318); // The ship typeIDs that can exist in a wormhole // Note: Freighters are excluded define("CAPITAL_SHIP_TYPEIDS", serialize(array(19720, 19722, 19724, 19726, 23757, 23911, 23915, 24483, 28352))); // The carrier Fighter typeIDs define("FIGHTER_WEAPON_TYPEIDS", serialize(array(23055, 23057, 23059, 23061))); // POS battery groupIDs define("POS_GUNS_GROUPIDS", serialize(array(417, 426, 430, 449))); define("POS_MODULES_STRUCTURES_GROUPIDS", serialize(array(411, 363, 397, 404, 413, 438, 439, 440, 441, 443, 444, 471, 837, 1106))); define("POS_TOWER_GROUPID", serialize(array(365))); define("SHOW_MAX_CAPITAL_KILLMAILS", 5); define("CACHE_DIRECTORY", "../_cache"); define("EVEKILL_CACHE_LIFETIME_LASTKILL", 1800); /* Last kill is cached 30 minutes */ define("EVEKILL_CACHE_LIFETIME_ANALYSIS", 7200); /* Analysis is cached for 2 hours */ define("DOTLAN_CACHE_LIFETIME", 900); /* Dotlan cache */ define("EVEKILL_SOCKET_TIMEOUT_SECONDS", 15); define("EVEKILL_KILL_COUNT_FOR_INTEL", 1000); define("EVEKILL_ANALYSIS_MAX_MONTH_HISTORY", 12); define("EVEKILL_ANALYSIS_MAX_KILLS_PER_MONTH", 100); /* Default maximum kills recorded per month (for diversity). This should never be lower than EVEKILL_KILL_COUNT_FOR_INTEL / EVEKILL_ANALYSIS_MAX_KILLS_PER_MONTH */ define("EVEKILL_EPIC_MASK", 655359); define("EVEKILL_EVICTION_INACTIVE_MONTHS", 3); define("EVEKILL_SECS_ELAPSED_ASSUME_NEW_BATTLE",86400); /* Number of seconds between kills that if exceeded assumes is a seperate & new battle */ define("EVEKILL_MAX_SHIP_CLASSES_TO_SHOW" ,3); /* Max number of ship classes to show */ define("EVEKILL_RECENT_EVICTION_IN_DAYS" ,7); /* An eviction in this many days is notable */ define("EVEKILL_MAX_EVICTERS_TO_REPORT" ,3); define("EVEKILL_MAX_EVICTERS_FOR_MULTIPOS_LOSS" ,6); define("SCORE_EXPONENTIAL_DECAY_RATE", 0.1); /* Decay rate for exponential decay formula */ define("SCORE_MAX_SCORE_FOR_BATTLE", 1000); /* Maximum score an individual battle can receive in residency computations */ define("SCORE_MULTIPLE_BATTLE_INCREMENT", 0); /* Max battle score modifier */ define("SCORE_SKEW_CAPITAL_USE_IN_LOWCLASS_WH", 4000); /* A corp using a capital in a wormhole that can only support them being built there is almost certainly resident */ define("SCORE_SKEW_POS_COMBAT_ACTIVITY", 5500); /* A POS owned by corp was involved in a kill/loss */ define("SCORE_SKEW_FOR_POS_ATTACK", 1500); /* Credit for a corp being involved in killing a POS */ define("SCORE_SKEW_INTERBUS_CO_KILL", 2000); /* Someone killed an InterBus C.O - they probably lived there or wanted to */ define("SCORE_RESIDENCY_THRESHOLD_PERC", 60); /* Percentage of the highest residency score that a corp can be considered resident too */ define("SCORE_CERTIFIED_RESIDENCY_PERC", 30); define("SCORE_RES_ASSUME_ALLIANCE_THRESHOLD_PERC", 30); /* Percentage threshold of total system residency score that an alliance is assumed resident */ define("SCORE_RES_ASSUME_ALLIANCE_CORP_DOMINANT_PERC", 25); /* Percentage at which it is assumed a corporation is dominant in the alliance in the system */ define("SCORE_RES_ASSUME_ALLIANCE_OCCUPANCY", 40); /* Percentage at which an alliance is assumed to occupy */ define("SCORE_RES_STDDEV_TOO_LOW_THRESHOLD", 505); /* If standard deviation of values is below this number, assume unoccupied */ define("SCORE_BATTLE_COUNT_TOO_LOW_THRESHOLD", 5); /* Minimum number of battles that have to have taken place to consider calculating residency */ define("SCORE_RES_STILL_RES_BATTLE_SCORE", 100); /* The score to apply per kill for a "still resident" check */ define("SCORE_RES_STILL_RES_THRESHOLD_SCORE", 175); /* The threshold at which we assume they are probably still resident */ define("SCORE_RES_IGNORE_RELATED_ACTIVITY_PERIOD_DAYS", 14); /* The number of days after a POS loss that kill activity (losses and kills) should be ignored for residency calculations */ define("SCORE_MINIMUM_BATTLE_COUNT_FOR_RES", 1); /* Corporations will have to have had at least this many battles to qualify for residency */ define("ICON_RESIDENT_IMAGE", '