Work on the install.

This commit is contained in:
markjcrane
2016-04-14 21:14:40 -06:00
parent 3f5f268c15
commit 5799ce6497
4 changed files with 11 additions and 438 deletions

View File

@@ -68,20 +68,6 @@ if (sizeof($_POST) > 0) {
$_SESSION["message_mood"] = 'negative';
$response_message = $text['message-upgrade_source_failed'];
}
else {
//update scripts folder, if allowed (default)
if ($_SESSION['switch']['scripts']['dir'] != '') {
//copy the files and directories from resources/install
$obj = new install_switch;
$obj->upgrade();
//set the message
$response_message = $text['message-upgrade_source_scripts'];
}
else {
//set the message
$response_message = $text['message-upgrade_source'];
}
}
}
// load an array of the database schema and compare it with the active database
@@ -238,7 +224,6 @@ echo "<div style='text-align: right;'><input type='submit' class='btn' value='".
echo "<br><br>";
echo "</form>\n";
// output result of source update
if (sizeof($_SESSION["response_source_update"]) > 0) {
echo "<br />";
@@ -251,7 +236,6 @@ if (sizeof($_SESSION["response_source_update"]) > 0) {
unset($_SESSION["response_source_update"]);
}
// output result of upgrade schema
if ($_SESSION["schema"]["response"] != '') {
echo "<br />";

View File

@@ -48,8 +48,8 @@
$format = 'html';
}
require_once "resources/classes/text.php";
//add multi-lingual support
require_once "resources/classes/text.php";
$language = new text;
$text = $language->get();
@@ -67,10 +67,7 @@
$obj = new schema;
echo $obj->schema("text");
//request the switch to perform upgrade functions
$obj = new install_switch;
$obj->upgrade();
//run all app_defaults.php files
require_once "resources/classes/domains.php";
$domain = new domains;
$domain->upgrade();
@@ -105,4 +102,4 @@
require_once "resources/footer.php";
}
?>
?>