Changeset 301 for dev/mods/fitting/kill_detail.php
- Timestamp:
- 12/27/07 12:02:37 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/mods/fitting/kill_detail.php
r297 r301 122 122 { 123 123 //Admin is able to see classified Systems 124 if ($page->isAdmin()){ 124 if ($page->isAdmin()) 125 { 125 126 $smarty->assign('System', $system->getName().' (Classified)'); 126 127 $smarty->assign('SystemURL', "?a=system_detail&sys_id=".$system->getID()); 127 128 $smarty->assign('SystemSecurity', $system->getSecurity(true)); 128 }else{ 129 } 130 else 131 { 129 132 $smarty->assign('System', 'Classified'); 130 133 $smarty->assign('SystemURL', ""); … … 164 167 165 168 166 $fitting_unwanted_groups = explode(";",config::get('fitting_unwanted_types'));167 169 //Fitting, KE - add destroyed items to an array of all fitted items. 168 if($destroyed->getLocationID() < 6 && !in_array($item->get_group_id($item->getName()), $fitting_unwanted_groups)){ 169 $count_quntity = 0; 170 if($destroyed->getLocationID() < 6 && ($item->get_used_launcher_group($item->getName()) == 0) 171 { 172 $count_quntity = 0; 170 173 while ($count_quntity < $destroyed->getQuantity()) 171 174 { … … 200 203 201 204 //Fitting -KE, add dropped items to the list 202 if(($dropped->getLocationID() != 4) && !in_array($item->get_group_id($item->getName()) , $fitting_unwanted_groups))205 if(($dropped->getLocationID() != 4) && ($item->get_used_launcher_group($item->getName()) == 0)) 203 206 { 204 $count_quntity = 0;207 $count_quntity = 0; 205 208 while ($count_quntity < $dropped->getQuantity()) 206 209 { 207 $fitting_array[$dropped->getLocationID()][]=array('Name'=>$item->getName(), 'Icon' => $item->getIcon(32), 'itemID' => $item->getID());208 ++$count_quntity;210 $fitting_array[$dropped->getLocationID()][]=array('Name'=>$item->getName(), 'Icon' => $item->getIcon(32), 'itemID' => $item->getID()); 211 ++$count_quntity; 209 212 } 210 213 } … … 222 225 $sort_by_nameh["Name"][] = $array_rowh["Name"]; 223 226 } 224 array_multisort($sort_by_nameh["Name"],SORT_ASC,$fitting_array[1]);227 array_multisort($sort_by_nameh["Name"],SORT_ASC,$fitting_array[1]); 225 228 } 226 229