diff --git a/setup/upgrade/templates/database.tpl b/setup/upgrade/templates/database.tpl
index 8f78772..6c4c51d 100644
--- a/setup/upgrade/templates/database.tpl
+++ b/setup/upgrade/templates/database.tpl
@@ -66,4 +66,5 @@
else { ?>
-
\ No newline at end of file
+
+js('form.js'); } ?>
\ No newline at end of file
diff --git a/setup/upgrade/templates/installation.tpl b/setup/upgrade/templates/installation.tpl
index b51f7a1..ad1b10a 100644
--- a/setup/upgrade/templates/installation.tpl
+++ b/setup/upgrade/templates/installation.tpl
@@ -18,4 +18,5 @@
-
\ No newline at end of file
+
+js('form.js'); } ?>
\ No newline at end of file
diff --git a/setup/upgrade/templates/welcome.tpl b/setup/upgrade/templates/welcome.tpl
index f88f999..b456d78 100644
--- a/setup/upgrade/templates/welcome.tpl
+++ b/setup/upgrade/templates/welcome.tpl
@@ -13,7 +13,7 @@
';
- // check paths are writeable
- if(is_array($paths)) {
+ if(is_array($paths)) { // check paths are writeable
foreach ($paths as $path)
{
$output = '';
$path['path'] = $class = strtolower(substr($path['path'],0,1)).substr($path['path'],1); // Damn you windows
$result = $this->util->checkPermission($path['path']);
- $output = sprintf($pathhtml, $result['class'], $path['path'],
- (($result['class'] == 'tick') ? 'class="green"' : 'class="error"' ),
+ $output = sprintf($pathhtml, $result['class'], $path['path'],
+ (($result['class'] == 'tick') ? 'class="green"' : 'class="error"' ),
(($result['class'] == 'tick') ? 'Writeable' : 'Not Writeable' ));
$this->temp_variables[($path['setting'] != '') ? $path['setting'] : 'config'] = $output;
if($result['class'] != 'tick') {
+ $this->pathsSection = false;
$this->paths_check = $result['class'];
}
// for document location check
if ($path['setting'] == 'documentRoot') {
- $docRoot = $path['path'];
+ $docRoot = $path['path'];
}
}
}
-
// check document path internal/external to web root
// compare SYSTEM_DIR to root path of documentRoot
// NOTE preg_replace is to ensure all slash separators are the same (forward slash)
@@ -121,15 +121,15 @@ class complete extends Step {
. '
Your document directory is set to the default, which is inside the web root. '
. 'This may present a security problem if your documents can be accessed from the web, '
. 'working around the permission system in KnowledgeTree.
';
- if($this->paths_check == 'tick')
- $this->paths_check = 'cross_orange';
- $this->warnings[] = 'Move var directory';
+ $this->paths_check = 'cross_orange';
+ $this->warnings[] = 'Move var directory';
+ $this->pathsSection = false;
}
else {
$this->temp_variables['docLocation'] = sprintf($html, 'tick', '', 'Your document directory is outside the web root.');
}
}
-
+
private function checkDb()
{
// defaults
@@ -146,16 +146,17 @@ class complete extends Step {
$loaded = $this->util->dbUtilities->getDatabaseLink();
if (!$loaded) {
$this->temp_variables['dbConnectAdmin'] .= '
'
- . '
Unable to connect to database (user: '
+ . '
Unable to connect to database (user: '
. $dbconf['dmsname'] . ')