diff --git a/dmsctl.bat b/dmsctl.bat
index 7cf4d18..8802d4b 100644
--- a/dmsctl.bat
+++ b/dmsctl.bat
@@ -100,7 +100,6 @@ IF EXIST "%INSTALL_PATH%\var\bin\officeinstall.bat" echo The Open Office automat
IF EXIST "%INSTALL_PATH%\var\bin\schedulerinstall.bat" call "%INSTALL_PATH%\var\bin\schedulerinstall.bat"
IF EXIST "%INSTALL_PATH%\var\bin\schedulerinstall.bat" echo The Scheduler automatic service was successfully installed.
IF EXIST "%INSTALL_PATH%\var\bin\luceneinstall.bat" call "%INSTALL_PATH%\var\bin\luceneinstall.bat"
-IF EXIST "%INSTALL_PATH%\var\bin\luceneinstall.bat" echo The Lucene automatic service was successfully installed.
goto end
:end
diff --git a/dmsctl.sh b/dmsctl.sh
index 4de67f5..b84946e 100755
--- a/dmsctl.sh
+++ b/dmsctl.sh
@@ -267,8 +267,9 @@ stop_lucene() {
get_lucene_pid
cd $INSTALL_PATH/search2/indexing/bin
$ZEND_DIR/bin/php shutdown.php positive &> $INSTALL_PATH/var/log/dmsctl.log
+ exit=$?
sleep 5
- if [ $? -eq 0 ]; then
+ if [ $exit -eq 0 ]; then
echo "$0 $ARG: lucene stopped"
else
echo "$0 $ARG: lucene could not be stopped"
diff --git a/plugins/ktstandard/documentpreview/documentPreview.php b/plugins/ktstandard/documentpreview/documentPreview.php
index 7ace091..da58fa1 100755
--- a/plugins/ktstandard/documentpreview/documentPreview.php
+++ b/plugins/ktstandard/documentpreview/documentPreview.php
@@ -1,24 +1,38 @@
.
*
- * This edition of the KnowledgeTree software
- * is NOT licensed to you under Open Source terms.
- * You may not redistribute this source code.
- * For more information please see the License above.
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
*
- * (c) 2008 KnowledgeTree Inc.
- * Portions copyright The Jam Warehouse Software (Pty) Ltd;
- * All Rights Reserved.
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
*
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
*/
$kt_dir = $_REQUEST['kt_dir'];
diff --git a/plugins/ktstandard/documentpreview/documentPreviewPlugin.php b/plugins/ktstandard/documentpreview/documentPreviewPlugin.php
index 5b6d18c..4f6a364 100755
--- a/plugins/ktstandard/documentpreview/documentPreviewPlugin.php
+++ b/plugins/ktstandard/documentpreview/documentPreviewPlugin.php
@@ -1,24 +1,38 @@
.
+ *
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
+ *
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
+ *
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
*/
require_once(KT_LIB_DIR . '/plugins/plugin.inc.php');
diff --git a/plugins/pdfConverter/pdfConverter.php b/plugins/pdfConverter/pdfConverter.php
index 9d89753..4dd6afa 100644
--- a/plugins/pdfConverter/pdfConverter.php
+++ b/plugins/pdfConverter/pdfConverter.php
@@ -1,24 +1,38 @@
.
*
- * This edition of the KnowledgeTree software
- * is NOT licensed to you under Open Source terms.
- * You may not redistribute this source code.
- * For more information please see the License above.
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
*
- * (c) 2008 KnowledgeTree Inc.
- * Portions copyright The Jam Warehouse Software (Pty) Ltd;
- * All Rights Reserved.
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
*
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
*/
require_once(KT_DIR . '/search2/documentProcessor/documentProcessor.inc.php');
diff --git a/plugins/pdfConverter/pdfConverterPlugin.php b/plugins/pdfConverter/pdfConverterPlugin.php
index 5664ed1..1724e59 100644
--- a/plugins/pdfConverter/pdfConverterPlugin.php
+++ b/plugins/pdfConverter/pdfConverterPlugin.php
@@ -1,24 +1,39 @@
.
*
- * This edition of the KnowledgeTree software
- * is NOT licensed to you under Open Source terms.
- * You may not redistribute this source code.
- * For more information please see the License above.
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
*
- * (c) 2008 KnowledgeTree Inc.
- * Portions copyright The Jam Warehouse Software (Pty) Ltd;
- * All Rights Reserved.
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
*
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
*/
require_once(KT_LIB_DIR . '/plugins/plugin.inc.php');
diff --git a/plugins/search2/reporting/RescheduleDocuments.php b/plugins/search2/reporting/RescheduleDocuments.php
index a54b059..008a7fc 100644
--- a/plugins/search2/reporting/RescheduleDocuments.php
+++ b/plugins/search2/reporting/RescheduleDocuments.php
@@ -5,7 +5,7 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright (C) 2008, 2009 KnowledgeTree Inc.
- *
+ *
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
@@ -41,7 +41,8 @@ require_once(KT_LIB_DIR . '/templating/templating.inc.php');
class RescheduleDocumentsDispatcher extends KTAdminDispatcher
{
- function check() {
+ function check()
+ {
$this->aBreadcrumbs[] = array(
'url' => $_SERVER['PHP_SELF'],
'name' => _kt('Reschedule all documents'),
@@ -49,28 +50,34 @@ class RescheduleDocumentsDispatcher extends KTAdminDispatcher
return parent::check();
}
- function do_main() {
-
- //registerTypes registers the mime types and populates the needed tables.
- $indexer = Indexer::get();
- $indexer->registerTypes();
-
+ function do_main()
+ {
$oTemplating =& KTTemplating::getSingleton();
$oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/rescheduledocuments');
+ $rescheduleDone = ($_REQUEST['rescheduleDone'] == 'true') ? 'true' : 'false';
+ $reprocessDone = ($_REQUEST['reprocessDone'] == 'true') ? 'true' : 'false';
+
if ($_REQUEST['rescheduleValue'] == 'reschedule')
{
+ //registerTypes registers the mime types and populates the needed tables.
+ $indexer = Indexer::get();
+ $indexer->registerTypes();
+
Indexer::indexAll();
- $oTemplate->setData(array(
- 'context' => $this,
- 'rescheduleDone' => true
- ));
- return $oTemplate;
+ $rescheduleDone = 'true';
+ }
+
+ if ($_REQUEST['rescheduleValue'] == 'reprocess')
+ {
+ Indexer::processAll();
+ $reprocessDone = 'true';
}
$oTemplate->setData(array(
'context' => $this,
- 'rescheduleDone' => false
+ 'rescheduleDone' => $rescheduleDone,
+ 'reprocessDone' => $reprocessDone
));
return $oTemplate;
diff --git a/plugins/thumbnails/thumbnails.php b/plugins/thumbnails/thumbnails.php
index 4fbf99b..6a89c0d 100755
--- a/plugins/thumbnails/thumbnails.php
+++ b/plugins/thumbnails/thumbnails.php
@@ -1,24 +1,38 @@
.
*
- * This edition of the KnowledgeTree software
- * is NOT licensed to you under Open Source terms.
- * You may not redistribute this source code.
- * For more information please see the License above.
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
*
- * (c) 2008 KnowledgeTree Inc.
- * Portions copyright The Jam Warehouse Software (Pty) Ltd;
- * All Rights Reserved.
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
*
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
*/
require_once(KT_LIB_DIR . "/actions/documentviewlet.inc.php");
diff --git a/plugins/thumbnails/thumbnailsPlugin.php b/plugins/thumbnails/thumbnailsPlugin.php
index 2d32844..c07b03b 100755
--- a/plugins/thumbnails/thumbnailsPlugin.php
+++ b/plugins/thumbnails/thumbnailsPlugin.php
@@ -1,24 +1,39 @@
.
*
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
+ *
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
+ *
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
*/
require_once(KT_LIB_DIR . '/plugins/plugin.inc.php');
@@ -49,7 +64,7 @@ class thumbnailsPlugin extends KTPlugin {
require_once(KT_LIB_DIR . '/templating/templating.inc.php');
$oTemplating =& KTTemplating::getSingleton();
$oTemplating->addLocation('thumbnails', $plugin_dir.'templates', 'thumbnails.generator.processor.plugin');
-
+
// check for existing config settings entry and only add if not already present
$sql = 'SELECT id FROM `config_settings` WHERE group_name = "externalBinary" AND item = "convertPath"';
$result = DBUtil::getOneResult($sql);
diff --git a/search2/indexing/indexerCore.inc.php b/search2/indexing/indexerCore.inc.php
index 9b26082..3fc224c 100755
--- a/search2/indexing/indexerCore.inc.php
+++ b/search2/indexing/indexerCore.inc.php
@@ -700,6 +700,17 @@ abstract class Indexer
DBUtil::runQuery($sql);
}
+ public static function processAll()
+ {
+ // Empty the queue
+ $sql = "DELETE FROM process_queue";
+ DBUtil::runQuery($sql);
+
+ // Add all documents to the queue
+ $sql = "INSERT INTO process_queue(document_id, date_added) SELECT id, now() FROM documents WHERE status_id=1 and id not in (select document_id from process_queue)";
+ DBUtil::runQuery($sql);
+ }
+
public static function indexFolder($folder)
{
$userid=$_SESSION['userID'];
diff --git a/setup/migrate/migrateUtil.php b/setup/migrate/migrateUtil.php
index 6792e23..67bdc96 100644
--- a/setup/migrate/migrateUtil.php
+++ b/setup/migrate/migrateUtil.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
diff --git a/setup/migrate/session.php b/setup/migrate/session.php
index 4d5489a..9a022fb 100644
--- a/setup/migrate/session.php
+++ b/setup/migrate/session.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
diff --git a/setup/migrate/step.php b/setup/migrate/step.php
index 06d4ef1..2457e49 100644
--- a/setup/migrate/step.php
+++ b/setup/migrate/step.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
@@ -429,6 +428,20 @@ class Step
public function setErrors($error) {
$this->error = $error;
}
+
+ /**
+ * Is the installation
+ *
+ * @author KnowledgeTree Team
+ * @param none
+ * @access public
+ * @return string
+ */
+ public function isCe() {
+ if($this->util->getVersionType() == "community")
+ return true;
+ return false;
+ }
}
?>
\ No newline at end of file
diff --git a/setup/migrate/steps/migrateComplete.php b/setup/migrate/steps/migrateComplete.php
index 1fe77e8..cf99ec9 100644
--- a/setup/migrate/steps/migrateComplete.php
+++ b/setup/migrate/steps/migrateComplete.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
diff --git a/setup/migrate/steps/migrateDatabase.php b/setup/migrate/steps/migrateDatabase.php
index ca4fbdc..b4a6bc0 100644
--- a/setup/migrate/steps/migrateDatabase.php
+++ b/setup/migrate/steps/migrateDatabase.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
@@ -103,7 +102,7 @@ class migrateDatabase extends Step
} else if($this->previous()) {
return 'previous';
}
-
+ $this->storeSilent();
return 'landing';
}
@@ -171,7 +170,7 @@ class migrateDatabase extends Step
$cmd = $exe.' -u"'.$dbAdminUser.'" -p"'.$dbAdminPass.'" --port="'.$port.'" '.$dbName.' > '.$sqlFile;
if($noFile) {
$this->error[]['error'] = "The KnowledgeTree Setup Wizard was unable to connect to your KnowledgeTree 3.6.1 database.";
- $this->error[]['msg'] = "Please ensure that your KnowledgeTree Mysql service is running.";
+ $this->error[]['msg'] = "Ensure that your KnowledgeTree Mysql service is running.";
$this->error[]['cmd'] = "Click Next after resolving the above errors.";
$this->temp_variables['manual_export'] = "";
} else {
@@ -209,6 +208,9 @@ class migrateDatabase extends Step
private function setDetails() {
$this->createMigrateFile(); // create lock file to indicate migration mode
$database = $this->getDataFromSession("database");
+ $installation = $this->getDataFromSession("installation"); // Get installation directory
+ $location = $installation['location'];
+ $this->temp_variables['location'] = $location;
if(isset($database['dumpLocation'])) {
if(!empty($database['dumpLocation'])) {
if(file_exists($database['dumpLocation'])) { // Maybe file has been deleted by tmp
@@ -220,7 +222,8 @@ class migrateDatabase extends Step
$this->temp_variables['duname'] = $this->getPostSafe('duname');
$this->temp_variables['dpassword'] = $this->getPostSafe('dpassword');
$this->temp_variables['dumpLocation'] = $this->getPostSafe('dumpLocation');
-
+
+
return true;
}
diff --git a/setup/migrate/steps/migrateErrors.php b/setup/migrate/steps/migrateErrors.php
index bdd8687..8890d12 100644
--- a/setup/migrate/steps/migrateErrors.php
+++ b/setup/migrate/steps/migrateErrors.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
diff --git a/setup/migrate/steps/migrateInstallation.php b/setup/migrate/steps/migrateInstallation.php
index e97c313..97a16fe 100644
--- a/setup/migrate/steps/migrateInstallation.php
+++ b/setup/migrate/steps/migrateInstallation.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
@@ -220,7 +219,7 @@ class migrateInstallation extends step
$this->error[] = "KnowledgeTree installation configuration file not found";
}
} else {
- $this->error[] = "Please Enter a Location";
+ $this->error[] = "Enter a Location";
}
return false;
diff --git a/setup/migrate/steps/migrateServices.php b/setup/migrate/steps/migrateServices.php
index acd6d87..9b3b507 100644
--- a/setup/migrate/steps/migrateServices.php
+++ b/setup/migrate/steps/migrateServices.php
@@ -5,7 +5,6 @@
* KnowledgeTree Community Edition
* Document Management Made Simple
* Copyright(C) 2008,2009 KnowledgeTree Inc.
-* Portions copyright The Jam Warehouse Software(Pty) Limited
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
@@ -294,7 +293,7 @@ class migrateServices extends Step
$state = 'cross';
$this->error[] = "Service : {$serv->getName()} could not be uninstalled.
";
$this->serviceCheck = 'cross';
- $this->temp_variables['services'][$serv->getName()]['msg'] = "Service Stopped, please uninstall service";
+ $this->temp_variables['services'][$serv->getName()]['msg'] = "Service Stopped, uninstall service";
} else {
$state = 'tick';
$this->temp_variables['services'][$serv->getName()]['msg'] = "Service has been uninstalled";
@@ -402,7 +401,7 @@ class migrateServices extends Step
private function storeSilent() {
$this->temp_variables['alreadyUninstalled'] = $this->alreadyUninstalled;
$this->temp_variables['serviceCheck'] = $this->serviceCheck;
- $this->temp_variables['msg'] = "Please turn off KnowledgeTree Mysql Instance.";
+ $this->temp_variables['msg'] = "Turn off KnowledgeTree Mysql Instance.";
}
}
?>
\ No newline at end of file
diff --git a/setup/migrate/templates/complete.tpl b/setup/migrate/templates/complete.tpl
index f1fd284..4e97df3 100644
--- a/setup/migrate/templates/complete.tpl
+++ b/setup/migrate/templates/complete.tpl
@@ -1,7 +1,7 @@