if ($check_user->pw != $pw) { exit; } $PAGE = new SetupPage($_GET['page']); $step_N_of = $_GET['page'] - $first_step_of_library_installation; $step_N_of = $step_N_of + 1; $total_steps = $last_step_of_library_installation - $first_step_of_library_installation; $total_steps = $total_steps + 1; $percent_complete = $step_N_of / $total_steps; $percent_complete = $percent_complete * 100; $percent_text_color = "black"; if ($percent_complete > 60.0) { $percent_text_color = "white"; } $PAGE->title = "<h1>" . getTranslation("Function Library installation", $settings) . " ({$step_N_of}/{$total_steps})</h1>"; $PAGE->generate_headers_footers(); $PAGE->body = $PAGE->body . "<p><b>"; $PAGE->body = $PAGE->body . "<noscript>" . getTranslation("press submit button no javascript", $settings) . "</noscript></b><br/><br/>"; $PAGE->body = $PAGE->body . getTranslation("These steps will be done Automatically. Stepping through function library installation...", $settings) . "\n\t<br/><br/>\n\t<style>\n\t#progress {\n\t width: 500px; \n\t border: 1px solid black;\n\t position: relative;\n\t padding: 3px;\n\t}\n\t#percent {\n\t position: absolute; \n color:{$percent_text_color};\n\t left: 50%;\n\t}\n\n\t#bar {\n\t height: 20px;\n\t background-color: green;\n\t width: {$percent_complete}%;\n\t}\n\t</style>\n\t<br/>\n\t<br/>\n\t<div id='progress'>\n <span id='percent'>" . (int) $percent_complete . "%</span>\n <div id='bar'></div>\n\t</div>\n\t</div>\n\t"; //$PAGE->body=$PAGE->body."<span style='font-size:10px;'>"; //ob_end_clean(); //ob_start(); //include_once("model.classes.php"); include "controller.libraryinstall.php"; foreach ($_POST as $PK => $PV) { if ($PK != "Submit" && $PK != "btnSubmit" && $PK != "submit") { $PAGE->body = $PAGE->body . "<input type='hidden' name='" . htmlspecialchars($PK, ENT_NOQUOTES) . "' value='" . htmlspecialchars($PV, ENT_NOQUOTES) . "'/>"; } } $PAGE->body = $PAGE->body . "</p>"; $content = "";