Commit 87d14008b8b92052113f1af84a99ea6cdae99dcb

Authored by Paul Barrett
2 parents db979362 25dbe600

Merge branch 'edge' of github.com:ktgit/knowledgetree into edge

plugins/ktstandard/documentpreview/documentPreview.php
1 <?php 1 <?php
2 -/* 2 +
  3 +/**
3 * $Id: $ 4 * $Id: $
4 * 5 *
5 - * The contents of this file are subject to the KnowledgeTree  
6 - * Commercial Editions On-Premise License ("License");  
7 - * You may not use this file except in compliance with the License.  
8 - * You may obtain a copy of the License at  
9 - * http://www.knowledgetree.com/about/legal/  
10 - * The terms of this license may change from time to time and the latest  
11 - * license will be published from time to time at the above Internet address. 6 + * KnowledgeTree Community Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2008, 2009 KnowledgeTree Inc.
  9 + *
  10 + *
  11 + * This program is free software; you can redistribute it and/or modify it under
  12 + * the terms of the GNU General Public License version 3 as published by the
  13 + * Free Software Foundation.
  14 + *
  15 + * This program is distributed in the hope that it will be useful, but WITHOUT
  16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  18 + * details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
12 * 22 *
13 - * This edition of the KnowledgeTree software  
14 - * is NOT licensed to you under Open Source terms.  
15 - * You may not redistribute this source code.  
16 - * For more information please see the License above. 23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
  24 + * California 94120-7775, or email info@knowledgetree.com.
17 * 25 *
18 - * (c) 2008 KnowledgeTree Inc.  
19 - * Portions copyright The Jam Warehouse Software (Pty) Ltd;  
20 - * All Rights Reserved. 26 + * The interactive user interfaces in modified source and object code versions
  27 + * of this program must display Appropriate Legal Notices, as required under
  28 + * Section 5 of the GNU General Public License version 3.
21 * 29 *
  30 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  31 + * these Appropriate Legal Notices must retain the display of the "Powered by
  32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  33 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  34 + * must display the words "Powered by KnowledgeTree" and retain the original
  35 + * copyright notice.
  36 + * Contributor( s): ______________________________________
22 */ 37 */
23 38
24 $kt_dir = $_REQUEST['kt_dir']; 39 $kt_dir = $_REQUEST['kt_dir'];
plugins/ktstandard/documentpreview/documentPreviewPlugin.php
1 <?php 1 <?php
2 -/* 2 +
  3 +/**
3 * $Id: $ 4 * $Id: $
4 * 5 *
5 - * The contents of this file are subject to the KnowledgeTree  
6 - * Commercial Editions On-Premise License ("License");  
7 - * You may not use this file except in compliance with the License.  
8 - * You may obtain a copy of the License at  
9 - * http://www.knowledgetree.com/about/legal/  
10 - * The terms of this license may change from time to time and the latest  
11 - * license will be published from time to time at the above Internet address. 6 + * KnowledgeTree Community Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2008, 2009 KnowledgeTree Inc.
  9 + *
  10 + *
  11 + * This program is free software; you can redistribute it and/or modify it under
  12 + * the terms of the GNU General Public License version 3 as published by the
  13 + * Free Software Foundation.
  14 + *
  15 + * This program is distributed in the hope that it will be useful, but WITHOUT
  16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  18 + * details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
12 * 22 *
13 - * This edition of the KnowledgeTree software  
14 - * is NOT licensed to you under Open Source terms.  
15 - * You may not redistribute this source code.  
16 - * For more information please see the License above. 23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
  24 + * California 94120-7775, or email info@knowledgetree.com.
17 * 25 *
18 - * (c) 2008 KnowledgeTree Inc.  
19 - * Portions copyright The Jam Warehouse Software (Pty) Ltd;  
20 - * All Rights Reserved. 26 + * The interactive user interfaces in modified source and object code versions
  27 + * of this program must display Appropriate Legal Notices, as required under
  28 + * Section 5 of the GNU General Public License version 3.
21 * 29 *
  30 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  31 + * these Appropriate Legal Notices must retain the display of the "Powered by
  32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  33 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  34 + * must display the words "Powered by KnowledgeTree" and retain the original
  35 + * copyright notice.
  36 + * Contributor( s): ______________________________________
22 */ 37 */
23 38
24 require_once(KT_LIB_DIR . '/plugins/plugin.inc.php'); 39 require_once(KT_LIB_DIR . '/plugins/plugin.inc.php');
plugins/pdfConverter/pdfConverter.php
1 <?php 1 <?php
2 -/* 2 +
  3 +/**
3 * $Id: $ 4 * $Id: $
4 * 5 *
5 - * The contents of this file are subject to the KnowledgeTree  
6 - * Commercial Editions On-Premise License ("License");  
7 - * You may not use this file except in compliance with the License.  
8 - * You may obtain a copy of the License at  
9 - * http://www.knowledgetree.com/about/legal/  
10 - * The terms of this license may change from time to time and the latest  
11 - * license will be published from time to time at the above Internet address. 6 + * KnowledgeTree Community Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2008, 2009 KnowledgeTree Inc.
  9 + *
  10 + *
  11 + * This program is free software; you can redistribute it and/or modify it under
  12 + * the terms of the GNU General Public License version 3 as published by the
  13 + * Free Software Foundation.
  14 + *
  15 + * This program is distributed in the hope that it will be useful, but WITHOUT
  16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  18 + * details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
12 * 22 *
13 - * This edition of the KnowledgeTree software  
14 - * is NOT licensed to you under Open Source terms.  
15 - * You may not redistribute this source code.  
16 - * For more information please see the License above. 23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
  24 + * California 94120-7775, or email info@knowledgetree.com.
17 * 25 *
18 - * (c) 2008 KnowledgeTree Inc.  
19 - * Portions copyright The Jam Warehouse Software (Pty) Ltd;  
20 - * All Rights Reserved. 26 + * The interactive user interfaces in modified source and object code versions
  27 + * of this program must display Appropriate Legal Notices, as required under
  28 + * Section 5 of the GNU General Public License version 3.
21 * 29 *
  30 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  31 + * these Appropriate Legal Notices must retain the display of the "Powered by
  32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  33 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  34 + * must display the words "Powered by KnowledgeTree" and retain the original
  35 + * copyright notice.
  36 + * Contributor( s): ______________________________________
22 */ 37 */
23 38
24 require_once(KT_DIR . '/search2/documentProcessor/documentProcessor.inc.php'); 39 require_once(KT_DIR . '/search2/documentProcessor/documentProcessor.inc.php');
plugins/pdfConverter/pdfConverterPlugin.php
1 <?php 1 <?php
  2 +
2 /** 3 /**
3 * $Id: $ 4 * $Id: $
4 * 5 *
5 - * The contents of this file are subject to the KnowledgeTree  
6 - * Commercial Editions On-Premise License ("License");  
7 - * You may not use this file except in compliance with the License.  
8 - * You may obtain a copy of the License at  
9 - * http://www.knowledgetree.com/about/legal/  
10 - * The terms of this license may change from time to time and the latest  
11 - * license will be published from time to time at the above Internet address. 6 + * KnowledgeTree Community Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2008, 2009 KnowledgeTree Inc.
  9 + *
  10 + *
  11 + * This program is free software; you can redistribute it and/or modify it under
  12 + * the terms of the GNU General Public License version 3 as published by the
  13 + * Free Software Foundation.
  14 + *
  15 + * This program is distributed in the hope that it will be useful, but WITHOUT
  16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  18 + * details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
12 * 22 *
13 - * This edition of the KnowledgeTree software  
14 - * is NOT licensed to you under Open Source terms.  
15 - * You may not redistribute this source code.  
16 - * For more information please see the License above. 23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
  24 + * California 94120-7775, or email info@knowledgetree.com.
17 * 25 *
18 - * (c) 2008 KnowledgeTree Inc.  
19 - * Portions copyright The Jam Warehouse Software (Pty) Ltd;  
20 - * All Rights Reserved. 26 + * The interactive user interfaces in modified source and object code versions
  27 + * of this program must display Appropriate Legal Notices, as required under
  28 + * Section 5 of the GNU General Public License version 3.
21 * 29 *
  30 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  31 + * these Appropriate Legal Notices must retain the display of the "Powered by
  32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  33 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  34 + * must display the words "Powered by KnowledgeTree" and retain the original
  35 + * copyright notice.
  36 + * Contributor( s): ______________________________________
22 */ 37 */
23 38
24 require_once(KT_LIB_DIR . '/plugins/plugin.inc.php'); 39 require_once(KT_LIB_DIR . '/plugins/plugin.inc.php');
plugins/search2/reporting/RescheduleDocuments.php
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 * KnowledgeTree Community Edition 5 * KnowledgeTree Community Edition
6 * Document Management Made Simple 6 * Document Management Made Simple
7 * Copyright (C) 2008, 2009 KnowledgeTree Inc. 7 * Copyright (C) 2008, 2009 KnowledgeTree Inc.
8 - * 8 + *
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify it under 10 * This program is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License version 3 as published by the 11 * the terms of the GNU General Public License version 3 as published by the
@@ -41,7 +41,8 @@ require_once(KT_LIB_DIR . &#39;/templating/templating.inc.php&#39;); @@ -41,7 +41,8 @@ require_once(KT_LIB_DIR . &#39;/templating/templating.inc.php&#39;);
41 41
42 class RescheduleDocumentsDispatcher extends KTAdminDispatcher 42 class RescheduleDocumentsDispatcher extends KTAdminDispatcher
43 { 43 {
44 - function check() { 44 + function check()
  45 + {
45 $this->aBreadcrumbs[] = array( 46 $this->aBreadcrumbs[] = array(
46 'url' => $_SERVER['PHP_SELF'], 47 'url' => $_SERVER['PHP_SELF'],
47 'name' => _kt('Reschedule all documents'), 48 'name' => _kt('Reschedule all documents'),
@@ -49,28 +50,34 @@ class RescheduleDocumentsDispatcher extends KTAdminDispatcher @@ -49,28 +50,34 @@ class RescheduleDocumentsDispatcher extends KTAdminDispatcher
49 return parent::check(); 50 return parent::check();
50 } 51 }
51 52
52 - function do_main() {  
53 -  
54 - //registerTypes registers the mime types and populates the needed tables.  
55 - $indexer = Indexer::get();  
56 - $indexer->registerTypes();  
57 - 53 + function do_main()
  54 + {
58 $oTemplating =& KTTemplating::getSingleton(); 55 $oTemplating =& KTTemplating::getSingleton();
59 $oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/rescheduledocuments'); 56 $oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/rescheduledocuments');
60 57
  58 + $rescheduleDone = ($_REQUEST['rescheduleDone'] == 'true') ? 'true' : 'false';
  59 + $reprocessDone = ($_REQUEST['reprocessDone'] == 'true') ? 'true' : 'false';
  60 +
61 if ($_REQUEST['rescheduleValue'] == 'reschedule') 61 if ($_REQUEST['rescheduleValue'] == 'reschedule')
62 { 62 {
  63 + //registerTypes registers the mime types and populates the needed tables.
  64 + $indexer = Indexer::get();
  65 + $indexer->registerTypes();
  66 +
63 Indexer::indexAll(); 67 Indexer::indexAll();
64 - $oTemplate->setData(array(  
65 - 'context' => $this,  
66 - 'rescheduleDone' => true  
67 - ));  
68 - return $oTemplate; 68 + $rescheduleDone = 'true';
  69 + }
  70 +
  71 + if ($_REQUEST['rescheduleValue'] == 'reprocess')
  72 + {
  73 + Indexer::processAll();
  74 + $reprocessDone = 'true';
69 } 75 }
70 76
71 $oTemplate->setData(array( 77 $oTemplate->setData(array(
72 'context' => $this, 78 'context' => $this,
73 - 'rescheduleDone' => false 79 + 'rescheduleDone' => $rescheduleDone,
  80 + 'reprocessDone' => $reprocessDone
74 81
75 )); 82 ));
76 return $oTemplate; 83 return $oTemplate;
plugins/thumbnails/thumbnails.php
1 <?php 1 <?php
2 -/* 2 +
  3 +/**
3 * $Id: $ 4 * $Id: $
4 * 5 *
5 - * The contents of this file are subject to the KnowledgeTree  
6 - * Commercial Editions On-Premise License ("License");  
7 - * You may not use this file except in compliance with the License.  
8 - * You may obtain a copy of the License at  
9 - * http://www.knowledgetree.com/about/legal/  
10 - * The terms of this license may change from time to time and the latest  
11 - * license will be published from time to time at the above Internet address. 6 + * KnowledgeTree Community Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2008, 2009 KnowledgeTree Inc.
  9 + *
  10 + *
  11 + * This program is free software; you can redistribute it and/or modify it under
  12 + * the terms of the GNU General Public License version 3 as published by the
  13 + * Free Software Foundation.
  14 + *
  15 + * This program is distributed in the hope that it will be useful, but WITHOUT
  16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  18 + * details.
  19 + *
  20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
12 * 22 *
13 - * This edition of the KnowledgeTree software  
14 - * is NOT licensed to you under Open Source terms.  
15 - * You may not redistribute this source code.  
16 - * For more information please see the License above. 23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
  24 + * California 94120-7775, or email info@knowledgetree.com.
17 * 25 *
18 - * (c) 2008 KnowledgeTree Inc.  
19 - * Portions copyright The Jam Warehouse Software (Pty) Ltd;  
20 - * All Rights Reserved. 26 + * The interactive user interfaces in modified source and object code versions
  27 + * of this program must display Appropriate Legal Notices, as required under
  28 + * Section 5 of the GNU General Public License version 3.
21 * 29 *
  30 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  31 + * these Appropriate Legal Notices must retain the display of the "Powered by
  32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  33 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  34 + * must display the words "Powered by KnowledgeTree" and retain the original
  35 + * copyright notice.
  36 + * Contributor( s): ______________________________________
22 */ 37 */
23 38
24 require_once(KT_LIB_DIR . "/actions/documentviewlet.inc.php"); 39 require_once(KT_LIB_DIR . "/actions/documentviewlet.inc.php");
plugins/thumbnails/thumbnailsPlugin.php
1 <?php 1 <?php
  2 +
2 /** 3 /**
3 * $Id: $ 4 * $Id: $
4 * 5 *
5 - * The contents of this file are subject to the KnowledgeTree  
6 - * Commercial Editions On-Premise License ("License");  
7 - * You may not use this file except in compliance with the License.  
8 - * You may obtain a copy of the License at  
9 - * http://www.knowledgetree.com/about/legal/  
10 - * The terms of this license may change from time to time and the latest  
11 - * license will be published from time to time at the above Internet address. 6 + * KnowledgeTree Community Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2008, 2009 KnowledgeTree Inc.
  9 + *
  10 + *
  11 + * This program is free software; you can redistribute it and/or modify it under
  12 + * the terms of the GNU General Public License version 3 as published by the
  13 + * Free Software Foundation.
12 * 14 *
13 - * This edition of the KnowledgeTree software  
14 - * is NOT licensed to you under Open Source terms.  
15 - * You may not redistribute this source code.  
16 - * For more information please see the License above. 15 + * This program is distributed in the hope that it will be useful, but WITHOUT
  16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  18 + * details.
17 * 19 *
18 - * (c) 2008 KnowledgeTree Inc.  
19 - * Portions copyright The Jam Warehouse Software (Pty) Ltd;  
20 - * All Rights Reserved. 20 + * You should have received a copy of the GNU General Public License
  21 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 * 22 *
  23 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
  24 + * California 94120-7775, or email info@knowledgetree.com.
  25 + *
  26 + * The interactive user interfaces in modified source and object code versions
  27 + * of this program must display Appropriate Legal Notices, as required under
  28 + * Section 5 of the GNU General Public License version 3.
  29 + *
  30 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  31 + * these Appropriate Legal Notices must retain the display of the "Powered by
  32 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  33 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  34 + * must display the words "Powered by KnowledgeTree" and retain the original
  35 + * copyright notice.
  36 + * Contributor( s): ______________________________________
22 */ 37 */
23 38
24 require_once(KT_LIB_DIR . '/plugins/plugin.inc.php'); 39 require_once(KT_LIB_DIR . '/plugins/plugin.inc.php');
@@ -49,7 +64,7 @@ class thumbnailsPlugin extends KTPlugin { @@ -49,7 +64,7 @@ class thumbnailsPlugin extends KTPlugin {
49 require_once(KT_LIB_DIR . '/templating/templating.inc.php'); 64 require_once(KT_LIB_DIR . '/templating/templating.inc.php');
50 $oTemplating =& KTTemplating::getSingleton(); 65 $oTemplating =& KTTemplating::getSingleton();
51 $oTemplating->addLocation('thumbnails', $plugin_dir.'templates', 'thumbnails.generator.processor.plugin'); 66 $oTemplating->addLocation('thumbnails', $plugin_dir.'templates', 'thumbnails.generator.processor.plugin');
52 - 67 +
53 // check for existing config settings entry and only add if not already present 68 // check for existing config settings entry and only add if not already present
54 $sql = 'SELECT id FROM `config_settings` WHERE group_name = "externalBinary" AND item = "convertPath"'; 69 $sql = 'SELECT id FROM `config_settings` WHERE group_name = "externalBinary" AND item = "convertPath"';
55 $result = DBUtil::getOneResult($sql); 70 $result = DBUtil::getOneResult($sql);
search2/indexing/indexerCore.inc.php
@@ -700,6 +700,17 @@ abstract class Indexer @@ -700,6 +700,17 @@ abstract class Indexer
700 DBUtil::runQuery($sql); 700 DBUtil::runQuery($sql);
701 } 701 }
702 702
  703 + public static function processAll()
  704 + {
  705 + // Empty the queue
  706 + $sql = "DELETE FROM process_queue";
  707 + DBUtil::runQuery($sql);
  708 +
  709 + // Add all documents to the queue
  710 + $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)";
  711 + DBUtil::runQuery($sql);
  712 + }
  713 +
703 public static function indexFolder($folder) 714 public static function indexFolder($folder)
704 { 715 {
705 $userid=$_SESSION['userID']; 716 $userid=$_SESSION['userID'];
setup/migrate/steps/migrateDatabase.php
@@ -211,6 +211,7 @@ class migrateDatabase extends Step @@ -211,6 +211,7 @@ class migrateDatabase extends Step
211 $database = $this->getDataFromSession("database"); 211 $database = $this->getDataFromSession("database");
212 $installation = $this->getDataFromSession("installation"); // Get installation directory 212 $installation = $this->getDataFromSession("installation"); // Get installation directory
213 $location = $installation['location']; 213 $location = $installation['location'];
  214 + $this->temp_variables['location'] = $location;
214 if(isset($database['dumpLocation'])) { 215 if(isset($database['dumpLocation'])) {
215 if(!empty($database['dumpLocation'])) { 216 if(!empty($database['dumpLocation'])) {
216 if(file_exists($database['dumpLocation'])) { // Maybe file has been deleted by tmp 217 if(file_exists($database['dumpLocation'])) { // Maybe file has been deleted by tmp
@@ -222,7 +223,7 @@ class migrateDatabase extends Step @@ -222,7 +223,7 @@ class migrateDatabase extends Step
222 $this->temp_variables['duname'] = $this->getPostSafe('duname'); 223 $this->temp_variables['duname'] = $this->getPostSafe('duname');
223 $this->temp_variables['dpassword'] = $this->getPostSafe('dpassword'); 224 $this->temp_variables['dpassword'] = $this->getPostSafe('dpassword');
224 $this->temp_variables['dumpLocation'] = $this->getPostSafe('dumpLocation'); 225 $this->temp_variables['dumpLocation'] = $this->getPostSafe('dumpLocation');
225 - $this->temp_variables['location'] = $location; 226 +
226 227
227 return true; 228 return true;
228 } 229 }
setup/migrate/templates/database.tpl
@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 <p class="description">Click <b>Next</b> to continue.</p> 54 <p class="description">Click <b>Next</b> to continue.</p>
55 <?php } ?> 55 <?php } ?>
56 <!--Handle a failed dump--> 56 <!--Handle a failed dump-->
57 -<?php if(isset($errors)) { ?> 57 +<?php if(!empty($errors)) { ?>
58 <?php 58 <?php
59 foreach ($errors as $error) { 59 foreach ($errors as $error) {
60 ?> 60 ?>
@@ -81,8 +81,7 @@ @@ -81,8 +81,7 @@
81 // echo $error['cmd']; 81 // echo $error['cmd'];
82 // } 82 // }
83 } 83 }
84 - }  
85 - ?> 84 +?>
86 <p class="description"> 85 <p class="description">
87 Ensure that the new Mysql server installed from your operating system's repository is not running 86 Ensure that the new Mysql server installed from your operating system's repository is not running
88 </p> 87 </p>
@@ -119,6 +118,10 @@ @@ -119,6 +118,10 @@
119 <?php } ?> 118 <?php } ?>
120 </p> 119 </p>
121 <br/> 120 <br/>
  121 +<?php
  122 + }
  123 + ?>
  124 +
122 125
123 <br/> 126 <br/>
124 </div> 127 </div>
setup/wizard/steps/dependencies.php
@@ -375,7 +375,7 @@ class dependencies extends Step @@ -375,7 +375,7 @@ class dependencies extends Step
375 array('name' => 'Open base directory', 'configuration' => 'open_basedir', 'recommended' => 'unset', 'type' => 'empty'), 375 array('name' => 'Open base directory', 'configuration' => 'open_basedir', 'recommended' => 'unset', 'type' => 'empty'),
376 array('name' => 'Default MIME type', 'configuration' => 'default_mimetype', 'recommended' => 'text/html', 'type' => 'string'), 376 array('name' => 'Default MIME type', 'configuration' => 'default_mimetype', 'recommended' => 'text/html', 'type' => 'string'),
377 ); 377 );
378 - if(!WINDOWS_OS) { 378 + if(!WINDOWS_OS) { // Remove linux settings
379 unset($conf[1]); 379 unset($conf[1]);
380 unset($conf[2]); 380 unset($conf[2]);
381 } 381 }
sql/mysql/upgrade/3.7.0.2/reprocess_all.sql 0 → 100644
  1 +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);
0 \ No newline at end of file 2 \ No newline at end of file
templates/ktcore/search2/reporting/rescheduledocuments.smarty
@@ -4,12 +4,25 @@ @@ -4,12 +4,25 @@
4 4
5 <form name="rescheduleAllDocs" action="{$smarty.server.PHP_SELF}" method="POST"> 5 <form name="rescheduleAllDocs" action="{$smarty.server.PHP_SELF}" method="POST">
6 <br> 6 <br>
7 -{if $rescheduleDone == true}  
8 -<p>Documents Rescheduled</p>  
9 -<p>You can view the schedule queue <a href=admin.php?kt_path_info=search/pendingdocuments>here</a></p> 7 +<h4>{i18n}Reschedule All Documents for Indexing{/i18n}</h4>
  8 +<p class='descriptiveText'>{i18n}Schedule all documents in the repository to be indexed.{/i18n}</p>
  9 +{if $rescheduleDone == 'true'}
  10 +<p style="padding-top: 5px;">{i18n}All documents have been rescheduled for indexing.{/i18n}</p>
  11 +<p><a href=admin.php?kt_path_info=search/pendingdocuments>{i18n}View the indexing queue.{/i18n}</a></p>
  12 +{/if}
10 <br> 13 <br>
  14 +<input type="submit" name="Reschedule" value="{i18n}Reschedule All{/i18n}" onclick="document.getElementById('rescheduleValue').value='reschedule';" />
  15 +
  16 +<br><br><br>
  17 +<h4>{i18n}Reschedule All Documents for Processing{/i18n}</h4>
  18 +<p class='descriptiveText'>{i18n}Schedule all documents in the repository to be processed. Processing involves the conversion of documents into PDF format and the generation of thumbnails.{/i18n}</p>
  19 +{if $reprocessDone == 'true'}
  20 +<p style="padding-top: 5px;">{i18n}All documents have been rescheduled for processing.{/i18n}</p>
11 {/if} 21 {/if}
12 -<input type="submit" name="Reschedule" value="{i18n}Reschedule All{/i18n}" />  
13 -<input type="hidden" name="rescheduleValue" id="rescheduleValue" value="reschedule" /> 22 +<br>
  23 +<input type="submit" name="Reprocess" value="{i18n}Reschedule All{/i18n}" onclick="document.getElementById('rescheduleValue').value='reprocess';" />
14 24
  25 +<input type="hidden" name="rescheduleDone" id="rescheduleDone" value="{$rescheduleDone}" />
  26 +<input type="hidden" name="reprocessDone" id="reprocessDone" value="{$reprocessDone}" />
  27 +<input type="hidden" name="rescheduleValue" id="rescheduleValue" value="reschedule" />
15 </form> 28 </form>
16 \ No newline at end of file 29 \ No newline at end of file