destroy(); $op = ''; } else if ($_GET['cancel']) { $op = ""; } else { $op = 'd'; } } elseif ($_POST['c'] == 'ms' && $_SESSION['edit_map'] instanceof ctf_map) { $map = $_SESSION['edit_map']; $map->setName(stripslashes($_POST['name'])); $map->setDescription(stripslashes($_POST['desc'])); $map->setWidth((int) $_POST['width']); $map->setHeight((int) $_POST['height']); $map->setAlliances((int) $_POST['alliances']); $minY = -floor($map->getHeight() / 2); $maxY = $minY + $map->getHeight() - 1; $minX = -floor($map->getWidth() / 2); $maxX = $minX + $map->getWidth() - 1; $layout = explode('#', $_POST['map']); for ($y = $minY; $y <= $maxY; $y ++) { $str = array_shift($layout); for ($x = $minX; $x <= $maxX; $x ++) { $type = $str{0}; $map->setSystemType($x, $y, $type); if ($type != 'S') { $str = substr($str, 1); continue; } $alloc = (int) $str{1}; $map->setSystemAlloc($x, $y, $alloc); if ($alloc == 0) { $str = substr($str, 2); continue; } $map->setSystemSpawn($x, $y, $str{2} == '1'); $str = substr($str, 3); } } $map->save(); $_SESSION['edit_map'] = null; $op = ''; } else { $op = ''; } return $op; } function listMaps() { ?>

Available maps

There are no maps on the server at this time.

Name & description Size Alliances  
" . htmlentities($map->getName()) . "" . (is_null($map->getDescription()) ? "" : ("
" . htmlentities($map->getDescription())))?>
getWidth()?>xgetHeight()?> getAlliances()?> Edit - Delete

Create a map

Map editor

Loading, please wait ...

Map deletion

You are about to delete the map called getName())?>.
Please confirm.

LegacyWorlds Beta 5 > Administration > Maps management

LWB5 > Administration > Maps management

The purpose of this tool is to create new maps, edit existing ones or delete unused ones.