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 5 * KnowledgeTree Community Edition
6 6 * Document Management Made Simple
7 7 * Copyright (C) 2008, 2009 KnowledgeTree Inc.
8   - *
  8 + *
9 9 *
10 10 * This program is free software; you can redistribute it and/or modify it under
11 11 * the terms of the GNU General Public License version 3 as published by the
... ... @@ -153,13 +153,12 @@ class KTActionPortlet extends KTPortlet {
153 153  
154 154 // Create button html
155 155 $button = "<div class='portlet_button'>
156   - <a href='$link'>
  156 + <a href='{$link}'>
157 157 <div class='big_btn_left'></div>
158 158 <div class='big_btn_middle'>
159 159 <div class='btn_text'>{$text}</div>
160   - <div class='{$class}'></div>
161 160 </div>
162   - <div class='big_btn_right'></div>
  161 + <div class='big_btn_right {$class}'></div>
163 162 </a>
164 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 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 1221 .portlet_button a .big_btn_left {
1236 1222 background: transparent url(../../resources/graphics/btn_left.gif) top left no-repeat;
1237 1223 width: 10px;
... ... @@ -1246,16 +1232,23 @@ The text will be hidden for screen view. The generic fahrner-ish approach comes
1246 1232 text-align: center;
1247 1233 vertical-align: middle;
1248 1234 align: center;
1249   - width: 89%;
  1235 + width: 80%;
1250 1236 }
1251 1237  
1252 1238 .portlet_button a .big_btn_right {
1253   - background: transparent url(../../resources/graphics/btn_right.gif) top right no-repeat;
1254 1239 float: left;
1255   - width: 10px;
  1240 + width: 25px;
1256 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 1252 .portlet_button a:hover .big_btn_left {
1260 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 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 86 }
87 87 if($this->next()) {
88 88 $this->checkZendMysql();
89   - //if($this->checkMysql()) {
90 89 if($this->checkZendMysql()) {
91 90 return 'binstall';
92 91 } else {
... ... @@ -134,8 +133,17 @@ class migrateComplete extends Step {
134 133 if($response['out']) {
135 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 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 147 } else {
140 148 $installation = $this->getDataFromSession("installation"); // Get installation directory
141 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 156 * @return boolean
157 157 */
158 158 private function doRun() {
  159 + $installation = $this->getDataFromSession("installation"); // Get installation directory
  160 + $this->conf = $installation['location'];
159 161 if(!$this->alreadyUninstalled()) { // Pre-check if services are uninstalled
160 162 $this->uninstallServices();
161 163 }
... ...
setup/upgrade/steps/upgradeComplete.php
... ... @@ -49,6 +49,10 @@ class upgradeComplete extends Step {
49 49  
50 50 public function doStep() {
51 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 56 $this->doRun();
53 57 $this->storeSilent();
54 58 return 'landing';
... ... @@ -86,7 +90,7 @@ class upgradeComplete extends Step {
86 90 */
87 91 protected function storeSilent() {
88 92 $v = $this->getDataFromSession('upgradeProperties');
89   - $this->temp_variables['sysVersion'] = $v['upgrade_version'];
  93 + $this->temp_variables['sysVersion'] = $this->util->readVersion();
90 94 $this->temp_variables['migrateCheck'] = $this->migrateCheck;
91 95 $this->temp_variables['servicesCheck'] = $this->servicesCheck;
92 96 }
... ...
setup/upgrade/templates/complete.tpl
1   -<?php //global $default; ?>
2 1 <form>
3 2 <p class="title">Database Upgrade Completed</p>
4   -
5 3 <div id="step_content_complete" class="step">
6 4 <!-- Services -->
7   - <br/><br/>
8 5 <div>
9 6 Your database has been upgraded to <?php echo $sysVersion; ?>
10 7 </div>
11   -<br/><br/>
12 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 24 <br/>
  25 + Click [Start Services]
18 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 27 <br/>
  28 + Alternatively:
22 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 37 cd /usr/share/knowledgetree-ce<br/>
31   - sudo ./dmsctl.sh start
  38 + <?php } else { ?>
  39 + cd /usr/share/knowledgetree<br/>
32 40 <?php } ?>
33   - </p>
34   - <br/>
  41 + sudo ./dmsctl.sh start
35 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 53 </div>
37 54 <a href="../../login.php" class="back button_next" style="width:50px;" onclick="javascript:{w.clearSessions();}">Finish</a>
38 55 </form>
39 56 \ No newline at end of file
... ...
setup/upgrade/templates/database.tpl
... ... @@ -50,10 +50,12 @@
50 50 <?php }
51 51 else if ($action == 'runUpgrade') { ?>
52 52 <?php if ($backupSuccessful) { ?>
53   - <script type="text/javascript">
54 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 57 <?php } else { ?>
  58 + <script type="text/javascript">
57 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 60 </script>
59 61 <?php } ?>
... ...
setup/wizard/resources/css/wizard.css
... ... @@ -601,4 +601,12 @@ td.dir_description {
601 601 font-size:100%;
602 602 line-height:150%;
603 603 font-family:sans-serif;
  604 +}
  605 +
  606 +.twitter {
  607 +
  608 +}
  609 +
  610 +.facebook {
  611 +
604 612 }
605 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 309 $this->error['dmsuserpassword'] = "Passwords do not match: " . $this->dmsuserpassword." ". $this->getPassword2();
310 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 313 if (!$this->util->dbUtilities->getDatabaseLink()) {
318 314 $this->error['con'] = "Could not connect to the database, please check username and password";
319 315 return false;
... ...
setup/wizard/templates/complete.tpl
... ... @@ -4,9 +4,7 @@
4 4 </p>
5 5 <p class="description">
6 6 This step allows you to check that your KnowledgeTree configuration is set up correctly.
7   -<!-- <br/>-->
8 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 8 </p>
11 9 <div>
12 10 <a href="http://wiki.knowledgetree.com/Web_Based_Installer#Post_Install" target="_blank">
... ... @@ -15,6 +13,16 @@
15 13 </div>
16 14 <br/>
17 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 26 <?php if(!$servicesValidation) { ?>
19 27 <?php if(!$migrate_check) { ?>
20 28 <h3>Services</h3>
... ... @@ -29,11 +37,20 @@
29 37 <br/>
30 38 <?php } ?>
31 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 54 <?php if ($isCE) { ?>
38 55 cd /usr/share/knowledgetree-ce<br/>
39 56 <?php } else { ?>
... ... @@ -50,7 +67,6 @@
50 67 $iconFlag = "<span class='{$paths_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
51 68 $checkHeading = "<h3 style='width:35%; float:left;'>".$iconFlag."Paths and Permissions</h3>";
52 69 ?>
53   -<!-- <div>-->
54 70 <?php if($pathsSection) {
55 71 $details = 'Show Details';
56 72 $display = 'none';
... ... @@ -58,11 +74,6 @@
58 74 $details = 'Hide Details';
59 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 77 <?php
67 78 $pathsCheck = $checkHeading;
68 79 $pathsCheck .= "<div id='option8' class='onclick' onclick='javascript:{w.toggleClass(\"paths_check\", \"option8\");}'>";
... ... @@ -71,7 +82,6 @@
71 82 echo $pathsCheck;
72 83 ?>
73 84 <table class="description_complete">
74   -<!-- <table class="description">-->
75 85 <tr></tr>
76 86 <?php if (!empty($varDirectory)) echo '<tr>' . $varDirectory . '</tr>'; ?>
77 87 <?php if (!empty($documentRoot)) echo '<tr>' . $documentRoot . '</tr>'; ?>
... ... @@ -84,10 +94,8 @@
84 94 <?php if($silent) { ?>
85 95 </div>
86 96 <?php } ?>
87   -<!-- </div>-->
88 97 <br/>
89 98 <br/>
90   -<!-- <div>-->
91 99 <!-- Database connectivity -->
92 100 <?php
93 101 $iconFlag = "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>";
... ... @@ -100,10 +108,7 @@
100 108 $details = 'Hide Details';
101 109 $display = 'block';
102 110 }?>
103   -<!-- <h3><?php //echo "<span class='{$database_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Database connectivity</h3>-->
104 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 112 <?php
108 113 $databaseCheck = $checkHeading;
109 114 $databaseCheck .= "<div id='option9' class='onclick' onclick='javascript:{w.toggleClass(\"database_check\", \"option9\");}'>";
... ... @@ -133,10 +138,7 @@
133 138 $details = 'Hide Details';
134 139 $display = 'block';
135 140 }?>
136   -<!-- <h3><?php //echo "<span class='{$privileges_check}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?>Privileges</h3>-->
137 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 142 <?php
141 143 $privilegesCheck = $checkHeading;
142 144 $privilegesCheck .= "<div id='option1' class='onclick' onclick='javascript:{w.toggleClass(\"privileges_check\", \"option1\");}'>";
... ... @@ -152,7 +154,6 @@
152 154 <?php if($silent) { ?>
153 155 </div>
154 156 <?php } ?>
155   -<!-- </div>-->
156 157 <!-- Services -->
157 158 <br/>
158 159 <!-- <br/>-->
... ... @@ -164,46 +165,18 @@
164 165 <div id="option2" class="onclick" onclick="javascript:{w.toggleClass('services_check', 'option2');}">Show Details</div>
165 166 <div class="services_check" style="display:none">
166 167 <?php } ?>
167   -<!-- <table class="description_complete">-->
168 168 <table class="description">
169 169 <tr>
170 170 <td style="width:15px;"> <?php echo "<span class='{$LuceneStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
171 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 172 </tr>
182 173 <tr>
183 174 <td> <?php echo "<span class='{$SchedulerStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
184 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 176 </tr>
195 177 <tr>
196 178 <td> <?php echo "<span class='{$OpenOfficeStatus}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>"; ?> </td>
197 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 180 </tr>
208 181 </table>
209 182 <?php if($silent) { ?>
... ... @@ -218,8 +191,6 @@
218 191 $file_system_root = $_SERVER['DOCUMENT_ROOT'];
219 192 $host = $_SERVER['SERVER_NAME'];
220 193 $port = $_SERVER['SERVER_PORT'];
221   - //$ssl_enabled = isset($_SERVER['HTTPS']) ? (strtolower($_SERVER['HTTPS']) === 'on' ? 'yes' : 'no') : 'no';
222   -
223 194 $pos = strpos($script, '/setup/wizard/');
224 195 $root_url = substr($script, 0, $pos);
225 196 if($port == '')
... ...