function updateDB($nuConfigDBHost, $nuConfigDBName, $nuConfigDBUser, $nuConfigDBPassword) { $result = array(); require_once "nuinstall_lib.php"; $template = new nuinstall(); $template->setDB($nuConfigDBHost, $nuConfigDBName, $nuConfigDBUser, $nuConfigDBPassword); $template->removeColumns = true; $template->removeIndexes = true; $template->run(); $result = $template->returnArrayResults(); return $result; }
<?php } ?> </div> <?php if (isset($_POST['pwd']) && $_POST['pwd'] != $_SESSION['DBGlobeadminPassword']) { echo "<div class=\"nuShadeHolder\" style=\"width: 500px; height: 40px; top: 330px; left: 15px; border: 1px solid grey; position: absolute; background-color: rgb(255, 255, 255);\">"; echo "<span style=\"top: 10px; left: 20px; text-align: left; font-size: 15px; font-family: sans-serif; position: absolute; background-color: rgb(255, 255, 255);\">"; echo "Globadmin password incorrect"; echo "</span>"; echo "</div>"; } if (isset($_POST['pwd']) && $_POST['pwd'] == $_SESSION['DBGlobeadminPassword']) { $template = new nuinstall(); $template->setDB($_SESSION['DBHost'], $_SESSION['DBName'], $_SESSION['DBUser'], $_SESSION['DBPassword']); $template->checkInstall(); if ($_POST['overrideSetup'] == "y") { $template->overrideSetup = true; } if ($_POST['dropColumns'] == "y") { $template->removeColumns = true; } if ($_POST['dropIndexes'] == "y") { $template->removeIndexes = true; } $template->run(); $height = '600px'; $width = '500px'; if ($_POST['showAll'] == "y") { $height = '1100px';