Commit b4d584df6a8262ebae980ab59bed622db8b17fae

Authored by Paul Barrett
2 parents 80071044 e9c6a366

Merge branch 'edge' of github.com:ktgit/knowledgetree into edge

lib/widgets/portlet.inc.php
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 * KnowledgeTree Community Edition 5 * KnowledgeTree Community Edition
6 * Document Management Made Simple 6 * Document Management Made Simple
7 * Copyright (C) 2008, 2009 KnowledgeTree Inc. 7 * Copyright (C) 2008, 2009 KnowledgeTree Inc.
8 - * 8 + *
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify it under 10 * This program is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License version 3 as published by the 11 * the terms of the GNU General Public License version 3 as published by the
@@ -153,13 +153,12 @@ class KTActionPortlet extends KTPortlet { @@ -153,13 +153,12 @@ class KTActionPortlet extends KTPortlet {
153 153
154 // Create button html 154 // Create button html
155 $button = "<div class='portlet_button'> 155 $button = "<div class='portlet_button'>
156 - <a href='$link'> 156 + <a href='{$link}'>
157 <div class='big_btn_left'></div> 157 <div class='big_btn_left'></div>
158 <div class='big_btn_middle'> 158 <div class='big_btn_middle'>
159 <div class='btn_text'>{$text}</div> 159 <div class='btn_text'>{$text}</div>
160 - <div class='{$class}'></div>  
161 </div> 160 </div>
162 - <div class='big_btn_right'></div> 161 + <div class='big_btn_right {$class}'></div>
163 </a> 162 </a>
164 </div>"; 163 </div>";
165 164
resources/css/kt-framing.css
@@ -1218,20 +1218,6 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes @@ -1218,20 +1218,6 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes
1218 text-decoration: none; 1218 text-decoration: none;
1219 } 1219 }
1220 1220
1221 -.portlet_button a .arrow_download {  
1222 - background: transparent url(../../resources/graphics/download_arrow.gif) center right no-repeat;  
1223 - width: 20px;  
1224 - height: 47px;  
1225 - float: right;  
1226 -}  
1227 -  
1228 -.portlet_button a .arrow_upload {  
1229 - background: transparent url(../../resources/graphics/upload_arrow.gif) center right no-repeat;  
1230 - width: 20px;  
1231 - height: 47px;  
1232 - float: right;  
1233 -}  
1234 -  
1235 .portlet_button a .big_btn_left { 1221 .portlet_button a .big_btn_left {
1236 background: transparent url(../../resources/graphics/btn_left.gif) top left no-repeat; 1222 background: transparent url(../../resources/graphics/btn_left.gif) top left no-repeat;
1237 width: 10px; 1223 width: 10px;
@@ -1246,16 +1232,23 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes @@ -1246,16 +1232,23 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes
1246 text-align: center; 1232 text-align: center;
1247 vertical-align: middle; 1233 vertical-align: middle;
1248 align: center; 1234 align: center;
1249 - width: 89%; 1235 + width: 80%;
1250 } 1236 }
1251 1237
1252 .portlet_button a .big_btn_right { 1238 .portlet_button a .big_btn_right {
1253 - background: transparent url(../../resources/graphics/btn_right.gif) top right no-repeat;  
1254 float: left; 1239 float: left;
1255 - width: 10px; 1240 + width: 25px;
1256 height: 47px; 1241 height: 47px;
1257 } 1242 }
1258 1243
  1244 +.portlet_button a .arrow_upload{
  1245 + background: transparent url(../../resources/graphics/btn_right_up.gif) top right no-repeat;
  1246 +}
  1247 +
  1248 +.portlet_button a .arrow_download{
  1249 + background: transparent url(../../resources/graphics/btn_right_down.gif) top right no-repeat;
  1250 +}
  1251 +
1259 .portlet_button a:hover .big_btn_left { 1252 .portlet_button a:hover .big_btn_left {
1260 background: transparent url(../../resources/graphics/btn_left_ro.gif) top left no-repeat; 1253 background: transparent url(../../resources/graphics/btn_left_ro.gif) top left no-repeat;
1261 } 1254 }
@@ -1264,8 +1257,12 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes @@ -1264,8 +1257,12 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes
1264 background: transparent url(../../resources/graphics/btn_middle_ro.gif) repeat-x; 1257 background: transparent url(../../resources/graphics/btn_middle_ro.gif) repeat-x;
1265 } 1258 }
1266 1259
1267 -.portlet_button a:hover .big_btn_right {  
1268 - background: transparent url(../../resources/graphics/btn_right_ro.gif) top right no-repeat; 1260 +.portlet_button a:hover .arrow_upload {
  1261 + background: transparent url(../../resources/graphics/btn_right_ro_up.gif) top right no-repeat;
  1262 +}
  1263 +
  1264 +.portlet_button a:hover .arrow_download {
  1265 + background: transparent url(../../resources/graphics/btn_right_ro_down.gif) top right no-repeat;
1269 } 1266 }
1270 1267
1271 1268
resources/graphics/btn_right_down.gif 0 โ†’ 100644

1.93 KB

resources/graphics/btn_right_ro_down.gif 0 โ†’ 100644

1.93 KB

resources/graphics/btn_right_ro_up.gif 0 โ†’ 100644

2.14 KB

resources/graphics/btn_right_up.gif 0 โ†’ 100644

2.14 KB

setup/migrate/steps/migrateComplete.php
@@ -86,7 +86,6 @@ class migrateComplete extends Step { @@ -86,7 +86,6 @@ class migrateComplete extends Step {
86 } 86 }
87 if($this->next()) { 87 if($this->next()) {
88 $this->checkZendMysql(); 88 $this->checkZendMysql();
89 - //if($this->checkMysql()) {  
90 if($this->checkZendMysql()) { 89 if($this->checkZendMysql()) {
91 return 'binstall'; 90 return 'binstall';
92 } else { 91 } else {
@@ -134,8 +133,17 @@ class migrateComplete extends Step { @@ -134,8 +133,17 @@ class migrateComplete extends Step {
134 if($response['out']) { 133 if($response['out']) {
135 $state = preg_replace('/^STATE *\: *\d */', '', trim($response['out'][3])); // Status store in third key 134 $state = preg_replace('/^STATE *\: *\d */', '', trim($response['out'][3])); // Status store in third key
136 } 135 }
137 - if($state == "STARTED") 136 + if($state == "STARTED") {
138 $running = true; 137 $running = true;
  138 + } else {
  139 + $installation = $this->getDataFromSession("database"); // Get installation directory
  140 + $dbConf = $installation;
  141 +// $this->util->dbUtilities->load($this->dhost, $this->dport, $this->duname, $this->dpassword, $this->dname);
  142 +// $res = @mysql_connect(null, 'root', '');
  143 +// if($res) {
  144 +// $running = true;
  145 +// }
  146 + }
139 } else { 147 } else {
140 $installation = $this->getDataFromSession("installation"); // Get installation directory 148 $installation = $this->getDataFromSession("installation"); // Get installation directory
141 $mysqlPid = $installation['location'].DS."mysql".DS."data".DS."mysqld.pid"; 149 $mysqlPid = $installation['location'].DS."mysql".DS."data".DS."mysqld.pid";
setup/migrate/steps/migrateServices.php
@@ -156,6 +156,8 @@ class migrateServices extends Step @@ -156,6 +156,8 @@ class migrateServices extends Step
156 * @return boolean 156 * @return boolean
157 */ 157 */
158 private function doRun() { 158 private function doRun() {
  159 + $installation = $this->getDataFromSession("installation"); // Get installation directory
  160 + $this->conf = $installation['location'];
159 if(!$this->alreadyUninstalled()) { // Pre-check if services are uninstalled 161 if(!$this->alreadyUninstalled()) { // Pre-check if services are uninstalled
160 $this->uninstallServices(); 162 $this->uninstallServices();
161 } 163 }
setup/upgrade/steps/upgradeComplete.php
@@ -49,6 +49,10 @@ class upgradeComplete extends Step { @@ -49,6 +49,10 @@ class upgradeComplete extends Step {
49 49
50 public function doStep() { 50 public function doStep() {
51 $this->temp_variables = array("step_name"=>"complete", "silent"=>$this->silent); 51 $this->temp_variables = array("step_name"=>"complete", "silent"=>$this->silent);
  52 + $this->temp_variables['isCE'] = false;
  53 + $type = $this->util->getVersionType();
  54 + if($type == "community")
  55 + $this->temp_variables['isCE'] = true;
52 $this->doRun(); 56 $this->doRun();
53 $this->storeSilent(); 57 $this->storeSilent();
54 return 'landing'; 58 return 'landing';
@@ -86,7 +90,7 @@ class upgradeComplete extends Step { @@ -86,7 +90,7 @@ class upgradeComplete extends Step {
86 */ 90 */
87 protected function storeSilent() { 91 protected function storeSilent() {
88 $v = $this->getDataFromSession('upgradeProperties'); 92 $v = $this->getDataFromSession('upgradeProperties');
89 - $this->temp_variables['sysVersion'] = $v['upgrade_version']; 93 + $this->temp_variables['sysVersion'] = $this->util->readVersion();
90 $this->temp_variables['migrateCheck'] = $this->migrateCheck; 94 $this->temp_variables['migrateCheck'] = $this->migrateCheck;
91 $this->temp_variables['servicesCheck'] = $this->servicesCheck; 95 $this->temp_variables['servicesCheck'] = $this->servicesCheck;
92 } 96 }
setup/upgrade/templates/complete.tpl
1 -<?php //global $default; ?>  
2 <form> 1 <form>
3 <p class="title">Database Upgrade Completed</p> 2 <p class="title">Database Upgrade Completed</p>
4 -  
5 <div id="step_content_complete" class="step"> 3 <div id="step_content_complete" class="step">
6 <!-- Services --> 4 <!-- Services -->
7 - <br/><br/>  
8 <div> 5 <div>
9 Your database has been upgraded to <?php echo $sysVersion; ?> 6 Your database has been upgraded to <?php echo $sysVersion; ?>
10 </div> 7 </div>
11 -<br/><br/>  
12 <?php if($migrateCheck) { ?> 8 <?php if($migrateCheck) { ?>
13 - <h3>Services</h3>  
14 - The KnowledgeTree services need to be started to allow for optimal functioning of the search, indexing and pdf generation.  
15 - <?php if(!WINDOWS_OS) { ?>  
16 - To start the services, execute the dmsctl.sh shell script in the KnowledgeTree directory from a terminal. 9 + <br/>
  10 + <h3>Services</h3>
  11 + The KnowledgeTree services need to be started to allow for optimal functioning of the search, indexing and pdf generation.
  12 + <?php if(!WINDOWS_OS) { ?>
  13 + To start the services, execute the dmsctl.sh shell script in the KnowledgeTree directory from a terminal.
  14 + <br/>
  15 + <br/>
  16 + <?php } else { ?>
  17 + To start the services, execute the dmsctl.bat batch file in the KnowledgeTree directory from a command prompt, run as administrator.
  18 + <br/>
  19 + <br/>
  20 + <?php } ?>
  21 + <p class="disclaimer">
  22 + <?php if(WINDOWS_OS) { ?>
  23 + [START MENU] => [Programs] => [KnowledgeTree]
17 <br/> 24 <br/>
  25 + Click [Start Services]
18 <br/> 26 <br/>
19 - <?php } else { ?>  
20 - To start the services, execute the dmsctl.bat batch file in the KnowledgeTree directory from a command prompt, run as administrator.  
21 <br/> 27 <br/>
  28 + Alternatively:
22 <br/> 29 <br/>
23 - <?php } ?>  
24 - <p class="disclaimer">  
25 - <?php if(WINDOWS_OS) { ?>  
26 - cd <?php echo "\"".SYSTEM_DIR."knowledgetree\""; ?> <br/>  
27 - dmsctl.bat install<br/>  
28 - dmsctl.bat start  
29 - <?php } else { ?> 30 + Open a command prompt and enter the following:
  31 + <br/>
  32 + cd <?php echo "\"".SYSTEM_DIR."\""; ?> <br/>
  33 + dmsctl.bat install<br/>
  34 + dmsctl.bat start
  35 + <?php } else { ?>
  36 + <?php if ($isCE) { ?>
30 cd /usr/share/knowledgetree-ce<br/> 37 cd /usr/share/knowledgetree-ce<br/>
31 - sudo ./dmsctl.sh start 38 + <?php } else { ?>
  39 + cd /usr/share/knowledgetree<br/>
32 <?php } ?> 40 <?php } ?>
33 - </p>  
34 - <br/> 41 + sudo ./dmsctl.sh start
35 <?php } ?> 42 <?php } ?>
  43 + </p>
  44 + <br/>
  45 + <?php } else { ?>
  46 + <br>
  47 + <?php } ?>
  48 + <div>
  49 + <a href="http://wiki.knowledgetree.com/Web_Based_Installer#Post_Install" target="_blank">
  50 + Click Here for help on overcoming post install issues
  51 + </a>
  52 + </div>
36 </div> 53 </div>
37 <a href="../../login.php" class="back button_next" style="width:50px;" onclick="javascript:{w.clearSessions();}">Finish</a> 54 <a href="../../login.php" class="back button_next" style="width:50px;" onclick="javascript:{w.clearSessions();}">Finish</a>
38 </form> 55 </form>
39 \ No newline at end of file 56 \ No newline at end of file
setup/upgrade/templates/database.tpl
@@ -50,10 +50,12 @@ @@ -50,10 +50,12 @@
50 <?php } 50 <?php }
51 else if ($action == 'runUpgrade') { ?> 51 else if ($action == 'runUpgrade') { ?>
52 <?php if ($backupSuccessful) { ?> 52 <?php if ($backupSuccessful) { ?>
53 - <script type="text/javascript">  
54 <?php if($migrateCheck) { ?> 53 <?php if($migrateCheck) { ?>
55 - alert("To complete the upgrade please do the following before continuing:\n\n1. Hard refresh your bowser (CTRL-F5) on first view of the Dashboard.\n\n\nSelect 'Finish' at the bottom of this page to continue."); 54 + <script type="text/javascript">
  55 + alert("To complete the upgrade please do the following before continuing:\n\n1. Hard refresh your browser (CTRL-F5) on first view of the Dashboard.\n\n\nSelect 'Finish' at the bottom of this page to continue.");
  56 + </script>
56 <?php } else { ?> 57 <?php } else { ?>
  58 + <script type="text/javascript">
57 alert("To complete the upgrade please do the following before continuing:\n\n1. Restart the services as appropriate for your environment.\n\n\nOn first run of your upgraded installaton please do the following:\n\n1. Hard refresh your bowser (CTRL-F5) on first view of the Dashboard.\n2. Enable the new plugins you wish to use.\n\n\nSelect 'Finish' at the bottom of this page to continue.") 59 alert("To complete the upgrade please do the following before continuing:\n\n1. Restart the services as appropriate for your environment.\n\n\nOn first run of your upgraded installaton please do the following:\n\n1. Hard refresh your bowser (CTRL-F5) on first view of the Dashboard.\n2. Enable the new plugins you wish to use.\n\n\nSelect 'Finish' at the bottom of this page to continue.")
58 </script> 60 </script>
59 <?php } ?> 61 <?php } ?>
setup/wizard/resources/css/wizard.css
@@ -601,4 +601,12 @@ td.dir_description { @@ -601,4 +601,12 @@ td.dir_description {
601 font-size:100%; 601 font-size:100%;
602 line-height:150%; 602 line-height:150%;
603 font-family:sans-serif; 603 font-family:sans-serif;
  604 +}
  605 +
  606 +.twitter {
  607 +
  608 +}
  609 +
  610 +.facebook {
  611 +
604 } 612 }
605 \ No newline at end of file 613 \ No newline at end of file
setup/wizard/resources/graphics/facebookbutton.png 0 โ†’ 100644

6.93 KB

setup/wizard/resources/graphics/twitterbutton.png 0 โ†’ 100644

6.81 KB

setup/wizard/steps/database.php
@@ -309,11 +309,7 @@ class database extends Step @@ -309,11 +309,7 @@ class database extends Step
309 $this->error['dmsuserpassword'] = "Passwords do not match: " . $this->dmsuserpassword." ". $this->getPassword2(); 309 $this->error['dmsuserpassword'] = "Passwords do not match: " . $this->dmsuserpassword." ". $this->getPassword2();
310 return false; 310 return false;
311 } 311 }
312 -// if($this->dport == '') {  
313 -// $this->util->dbUtilities->load($this->dhost, $this->duname, $this->dpassword, $this->dname);  
314 -// } else {  
315 - $this->util->dbUtilities->load($this->dhost, $this->dport, $this->duname, $this->dpassword, $this->dname);  
316 -// } 312 + $this->util->dbUtilities->load($this->dhost, $this->dport, $this->duname, $this->dpassword, $this->dname);
317 if (!$this->util->dbUtilities->getDatabaseLink()) { 313 if (!$this->util->dbUtilities->getDatabaseLink()) {
318 $this->error['con'] = "Could not connect to the database, please check username and password"; 314 $this->error['con'] = "Could not connect to the database, please check username and password";
319 return false; 315 return false;
setup/wizard/templates/complete.tpl
@@ -4,9 +4,7 @@ @@ -4,9 +4,7 @@
4 </p> 4 </p>
5 <p class="description"> 5 <p class="description">
6 This step allows you to check that your KnowledgeTree configuration is set up correctly. 6 This step allows you to check that your KnowledgeTree configuration is set up correctly.
7 -<!-- <br/>-->  
8 Click <b>Finish</b> to browse to the KnowledgeTree Web Interface. Default login credentials are <b>username:</b> <i>admin</i> and <b>password:</b> <i>admin</i>. 7 Click <b>Finish</b> to browse to the KnowledgeTree Web Interface. Default login credentials are <b>username:</b> <i>admin</i> and <b>password:</b> <i>admin</i>.
9 -<!-- You can run this at any time after configuration to check that things are still set up correctly.-->  
10 </p> 8 </p>
11 <div> 9 <div>
12 <a href="http://wiki.knowledgetree.com/Web_Based_Installer#Post_Install" target="_blank"> 10 <a href="http://wiki.knowledgetree.com/Web_Based_Installer#Post_Install" target="_blank">
@@ -15,6 +13,16 @@ @@ -15,6 +13,16 @@
15 </div> 13 </div>
16 <br/> 14 <br/>
17 <div id="step_content_<?php echo $step_name; ?>" class="step"> 15 <div id="step_content_<?php echo $step_name; ?>" class="step">
  16 + <div style="padding: 0pt 0pt 40px 15px; float: right;">
  17 + <a class="twitter" href="http://www.twitter.com/knowledgetreesw" style="color:#FFFFFF;" target="_blank">
  18 + <?php echo $html->image('twitterbutton.png'); ?>
  19 + </a>
  20 + <br/>
  21 + <br/>
  22 + <a class="facebook" href="http://www.facebook.com/pages/KnowledgeTree-Document-Management-Made-Simple/59248880725" style="color:#FFFFFF;" target="_blank">
  23 + <?php echo $html->image('facebookbutton.png'); ?>
  24 + </a>
  25 + </div>
18 <?php if(!$servicesValidation) { ?> 26 <?php if(!$servicesValidation) { ?>
19 <?php if(!$migrate_check) { ?> 27 <?php if(!$migrate_check) { ?>
20 <h3>Services</h3> 28 <h3>Services</h3>
@@ -29,11 +37,20 @@ @@ -29,11 +37,20 @@
29 <br/> 37 <br/>
30 <?php } ?> 38 <?php } ?>
31 <p class="disclaimer"> 39 <p class="disclaimer">
32 - <?php if(WINDOWS_OS) { ?>  
33 - cd <?php echo "\"".SYSTEM_DIR."\""; ?> <br/>  
34 - dmsctl.bat install<br/>  
35 - dmsctl.bat start  
36 - <?php } else { ?> 40 + <?php if(WINDOWS_OS) { ?>
  41 + [START MENU] => [Programs] => [KnowledgeTree]
  42 + <br/>
  43 + Click [Start Services]
  44 + <br/>
  45 + <br/>
  46 + Alternatively:
  47 + <br/>
  48 + Open a command prompt and enter the following:
  49 + <br/>
  50 + cd <?php echo "\"".SYSTEM_DIR."\""; ?> <br/>
  51 + dmsctl.bat install<br/>
  52 + dmsctl.bat start
  53 + <?php } else { ?>
37 <?php if ($isCE) { ?> 54 <?php if ($isCE) { ?>
38 cd /usr/share/knowledgetree-ce<br/> 55 cd /usr/share/knowledgetree-ce<br/>
39 <?php } else { ?> 56 <?php } else { ?>
@@ -50,7 +67,6 @@ @@ -50,7 +67,6 @@
50 $iconFlag = "<span class='{$paths_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; 67 $iconFlag = "<span class='{$paths_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
51 $checkHeading = "<h3 style='width:35%; float:left;'>".$iconFlag."Paths and Permissions</h3>"; 68 $checkHeading = "<h3 style='width:35%; float:left;'>".$iconFlag."Paths and Permissions</h3>";
52 ?> 69 ?>
53 -<!-- <div>-->  
54 <?php if($pathsSection) { 70 <?php if($pathsSection) {
55 $details = 'Show Details'; 71 $details = 'Show Details';
56 $display = 'none'; 72 $display = 'none';
@@ -58,11 +74,6 @@ @@ -58,11 +74,6 @@
58 $details = 'Hide Details'; 74 $details = 'Hide Details';
59 $display = 'block'; 75 $display = 'block';
60 }?> 76 }?>
61 -<!-- <h3><?php //echo "<span class='{$paths_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Paths and Permissions</h3>-->  
62 - <?php if($silent) { ?>  
63 -<!-- <div id="option8" class="onclick" onclick="javascript:{w.toggleClass('paths_check', 'option8');}">Show Details</div>-->  
64 -<!-- <div class="paths_check" style="display:none">-->  
65 - <?php } ?>  
66 <?php 77 <?php
67 $pathsCheck = $checkHeading; 78 $pathsCheck = $checkHeading;
68 $pathsCheck .= "<div id='option8' class='onclick' onclick='javascript:{w.toggleClass(\"paths_check\", \"option8\");}'>"; 79 $pathsCheck .= "<div id='option8' class='onclick' onclick='javascript:{w.toggleClass(\"paths_check\", \"option8\");}'>";
@@ -71,7 +82,6 @@ @@ -71,7 +82,6 @@
71 echo $pathsCheck; 82 echo $pathsCheck;
72 ?> 83 ?>
73 <table class="description_complete"> 84 <table class="description_complete">
74 -<!-- <table class="description">-->  
75 <tr></tr> 85 <tr></tr>
76 <?php if (!empty($varDirectory)) echo '<tr>' . $varDirectory . '</tr>'; ?> 86 <?php if (!empty($varDirectory)) echo '<tr>' . $varDirectory . '</tr>'; ?>
77 <?php if (!empty($documentRoot)) echo '<tr>' . $documentRoot . '</tr>'; ?> 87 <?php if (!empty($documentRoot)) echo '<tr>' . $documentRoot . '</tr>'; ?>
@@ -84,10 +94,8 @@ @@ -84,10 +94,8 @@
84 <?php if($silent) { ?> 94 <?php if($silent) { ?>
85 </div> 95 </div>
86 <?php } ?> 96 <?php } ?>
87 -<!-- </div>-->  
88 <br/> 97 <br/>
89 <br/> 98 <br/>
90 -<!-- <div>-->  
91 <!-- Database connectivity --> 99 <!-- Database connectivity -->
92 <?php 100 <?php
93 $iconFlag = "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; 101 $iconFlag = "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
@@ -100,10 +108,7 @@ @@ -100,10 +108,7 @@
100 $details = 'Hide Details'; 108 $details = 'Hide Details';
101 $display = 'block'; 109 $display = 'block';
102 }?> 110 }?>
103 -<!-- <h3><?php //echo "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Database connectivity</h3>-->  
104 <?php if($silent) { ?> 111 <?php if($silent) { ?>
105 -<!-- <div id="option9" class="onclick" onclick="javascript:{w.toggleClass('database_check', 'option9');}">Show Details</div>-->  
106 -<!-- <div class="database_check" style="display:none">-->  
107 <?php 112 <?php
108 $databaseCheck = $checkHeading; 113 $databaseCheck = $checkHeading;
109 $databaseCheck .= "<div id='option9' class='onclick' onclick='javascript:{w.toggleClass(\"database_check\", \"option9\");}'>"; 114 $databaseCheck .= "<div id='option9' class='onclick' onclick='javascript:{w.toggleClass(\"database_check\", \"option9\");}'>";
@@ -133,10 +138,7 @@ @@ -133,10 +138,7 @@
133 $details = 'Hide Details'; 138 $details = 'Hide Details';
134 $display = 'block'; 139 $display = 'block';
135 }?> 140 }?>
136 -<!-- <h3><?php //echo "<span class='{$privileges_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Privileges</h3>-->  
137 <?php if($silent) { ?> 141 <?php if($silent) { ?>
138 -<!-- <div id="option1" class="onclick" onclick="javascript:{w.toggleClass('privileges_check', 'option1');}">Show Details</div>-->  
139 -<!-- <div class="privileges_check" style="display:none">-->  
140 <?php 142 <?php
141 $privilegesCheck = $checkHeading; 143 $privilegesCheck = $checkHeading;
142 $privilegesCheck .= "<div id='option1' class='onclick' onclick='javascript:{w.toggleClass(\"privileges_check\", \"option1\");}'>"; 144 $privilegesCheck .= "<div id='option1' class='onclick' onclick='javascript:{w.toggleClass(\"privileges_check\", \"option1\");}'>";
@@ -152,7 +154,6 @@ @@ -152,7 +154,6 @@
152 <?php if($silent) { ?> 154 <?php if($silent) { ?>
153 </div> 155 </div>
154 <?php } ?> 156 <?php } ?>
155 -<!-- </div>-->  
156 <!-- Services --> 157 <!-- Services -->
157 <br/> 158 <br/>
158 <!-- <br/>--> 159 <!-- <br/>-->
@@ -164,46 +165,18 @@ @@ -164,46 +165,18 @@
164 <div id="option2" class="onclick" onclick="javascript:{w.toggleClass('services_check', 'option2');}">Show Details</div> 165 <div id="option2" class="onclick" onclick="javascript:{w.toggleClass('services_check', 'option2');}">Show Details</div>
165 <div class="services_check" style="display:none"> 166 <div class="services_check" style="display:none">
166 <?php } ?> 167 <?php } ?>
167 -<!-- <table class="description_complete">-->  
168 <table class="description"> 168 <table class="description">
169 <tr> 169 <tr>
170 <td style="width:15px;"> <?php echo "<span class='{$LuceneStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td> 170 <td style="width:15px;"> <?php echo "<span class='{$LuceneStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
171 <td style="width:640px;"> Lucene Service <?php if ($LuceneStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td> 171 <td style="width:640px;"> Lucene Service <?php if ($LuceneStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td>
172 - <?php if ($LuceneStatus != 'tick') { ?>  
173 - <td>  
174 - <?php if (AJAX) { ?>  
175 -<!-- <a href="#" class="refresh" onclick="w.refresh('complete')">Refresh</a>-->  
176 - <?php } else { ?>  
177 -<!-- <a href="javascript:this.location.reload();" class="refresh">Refresh</a>-->  
178 - <?php } ?>  
179 - </td>  
180 - <?php } ?>  
181 </tr> 172 </tr>
182 <tr> 173 <tr>
183 <td> <?php echo "<span class='{$SchedulerStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td> 174 <td> <?php echo "<span class='{$SchedulerStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
184 <td> Scheduler Service <?php if ($SchedulerStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td> 175 <td> Scheduler Service <?php if ($SchedulerStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td>
185 - <?php if ($SchedulerStatus != 'tick') { ?>  
186 - <td>  
187 - <?php if (AJAX) { ?>  
188 -<!-- <a href="#" class="refresh" onclick="w.refresh('complete')">Refresh</a>-->  
189 - <?php } else { ?>  
190 -<!-- <a href="javascript:this.location.reload();" class="refresh">Refresh</a>-->  
191 - <?php } ?>  
192 - </td>  
193 - <?php } ?>  
194 </tr> 176 </tr>
195 <tr> 177 <tr>
196 <td> <?php echo "<span class='{$OpenOfficeStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td> 178 <td> <?php echo "<span class='{$OpenOfficeStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
197 <td> OpenOffice Service <?php if ($OpenOfficeStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td> 179 <td> OpenOffice Service <?php if ($OpenOfficeStatus != 'tick') { ?> Could not be started <?php } else { ?> Started <?php } ?></td>
198 - <?php if ($OpenOfficeStatus != 'tick') { ?>  
199 - <td>  
200 - <?php if (AJAX) { ?>  
201 -<!-- <a href="#" class="refresh" onclick="w.refresh('complete')">Refresh</a>-->  
202 - <?php } else { ?>  
203 -<!-- <a href="javascript:this.location.reload();" class="refresh">Refresh</a>-->  
204 - <?php } ?>  
205 - </td>  
206 - <?php } ?>  
207 </tr> 180 </tr>
208 </table> 181 </table>
209 <?php if($silent) { ?> 182 <?php if($silent) { ?>
@@ -218,8 +191,6 @@ @@ -218,8 +191,6 @@
218 $file_system_root = $_SERVER['DOCUMENT_ROOT']; 191 $file_system_root = $_SERVER['DOCUMENT_ROOT'];
219 $host = $_SERVER['SERVER_NAME']; 192 $host = $_SERVER['SERVER_NAME'];
220 $port = $_SERVER['SERVER_PORT']; 193 $port = $_SERVER['SERVER_PORT'];
221 - //$ssl_enabled = isset($_SERVER['HTTPS']) ? (strtolower($_SERVER['HTTPS']) === 'on' ? 'yes' : 'no') : 'no';  
222 -  
223 $pos = strpos($script, '/setup/wizard/'); 194 $pos = strpos($script, '/setup/wizard/');
224 $root_url = substr($script, 0, $pos); 195 $root_url = substr($script, 0, $pos);
225 if($port == '') 196 if($port == '')