Commit 143b8a440ed9dcb34ec130ae53bc03e635320a3b
Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge
Showing
5 changed files
with
22 additions
and
16 deletions
resources/js/kt_tinymce_init.js
| @@ -8,10 +8,9 @@ theme : "advanced", | @@ -8,10 +8,9 @@ theme : "advanced", | ||
| 8 | plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", | 8 | plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", |
| 9 | 9 | ||
| 10 | // Theme options | 10 | // Theme options |
| 11 | -theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", | ||
| 12 | -theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", | ||
| 13 | -theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", | ||
| 14 | -theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", | 11 | +theme_advanced_buttons1 : "bold,italic,underline,|,forecolor,backcolor,|,bullist,numlist,|,link,unlink,anchor,|,pagebreak,|,insertdate,inserttime,preview,help", |
| 12 | +theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,undo,redo,|,cleanup,removeformat,print,fullscreen,spellchecker", | ||
| 13 | +theme_advanced_buttons3 : "", | ||
| 15 | theme_advanced_toolbar_location : "top", | 14 | theme_advanced_toolbar_location : "top", |
| 16 | theme_advanced_toolbar_align : "left", | 15 | theme_advanced_toolbar_align : "left", |
| 17 | theme_advanced_statusbar_location : "bottom", | 16 | theme_advanced_statusbar_location : "bottom", |
setup/wizard/iniUtilities.php
| @@ -43,7 +43,7 @@ class iniUtilities { | @@ -43,7 +43,7 @@ class iniUtilities { | ||
| 43 | private $lineNum = 0; | 43 | private $lineNum = 0; |
| 44 | private $exists = ''; | 44 | private $exists = ''; |
| 45 | 45 | ||
| 46 | - function Ini($iniFile = '../../config.ini') { | 46 | + function iniUtilities($iniFile = '../../config.ini') { |
| 47 | $this->iniFile = $iniFile; | 47 | $this->iniFile = $iniFile; |
| 48 | $this->backupIni($iniFile); | 48 | $this->backupIni($iniFile); |
| 49 | $this->read($iniFile); | 49 | $this->read($iniFile); |
| @@ -71,7 +71,6 @@ class iniUtilities { | @@ -71,7 +71,6 @@ class iniUtilities { | ||
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | function read($iniFile) { | 73 | function read($iniFile) { |
| 74 | - | ||
| 75 | $iniArray = file($iniFile); | 74 | $iniArray = file($iniFile); |
| 76 | $section = ''; | 75 | $section = ''; |
| 77 | foreach($iniArray as $iniLine) { | 76 | foreach($iniArray as $iniLine) { |
setup/wizard/installWizard.php
| @@ -287,14 +287,14 @@ class InstallWizard { | @@ -287,14 +287,14 @@ class InstallWizard { | ||
| 287 | $this->util->redirect('../migrate'); | 287 | $this->util->redirect('../migrate'); |
| 288 | } elseif ($this->util->upgradeSpecified()) { | 288 | } elseif ($this->util->upgradeSpecified()) { |
| 289 | $this->util->redirect('../upgrade/index.php?action=installer'); | 289 | $this->util->redirect('../upgrade/index.php?action=installer'); |
| 290 | - } elseif ($this->util->loginSpecified()) { | 290 | + }/* elseif ($this->util->loginSpecified()) { |
| 291 | header("Cache-Control: no-cache"); | 291 | header("Cache-Control: no-cache"); |
| 292 | $this->util->redirect('../../admin.php'); | 292 | $this->util->redirect('../../admin.php'); |
| 293 | } elseif ($this->util->zendSpecified()) { | 293 | } elseif ($this->util->zendSpecified()) { |
| 294 | $zend = "http://".$_SERVER['HTTP_HOST'].":10081/ZendServer/Index"; | 294 | $zend = "http://".$_SERVER['HTTP_HOST'].":10081/ZendServer/Index"; |
| 295 | header("Cache-Control: no-cache"); | 295 | header("Cache-Control: no-cache"); |
| 296 | $this->util->redirect($zend); | 296 | $this->util->redirect($zend); |
| 297 | - } | 297 | + }*/ |
| 298 | $response = $this->systemChecks(); | 298 | $response = $this->systemChecks(); |
| 299 | if($response === true) { | 299 | if($response === true) { |
| 300 | $this->displayInstaller(); | 300 | $this->displayInstaller(); |
setup/wizard/steps/configuration.php
| @@ -410,7 +410,7 @@ class configuration extends Step | @@ -410,7 +410,7 @@ class configuration extends Step | ||
| 410 | 410 | ||
| 411 | $pos = strpos($script, '/setup/wizard/'); | 411 | $pos = strpos($script, '/setup/wizard/'); |
| 412 | $root_url = substr($script, 0, $pos); | 412 | $root_url = substr($script, 0, $pos); |
| 413 | - | 413 | +echo $root_url; |
| 414 | $root_url = (isset($_POST['root_url'])) ? $_POST['root_url'] : $root_url; | 414 | $root_url = (isset($_POST['root_url'])) ? $_POST['root_url'] : $root_url; |
| 415 | $file_system_root = (isset($_POST['file_system_root'])) ? $_POST['file_system_root'] : $file_system_root.$root_url; | 415 | $file_system_root = (isset($_POST['file_system_root'])) ? $_POST['file_system_root'] : $file_system_root.$root_url; |
| 416 | $host = (isset($_POST['host'])) ? $_POST['host'] : $host; | 416 | $host = (isset($_POST['host'])) ? $_POST['host'] : $host; |
setup/wizard/templates/complete.tpl
| @@ -119,19 +119,27 @@ | @@ -119,19 +119,27 @@ | ||
| 119 | </div> | 119 | </div> |
| 120 | <?php } ?> | 120 | <?php } ?> |
| 121 | </div> | 121 | </div> |
| 122 | - | 122 | + <?php |
| 123 | + $script = $_SERVER['SCRIPT_NAME']; | ||
| 124 | + $file_system_root = $_SERVER['DOCUMENT_ROOT']; | ||
| 125 | + $host = $_SERVER['SERVER_NAME']; | ||
| 126 | + $port = $_SERVER['SERVER_PORT']; | ||
| 127 | + //$ssl_enabled = isset($_SERVER['HTTPS']) ? (strtolower($_SERVER['HTTPS']) === 'on' ? 'yes' : 'no') : 'no'; | ||
| 128 | + | ||
| 129 | + $pos = strpos($script, '/setup/wizard/'); | ||
| 130 | + $root_url = substr($script, 0, $pos); | ||
| 131 | + $redirect = "http://".$_SERVER['SERVER_NAME'].$root_url."/admin.php"; | ||
| 132 | + ?> | ||
| 123 | <?php if($migrate_check) { ?> | 133 | <?php if($migrate_check) { ?> |
| 124 | - <input type="submit" name="completeType" value="Login" class="button_next"/> | ||
| 125 | -<!-- <a href="../../admin.php" class="buttons back upgrade" style="width:80px;" onclick="javascript:{w.clearSessions();}">Goto Login</a>--> | 134 | + <a href="../../login.php?redirect=<?php echo $redirect; ?>" class="buttons back upgrade" style="width:80px;" onclick="javascript:{w.clearSessions();}">Goto Login</a> |
| 126 | <?php } else { ?> | 135 | <?php } else { ?> |
| 127 | - <input type="submit" name="completeType" value="Login" class="button_next"/> | ||
| 128 | -<!-- <a href="../../admin.php" class="buttons back upgrade" style="width:80px;" onclick="javascript:{w.clearSessions();}">Goto Login</a>--> | 136 | + <a href="../../login.php?redirect=<?php echo $redirect; ?>" class="buttons back upgrade" style="width:80px;" onclick="javascript:{w.clearSessions();}">Goto Login</a> |
| 129 | <?php } ?> | 137 | <?php } ?> |
| 130 | <?php | 138 | <?php |
| 131 | if ($install_environment == 'Zend') { | 139 | if ($install_environment == 'Zend') { |
| 132 | ?> | 140 | ?> |
| 133 | - <input type="submit" name="type" value="Zend Server Configuration" class="button_previous"/> | ||
| 134 | -<!-- <a href="<?php //echo "http://".$_SERVER['HTTP_HOST'].":10081/ZendServer/Index"; ?>" class="back" target="_blank" onclick="javascript:{w.clearSessions();}">Zend Server Configuration</a>--> | 141 | +<!-- <input type="submit" name="type" value="Zend Server Configuration" class="button_previous"/>--> |
| 142 | + <a href="<?php echo "http://".$_SERVER['HTTP_HOST'].":10081/ZendServer/Index"; ?>" class="back" target="_blank" onclick="javascript:{w.clearSessions();}">Zend Server Configuration</a> | ||
| 135 | <?php | 143 | <?php |
| 136 | } | 144 | } |
| 137 | ?> | 145 | ?> |