- Timestamp:
- 10/17/08 10:30:02 (14 years ago)
- Location:
- dev
- Files:
-
- 67 added
- 3 removed
- 41 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/about.php
r336 r343 6 6 // i store the names here for an easy edit 7 7 $developer = array('exi (Lead Developer)', 8 'knifee (Developer)', 9 'Ralle030583 (Developer)', 10 'Andrew Gunn (Siteadmin)', 11 'Ganja (Fluff girl)'); 8 'Beansman (Developer)', 9 'Ralle030583 (Developer)'); 12 10 13 11 $contributor = array('JaredC01', … … 15 13 'Mitchman', 16 14 'Coni', 17 'beansman',18 15 'FriedRoadKill', 19 'bunjiboys'); 16 'bunjiboys', 17 'Karbowiak'); 20 18 sort($contributor); 21 19 -
dev/common/admin/admin_menu.php
r338 r343 54 54 options::oldMenu('Modules', "Mods", "?a=admin_mods"); 55 55 56 options::oldMenu('Features', "Feed Syndication", "?a=admin_feedsyndication"); 57 options::oldMenu('Features', "API Mod", "?a=admin_apimod"); 58 56 59 options::oldMenu('Maintenance', "Auditing", "?a=admin_audit"); 57 60 options::oldMenu('Maintenance', "Troubleshooting", "?a=admin_troubleshooting"); -
dev/common/admin/option_config.php
r254 r343 8 8 options::fadd('IMG URL', 'cfg_img', 'edit:size:50'); 9 9 options::fadd('Main Webpage Link', 'cfg_mainsite', 'edit:size:50'); 10 options::cat('Advanced', 'Config', 'SQL'); 11 options::fadd('Enable SQL-Query MemCache', 'cfg_memcache', 'checkbox'); 12 options::fadd('Memcached server', 'cfg_memcache_server', 'edit:size:50'); 13 options::fadd('Memcached port', 'cfg_memcache_port', 'edit:size:8'); 10 14 options::fadd('Halt on SQLError', 'cfg_sqlhalt', 'checkbox'); 11 options::fadd('Enable SQL-Query Cache', 'cfg_qcache', 'checkbox'); 15 options::fadd('Enable SQL-Query File Cache', 'cfg_qcache', 'checkbox'); 16 options::cat('Advanced', 'Config', 'Corp/Alliance ID'); 12 17 options::fadd('CORP_ID', 'cfg_corpid', 'edit:size:5'); 13 18 options::fadd('ALLIANCE_ID', 'cfg_allianceid', 'edit:size:5'); -
dev/common/admin/option_generic.php
r326 r343 4 4 * look here for some examples. 5 5 */ 6 7 options::cat('Appearance', 'Generic', 'Look and feel');8 options::fadd('Banner', 'style_banner', 'select', array('admin_generic', 'createSelectBanner'));9 options::fadd('Style', 'style_name', 'select', array('admin_generic', 'createSelectStyle'));10 6 11 7 options::cat('Appearance', 'Generic', 'Global Options'); … … 24 20 25 21 options::cat('Appearance', 'Generic', 'Posting'); 26 options::fadd('Post password', 'post_password', 'edit'); 22 options::fadd('Mail post password', 'post_password', 'edit'); 23 options::fadd('Comment post password', 'comment_password', 'edit'); 27 24 options::fadd('Killmail CC', 'post_mailto', 'edit'); 28 25 options::fadd('Mailhost', 'post_mailhost', 'edit'); … … 34 31 options::fadd('ReAdd known killmails', 'readd_dupes', 'checkbox'); 35 32 36 options::cat('Appearance', 'Generic', 'Killlists');37 options::fadd('Display Comment Count on Killlists', 'comments_count', 'checkbox');38 options::fadd('Display Alliance Logos on killlists', 'killlist_alogo', 'checkbox');39 options::fadd('Display Involved Count on killlists', 'killlist_involved', 'checkbox');40 41 options::cat('Appearance', 'Generic', 'Killdetail');42 options::fadd('Include dropped value into total loss', 'kd_droptototal', 'checkbox');43 44 options::cat('Appearance', 'Generic', 'Killsummarytables');45 options::fadd('Stats Row Count', 'summarytable_rowcount', 'edit:size:2');46 options::fadd('Display a summary line below a killsummarytable', 'summarytable_summary', 'checkbox');47 48 33 options::cat('Appearance', 'Generic', 'Public-Mode v0.2'); 49 34 options::fadd('Only Kills in SummaryTables', 'public_summarytable', 'checkbox','','','CORP_ID and ALLIANCE_ID in config has to be 0 to work "public"'); … … 53 38 class admin_generic 54 39 { 40 function createPanelTheme() 41 { 42 $sfp_themes =array("ArmyGreen" , 43 "CoolGray" , 44 "DarkOpaque" , 45 "Desert" , 46 "Revelations" , 47 "RevelationsII" , 48 "Silver" , 49 "Stealth" , 50 "SteelGray" , 51 "Trinity" , 52 "Black" , 53 "Blue" , 54 "Gold" , 55 "Green" , 56 "LightBlue" , 57 "Red" , 58 "Yellow" , 59 "Vidar" , 60 "Demonic" ); 61 $option = array(); 62 $selected = config::get('fp_theme'); 63 foreach ($sfp_themes as $theme) 64 { 65 if ($theme == $selected) 66 { 67 $state = 1; 68 } 69 else 70 { 71 $state = 0; 72 } 73 $options[] = array('value' => $theme, 'descr' => $theme, 'state' => $state); 74 } 75 return $options; 76 } 77 78 function createPanelStyle() 79 { 80 $sfp_styles =array("Windowed" , 81 "OldWindow" , 82 "Border" , 83 "Faded" ); 84 $option = array(); 85 $selected = config::get('fp_style'); 86 foreach ($sfp_styles as $style) 87 { 88 if ($style == $selected) 89 { 90 $state = 1; 91 } 92 else 93 { 94 $state = 0; 95 } 96 $options[] = array('value' => $style, 'descr' => $style, 'state' => $state); 97 } 98 return $options; 99 } 100 101 function createHighStyle() 102 { 103 $sfp_highstyles =array("ring" , 104 "square" , 105 "round" , 106 "backglowing" ); 107 $option = array(); 108 $selected = config::get('fp_highstyle'); 109 foreach ($sfp_highstyles as $style) 110 { 111 if ($style == $selected) 112 { 113 $state = 1; 114 } 115 else 116 { 117 $state = 0; 118 } 119 $options[] = array('value' => $style, 'descr' => $style, 'state' => $state); 120 } 121 return $options; 122 } 123 124 function createAmmoStyle() 125 { 126 $sfp_ammostyles =array("solid" , 127 "transparent" ); 128 $option = array(); 129 $selected = config::get('fp_ammostyle'); 130 foreach ($sfp_ammostyles as $style) 131 { 132 if ($style == $selected) 133 { 134 $state = 1; 135 } 136 else 137 { 138 $state = 0; 139 } 140 $options[] = array('value' => $style, 'descr' => $style, 'state' => $state); 141 } 142 return $options; 143 } 144 55 145 function createSelectBanner() 56 146 { 57 147 $options = array(); 58 $dir = " img/logo/";148 $dir = "banner/"; 59 149 if (is_dir($dir)) 60 150 { … … 63 153 while (($file = readdir($dh)) !== false) 64 154 { 65 $file = substr($file, 0 , strpos($file, "."));155 $file = substr($file, 0); 66 156 if (!is_dir($dir.$file)) 67 157 { -
dev/common/alliance_detail.php
r326 r343 71 71 $html .= "<td class=kb-table-cell width=180><b>Kills:</b></td><td class=kl-kill>".$kill_summary->getTotalKills()."</td></tr>"; 72 72 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$kill_summary->getTotalLosses()."</td></tr>"; 73 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000 , 2)."M</td></tr>";74 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000 , 2)."M</td></tr>";73 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000000, 2)."B</td></tr>"; 74 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000000, 2)."B</td></tr>"; 75 75 if ($kill_summary->getTotalKillISK()) 76 76 { -
dev/common/cc_detail.php
r289 r343 33 33 $html .= "<td class=kb-table-cell><b>Start date:</b></td><td class=kb-table-cell width=120><b>".substr($contract->getStartDate(), 0, 10)."</b></td><td class=kb-table-cell><b>End date:</b></td><td class=kb-table-cell width=120><b>".$ended."</b></td></tr>"; 34 34 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Kills:</b></td><td class=kl-kill>".$contract->getKills()."</td><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$contract->getLosses()."</td></tr>"; 35 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($contract->getKillISK()/1000000 , 2)."M</td><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($contract->getLossISK()/1000000, 2)."M</td></tr>";35 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($contract->getKillISK()/1000000000, 2)."B</td><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($contract->getLossISK()/1000000000, 2)."B</td></tr>"; 36 36 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Runtime:</b></td><td class=kb-table-cell><b>".$contract->getRunTime()." days</b></td><td class=kb-table-cell><b>Efficiency:</b></td><td class=kb-table-cell><b>".$contract->getEfficiency()."%</b></td></tr>"; 37 37 $html .= "</table>"; … … 56 56 $summary = new KillSummaryTable($kl, $ll); 57 57 $summary->setVerbose(true); 58 $summary->setBreak(1 3);58 $summary->setBreak(15); 59 59 $summary->setView('combined'); 60 60 … … 86 86 $bar = new BarGraph($efficiency, 100, 120); 87 87 $html .= "<table class=kb-table cellspacing=1 border=\"0\" width=\"100%\"><tr class=kb-table-row-even>"; 88 $html .= "<td class=kb-table-cell width=108><b>Totals:</b></td><td class=kl-kill-bg width=60 align=center>".$summary->getTotalKills()."</td><td class=kl-kill-bg width=60 align=center>".round($summary->getTotalKillISK()/1000000 , 2)."M</td>";89 $html .= "<td class=kl-loss-bg width=64 align=center>".$summary->getTotalLosses()."</td><td class=kl-loss-bg width=60 align=center>".round($summary->getTotalLossISK()/1000000 , 2)."M</td></tr></table>";88 $html .= "<td class=kb-table-cell width=108><b>Totals:</b></td><td class=kl-kill-bg width=60 align=center>".$summary->getTotalKills()."</td><td class=kl-kill-bg width=60 align=center>".round($summary->getTotalKillISK()/1000000000, 2)."B</td>"; 89 $html .= "<td class=kl-loss-bg width=64 align=center>".$summary->getTotalLosses()."</td><td class=kl-loss-bg width=60 align=center>".round($summary->getTotalLossISK()/1000000000, 2)."B</td></tr></table>"; 90 90 91 91 $html .= "</td><td align=left>"; -
dev/common/comments.php
r213 r343 10 10 $pw = true; 11 11 } 12 if ($_POST['password'] == config::get(" post_password") || $pw)12 if ($_POST['password'] == config::get("comment_password") || $pw) 13 13 { 14 14 if ($_POST['comment'] == '') -
dev/common/corp_detail.php
r326 r343 85 85 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Kills:</b></td><td class=kl-kill>".$kill_summary->getTotalKills()."</td></tr>"; 86 86 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$kill_summary->getTotalLosses()."</td></tr>"; 87 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000 , 2)."M</td></tr>";88 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000 , 2)."M</td></tr>";87 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000000, 2)."B</td></tr>"; 88 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000000, 2)."B</td></tr>"; 89 89 if ($kill_summary->getTotalKillISK()) 90 90 { -
dev/common/eft_fitting.php
r319 r343 1 1 <?php 2 // Original by TEKAI 3 // Ammo addition and little modifications by Wes Lave 2 4 require_once('common/includes/class.kill.php'); 3 5 … … 5 7 $kill = new Kill($kll_id); 6 8 $ship = $kill->getVictimShip(); 9 $pilotname = $kill->getVictimName(); 7 10 $shipclass = $ship->getClass(); 11 $shipname = $ship->getName(); 8 12 $system = $kill->getSystem(); 13 $killtitle .= $pilotname."'s ".$shipname; 9 14 10 15 $fitting_array[1] = array(); // high slots … … 13 18 $fitting_array[5] = array(); // rig slots 14 19 $fitting_array[6] = array(); // drone bay 15 16 17 // ship fitting 20 $ammo_array[1] = array(); // high ammo 21 $ammo_array[2] = array(); // mid ammo 22 23 18 24 if (count($kill->destroyeditems_) > 0) 19 25 { … … 21 27 { 22 28 $item = $destroyed->getItem(); 29 $i_qty = $destroyed->getQuantity(); 30 $i_name = $item->getName(); 31 $i_location = $destroyed->getLocationID(); 32 $i_id = $item->getID(); 33 $i_usedgroup = $item->get_used_launcher_group($i_name); 23 34 //Fitting, KE - add destroyed items to an array of all fitted items. 24 if(($destroyed->getLocationID() != 4) && ($item->get_used_launcher_group($item->getName()) == 0)) 25 { 26 for ($count = 0; $count < $destroyed->getQuantity(); $count++) 27 { 28 $fitting_array[$destroyed->getLocationID()][]=$item->getName(); 29 } 30 } 35 if($i_location != 4) 36 { 37 if(($i_usedgroup != 0)) 38 { 39 if ($i_location == 1) 40 { 41 $i_ammo=$item->get_ammo_size($i_name); 42 43 } 44 else 45 { 46 $i_ammo = 0; 47 } 48 $ammo_array[$i_location][]=array('Name'=>$i_name, 'usedgroupID' => $i_usedgroup, 'size' => $i_ammo); 49 } else 50 { 51 for ($count = 0; $count < $i_qty; $count++) 52 { 53 if ($i_location == 1) 54 { 55 $i_charge=$item->get_used_charge_size($i_name); 56 } 57 else 58 { 59 $i_charge = 0; 60 } 61 $fitting_array[$i_location][]=array('Name'=>$i_name, 'groupID' => $item->get_group_id($i_name), 'chargeSize' => $i_charge); 62 } 63 } 64 } 31 65 //fitting thing end 32 66 } … … 38 72 { 39 73 $item = $dropped->getItem(); 40 74 $i_qty = $dropped->getQuantity(); 75 $i_name = $item->getName(); 76 $i_location = $dropped->getLocationID(); 77 $i_id = $item->getID(); 78 $i_usedgroup = $item->get_used_launcher_group($i_name); 41 79 //Fitting -KE, add dropped items to the list 42 if(($dropped->getLocationID() != 4) && ($item->get_used_launcher_group($item->getName()) == 0)) 43 { 44 for ($count = 0; $count < $dropped->getQuantity(); $count++) 45 { 46 $fitting_array[$dropped->getLocationID()][]=$item->getName(); 80 if($i_location != 4) 81 { 82 if(($i_usedgroup != 0)) 83 { 84 if ($i_location == 1) 85 { 86 $i_ammo=$item->get_ammo_size($i_name); 87 } 88 else 89 { 90 $i_ammo = 0; 91 } 92 $ammo_array[$i_location][]=array('Name'=>$i_name, 'usedgroupID' => $i_usedgroup, 'size' => $i_ammo); 93 } else 94 { 95 for ($count = 0; $count < $i_qty; $count++) 96 { 97 if ($i_location == 1) 98 { 99 $i_charge=$item->get_used_charge_size($i_name); 100 } 101 else 102 { 103 $i_charge = 0; 104 } 105 $fitting_array[$i_location][]=array('Name'=>$i_name, 'groupID' => $item->get_group_id($i_name), 'chargeSize' => $i_charge); 106 } 47 107 } 48 108 } 49 109 //fitting thing end 110 111 50 112 } 113 } 114 115 //Fitting - KE, sort the fitted items into groupID order, so that several of the same item apear next to each other. 116 if(!(empty($fitting_array[1]))) 117 { 118 foreach ($fitting_array[1] as $array_rowh) 119 { 120 $sort_by_nameh["groupID"][] = $array_rowh["groupID"]; 121 } 122 array_multisort($sort_by_nameh["groupID"],SORT_ASC,$fitting_array[1]); 123 } 124 125 if(!(empty($fitting_array[2]))) 126 { 127 foreach ($fitting_array[2] as $array_rowm) 128 { 129 $sort_by_namem["groupID"][] = $array_rowm["groupID"]; 130 } 131 array_multisort($sort_by_namem["groupID"],SORT_ASC,$fitting_array[2]); 132 } 133 134 if(!(empty($fitting_array[3]))) 135 { 136 foreach ($fitting_array[3] as $array_rowl) 137 { 138 $sort_by_namel["groupID"][] = $array_rowl["groupID"]; 139 } 140 array_multisort($sort_by_namel["groupID"],SORT_ASC,$fitting_array[3]); 141 } 142 143 if(!(empty($fitting_array[5]))) 144 { 145 foreach ($fitting_array[5] as $array_rowr) 146 { 147 $sort_by_namer["Name"][] = $array_rowr["Name"]; 148 } 149 array_multisort($sort_by_namer["Name"],SORT_ASC,$fitting_array[5]); 150 } 151 152 if(!(empty($fitting_array[6]))) 153 { 154 foreach ($fitting_array[6] as $array_rowd) 155 { 156 $sort_by_named["Name"][] = $array_rowd["Name"]; 157 } 158 array_multisort($sort_by_named["Name"],SORT_ASC,$fitting_array[6]); 159 } 160 161 //Fitting - KE, sort the fitted items into name order, so that several of the same item apear next to each other. -end 162 163 $lenght = count($ammo_array[1]); 164 $temp = array(); 165 if(is_array($fitting_array[1])) 166 { 167 $hiammo = array(); 168 foreach ($fitting_array[1] as $highfit) 169 { 170 $group = $highfit["groupID"]; 171 $size = $highfit["chargeSize"]; 172 if($group == 483 // Modulated Deep Core Miner II, Modulated Strip Miner II and Modulated Deep Core Strip Miner II 173 || $group == 53 // Laser Turrets 174 || $group == 55 // Projectile Turrets 175 || $group == 74 // Hybrid Turrets 176 || ($group >= 506 && $group <= 511) // Some Missile Lauchers 177 || $group == 481 // Probe Launchers 178 || $group == 899 // Warp Disruption Field Generator I 179 || $group == 771 // Heavy Assault Missile Launchers 180 || $group == 589 // Interdiction Sphere Lauchers 181 || $group == 524 // Citadel Torpedo Launchers 182 ) 183 { 184 $found = 0; 185 if ($group == 511) { $group = 509; } // Assault Missile Lauchers uses same ammo as Standard Missile Lauchers 186 if(is_array($ammo_array[1])) 187 { 188 $i = 0; 189 while (!($found) && $i<$lenght) 190 { 191 $temp = array_shift($ammo_array[1]); 192 if (($temp["usedgroupID"] == $group) && ($temp["size"] == $size)) 193 { 194 $hiammo[]=$temp["Name"]; 195 $found = 1; 196 } 197 array_push($ammo_array[1],$temp); 198 $i++; 199 } 200 } 201 if (!($found)) 202 { 203 $hiammo[]=0; 204 } 205 } else { 206 $hiammo[]=0; 207 } 208 } 209 } 210 211 $lenght = count($ammo_array[2]); 212 if(is_array($fitting_array[2])) 213 { 214 $midammo = array(); 215 foreach ($fitting_array[2] as $midfit) 216 { 217 $group = $midfit["groupID"]; 218 if($group == 76 // Capacitor Boosters 219 || $group == 208 // Remote Sensor Dampeners 220 || $group == 212 // Sensor Boosters 221 || $group == 291 // Tracking Disruptors 222 || $group == 213 // Tracking Computers 223 || $group == 209 // Tracking Links 224 || $group == 290 // Remote Sensor Boosters 225 ) 226 { 227 $found = 0; 228 if(is_array($ammo_array[2])) 229 { 230 $i = 0; 231 while (!($found) && $i<$lenght) 232 { 233 $temp = array_shift($ammo_array[2]); 234 if ($temp["usedgroupID"] == $group) 235 { 236 $midammo[]=$temp["Name"]; 237 $found = 1; 238 } 239 array_push($ammo_array[2],$temp); 240 $i++; 241 } 242 } 243 if (!($found)) 244 { 245 $midammo[]=0; 246 } 247 } else { 248 $midammo[]=0; 249 } 250 } 51 251 } 52 252 … … 55 255 1 => "[empty high slot]", 56 256 5 => "[empty rig slot]", 57 6 => "") 257 6 => ""); 58 258 59 259 ?> … … 69 269 <td valign="top" align="center"> 70 270 <textarea class="killmail" name="killmail" cols="60" rows="30" readonly="readonly"> 71 [<?php echo $ship ->getName(); ?>, <?php echo $kll_id; ?>]271 [<?php echo $shipname; ?>, <?php echo $killtitle; ?>] 72 272 <?php 73 273 foreach ($slots as $i => $empty) … … 79 279 else 80 280 { 81 sort($fitting_array[$i]); 82 foreach ($fitting_array[$i] as $item) 281 foreach ($fitting_array[$i] as $k => $a_item) 83 282 { 283 $item = $a_item['Name']; 84 284 if ($i == 6) 85 $item .= ' x1'; 285 { 286 $item .= ' x1'; 287 } 288 elseif ($i == 1) 289 { 290 if ($hiammo[$k]) 291 { 292 $item .=','.$hiammo[$k]; 293 } 294 } 295 elseif ($i == 2) 296 { 297 if ($midammo[$k]) 298 { 299 $item .=','.$midammo[$k]; 300 } 301 } 86 302 echo $item."\n"; 87 303 } -
dev/common/home.php
r289 r343 18 18 $kslist->setYear($year); 19 19 20 if (config::get('summarytable')){ 20 21 if (config::get('public_summarytable')){ 21 22 $summarytable = new KillSummaryTablePublic($kslist); … … 31 32 $summarytable->setBreak(config::get('summarytable_rowcount')); 32 33 $html .= $summarytable->generate(); 34 } 33 35 34 36 if ($week == 1) … … 81 83 //$klist->setStartWeek($week - 1); 82 84 //$klist->setYear($year); 83 $klist->setLimit( 20);85 $klist->setLimit(config::get('killcount')); 84 86 85 87 if ($_GET['scl_id']) … … 89 91 90 92 $table = new KillListTable($klist); 91 $table->setLimit( 20);93 $table->setLimit(config::get('killcount')); 92 94 $html .= $table->generate(); 93 95 -
dev/common/includes/class.comments.php
r254 r343 10 10 11 11 $this->comments_ = array(); 12 $qry = new DBQuery( );12 $qry = new DBQuery(true); 13 13 $qry->execute("SELECT *,id FROM kb3_comments WHERE `kll_id` = '".$kll_id."' order by posttime asc"); 14 14 while ($row = $qry->getRow()) 15 15 { 16 $this->comments_[] = array('time' => $row['posttime'], 'name' => $row['name'], 'comment' => stripslashes($row['comment']), 'id' => $row['id'] );16 $this->comments_[] = array('time' => $row['posttime'], 'name' => $row['name'], 'comment' => stripslashes($row['comment']), 'id' => $row['id'], 'ip' => $row['ip']); 17 17 } 18 18 } … … 32 32 $name = slashfix(strip_tags($name)); 33 33 $qry = new DBQuery(); 34 $qry->execute("INSERT INTO kb3_comments (`kll_id`,`comment`,`name`,`posttime`) 35 VALUES ('".$this->id_."','".$comment."','".$name."','".kbdate('Y-m-d H:i:s')."')"); 36 $id = $qry->getInsertID(); 37 $this->comments_[] = array('time' => kbdate('Y-m-d H:i:s'), 'name' => $name, 'comment' => stripslashes($comment), 'id' => $id); 34 $qry->execute("INSERT INTO kb3_comments (`kll_id`,`comment`,`name`,`posttime`,`ip`) 35 VALUES ('".$this->id_."','".$comment."','".$name."','".kbdate('Y-m-d H:i:s')."','".$_SERVER["REMOTE_ADDR"]."')"); 36 37 $id = $qry->getInsertID(); 38 $this->comments_[] = array('time' => kbdate('Y-m-d H:i:s'), 'name' => $name, 'comment' => stripslashes($comment), 'id' => $id, 'ip' => $row['ip']); 38 39 39 40 // create comment_added event -
dev/common/includes/class.config.php
r325 r343 27 27 } 28 28 29 $db = new DBQuery( );29 $db = new DBQuery(true); 30 30 $db->execute('select * from kb3_config where cfg_site=\''.KB_SITE."'"); 31 31 $config = &config::_getCache(); … … 48 48 config::set('least_active', 0); 49 49 config::set('post_password', 'CHANGEME'); 50 config::set('comment_password', 'CHANGEME'); 51 config::set('cfg_memcache', 0); 52 config::set('cfg_memcache_server', 'memcached server address'); 53 config::set('cfg_memcache_port', 'memcached server port'); 54 config::set('cache_dir', 'cache/cache/'); 55 config::set('km_cache_dir', 'cache/mails/'); 50 56 } 51 57 } … … 131 137 } 132 138 139 function &getnumerical($key) 140 { 141 $cache = &config::_getCache(); 142 143 if (!isset($cache[$key])) 144 { 145 return config::defaultval($key); 146 } 147 return $cache[$key]; 148 } 133 149 function defaultval($key) 134 150 { … … 136 152 // they will be shown as set but take no space in the database 137 153 $defaults = array('summarytable_rowcount' => 8); 138 154 $defaults = array('killcount' => 50); 155 139 156 if (!isset($defaults[$key])) 140 157 { -
dev/common/includes/class.contract.php
r240 r343 668 668 if ($i == 0) 669 669 { 670 $ldata = array('losses' => $row['ships'], 'lossisk' => $row['isk'] );670 $ldata = array('losses' => $row['ships'], 'lossisk' => $row['isk'] / 1000 ); 671 671 } 672 672 else 673 673 { 674 $kdata = array('kills' => $row['ships'], 'killisk' => $row['isk'] );674 $kdata = array('kills' => $row['ships'], 'killisk' => $row['isk'] / 1000 ); 675 675 } 676 676 } -
dev/common/includes/class.db.php
r254 r343 37 37 // we internally load up the wanted object and reroute all 38 38 // object actions to it 39 function __construct() 40 { 41 if (DB_USE_QCACHE === true) 39 function __construct($forceNormal = false) 40 { 41 if (DB_USE_MEMCACHE == true && !$forceNormal) 42 { 43 $object = new DBMemCachedQuery(); 44 } 45 elseif (DB_USE_QCACHE === true && !$forceNormal) 42 46 { 43 47 $object = new DBCachedQuery(); … … 79 83 // function for this because php5 fatals if it sees 80 84 // $this = ... in the src 81 function DBQuery( )85 function DBQuery($forceNormal = false) 82 86 { 83 87 $object = &$this->getRef($this); 84 if (DB_USE_QCACHE === true) 88 if (DB_USE_MEMCACHE == true && !$forceNormal) 89 { 90 $object = new DBMemCachedQuery(); 91 } 92 elseif (DB_USE_QCACHE === true && !$forceNormal) 85 93 { 86 94 $object = new DBCachedQuery(); -
dev/common/includes/class.item.php
r320 r343 48 48 $img = IMG_URL.'/items/'.$size.'_'.$size.'/'.$this->row_['itm_icon'].'.png'; 49 49 } 50 $xp_d = config::get('fittingxp_data');51 50 if ($size == 24) 52 51 { 53 $show_style .= '_'.config::get('f ittingxp_ammo_style');54 $t_s = "2fit";55 $f_s = "ffit";56 $d_s = "dfit";57 $o_s = "ofit";52 $show_style .= '_'.config::get('fp_ammostyle'); 53 $t_s = config::get('fp_ttag'); 54 $f_s = config::get('fp_ftag'); 55 $d_s = 0; 56 $o_s = 0; 58 57 } 59 58 elseif ($size == 48) 60 59 { 61 $show_style .= '_'.config::get('f ittingxp_item_style');62 $t_s = "2fit";63 $f_s = "ffit";64 $d_s = "dfit";65 $o_s = "ofit";60 $show_style .= '_'.config::get('fp_highstyle'); 61 $t_s = config::get('fp_ttag'); 62 $f_s = config::get('fp_ftag'); 63 $d_s = config::get('fp_dtag'); 64 $o_s = config::get('fp_otag'); 66 65 } 67 66 else 68 67 { 69 68 $show_style = ""; 70 $t_s = "2tag";71 $f_s = "ftag";72 $d_s = "dtag";73 $o_s = "otag";69 $t_s = 1; 70 $f_s = config::get('kd_ftag'); 71 $d_s = config::get('kd_dtag'); 72 $o_s = config::get('kd_otag'); 74 73 75 74 } 76 75 $it_name = $this->getName(); 77 if (($this->row_['itm_techlevel'] == 5) && strstr($xp_d,$t_s)) // is a T2?76 if (($this->row_['itm_techlevel'] == 5) && $t_s) // is a T2? 78 77 { 79 78 $icon .= IMG_URL.'/items/'.$size.'_'.$size.'/t2'.$show_style.'.png'; 80 79 } 81 elseif (($this->row_['itm_techlevel'] > 5) && ($this->row_['itm_techlevel'] < 10) && strstr($xp_d,$f_s)) // is a faction item?80 elseif (($this->row_['itm_techlevel'] > 5) && ($this->row_['itm_techlevel'] < 10) && $f_s) // is a faction item? 82 81 { 83 82 $icon .= IMG_URL.'/items/'.$size.'_'.$size.'/f'.$show_style.'.png'; 84 83 } 85 elseif (($this->row_['itm_techlevel'] > 10) && strstr($it_name,"Modified") && strstr($xp_d,$o_s)) // or it's an officer?84 elseif (($this->row_['itm_techlevel'] > 10) && strstr($it_name,"Modified") && $o_s) // or it's an officer? 86 85 { 87 86 $icon .= IMG_URL.'/items/'.$size.'_'.$size.'/o'.$show_style.'.png'; 88 87 } 89 elseif (($this->row_['itm_techlevel'] > 10) && strstr($xp_d,$d_s)) // or it's just a deadspace item.88 elseif (($this->row_['itm_techlevel'] > 10) && $d_s && !(strstr($it_name,"Modified"))) // or it's just a deadspace item. 90 89 { 91 90 $icon .= IMG_URL.'/items/'.$size.'_'.$size.'/d'.$show_style.'.png'; 92 91 } 93 elseif (strstr($xp_d,$f_s) && (strstr($it_name,"Blood ") || strstr($it_name,"Sansha") || strstr($it_name,"Arch") || strstr($it_name,"Domination") || strstr($it_name,"Republic") || strstr($it_name,"Navy") || strstr($it_name,"Guardian") || strstr($it_name,"Guristas") || strstr($it_name,"Shadow"))) // finally if it's a faction should have its prefix 92 elseif ($f_s 93 && ( 94 strstr($it_name,"Blood ") 95 || strstr($it_name,"Sansha") 96 || strstr($it_name,"Arch") 97 || strstr($it_name,"Domination") 98 || strstr($it_name,"Republic") 99 || strstr($it_name,"Navy") 100 || strstr($it_name,"Guardian") 101 || strstr($it_name,"Guristas") 102 || strstr($it_name,"Shadow") 103 ) 104 ) // finally if it's a faction should have its prefix 94 105 { 95 106 $icon = IMG_URL.'/items/'.$size.'_'.$size.'/f'.$show_style.'.png'; … … 272 283 { 273 284 $temp = substr($name, strlen($name) - 2, 2); 274 if ($temp == 'XL') 285 if (strstr($name,'Mining')) 286 { 287 $a_size = 1; 288 } 289 elseif ($temp == 'XL') 275 290 { 276 291 $a_size = 4; … … 285 300 } 286 301 elseif ($temp == ' S') 287 {288 $a_size = 1;289 }290 elseif ($temp == 'II')291 {292 $a_size = 1;293 }294 elseif ($temp == ' I')295 302 { 296 303 $a_size = 1; -
dev/common/includes/class.killsummarytable.php
r289 r343 308 308 $html .= "<td class=".$kclass." align=center>".$v['kills']."</td>"; 309 309 if ($this->verbose_) 310 $html .= "<td class=".$kclass." align=center>".round($v['kills_isk']/1000000 , 2)."</td>";310 $html .= "<td class=".$kclass." align=center>".round($v['kills_isk']/1000000000, 2)."</td>"; 311 311 312 312 $html .= "<td class=".$lclass." align=center>".$v['losses']."</td>"; 313 313 if ($this->verbose_) 314 $html .= "<td class=".$lclass." align=center>".round($v['losses_isk']/1000000 , 2)."</td>";314 $html .= "<td class=".$lclass." align=center>".round($v['losses_isk']/1000000000, 2)."</td>"; 315 315 316 316 $html .= "</tr>"; … … 334 334 $html .= '<table width=100% border=0 cellspacing=2>' 335 335 .'<tr align=center><td width=51%><span align=right class="killcount">' 336 .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000 , 2).'M ISK)</span></td><td width=49%><span class="losscount">'.$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000, 2).'MISK)</span></td></tr></table>';336 .$this->tkcount_.' Ships killed ('.round($this->tkisk_/1000000000, 2).'B ISK)</span></td><td width=49%><span class="losscount">'.$this->tlcount_.' Ships lost ('.round($this->tlisk_/1000000000, 2).'B ISK)</span></td></tr></table>'; 337 337 } 338 338 -
dev/common/includes/class.page.php
r254 r343 101 101 $smarty->assign('menu', $menu->get()); 102 102 } 103 $smarty->assign('page_title', $this->title_); 103 104 //check if banner is a swf 105 $bannerExn = substr($banner,-3); 106 if (strtoupper($bannerExn) == 'SWF') 107 { 108 $smarty->assign('bannerswf', 'true'); 109 } 110 else 111 { 112 $smarty->assign('bannerswf', 'false'); 113 } 114 115 $smarty->assign('page_title', $this->title_); 104 116 105 117 $this->timeend_ = strtok(microtime(), ' ') + strtok(''); -
dev/common/includes/class.pilot.php
r337 r343 34 34 function getPortraitURL($size = 64) 35 35 { 36 36 $this->execQuery(); 37 37 //charID api readout - in work, feel free to test 38 38 if ($this->row_['plt_externalid'] == 0) … … 49 49 else 50 50 return '?a=thumb&id='.$this->row_['plt_externalid'].'&size='.$size; 51 } 52 51 } 52 53 53 function execQuery() 54 54 { -
dev/common/index.php
r316 r343 73 73 define('DB_HALTONERROR', (bool)config::get('cfg_sqlhalt')); 74 74 define('DB_USE_QCACHE', (bool)config::get('cfg_qcache')); 75 76 if (((bool)config::get('cfg_memcache')) == true && !strstr($_SERVER['REQUEST_URI'], "admin")) 77 { 78 require_once('common/includes/class.db_memcache.php'); 79 $mc = new Memcache(); 80 if(!@$mc->pconnect(config::get('cfg_memcache_server'), config::get('cfg_memcache_port'))) { 81 print "ERROR: Unable to connect to memcached server, disabling memcached. Please check your settings (server, port) and make sure the memcached server is running"; 82 define("DB_USE_MEMCACHE", false); 83 } else { 84 define("DB_USE_MEMCACHE", true); 85 } 86 } else { 87 define("DB_USE_MEMCACHE", false); 88 } 89 75 90 if (DB_USE_QCACHE) 76 91 { … … 83 98 if (config::get('cfg_corpid')) 84 99 { 85 86 87 } 88 else 89 { 90 91 100 define('CORP_ID', config::get('cfg_corpid')); 101 define('ALLIANCE_ID', 0); 102 } 103 else 104 { 105 define('CORP_ID', 0); 106 define('ALLIANCE_ID', config::get('cfg_allianceid')); 92 107 } 93 108 if (!$dir = config::get('cache_dir')) -
dev/common/kill_detail.php
r311 r343 6 6 7 7 $page = new Page('Kill details'); 8 9 if(config::get('kd_lgreen')) 10 { 11 $d_col = '#006000'; 12 } 13 else 14 { 15 $d_col = '#004000'; 16 } 17 18 if(config::get('fp_theme') == 'Black') 19 { 20 $th_dir = 'panel/black'; 21 } 22 else 23 { 24 $th_dir = 'panel'; 25 } 26 27 28 $smarty->assign('panel_style', config::get('fp_style')); 29 $smarty->assign('panel_colour', config::get('fp_theme')); 30 $smarty->assign('dropped_colour', $d_col); 31 $smarty->assign('themedir', $th_dir); 8 32 9 33 if (config::get('item_values')) … … 125 149 if (config::get('comments')) 126 150 { 127 include('comm ents.php');151 include('common/comments.php'); 128 152 $smarty->assign('comments', $comment); 129 153 } … … 139 163 $smarty->assign('ShipID', $ship->externalid_); 140 164 $smarty->assign('ClassName', $shipclass->getName()); 165 166 include_once('common/includes/class.dogma.php'); 167 168 $ssc = new dogma($ship->externalid_); 169 170 $smarty->assign_by_ref('ssc', $ssc); 141 171 142 172 if ($kill->isClassified()) … … 182 212 { 183 213 $item = $destroyed->getItem(); 214 $i_qty = $destroyed->getQuantity(); 184 215 if (config::get('item_values')) 185 216 { 186 217 $value = $destroyed->getValue(); 187 $TotalValue += $value*$ destroyed->getQuantity();218 $TotalValue += $value*$i_qty; 188 219 $formatted = $destroyed->getFormatttedValue(); 189 220 } 190 $dest_array[$destroyed->getLocationID()][] = array('Icon' => $item->getIcon(32), 'Name' => $item->getName(), 'Quantity' => $destroyed->getQuantity(), 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $item->getID(),'slotID' => $destroyed->getLocationID()); 221 $i_name = $item->getName(); 222 $i_location = $destroyed->getLocationID(); 223 $i_id = $item->getID(); 224 $i_usedgroup = $item->get_used_launcher_group($i_name); 225 $dest_array[$i_location][] = array('Icon' => $item->getIcon(32), 'Name' => $i_name, 'Quantity' => $i_qty, 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $i_id,'slotID' => $i_location); 226 if(config::get('fp_show')) 227 { // BEGIN ADDING DESTROYED ITEMS TO FITTING LAYOUT 228 if(($i_location != 4) && ($i_location != 5) && ($i_location != 6)) // NOT IN CARGO, DRONE BAY OR RIG SLOT 229 { 230 if(($i_usedgroup != 0)) // AMMO 231 { 232 if ($i_location == 1) 233 { 234 $i_ammo=$item->get_ammo_size($i_name); // GET SIZE IF IN HI SLOT 235 236 } 237 else 238 { 239 $i_ammo = 0; // NULL FOR OTHER SLOTS 240 } 241 $ammo_array[$i_location][]=array('Name'=>$i_name, 'Icon' => $item->getIcon(24), 'itemID' => $i_id, 'usedgroupID' => $i_usedgroup, 'size' => $i_ammo); 242 } 243 else // MODULES 244 { 245 for ($count = 0; $count < $i_qty; $count++) 246 { 247 if ($i_location == 1) 248 { 249 $i_charge=$item->get_used_charge_size($i_name); // GET TURRET SIZE 250 } 251 else 252 { 253 $i_charge = 0; // NULL FOR OTHER MODULES 254 } 255 $fitting_array[$i_location][]=array('Name'=>$i_name, 'Icon' => $item->getIcon(48), 'itemID' => $i_id, 'groupID' => $item->get_group_id($i_name), 'chargeSize' => $i_charge); 256 } 257 } 258 } 259 else if(($destroyed->getLocationID() == 5)) // RIG SLOT 260 { 261 for ($count = 0; $count < $i_qty; $count++) 262 { 263 $fitting_array[$i_location][]=array('Name'=>$i_name, 'Icon' => $item->getIcon(32), 'itemID' => $i_id); 264 } 265 } 266 } // END ADDING DESTROYED ITEMS TO FITTING LAYOUT 191 267 } 192 268 } … … 198 274 { 199 275 $item = $dropped->getItem(); 276 $i_qty = $dropped->getQuantity(); 200 277 if (config::get('item_values')) 201 278 { 202 279 $value = $dropped->getValue(); 203 $dropvalue += $value*$ dropped->getQuantity();280 $dropvalue += $value*$i_qty; 204 281 $formatted = $dropped->getFormatttedValue(); 205 282 } 206 $drop_array[$dropped->getLocationID()][] = array('Icon' => $item->getIcon(32), 'Name' => $item->getName(), 'Quantity' => $dropped->getQuantity(), 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $item->getID(),'slotID' => $dropped->getLocationID()); 207 } 208 } 283 $i_name = $item->getName(); 284 $i_location = $dropped->getLocationID(); 285 $i_id = $item->getID(); 286 $i_usedgroup = $item->get_used_launcher_group($i_name); 287 $drop_array[$i_location][] = array('Icon' => $item->getIcon(32), 'Name' => $i_name, 'Quantity' => $i_qty, 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $i_id,'slotID' => $i_location); 288 if(config::get('fp_show')) 289 { // BEGIN ADDING DROPPED ITEMS TO FITTING LAYOUT 290 if(($i_location != 4) && ($i_location != 6)) 291 { 292 if(($i_usedgroup != 0)) // AMMO 293 { 294 if ($i_location == 1) 295 { 296 $i_ammo=$item->get_ammo_size($i_name); // GET SIZE IF IN HI SLOT 297 298 } 299 else 300 { 301 $i_ammo = 0; // NULL FOR OTHER SLOTS 302 } 303 $ammo_array[$i_location][]=array('Name'=>$i_name, 'Icon' => $item->getIcon(24), 'itemID' => $i_id, 'usedgroupID' => $i_usedgroup, 'size' => $i_ammo); 304 } 305 else // MODULES 306 { 307 for ($count = 0; $count < $i_qty; $count++) 308 { 309 if ($i_location == 1) 310 { 311 $i_charge=$item->get_used_charge_size($i_name); // GET TURRET SIZE 312 } 313 else 314 { 315 $i_charge = 0; // NULL FOR OTHER MODULES 316 } 317 $fitting_array[$i_location][]=array('Name'=>$i_name, 'Icon' => $item->getIcon(48), 'itemID' => $i_id, 'groupID' => $item->get_group_id($i_name), 'chargeSize' => $i_charge); 318 } 319 } 320 } 321 } // END ADDING DROPPED ITEMS TO FITTING LAYOUT 322 323 } 324 } 325 if(config::get('fp_show')) 326 { // BEGIN AMMO FITTING & ITEM SORTING 327 if(is_array($fitting_array[1])) 328 { 329 foreach ($fitting_array[1] as $array_rowh) 330 { 331 $sort_by_nameh["groupID"][] = $array_rowh["groupID"]; // SORTING BY GROUP ID 332 } 333 array_multisort($sort_by_nameh["groupID"],SORT_ASC,$fitting_array[1]); 334 } 335 336 if(is_array($fitting_array[2])) 337 { 338 foreach ($fitting_array[2] as $array_rowm) 339 { 340 $sort_by_namem["groupID"][] = $array_rowm["groupID"]; // SORTING BY GROUP ID 341 } 342 array_multisort($sort_by_namem["groupID"],SORT_ASC,$fitting_array[2]); 343 } 344 345 if(is_array($fitting_array[3])) 346 { 347 foreach ($fitting_array[3] as $array_rowl) 348 { 349 $sort_by_namel["groupID"][] = $array_rowl["groupID"]; // SORTING BY GROUP ID 350 } 351 array_multisort($sort_by_namel["groupID"],SORT_ASC,$fitting_array[3]); 352 } 353 354 if(is_array($fitting_array[5])) 355 { 356 foreach ($fitting_array[5] as $array_rowr) 357 { 358 $sort_by_namer["Name"][] = $array_rowr["Name"]; // SORTING BY NAME 359 } 360 array_multisort($sort_by_namer["Name"],SORT_ASC,$fitting_array[5]); 361 } 362 363 // SORTING THINGY END 364 365 $lenght = count($ammo_array[1]); 366 $temp = array(); 367 if(is_array($fitting_array[1])) // AMMO FOR HIGH SLOTS 368 { 369 $hiammo = array(); 370 foreach ($fitting_array[1] as $highfit) 371 { 372 $group = $highfit["groupID"]; 373 $size = $highfit["chargeSize"]; 374 if($group == 483 // Modulated Deep Core Miner II, Modulated Strip Miner II and Modulated Deep Core Strip Miner II 375 || $group == 53 // Laser Turrets 376 || $group == 55 // Projectile Turrets 377 || $group == 74 // Hybrid Turrets 378 || ($group >= 506 && $group <= 511) // Some Missile Lauchers 379 || $group == 481 // Probe Launchers 380 || $group == 899 // Warp Disruption Field Generator I 381 || $group == 771 // Heavy Assault Missile Launchers 382 || $group == 589 // Interdiction Sphere Lauchers 383 || $group == 524 // Citadel Torpedo Launchers 384 ) 385 { 386 $found = 0; 387 if ($group == 511) { $group = 509; } // Assault Missile Lauchers uses same ammo as Standard Missile Lauchers 388 if(is_array($ammo_array[1])) 389 { 390 $i = 0; 391 while (!($found) && $i<$lenght) 392 { 393 $temp = array_shift($ammo_array[1]); 394 if (($temp["usedgroupID"] == $group) && ($temp["size"] == $size)) 395 { 396 $hiammo[]=array('show'=>$smarty->fetch(get_tpl('ammo')), 'type'=>$temp["Icon"]); 397 $found = 1; 398 } 399 array_push($ammo_array[1],$temp); 400 $i++; 401 } 402 } 403 if (!($found)) 404 { 405 $hiammo[]=array('show'=>$smarty->fetch(get_tpl('ammo')), 'type'=>$smarty->fetch(get_tpl('noicon'))); 406 } 407 } else { 408 $hiammo[]=array('show'=>$smarty->fetch(get_tpl('blank')), 'type'=>$smarty->fetch(get_tpl('blank'))); 409 } 410 } 411 } 412 413 $lenght = count($ammo_array[2]); 414 if(is_array($fitting_array[2])) // AMMO FOR MID SLOTS 415 { 416 $midammo = array(); 417 foreach ($fitting_array[2] as $midfit) 418 { 419 $group = $midfit["groupID"]; 420 if($group == 76 // Capacitor Boosters 421 || $group == 208 // Remote Sensor Dampeners 422 || $group == 212 // Sensor Boosters 423 || $group == 291 // Tracking Disruptors 424 || $group == 213 // Tracking Computers 425 || $group == 209 // Tracking Links 426 || $group == 290 // Remote Sensor Boosters 427 ) 428 { 429 $found = 0; 430 if(is_array($ammo_array[2])) 431 { 432 $i = 0; 433 while (!($found) && $i<$lenght) 434 { 435 $temp = array_shift($ammo_array[2]); 436 if ($temp["usedgroupID"] == $group) 437 { 438 $midammo[]=array('show'=>$smarty->fetch(get_tpl('ammo')), 'type'=>$temp["Icon"]); 439 $found = 1; 440 } 441 array_push($ammo_array[2],$temp); 442 $i++; 443 } 444 } 445 if (!($found)) 446 { 447 $midammo[]=array('show'=>$smarty->fetch(get_tpl('ammo')), 'type'=>$smarty->fetch(get_tpl('noicon'))); 448 } 449 } else { 450 $midammo[]=array('show'=>$smarty->fetch(get_tpl('blank')), 'type'=>$smarty->fetch(get_tpl('blank'))); 451 } 452 } 453 } 454 } // END FITTING PANEL AMMO THINGY 209 455 210 456 if ($TotalValue >= 0) … … 226 472 $smarty->assign_by_ref('dropped', $drop_array); 227 473 $smarty->assign_by_ref('slots', $slot_array); 474 $smarty->assign_by_ref('fitting_high', $fitting_array[1]); 475 $smarty->assign_by_ref('fitting_med', $fitting_array[2]); 476 $smarty->assign_by_ref('fitting_low', $fitting_array[3]); 477 $smarty->assign_by_ref('fitting_rig', $fitting_array[5]); 478 $smarty->assign_by_ref('fitting_ammo_high', $hiammo); 479 $smarty->assign_by_ref('fitting_ammo_mid', $midammo); 228 480 $smarty->assign('ItemValue', $Formatted); 229 481 $smarty->assign('DropValue', $dropvalue); … … 231 483 $smarty->assign('TotalLoss', $TotalLoss); 232 484 485 $hicount = count($fitting_array[1]); 486 $medcount = count($fitting_array[2]); 487 $lowcount = count($fitting_array[3]); 488 489 $smarty->assign('hic', $hicount); 490 $smarty->assign('medc', $medcount); 491 $smarty->assign('lowc', $lowcount); 492 233 493 $menubox = new Box("Menu"); 234 494 $menubox->setIcon("menu-item.gif"); 235 495 $menubox->addOption("caption", "View"); 236 496 $menubox->addOption("link", "Killmail", "javascript:sndReq('index.php?a=kill_mail&kll_id=".$kill->getID()."');ReverseContentDisplay('popup')"); 497 if (config::get('kd_EFT')) // CHECKS IF EFT EXPORT IS ENABLED 498 { 499 $menubox->addOption("link", "EFT Fitting", "javascript:sndReq('index.php?a=eft_fitting&kll_id=".$kill->getID()."');ReverseContentDisplay('popup')"); 500 } 237 501 if ($kill->relatedKillCount() > 1 || $kill->relatedLossCount() > 1) 238 502 { … … 243 507 $menubox->addOption("caption", "Admin"); 244 508 $menubox->addOption("link", "Delete", "javascript:openWindow('?a=admin_kill_delete&kll_id=".$kill->getID()."', null, 420, 300, '' );"); 245 509 if (isset($_GET['view']) && $_GET['view'] == 'FixSlot') 246 510 { 247 511 $menubox->addOption("link", "Adjust Values", "?a=kill_detail&kll_id=".$kill->getID().""); … … 251 515 $menubox->addOption("link", "Fix Slots", "?a=kill_detail&kll_id=".$kill->getID()."&view=FixSlot"); 252 516 } 253 254 517 } 255 518 $page->addContext($menubox->generate()); … … 272 535 } 273 536 537 274 538 $html = $smarty->fetch(get_tpl('kill_detail')); 275 539 $page->setContent($html); -
dev/common/kill_related.php
r289 r343 21 21 $system = new SolarSystem($rrow['kll_system_id']); 22 22 23 // now we get all kills in that system for +-1 2hours23 // now we get all kills in that system for +-1 hours 24 24 $query = 'SELECT kll.kll_timestamp AS ts FROM kb3_kills kll WHERE kll.kll_system_id='.$rrow['kll_system_id'].' 25 AND kll.kll_timestamp <= date_add( \''.$rrow['kll_timestamp'].'\', INTERVAL \'1 2\' HOUR )26 AND kll.kll_timestamp >= date_sub( \''.$rrow['kll_timestamp'].'\', INTERVAL \'1 2\' HOUR )25 AND kll.kll_timestamp <= date_add( \''.$rrow['kll_timestamp'].'\', INTERVAL \'1\' HOUR ) 26 AND kll.kll_timestamp >= date_sub( \''.$rrow['kll_timestamp'].'\', INTERVAL \'1\' HOUR ) 27 27 ORDER BY kll.kll_timestamp ASC'; 28 28 $qry = new DBQuery(); … … 414 414 $html .= "<td class=kb-table-cell width=180><b>Kills:</b></td><td class=kl-kill>".$kill_summary->getTotalKills()."</td></tr>"; 415 415 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$kill_summary->getTotalLosses()."</td></tr>"; 416 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000 , 2)."M</td></tr>";417 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000 , 2)."M</td></tr>";416 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000000, 2)."B - ".round($kill_summary->getTotalKillISK()/1000000, 2)."M</td></tr>"; 417 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000000, 2)."B - ".round($kill_summary->getTotalLossISK()/1000000, 2)."M</td></tr>"; 418 418 if ($kill_summary->getTotalKillISK()) 419 419 { -
dev/common/kills.php
r323 r343 46 46 involved::load($kslist,'kill'); 47 47 48 if (config::get('summarytable')){ 48 49 if (config::get('public_summarytable')){ 49 50 $summarytable = new KillSummaryTablePublic($kslist); … … 59 60 $summarytable->setBreak(config::get('summarytable_rowcount')); 60 61 $html .= $summarytable->generate(); 62 } 61 63 62 64 $klist = new KillList(); -
dev/common/losses.php
r323 r343 53 53 involved::load($lslist,'loss'); 54 54 55 if (config::get('summarytable')){ 55 56 $summarytable = new KillSummaryTable($klist, $lslist); 56 57 $summarytable->setBreak(config::get('summarytable_rowcount')); 57 58 $html .= $summarytable->generate(); 59 } 60 58 61 // $html .= "<table width=\"99%\" align=center><tr><td class=weeknav align=left>"; 59 62 // if ( $week != kbdate( "W" ) ) -
dev/common/pilot_detail.php
r289 r343 45 45 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Real kills:</b></td><td class=kl-kill>".$tklist->getCount()."</td></tr>"; 46 46 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$llist->getCount()."</td></tr>"; 47 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($klist->getISK()/1000000,2)."M</td></tr>"; 48 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($llist->getISK()/1000000,2)."M</td></tr>"; 47 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($klist->getISK()/1000000000,2)."B</td></tr>"; 48 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($llist->getISK()/1000000000,2)."B</td></tr>"; 49 50 //Pilot Efficiency Mod Begin (K Austin) 51 52 if ($tklist->getCount() == 0){ 53 $pilot_survival = 100; 54 $pilot_efficiency = 0; 55 } 56 else{ 57 $pilot_survival = round($llist->getCount() / ($tklist->getCount() + $llist->getCount()) * 100,2); 58 $pilot_efficiency = round(($klist->getISK() / ($klist->getISK() + $llist->getISK())) * 100,2); 59 } 60 61 //PE MOD addon (C Berry) 62 $half = 50.0; 63 if ($pilot_survival >= $half) { $ps_color = "#00AA00"; } 64 else { $ps_color = "#AA0000"; } 65 66 if ($pilot_efficiency < $half) { $pe_color = "#AA0000"; } 67 else { $pe_color = "#00AA00"; } 68 69 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Chance of enemy survival:</b></td><td class=kb-table-cell><b><span style=\"color:" .$ps_color .";\">".$pilot_survival ."%</span></b></td></tr>"; 70 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell></td><td class=kb-table-cell><b>Pilot Efficiency (ISK):</b></td><td class=kb-table-cell><b><span style=\"color:" .$pe_color .";\">".$pilot_efficiency ."%</span></b></td></tr>"; 71 72 //Pilot Efficiency Mod End 49 73 50 74 $html .= "</td></tr>"; -
dev/install/config.data
r254 r343 1 1 comments 1 2 2 comments_count 1 3 comments_pw 03 comments_pw 1 4 4 filter_apply 0 5 5 filter_date 0 … … 7 7 mods_active signature_generator 8 8 post_password CHANGEME 9 comment_password CHANGEME 9 10 adapt_items 0 10 11 auto_reinforced 0 … … 41 42 show_standing 1 42 43 show_standings 0 43 style_banner default 44 style_banner default.jpg 44 45 style_name default 45 46 summarytable_summary 1 … … 47 48 user_regdisabled 1 48 49 user_showmenu 0 50 killcount 25 51 summarytable_rowcount 10 52 cfg_memcache 0 53 cfg_memcache_server 0.0.0.0 54 cfg_memcache_port 0 55 cache_dir cache/cache/ 56 km_cache_dir cache/mails/ 57 cfg_qcache 0 58 summarytable 1 -
dev/mods/history/about.php
r336 r343 6 6 // i store the names here for an easy edit 7 7 $developer = array('exi (Lead Developer)', 8 'knifee (Developer)', 9 'Ralle030583 (Developer)', 10 'Andrew Gunn (Siteadmin)', 11 'Ganja (Fluff girl)'); 8 'Beansman (Developer)', 9 'Ralle030583 (Developer)'); 12 10 13 11 $contributor = array('JaredC01', … … 15 13 'Mitchman', 16 14 'Coni', 17 ' beansman',18 'FriedRoadKill',19 'bunjiboys');15 'FriedRoadKill', 16 'bunjiboys', 17 'Karbowiak'); 20 18 sort($contributor); 21 19 -
dev/mods/history/history.xml
r342 r343 2 2 <history> 3 3 <changeset> 4 <rev>343</rev> 5 <author>karbowiak</author> 6 <date>17.10.2008</date> 7 <comment> 8 <type>FIX</type> 9 <text> 10 Fixed Memcached caching on Comments and the Admin panel (so it dont cache those things) 11 </text> 12 </comment> 13 <comment> 14 <type>ADD</type> 15 <text> 16 Changed Millions to Billions 17 </text> 18 </comment> 19 <comment> 20 <type>ADD</type> 21 <text> 22 Added seperate password for comments 23 </text> 24 </comment> 25 <comment> 26 <type>FIX</type> 27 <text> 28 Fixed banner types (SFV is now working) 29 </text> 30 </comment> 31 <comment> 32 <type>ADD</type> 33 <text> 34 Integrated Fitting Mod 35 </text> 36 </comment> 37 <comment> 38 <type>UPD</type> 39 <text> 40 Gave appearance related stuff own menu under admin 41 </text> 42 </comment> 43 <comment> 44 <type>ADD</type> 45 <text> 46 Possible to turn on/off Summarytables 47 </text> 48 </comment> 49 <comment> 50 <type>ADD</type> 51 <text> 52 Capability to change ammount of shown kills/losses on home, kills and losses 53 </text> 54 </comment> 55 <comment> 56 <type>ADD</type> 57 <text> 58 Memcached integrated into KB Core 59 </text> 60 </comment> 61 <comment> 62 <type>ADD</type> 63 <text> 64 Moved API Mod and Feed Syndication into KB Core and Added Cron Scripts 65 </text> 66 </comment> 67 <comment> 68 <type>UPD</type> 69 <text> 70 Moved Banner location from '/img/logo/' to '/banner/' 71 </text> 72 </comment> 73 <comment> 74 <type>FIX</type> 75 <text> 76 Fixed bug on Comment box (Where it'd show odd on Firefox under Linux) (bunjiboys) 77 </text> 78 </comment> 79 </changeset> 80 <changeset> 4 81 <rev>342</rev> 5 82 <author>beans</author> … … 8 85 <type>UPD</type> 9 86 <text> 10 11 12 </comment> 13 14 87 Fixed some typos and leftover debug in ralles code 88 </text> 89 </comment> 90 </changeset> 91 <changeset> 15 92 <rev>341</rev> 16 93 <author>ralle</author> … … 19 96 <type>UPD</type> 20 97 <text> 21 22 </text> 23 </comment> 24 25 <changeset>98 InnoDB Engine is now chooseable in installer (inclusive server check for selected Engine) 99 </text> 100 </comment> 101 </changeset> 102 <changeset> 26 103 <rev>340</rev> 27 104 <author>beans</author> … … 98 175 </changeset> 99 176 <changeset> 100 <rev>329</rev>101 <author>exi</author>102 <date>16.08.2008</date>103 <comment>104 <type>UPD</type>105 <text>106 Beta support for mixed kills in one list, stil needs template editing though107 </text>108 </comment>109 </changeset>110 <changeset>111 <rev>328</rev>112 <author>exi</author>113 <date>22.06.2008</date>114 <comment>115 <type>FIX</type>116 <text>117 Parser fix for german killmails from Haka118 </text>119 </comment>120 </changeset>121 <changeset>122 <rev>327</rev>123 <author>exi</author>124 <date>12.06.2008</date>125 <comment>126 <type>FIX</type>127 <text>128 Emergency fix for new killmail format129 </text>130 </comment>131 </changeset>132 <changeset>133 <rev>337</rev>134 <author>beans</author>135 <date>09.10.2008</date>136 <comment>137 <type>UPD</type>138 <text>139 Killboard fetches character id from api140 </text>141 </comment>142 </changeset>143 <changeset>144 177 <rev>326</rev> 145 178 <author>ralle030583</author> -
dev/mods/known_members/corp_detail.php
r325 r343 54 54 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Kills:</b></td><td class=kl-kill>".$kill_summary->getTotalKills()."</td></tr>"; 55 55 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Losses:</b></td><td class=kl-loss>".$kill_summary->getTotalLosses()."</td></tr>"; 56 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000 , 2)."M</td></tr>";57 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000 , 2)."M</td></tr>";56 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage done (ISK):</b></td><td class=kl-kill>".round($kill_summary->getTotalKillISK()/1000000000, 2)."B</td></tr>"; 57 $html .= "<tr class=kb-table-row-even><td class=kb-table-cell><b>Damage received (ISK):</b></td><td class=kl-loss>".round($kill_summary->getTotalLossISK()/1000000000, 2)."B</td></tr>"; 58 58 if ($kill_summary->getTotalKillISK()) 59 59 { -
dev/style/blue/style.css
r324 r343 257 257 { 258 258 border: 1px solid #333333; 259 }260 261 td.item-dropped-icon262 {263 border: 1px solid green;264 259 } 265 260 -
dev/style/darkred/style.css
r324 r343 5 5 padding: 0px; 6 6 height: 100%; 7 background-color: # 222222;7 background-color: #000000; 8 8 } 9 9 … … 33 33 height: 100%; 34 34 35 border-left: 1px solid #555555;36 border-right: 1px solid #555555;37 border-top: 0px solid #555555;38 border-bottom: 0px solid #555555;39 35 padding: 0px; 40 36 border-collapse: separate; … … 269 265 { 270 266 border: 1px solid #333333; 271 }272 273 td.item-dropped-icon274 {275 border: 1px solid green;276 267 } 277 268 -
dev/style/default/style.css
r324 r343 257 257 { 258 258 border: 1px solid #333333; 259 }260 261 td.item-dropped-icon262 {263 border: 1px solid green;264 259 } 265 260 -
dev/style/revelations/style.css
r324 r343 261 261 { 262 262 border: 1px solid #333333; 263 }264 265 td.item-dropped-icon266 {267 border: 1px solid green;268 263 } 269 264 -
dev/templates/block_comments.tpl
r213 r343 13 13 <p>{$comments[i].comment}</p> 14 14 {if $page->isAdmin()} 15 <a href="javascript:openWindow('?a=admin_comments_delete&c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a> 16 {/if} 15 <a href="javascript:openWindow('?a=admin_comments_delete&c_id={$comments[i].id}', null, 480, 350, '' );">Delete Comment</a> 16 <span style="position:absolute; right: 0px;"><u>Posters IP:{$comments[i].ip}</u></span> 17 {/if} 17 18 </td> 18 19 </tr> … … 20 21 <tr> 21 22 <td align="center"><form id="postform" name="postform" method="post" action=""> 22 <textarea class="comment" name="comment" cols="55" rows="5" wrap="PHYSICAL" onkeyup="limitText(this.form.comment,document.getElementById('countdown'),200);" onkeypress="limitText(this.form.comment,document.getElementById('countdown'),200);"></textarea>23 <textarea class="comment" name="comment" cols="55" rows="5" wrap="PHYSICAL" style="width: 340px;" onkeyup="limitText(this.form.comment,document.getElementById('countdown'),200);" onkeypress="limitText(this.form.comment,document.getElementById('countdown'),200);"></textarea> 23 24 </td> 24 25 </tr> -
dev/templates/contractlisttable.tpl
r188 r343 6 6 {/if} 7 7 <td class="kb-table-cell" width="50" align="center">Kills</td> 8 <td class="kb-table-cell" width="70" align="center">ISK ( M)</td>8 <td class="kb-table-cell" width="70" align="center">ISK (B)</td> 9 9 <td class="kb-table-cell" width="50" align="center">Losses</td> 10 <td class="kb-table-cell" width="70" align="center">ISK ( M)</td>10 <td class="kb-table-cell" width="70" align="center">ISK (B)</td> 11 11 <td class="kb-table-cell" width="70" align="center" colspan=2>Efficiency</td> 12 12 </tr> -
dev/templates/index.tpl
r324 r343 25 25 <td valign="top" height="100%" style="height: 100%"> 26 26 <div id="header"> 27 {if $bannerswf=='true'} 28 <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="1000" HEIGHT="200" id="{$banner}" ALIGN=""> 29 <PARAM NAME=movie VALUE="{$img_url}/logo/{$banner}"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=black> <EMBED src="{$banner}" quality=high bgcolor=black WIDTH="1000" HEIGHT="200" NAME="{$banner}" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> 30 {else} 27 31 {if $banner_link} 28 32 <a href="{$banner_link}"> 29 < img src="{$img_url}/logo/{$banner}.jpg" border="0">33 <a href="?a=home"><img src="banner/{$banner}" border="0"></a> 30 34 </a> 31 35 {else} 32 <img src="{$img_url}/logo/{$banner}.jpg" border="0"> 36 <a href="?a=home"><img src="banner/{$banner}" border="0"></a> 37 {/if} 33 38 {/if} 34 39 </div> … … 52 57 {/if} 53 58 </tr></table> 54 {if $ profile}59 {if $cfg_profile} 55 60 <table class="kb-subtable" width="99%" border="0"> 56 61 <tr><td height="100%" align="right" valign="bottom">{$profile_sql} querys{if $profile_sql_cached} (+{$profile_sql_cached} cached) {/if} {$profile_time}s</td></tr> -
dev/templates/invtype_item.tpl
r254 r343 48 48 <td class="kb-table-cell"><b>{$key.displayName}</b></td> 49 49 <td class="kb-table-cell" align="right">{if $key.unit == 'typeID'}<a href="?a=invtype&id={$key.value}">{$item->resolveTypeID($key.value)}</a> 50 {elseif $key.unit == 'groupID'} {$item->resolveGroupID($key.value)}50 {elseif $key.unit == 'groupID'}<a href="?a=groupdb&id={$key.value}">{$item->resolveGroupID($key.value)}</a> 51 51 {elseif $key.unit == 'attributeID'}{$item->resolveAttributeID($key.value)} 52 52 {else}{$key.value} {$key.unit}{/if}</td> -
dev/templates/kill_detail.tpl
r324 r343 1 1 {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"} 2 <div class=block-header>Victim/Quick Info</div> 2 3 <table cellpadding=0 cellspacing=1 border=0> 3 4 <tr> 4 5 <td width=360 align=left valign=top><table class=kb-table width=360 cellpadding=0 cellspacing=1 border=0> 5 6 <tr class= {cycle name=ccl}> 6 <td rowspan=3 width="64"><img src="{$VictimPortrait}" border="0" width="64" heigth="64"></td> 7 <td rowspan=4 width="64"><a href="{$VictimCorpURL}"><img src="{$VictimPortrait}" border="0" width="64" heigth="64"></a></td> 8 <td width="64" heigth="64" rowspan=4><a href="?a=invtype&id={$ShipID}"><img src="{$VictimShipImg}" border="0" width="64" heigth="64"></a></td> 7 9 <td class=kb-table-cell width=64><b>Victim:</b></td> 8 10 <td class=kb-table-cell><b><a href="{$VictimURL}">{$VictimName}</a></b></td> … … 13 15 </tr> 14 16 <tr class={cycle name=ccl}> 15 <td class=kb-table-cell width=64><b>Alliance:</b></td> 16 <td class=kb-table-cell><b><a href="{$VictimAllianceURL}">{$VictimAllianceName}</a></b></td> 17 {if $config->get('faction')} 18 <td class=kb-table-cell width=64><b>Faction:</b></td> 19 <td class=kb-table-cell><b>{$VictimFaction}</b></td> 20 {else} 21 <td class=kb-table-cell width=64><b>Alliance:</b></td> 22 <td class=kb-table-cell><b><a href="{$VictimAllianceURL}">{$VictimAllianceName}</a></b></td> 23 {/if} 24 </tr> 25 <tr class={cycle name=ccl}> 26 <td class=kb-table-cell><b>Ship:</b></td> 27 <td class=kb-table-cell><b><a href="?a=invtype&id={$ShipID}">{$ShipName}</a></b> ({$ClassName})</td> 17 28 </tr> 18 29 </table> 30 31 <!--MapMod --> 32 {if $loc_active} 33 {if $config->get('map_mod_killdet_active') } 34 <br /> 35 <div class="block-header">Location</div> 36 <table class="kb-table" border="0" cellspacing="1" width="360"> 37 <tr><td align="center"> 38 <img src="map.php?mode=sys&sys_id={$SystemID}&size=300" border="0" /> 39 <br /> 40 </td></tr></table> 41 <br /> 42 {/if} 43 {/if} 44 <!--End MapMod --> 45 19 46 <div class=block-header>Involved parties</div> 20 47 <table class=kb-table width=360 border=0 cellspacing="1"> 21 48 {foreach from=$involved key=key item=i} 22 49 <tr class={cycle name=ccl}> 23 <td rowspan=5 width="64">< img {if $i.FB == "true"}class=finalblow{/if} height="64" width="64" src="{$i.portrait}" border="0"></td>24 <td rowspan=5 width="64">< img {if $i.FB == "true"}class=finalblow{/if} height="64" width="64" src="{$i.shipImage}" border="0"></td>25 <td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;"><a href="{$i.PilotURL}"> {$i.PilotName}</a></td>50 <td rowspan=5 width="64"><a href="{$i.PilotURL}"><img {if $i.FB == "true"}class=finalblow{/if} height="64" width="64" src="{$i.portrait}" border="0"></a></td> 51 <td rowspan=5 width="64"><a href="?a=invtype&id={$i.ShipID}"><img {if $i.FB == "true"}class=finalblow{/if} height="64" width="64" src="{$i.shipImage}" border="0"></a></td> 52 <td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;"><a href="{$i.PilotURL}"><b>{$i.PilotName} {if $i.FB == "true"}(Final Blow){/if}</b></a></td> 26 53 </tr> 27 54 <tr class={cycle name=ccl}> … … 45 72 </td> 46 73 <td width=50> </td> 47 <td align=left valign=top width=360><table class=kb-table width=360 cellspacing="1"> 48 <tr class={cycle name=ccl}> 49 <td width="64" heigth="64" rowspan=3><img src="{$VictimShipImg}" width="64" heigth="64"></td> 50 <td class=kb-table-cell><b>Ship:</b></td> 51 <td class=kb-table-cell><b><a href="?a=invtype&id={$ShipID}">{$ShipName}</a></b> ({$ClassName})</td> 52 </tr> 74 <td align=left valign=top width=398><table class=kb-table width=398 cellspacing="1"> 53 75 <tr class={cycle name=ccl}> 54 76 <td class=kb-table-cell><b>Location:</b></td> … … 59 81 <td class=kb-table-cell>{$TimeStamp}</td> 60 82 </tr> 83 <tr class={cycle name=ccl}> 84 <td class=kb-table-cell><b>Total ISK Loss:</b></td> 85 <td class=kb-table-cell>{$TotalLoss}</td> 86 </tr> 87 <tr class={cycle name=ccl}> 88 <td class=kb-table-cell><b>Total Damage Taken:</b></td> 89 <td class=kb-table-cell>{$VictimDamageTaken|number_format}</td> 90 </tr> 61 91 </table> 62 92 63 <div class="block-header">Ship details</div> 64 <table class="kb-table" width="360" border="0" cellspacing="1"> 93 <br /> 94 95 {if $config->get('fp_show')} 96 <div id="fitting" style="position:relative; height:398px; width:398px; background-image:url({$img_url}/{$themedir}/{$panel_style}.png)" name="fitting"> 97 <div id="high0" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 98 <img src="{$img_url}/{$themedir}/{$ssc->attrib.hiSlots.value}h.gif" border="0"></div> 99 <div id="highc" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 100 <img src="{$img_url}/{$themedir}/{$hic}ch.gif" border="0"></div> 101 <div id="mid0" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 102 <img src="{$img_url}/{$themedir}/{$ssc->attrib.medSlots.value}m.gif" border="0"></div> 103 <div id="midx" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 104 <img src="{$img_url}/{$themedir}/{$medc}cm.gif" border="0"></div> 105 <div id="low0" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 106 <img src="{$img_url}/{$themedir}/{$ssc->attrib.lowSlots.value}l.gif" border="0"></div> 107 <div id="lowx" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 108 <img src="{$img_url}/{$themedir}/{$lowc}cl.gif" border="0"></div> 109 <div id="rig0" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 110 <img src="{$img_url}/{$themedir}/{$ssc->attrib.rigSlots.value}r.gif" border="0"></div> 111 112 <div id="mask" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 113 <img border="0" style="position:absolute; height="398" width="398" filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 114 src="{$img_url}/{$themedir}/{$panel_colour}.png", sizingMethod='image');"></div> 115 116 <div id="highx" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 117 <img src="{$img_url}/{$themedir}/{$hic}ph.gif" border="0"></div> 118 <div id="high1" style="position:absolute; left:40px; top:278px; width:48px; height:48px; z-index:1;">{$fitting_high.0.Icon}</div> 119 <div id="high1a" style="position:absolute; left:63px; top:304px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.0.show}</div> 120 <div id="high1l" style="position:absolute; left:67px; top:308px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.0.type}</div> 121 <div id="high2" style="position:absolute; left:9px; top:180px; width:48px; height:48px; z-index:1;">{$fitting_high.1.Icon}</div> 122 <div id="high2a" style="position:absolute; left:18px; top:209px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.1.show}</div> 123 <div id="high2l" style="position:absolute; left:22px; top:213px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.1.type}</div> 124 <div id="high3" style="position:absolute; left:40px; top:83px; width:48px; height:48px; z-index:1;">{$fitting_high.2.Icon}</div> 125 <div id="high3a" style="position:absolute; left:36px; top:109px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.2.show}</div> 126 <div id="high3l" style="position:absolute; left:40px; top:113px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.2.type}</div> 127 <div id="high4" style="position:absolute; left:124px; top:22px; width:48px; height:48px; z-index:1;">{$fitting_high.3.Icon}</div> 128 <div id="high4a" style="position:absolute; left:113px; top:38px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.3.show}</div> 129 <div id="high4l" style="position:absolute; left:117px; top:42px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.3.type}</div> 130 <div id="high5" style="position:absolute; left:227px; top:22px; width:48px; height:48px; z-index:1;">{$fitting_high.4.Icon}</div> 131 <div id="high5a" style="position:absolute; left:255px; top:38px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.4.show}</div> 132 <div id="high5l" style="position:absolute; left:259px; top:42px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.4.type}</div> 133 <div id="high6" style="position:absolute; left:310px; top:83px; width:48px; height:48px; z-index:1;">{$fitting_high.5.Icon}</div> 134 <div id="high6a" style="position:absolute; left:330px; top:110px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.5.show}</div> 135 <div id="high6l" style="position:absolute; left:334px; top:114px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.5.type}</div> 136 <div id="high7" style="position:absolute; left:342px; top:180px; width:48px; height:48px; z-index:1;">{$fitting_high.6.Icon}</div> 137 <div id="high7a" style="position:absolute; left:348px; top:210px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.6.show}</div> 138 <div id="high7l" style="position:absolute; left:352px; top:214px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.6.type}</div> 139 <div id="high8" style="position:absolute; left:310px; top:278px; width:48px; height:48px; z-index:1;">{$fitting_high.7.Icon}</div> 140 <div id="high8a" style="position:absolute; left:305px; top:302px; width:32px; height:32px; z-index:2;">{$fitting_ammo_high.7.show}</div> 141 <div id="high8l" style="position:absolute; left:309px; top:306px; width:24px; height:24px; z-index:2;">{$fitting_ammo_high.7.type}</div> 142 143 144 <div id="midx" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 145 <img src="{$img_url}/{$themedir}/{$medc}pm.gif" border="0"></div> 146 <div id="mid1" style="position:absolute; left:76px; top:253px; width:48px; height:48px; z-index:1;">{$fitting_med.0.Icon}</div> 147 <div id="mid1a" style="position:absolute; left:100px; top:277px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.0.show}</div> 148 <div id="mid1l" style="position:absolute; left:104px; top:281px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.0.type}</div> 149 <div id="mid2" style="position:absolute; left:52px; top:180px; width:48px; height:48px; z-index:1;">{$fitting_med.1.Icon}</div> 150 <div id="mid2a" style="position:absolute; left:65px; top:210px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.1.show}</div> 151 <div id="mid2l" style="position:absolute; left:69px; top:214px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.1.type}</div> 152 <div id="mid3" style="position:absolute; left:77px; top:108px; width:48px; height:48px; z-index:1;">{$fitting_med.2.Icon}</div> 153 <div id="mid3a" style="position:absolute; left:74px; top:136px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.2.show}</div> 154 <div id="mid4l" style="position:absolute; left:78px; top:140px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.2.type}</div> 155 <div id="mid4" style="position:absolute; left:138px; top:66px; width:48px; height:48px; z-index:1;">{$fitting_med.3.Icon}</div> 156 <div id="mid4a" style="position:absolute; left:124px; top:81px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.3.show}</div> 157 <div id="mid4l" style="position:absolute; left:128px; top:85px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.3.type}</div> 158 <div id="mid5" style="position:absolute; left:213px; top:66px; width:48px; height:48px; z-index:1;">{$fitting_med.4.Icon}</div> 159 <div id="mid5a" style="position:absolute; left:241px; top:81px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.4.show}</div> 160 <div id="mid5l" style="position:absolute; left:245px; top:85px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.4.type}</div> 161 <div id="mid6" style="position:absolute; left:274px; top:108px; width:48px; height:48px; z-index:1;">{$fitting_med.5.Icon}</div> 162 <div id="mid6a" style="position:absolute; left:292px; top:137px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.5.show}</div> 163 <div id="mid6l" style="position:absolute; left:296px; top:141px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.5.type}</div> 164 <div id="mid7" style="position:absolute; left:298px; top:180px; width:48px; height:48px; z-index:1;">{$fitting_med.6.Icon}</div> 165 <div id="mid7a" style="position:absolute; left:302px; top:210px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.6.show}</div> 166 <div id="mid7l" style="position:absolute; left:306px; top:214px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.6.type}</div> 167 <div id="mid8" style="position:absolute; left:275px; top:253px; width:48px; height:48px; z-index:1;">{$fitting_med.7.Icon}</div> 168 <div id="mid8a" style="position:absolute; left:267px; top:276px; width:32px; height:32px; z-index:2;">{$fitting_ammo_mid.7.show}</div> 169 <div id="mid8l" style="position:absolute; left:271px; top:280px; width:24px; height:24px; z-index:2;">{$fitting_ammo_mid.7.type}</div> 170 171 172 <div id="lowx" style="position:absolute; left:0px; top:0px; width:398px; height:398px; z-index:0;"> 173 <img src="{$img_url}/{$themedir}/{$lowc}pl.gif" border="0"></div> 174 <div id="low1" style="position:absolute; left:114px; top:226px; width:48px; height:48px; z-index:1;">{$fitting_low.0.Icon}</div> 175 <div id="low2" style="position:absolute; left:98px; top:180px; width:48px; height:48px; z-index:1;">{$fitting_low.1.Icon}</div> 176 <div id="low3" style="position:absolute; left:114px; top:135px; width:48px; height:48px; z-index:1;">{$fitting_low.2.Icon}</div> 177 <div id="low4" style="position:absolute; left:151px; top:110px; width:48px; height:48px; z-index:1;">{$fitting_low.3.Icon}</div> 178 <div id="low5" style="position:absolute; left:198px; top:110px; width:48px; height:48px; z-index:1;">{$fitting_low.4.Icon}</div> 179 <div id="low6" style="position:absolute; left:236px; top:135px; width:48px; height:48px; z-index:1;">{$fitting_low.5.Icon}</div> 180 <div id="low7" style="position:absolute; left:250px; top:180px; width:48px; height:48px; z-index:1;">{$fitting_low.6.Icon}</div> 181 <div id="low8" style="position:absolute; left:236px; top:226px; width:48px; height:48px; z-index:1;">{$fitting_low.7.Icon}</div> 182 183 184 <div id="rig1" style="position:absolute; left:66px; top:355px; width:32px; height:32px; z-index:1;">{$fitting_rig.0.Icon}</div> 185 <div id="rig2" style="position:absolute; left:100px; top:355px; width:32px; height:32px; z-index:1;">{$fitting_rig.1.Icon}</div> 186 <div id="rig3" style="position:absolute; left:134px; top:355px; width:32px; height:32px; z-index:1;">{$fitting_rig.2.Icon}</div> 187 </div> 188 {/if} 189 190 <div class="block-header">Ship details</div> 191 <table class="kb-table" width="398" border="0" cellspacing="1"> 65 192 {foreach from=$slots item=slot key=slotindex} 66 193 {* set to true to show empty slots *} … … 158 285 <td align="right">{$VictimDamageTaken|number_format}</td> 159 286 </tr> 160 <tr class={cycle name=ccl}> 287 <tr> 288 <tr class={cycle name=ccl}> 161 289 <td colspan="3"><div align="right"><strong>Total Module Loss:</strong></div></td> 162 290 <td align="right">{$ItemValue}</td> 163 291 </tr> 164 <tr class= {cycle name=ccl}kb-table-row-dropped">292 <tr class="kb-table-row-dropped"> 165 293 <td colspan="3"><div align="right"><strong>Total Module Drop:</strong></div></td> 166 294 <td align="right">{$DropValue}</td> 167 295 </tr> 168 <tr class={cycle name=ccl}> 296 <tr> 297 <tr class={cycle name=ccl}> 169 298 <td colspan="3"><div align="right"><strong>Ship Loss:</strong></div></td> 170 299 <td align="right">{$ShipValue}</td> 171 300 </tr> 172 <tr class= {cycle name=ccl}>301 <tr class="kb-table-row-dropped"> 173 302 <td colspan="3"><div align="right"><strong>Total Loss:</strong></div></td> 174 303 <td align="right">{$TotalLoss}</td> -
dev/templates/killlisttable.tpl
r326 r343 33 33 {/if} 34 34 {/if} 35 <td width="200" class="kb-table-cell"><b>{$k.victim}</b><br/>{$k.victimcorp|truncate:30}</td> 35 {if $config->get('corpalliance-name')} 36 {if $k.victimalliancename != "None"} 37 <td width="250" class="kb-table-cell"><b>{$k.victim}</b><br/><b>Alliance:</b> {$k.victimalliancename|truncate:30}</td> 38 {else} 39 <td width="250" class="kb-table-cell"><b>{$k.victim}</b><br/><b>Corp:</b> {$k.victimcorp|truncate:30}</td> 40 {/if} 41 {else} 42 <td width="250" class="kb-table-cell"><b>{$k.victim}</b><br/>{$k.victimcorp|truncate:30}</td> 43 {/if} 36 44 <td width="200" class="kb-table-cell"><b>{$k.fb}</b><br>{$k.fbcorp|truncate:30}</td> 37 45 <td width="110" class="kb-table-cell" align="center"><b>{$k.system|truncate:10}</b><br/>({$k.systemsecurity|max:0|string_format:"%01.1f"})</td>