<?php require_once get_file_loc('SmrGalaxy.class.inc'); //universe_create_locations.php $container = $var; $container['url'] = '1.6/universe_create_save_processing.php'; $container['body'] = '1.6/universe_create_sectors.php'; $PHP_OUTPUT .= create_echo_form($container); //get totals //$totalLocs[5] = 0; //$totalLocs[6] = 0; $locations =& SmrLocation::getAllLocations(); $galSectors =& SmrSector::getGalaxySectors($var['game_id'], $var['gal_on']); foreach ($galSectors as &$sector) { $sectorLocations =& $sector->getLocations(); foreach ($sectorLocations as &$sectorLocation) { $totalLocs[$sectorLocation->getTypeID()]++; } unset($sectorLocation); } unset($sector); $galaxy =& SmrGalaxy::getGalaxy($var['game_id'], $var['gal_on']); $PHP_OUTPUT .= 'Working on Galaxy : ' . $galaxy->getName() . ' (' . $galaxy->getGalaxyID() . ')<br />'; $PHP_OUTPUT .= '<table class="standard">'; foreach ($locations as &$location) { // if (isset($loc_array['Do Not List']) && $loc_array['Do Not List']) continue; $extra = '<span class="small"><br />'; if ($location->isWeaponSold()) { //$extra = '<table class="nobord right">'; $weaponsSold =& $location->getWeaponsSold(); foreach ($weaponsSold as &$weapon) {