Commit 0c4c899bf80366c8bb23ea45583bd6c1ebc13a56
1 parent
c87d55af
Updated templating.
Committed by: Jarrett Jordaan Reviewed by: Megan Watson
Showing
6 changed files
with
10 additions
and
20 deletions
setup/migrate/migrateUtil.php
| @@ -104,6 +104,12 @@ class MigrateUtil extends InstallUtil { | @@ -104,6 +104,12 @@ class MigrateUtil extends InstallUtil { | ||
| 104 | return new $serviceName(); | 104 | return new $serviceName(); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | + /** | ||
| 108 | + * Return port of the old installation | ||
| 109 | + * | ||
| 110 | + * @param location | ||
| 111 | + * @return string | ||
| 112 | + */ | ||
| 107 | public function getPort($location) { | 113 | public function getPort($location) { |
| 108 | if(WINDOWS_OS) { | 114 | if(WINDOWS_OS) { |
| 109 | $myIni = "my.ini"; | 115 | $myIni = "my.ini"; |
setup/wizard/template.php
| @@ -75,7 +75,6 @@ class Template | @@ -75,7 +75,6 @@ class Template | ||
| 75 | */ | 75 | */ |
| 76 | public function set($name, $value) | 76 | public function set($name, $value) |
| 77 | { | 77 | { |
| 78 | - //if(is_a($value, 'Template')) { | ||
| 79 | $class = 'Template'; | 78 | $class = 'Template'; |
| 80 | $isA = $value instanceof $class; | 79 | $isA = $value instanceof $class; |
| 81 | if($isA) { | 80 | if($isA) { |
setup/wizard/templates/configuration.tpl
| 1 | <form id="dependencies_configuration_services" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> | 1 | <form id="dependencies_configuration_services" action="index.php?step_name=<?php echo $step_name; ?>" method="post"> |
| 2 | <p class="title">Checking System Configuration</p> | 2 | <p class="title">Checking System Configuration</p> |
| 3 | - | ||
| 4 | <p class="description"> | 3 | <p class="description"> |
| 5 | The wizard will review your system to determine whether KnowledgeTree is correctly configured. You’ll see whether KnowledgeTree has the correct settings or whether changes are required. | 4 | The wizard will review your system to determine whether KnowledgeTree is correctly configured. You’ll see whether KnowledgeTree has the correct settings or whether changes are required. |
| 6 | </p> | 5 | </p> |
| @@ -34,7 +33,6 @@ | @@ -34,7 +33,6 @@ | ||
| 34 | <!--Content--> | 33 | <!--Content--> |
| 35 | <div id="step_content_<?php echo $step_name; ?>" class="step"> | 34 | <div id="step_content_<?php echo $step_name; ?>" class="step"> |
| 36 | <h3>Server Settings</h3> | 35 | <h3>Server Settings</h3> |
| 37 | - | ||
| 38 | <p class="description"> | 36 | <p class="description"> |
| 39 | The settings below have been drawn from the system information. The host and port should reflect the host and port that will be used to access KnowledgeTree. The Root Url is only needed if your installation is in a directory off the main web server root. | 37 | The settings below have been drawn from the system information. The host and port should reflect the host and port that will be used to access KnowledgeTree. The Root Url is only needed if your installation is in a directory off the main web server root. |
| 40 | </p> | 38 | </p> |
setup/wizard/templates/install.tpl
| @@ -6,7 +6,6 @@ | @@ -6,7 +6,6 @@ | ||
| 6 | <div id="step_content" class="step"> | 6 | <div id="step_content" class="step"> |
| 7 | <?php } ?> | 7 | <?php } ?> |
| 8 | <p class="empty_space" style="font-size:11pt;"> The wizard will now complete the installation and run a final check on your system. </p> | 8 | <p class="empty_space" style="font-size:11pt;"> The wizard will now complete the installation and run a final check on your system. </p> |
| 9 | -<!-- <br/>--> | ||
| 10 | <?php if($ce_check) { ?> | 9 | <?php if($ce_check) { ?> |
| 11 | <p class="empty_space" style="font-size:11pt;" id="left_space"> | 10 | <p class="empty_space" style="font-size:11pt;" id="left_space"> |
| 12 | We would greatly appreciate it if you would allow us to collect anonymous usage statistics to help us provide a better quality product. | 11 | We would greatly appreciate it if you would allow us to collect anonymous usage statistics to help us provide a better quality product. |
| @@ -15,7 +14,6 @@ | @@ -15,7 +14,6 @@ | ||
| 15 | The information includes a unique identification number, number of users you have created, your operating system type and your IP address. Your privacy is protected by the <a href="http://www.knowledgetree.com/about/legal" target="_blank">KnowledgeTree Privacy and Data Protection Agreements.</a> | 14 | The information includes a unique identification number, number of users you have created, your operating system type and your IP address. Your privacy is protected by the <a href="http://www.knowledgetree.com/about/legal" target="_blank">KnowledgeTree Privacy and Data Protection Agreements.</a> |
| 16 | </p> | 15 | </p> |
| 17 | <div class="demo"><?php echo $html->image('greenit.jpg', array('style'=>'padding-left: 35px;')); ?></div> | 16 | <div class="demo"><?php echo $html->image('greenit.jpg', array('style'=>'padding-left: 35px;')); ?></div> |
| 18 | -<!-- <br/><br/><br/><br/>--> | ||
| 19 | <p> <input type='checkbox' name='call_home' value='enable' checked style="float:left;"/> | 17 | <p> <input type='checkbox' name='call_home' value='enable' checked style="float:left;"/> |
| 20 | <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label></p> | 18 | <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label></p> |
| 21 | <?php } else { ?> | 19 | <?php } else { ?> |
| @@ -25,13 +23,11 @@ | @@ -25,13 +23,11 @@ | ||
| 25 | <br/> | 23 | <br/> |
| 26 | The information includes a unique identification number, number of users you have created, your operating system type and your IP address. Your privacy is protected by the <a href="http://www.knowledgetree.com/about/legal" target="_blank">KnowledgeTree Privacy and Data Protection Agreements.</a> | 24 | The information includes a unique identification number, number of users you have created, your operating system type and your IP address. Your privacy is protected by the <a href="http://www.knowledgetree.com/about/legal" target="_blank">KnowledgeTree Privacy and Data Protection Agreements.</a> |
| 27 | </p> | 25 | </p> |
| 28 | -<!-- <div class="demo"><?php //echo $html->image('greenit.jpg', array('style'=>'padding-left: 35px;')); ?></div>--> | ||
| 29 | <br/><br/><br/><br/><br/><br/><br/><br/> | 26 | <br/><br/><br/><br/><br/><br/><br/><br/> |
| 30 | - | ||
| 31 | -<p> | ||
| 32 | - <input type='checkbox' name='call_home' value='enable' checked style="float:left;"/> | ||
| 33 | - <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label> | ||
| 34 | -</p> | 27 | + <p> |
| 28 | + <input type='checkbox' id="call_home" name='call_home' value='enable' checked style="float:left;"/> | ||
| 29 | + <label for='call_home'>Help to improve KnowledgeTree by providing anonymous usage statistics</label> | ||
| 30 | + </p> | ||
| 35 | <?php } ?> | 31 | <?php } ?> |
| 36 | </div> | 32 | </div> |
| 37 | <input type="submit" name="Previous" value="Previous" class="button_previous"/> | 33 | <input type="submit" name="Previous" value="Previous" class="button_previous"/> |
setup/wizard/templates/services.tpl
| @@ -3,9 +3,7 @@ | @@ -3,9 +3,7 @@ | ||
| 3 | <?php } else { ?> | 3 | <?php } else { ?> |
| 4 | <form action="index.php?step_name=<?php echo $step_name; ?>" method="post" id="_<?php echo $step_name; ?>"> | 4 | <form action="index.php?step_name=<?php echo $step_name; ?>" method="post" id="_<?php echo $step_name; ?>"> |
| 5 | <?php } ?> | 5 | <?php } ?> |
| 6 | - | ||
| 7 | <p class="title">Checking Service Dependencies</p> | 6 | <p class="title">Checking Service Dependencies</p> |
| 8 | - | ||
| 9 | <p class="description"> | 7 | <p class="description"> |
| 10 | The wizard will review your system to determine whether you can run KnowledgeTree background services. <br/>Once the scan is completed, you’ll see whether your system has met the requirements or whether there are areas you need to address. | 8 | The wizard will review your system to determine whether you can run KnowledgeTree background services. <br/>Once the scan is completed, you’ll see whether your system has met the requirements or whether there are areas you need to address. |
| 11 | </p> | 9 | </p> |
| @@ -86,9 +84,7 @@ | @@ -86,9 +84,7 @@ | ||
| 86 | <div id="option4" class="onclick" onclick="javascript:{w.toggleClass('java_details', 'option4');}"><?php echo $details; ?></div> | 84 | <div id="option4" class="onclick" onclick="javascript:{w.toggleClass('java_details', 'option4');}"><?php echo $details; ?></div> |
| 87 | <div class="java_details" style="display:<?php echo $display; ?>"> | 85 | <div class="java_details" style="display:<?php echo $display; ?>"> |
| 88 | <?php } ?> | 86 | <?php } ?> |
| 89 | -<!-- <p class="description">--> | ||
| 90 | The Java version must be higher than 1.5. | 87 | The Java version must be higher than 1.5. |
| 91 | -<!-- </p>--> | ||
| 92 | <table> | 88 | <table> |
| 93 | <tr> | 89 | <tr> |
| 94 | <td> <span class='<?php echo $step_vars['java']['class']; ?>'> </span> </td> | 90 | <td> <span class='<?php echo $step_vars['java']['class']; ?>'> </span> </td> |
| @@ -167,11 +163,9 @@ | @@ -167,11 +163,9 @@ | ||
| 167 | <?php } ?> | 163 | <?php } ?> |
| 168 | <?php } ?> | 164 | <?php } ?> |
| 169 | <?php } else { ?> | 165 | <?php } else { ?> |
| 170 | -<!-- <p class="description">--> | ||
| 171 | <?php if($servicesValidation) { ?> | 166 | <?php if($servicesValidation) { ?> |
| 172 | All services are already installed. | 167 | All services are already installed. |
| 173 | <?php } ?> | 168 | <?php } ?> |
| 174 | -<!-- </p>--> | ||
| 175 | <?php } ?> | 169 | <?php } ?> |
| 176 | <?php if($servicesValidation) { ?> | 170 | <?php if($servicesValidation) { ?> |
| 177 | <h3><?php echo "<span class='{$serviceCheck}'> </span>"; ?>Services Check</h3> | 171 | <h3><?php echo "<span class='{$serviceCheck}'> </span>"; ?>Services Check</h3> |
| @@ -187,9 +181,7 @@ | @@ -187,9 +181,7 @@ | ||
| 187 | <div id="option6" class="onclick" onclick="javascript:{w.toggleClass('service_details', 'option6');}"><?php echo $details; ?></div> | 181 | <div id="option6" class="onclick" onclick="javascript:{w.toggleClass('service_details', 'option6');}"><?php echo $details; ?></div> |
| 188 | <div class="service_details" style="display:<?php echo $display; ?>"> | 182 | <div class="service_details" style="display:<?php echo $display; ?>"> |
| 189 | <?php } ?> | 183 | <?php } ?> |
| 190 | -<!-- <p class="description">--> | ||
| 191 | Preload Services if posibble. | 184 | Preload Services if posibble. |
| 192 | -<!-- </p>--> | ||
| 193 | <table> | 185 | <table> |
| 194 | <?php | 186 | <?php |
| 195 | if($step_vars) { | 187 | if($step_vars) { |
setup/wizard/templates/welcome.tpl
| @@ -4,7 +4,6 @@ | @@ -4,7 +4,6 @@ | ||
| 4 | <p class="empty_space"> This wizard will lead you through all the steps required to install and configure KnowledgeTree on your server.</p> | 4 | <p class="empty_space"> This wizard will lead you through all the steps required to install and configure KnowledgeTree on your server.</p> |
| 5 | <p class="empty_space"> | 5 | <p class="empty_space"> |
| 6 | Press <b>Next</b> to continue.</p> | 6 | Press <b>Next</b> to continue.</p> |
| 7 | - <div class="demo"><?php //echo $html->image('kt_browse.png'); ?> </div> | ||
| 8 | </div> | 7 | </div> |
| 9 | <input type="submit" name="Next" value="Next" class="button_next"/> | 8 | <input type="submit" name="Next" value="Next" class="button_next"/> |
| 10 | </form> | 9 | </form> |