Commit 5d52f577e1181b916a9f34ed2c7b031d96523902
1 parent
e9c6a366
Updated navigation links to buttons
Committed by: Jarrett Jordaan Reviewed by: Megan Watson
Showing
7 changed files
with
40 additions
and
49 deletions
setup/migrate/templates/complete.tpl
| @@ -19,15 +19,9 @@ | @@ -19,15 +19,9 @@ | ||
| 19 | In order to complete the upgrade process please start the Zend Server MySQL service and then click <b>Next</b> to continue (<a href="http://wiki.knowledgetree.com/Web_Based_Migrater#Complete" target="_blank">Click here for help</a>). | 19 | In order to complete the upgrade process please start the Zend Server MySQL service and then click <b>Next</b> to continue (<a href="http://wiki.knowledgetree.com/Web_Based_Migrater#Complete" target="_blank">Click here for help</a>). |
| 20 | <br /><br /> | 20 | <br /><br /> |
| 21 | <?php if(!empty($errors)) { ?> | 21 | <?php if(!empty($errors)) { ?> |
| 22 | -<!-- <span class='<?php //echo $ktmysql['class']; ?>'> </span>--> | ||
| 23 | - <?php //echo $ktmysql['name']; ?> | ||
| 24 | - <?php //echo $ktmysql['msg']; ?> | ||
| 25 | -<!-- <br /><br />--> | ||
| 26 | - <?php //if (WINDOWS_OS) { ?> | ||
| 27 | - <span class='<?php echo $zmysql['class']; ?>'> </span> | ||
| 28 | - <?php echo $zmysql['name']; ?> | ||
| 29 | - <?php echo $zmysql['msg']; ?> | ||
| 30 | - <?php //} ?> | 22 | + <span class='<?php echo $zmysql['class']; ?>'> </span> |
| 23 | + <?php echo $zmysql['name']; ?> | ||
| 24 | + <?php echo $zmysql['msg']; ?> | ||
| 31 | <?php } ?> | 25 | <?php } ?> |
| 32 | </div> | 26 | </div> |
| 33 | <!-- <input class="button_next" type="submit" value="Continue Installation" name="BInstall"/>--> | 27 | <!-- <input class="button_next" type="submit" value="Continue Installation" name="BInstall"/>--> |
setup/upgrade/steps/upgradeComplete.php
| @@ -55,6 +55,7 @@ class upgradeComplete extends Step { | @@ -55,6 +55,7 @@ class upgradeComplete extends Step { | ||
| 55 | $this->temp_variables['isCE'] = true; | 55 | $this->temp_variables['isCE'] = true; |
| 56 | $this->doRun(); | 56 | $this->doRun(); |
| 57 | $this->storeSilent(); | 57 | $this->storeSilent(); |
| 58 | + $this->util->deleteMigrateFile(); | ||
| 58 | return 'landing'; | 59 | return 'landing'; |
| 59 | } | 60 | } |
| 60 | 61 |
setup/upgrade/templates/complete.tpl
| @@ -51,5 +51,6 @@ | @@ -51,5 +51,6 @@ | ||
| 51 | </a> | 51 | </a> |
| 52 | </div> | 52 | </div> |
| 53 | </div> | 53 | </div> |
| 54 | - <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>--> |
| 55 | + <input type="submit" name="Next" value="Finish" class="button_next"/> | ||
| 55 | </form> | 56 | </form> |
| 56 | \ No newline at end of file | 57 | \ No newline at end of file |
setup/upgrade/upgradeWizard.php
| @@ -227,6 +227,8 @@ class UpgradeWizard { | @@ -227,6 +227,8 @@ class UpgradeWizard { | ||
| 227 | $response = $this->systemChecks(); | 227 | $response = $this->systemChecks(); |
| 228 | if($this->util->installationSpecified()) { // Check if the migrator needs to be accessed | 228 | if($this->util->installationSpecified()) { // Check if the migrator needs to be accessed |
| 229 | $this->util->redirect('../wizard/index.php?step_name=install_type'); | 229 | $this->util->redirect('../wizard/index.php?step_name=install_type'); |
| 230 | + } elseif ($this->util->finishInstall()) { // Check if the installer has completed | ||
| 231 | + $this->util->redirect('../../login.php'); | ||
| 230 | } | 232 | } |
| 231 | if($response === true) { | 233 | if($response === true) { |
| 232 | $this->displayUpgrader(); | 234 | $this->displayUpgrader(); |
setup/wizard/installUtil.php
| @@ -522,23 +522,6 @@ class InstallUtil { | @@ -522,23 +522,6 @@ class InstallUtil { | ||
| 522 | } | 522 | } |
| 523 | } | 523 | } |
| 524 | 524 | ||
| 525 | - /** | ||
| 526 | - * Check if system needs to be accessed | ||
| 527 | - * | ||
| 528 | - * @author KnowledgeTree Team | ||
| 529 | - * @access public | ||
| 530 | - * @param none | ||
| 531 | - * @return boolean | ||
| 532 | - */ | ||
| 533 | - public function finishSpecified() { | ||
| 534 | - if(isset($_GET['Finish'])) { | ||
| 535 | - if($_GET['Finish'] == "Finish") { | ||
| 536 | - return true; | ||
| 537 | - } | ||
| 538 | - } | ||
| 539 | - | ||
| 540 | - return false; | ||
| 541 | - } | ||
| 542 | 525 | ||
| 543 | /** | 526 | /** |
| 544 | * Check if system needs to be migrated | 527 | * Check if system needs to be migrated |
| @@ -559,7 +542,10 @@ class InstallUtil { | @@ -559,7 +542,10 @@ class InstallUtil { | ||
| 559 | } | 542 | } |
| 560 | 543 | ||
| 561 | public function upgradeInstall() { | 544 | public function upgradeInstall() { |
| 562 | - if(isset($_POST['Next'])) { | 545 | + if(isset($_GET['Upgrade'])) { |
| 546 | + return true; | ||
| 547 | + } | ||
| 548 | + if(isset($_GET['Next'])) { | ||
| 563 | if($_POST['Next'] == "Upgrade") { | 549 | if($_POST['Next'] == "Upgrade") { |
| 564 | return true; | 550 | return true; |
| 565 | } | 551 | } |
| @@ -569,6 +555,24 @@ class InstallUtil { | @@ -569,6 +555,24 @@ class InstallUtil { | ||
| 569 | } | 555 | } |
| 570 | 556 | ||
| 571 | /** | 557 | /** |
| 558 | + * Check if system needs to be accessed | ||
| 559 | + * | ||
| 560 | + * @author KnowledgeTree Team | ||
| 561 | + * @access public | ||
| 562 | + * @param none | ||
| 563 | + * @return boolean | ||
| 564 | + */ | ||
| 565 | + public function finishInstall() { | ||
| 566 | + if(isset($_GET['Next'])) { | ||
| 567 | + if($_GET['Next'] == "Finish") { | ||
| 568 | + return true; | ||
| 569 | + } | ||
| 570 | + } | ||
| 571 | + | ||
| 572 | + return false; | ||
| 573 | + } | ||
| 574 | + | ||
| 575 | + /** | ||
| 572 | * Check if system needs to be migrated | 576 | * Check if system needs to be migrated |
| 573 | * | 577 | * |
| 574 | * @author KnowledgeTree Team | 578 | * @author KnowledgeTree Team |
setup/wizard/installWizard.php
| @@ -104,18 +104,6 @@ class InstallWizard { | @@ -104,18 +104,6 @@ class InstallWizard { | ||
| 104 | public function __construct(){} | 104 | public function __construct(){} |
| 105 | 105 | ||
| 106 | /** | 106 | /** |
| 107 | - * Check if system has been install | ||
| 108 | - * | ||
| 109 | - * @author KnowledgeTree Team | ||
| 110 | - * @access private | ||
| 111 | - * @param none | ||
| 112 | - * @return boolean | ||
| 113 | - */ | ||
| 114 | - private function isSystemInstalled() { | ||
| 115 | - return $this->util->isSystemInstalled(); | ||
| 116 | - } | ||
| 117 | - | ||
| 118 | - /** | ||
| 119 | * Display the wizard | 107 | * Display the wizard |
| 120 | * | 108 | * |
| 121 | * @author KnowledgeTree Team | 109 | * @author KnowledgeTree Team |
| @@ -280,17 +268,18 @@ class InstallWizard { | @@ -280,17 +268,18 @@ class InstallWizard { | ||
| 280 | } elseif ($this->getBypass() === "0") { | 268 | } elseif ($this->getBypass() === "0") { |
| 281 | $this->createInstallFile(); | 269 | $this->createInstallFile(); |
| 282 | } | 270 | } |
| 283 | - if(!$this->isSystemInstalled()) { // Check if the systems not installed | 271 | + if ($this->util->finishInstall()) { // Check if the installer has completed |
| 272 | + $this->util->redirect('../../login.php'); | ||
| 273 | + } elseif ($this->util->upgradeInstall()) { // Check if the upgrader needs to be accessed | ||
| 274 | + $this->util->redirect('../upgrade/index.php'); | ||
| 275 | + } | ||
| 276 | + if(!$this->util->isSystemInstalled()) { // Check if the systems not installed | ||
| 284 | if($this->util->loginSpecified()) { // Back to wizard from upgrader | 277 | if($this->util->loginSpecified()) { // Back to wizard from upgrader |
| 285 | $this->util->redirect('../../control.php'); | 278 | $this->util->redirect('../../control.php'); |
| 286 | } elseif($this->util->migrationSpecified()) { // Check if the migrator needs to be accessed | 279 | } elseif($this->util->migrationSpecified()) { // Check if the migrator needs to be accessed |
| 287 | $this->util->redirect('../migrate/index.php?'); | 280 | $this->util->redirect('../migrate/index.php?'); |
| 288 | } elseif ($this->util->upgradeSpecified()) { // Check if the upgrader needs to be accessed | 281 | } elseif ($this->util->upgradeSpecified()) { // Check if the upgrader needs to be accessed |
| 289 | $this->util->redirect('../upgrade/index.php?action=installer'); | 282 | $this->util->redirect('../upgrade/index.php?action=installer'); |
| 290 | - } elseif ($this->util->finishSpecified()) { // Check if the installer has completed | ||
| 291 | - $this->util->redirect('../../login.php'); | ||
| 292 | - } elseif ($this->util->upgradeInstall()) { // Check if the upgrader needs to be accessed | ||
| 293 | - $this->util->redirect('../upgrade/index.php'); | ||
| 294 | } | 283 | } |
| 295 | $response = $this->systemChecks(); | 284 | $response = $this->systemChecks(); |
| 296 | if($response === true) { | 285 | if($response === true) { |
setup/wizard/templates/complete.tpl
| @@ -199,11 +199,11 @@ | @@ -199,11 +199,11 @@ | ||
| 199 | $redirect = "http://".$_SERVER['SERVER_NAME'].":$port".$root_url."/admin.php"; | 199 | $redirect = "http://".$_SERVER['SERVER_NAME'].":$port".$root_url."/admin.php"; |
| 200 | ?> | 200 | ?> |
| 201 | <?php if($migrate_check) { ?> | 201 | <?php if($migrate_check) { ?> |
| 202 | - <a href="../upgrade/index.php" class="back button_next" style="width:30px;" onclick="javascript:{w.clearSessions();}">Next</a> | ||
| 203 | -<!-- <input type="submit" name="Upgrade" value="Next" class="button_next"/>--> | 202 | +<!-- <a href="../upgrade/index.php" class="back button_next" style="width:30px;" onclick="javascript:{w.clearSessions();}">Next</a>--> |
| 203 | + <input type="submit" name="Upgrade" value="Next" class="button_next"/> | ||
| 204 | <?php } else { ?> | 204 | <?php } else { ?> |
| 205 | - <a href="../../login.php" class="back button_next" style="width:50px;" onclick="javascript:{w.clearSessions();}">Finish</a> | ||
| 206 | -<!-- <input type="submit" name="Finish" value="Finish" class="button_next"/>--> | 205 | +<!-- <a href="../../login.php" class="back button_next" style="width:50px;" onclick="javascript:{w.clearSessions();}">Finish</a>--> |
| 206 | + <input type="submit" name="Next" value="Finish" class="button_next"/> | ||
| 207 | <?php } ?> | 207 | <?php } ?> |
| 208 | </form> | 208 | </form> |
| 209 | <?php if (AJAX) { echo $html->js('form.js'); } ?> | 209 | <?php if (AJAX) { echo $html->js('form.js'); } ?> |
| 210 | \ No newline at end of file | 210 | \ No newline at end of file |