break; case 'load': $result = false; if ($admin) { $result = NWNAdmin::sendCommand('load ' . $saveName); } if (is_a($result, 'PEAR_Error')) { $notification->push(_("There was a problem loading the game: ") . $result->getMessage(), 'horde.error'); } else { $notification->push(_("Save game loaded."), 'horde.sucess'); } break; } } // get the listing of modules $saveList = NWNAdmin::getSaveGameList($saveDir); $saveDone = empty($saveList); if ($saveDone) { $notification->push(_("No save games were found"), 'horde.warning'); } // page setup $title = _("Saved Games"); require_once NWNADMIN_TEMPLATES . '/common-header.inc'; require_once NWNADMIN_TEMPLATES . '/menu.inc'; // render the available modules if (!$saveDone) { require NWNADMIN_TEMPLATES . '/savegame/header.inc'; $style = 'item1'; foreach ($saveList as $savegame) { $baseSave = basename($savegame); $args = split("/\\s+/", $baseSave);