function execute() { $hako = new HakoEdit(); $cgi = new CgiImitation(); $cgi->parseInputData(); $cgi->getCookies(); if (!$hako->readIslands($cgi)) { HTML::header(); HakoError::noDataFile(); HTML::footer(); exit; } $cgi->setCookies(); $edit = new Edit(); switch ($cgi->mode) { case "enter": $html = new HtmlTop(); $html->header(); $edit->main($hako, $cgi->dataSet); $html->footer(); break; case "list": $html = new HtmlTop(); $html->header(); $edit->main($hako, $cgi->dataSet); $html->footer(); break; case "map": $html = new HtmlTop(); $html->header(); $edit->editMap($hako, $cgi->dataSet); $html->footer(); break; case "regist": $html = new HtmlTop(); $html->header(); $edit->register($hako, $cgi->dataSet); $html->footer(); break; default: $html = new HtmlTop(); $html->header(); $edit->enter(); $html->footer(); } exit; }