$fu_FileUtil = new FileUtilities(); $fu_FileUtil->_wipe_errors(); // reload to view $flot->_page_change("/flot-admin/admin/index.php?section=errors&action=view"); break; case "view": $html_main_admin_content = '<a class="btn btn-default btn-sm" href="' . S_BASE_EXTENSION . 'flot-admin/admin/index.php?section=errors&action=clear"><i class="glyphicon glyphicon-trash"></i> clear/delete log</a><hr/>'; $html_main_admin_content .= $admin_ui->html_make_error_page(); break; } break; case "requirements": $s_action = $ufUf->s_get_var_from_allowed("action", array("view"), "view"); switch ($s_action) { case "view": $html_main_admin_content .= $admin_ui->html_requirements_list(); break; } break; case "flot": $s_action = $ufUf->s_get_var_from_allowed("action", array("regenerate", "list_pages"), false); switch ($s_action) { case "regenerate": $flot->_render_all_pages(); // back to same page $s_new_page = "/flot-admin/admin/index.php?section=items&message=" . urlencode("Flot has regenerated all pages"); $flot->_page_change($s_new_page); break; case "list_pages": // return json of all pages header('Content-Type: application/json');