diff --git a/about.php b/about.php
index e584631..573e88b 100644
--- a/about.php
+++ b/about.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/action.php b/action.php
index 162a891..db5b3c7 100644
--- a/action.php
+++ b/action.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/admin.php b/admin.php
index e5e619a..52aa542 100644
--- a/admin.php
+++ b/admin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/automated_upgrade.php b/bin/automated_upgrade.php
index f3e14d4..9c792d4 100644
--- a/bin/automated_upgrade.php
+++ b/bin/automated_upgrade.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/cleanup.php b/bin/cleanup.php
index 6bc2b6e..8d1e015 100644
--- a/bin/cleanup.php
+++ b/bin/cleanup.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/expungeall.php b/bin/expungeall.php
index d93ff26..76e18e7 100644
--- a/bin/expungeall.php
+++ b/bin/expungeall.php
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/recreateIndexes.php b/bin/recreateIndexes.php
index 34748d3..7c1be23 100644
--- a/bin/recreateIndexes.php
+++ b/bin/recreateIndexes.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/scheduler.php b/bin/scheduler.php
index a3b032c..894da4b 100644
--- a/bin/scheduler.php
+++ b/bin/scheduler.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/storageverification.php b/bin/storageverification.php
index 6f407e8..135412a 100755
--- a/bin/storageverification.php
+++ b/bin/storageverification.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/upgrade/pre-upgrade-3.0b3.php b/bin/upgrade/pre-upgrade-3.0b3.php
index 3f8a803..12eb6da 100644
--- a/bin/upgrade/pre-upgrade-3.0b3.php
+++ b/bin/upgrade/pre-upgrade-3.0b3.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/upgrade/upgrade-to-2.0.6.php b/bin/upgrade/upgrade-to-2.0.6.php
index 0bf6a70..b73c4cd 100644
--- a/bin/upgrade/upgrade-to-2.0.6.php
+++ b/bin/upgrade/upgrade-to-2.0.6.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/win32/installScheduler.php b/bin/win32/installScheduler.php
index 92dc9ab..b6d8c5e 100644
--- a/bin/win32/installScheduler.php
+++ b/bin/win32/installScheduler.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/win32/schedulerService.php b/bin/win32/schedulerService.php
index f39e82e..e2403b4 100644
--- a/bin/win32/schedulerService.php
+++ b/bin/win32/schedulerService.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/win32/schedulerServiceStatus.php b/bin/win32/schedulerServiceStatus.php
index e0fcbb4..351c676 100644
--- a/bin/win32/schedulerServiceStatus.php
+++ b/bin/win32/schedulerServiceStatus.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/bin/win32/uninstallScheduler.php b/bin/win32/uninstallScheduler.php
index f7fc099..a8ae6df 100644
--- a/bin/win32/uninstallScheduler.php
+++ b/bin/win32/uninstallScheduler.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/browse.php b/browse.php
index cd33291..0598e16 100755
--- a/browse.php
+++ b/browse.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/config/dmsDefaults.php b/config/dmsDefaults.php
index e40d743..1cbf86f 100644
--- a/config/dmsDefaults.php
+++ b/config/dmsDefaults.php
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/config/siteMap.inc b/config/siteMap.inc
index 288a9a8..c147844 100644
--- a/config/siteMap.inc
+++ b/config/siteMap.inc
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/config/tableMappings.inc b/config/tableMappings.inc
index 0247b33..d1d0707 100644
--- a/config/tableMappings.inc
+++ b/config/tableMappings.inc
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/control.php b/control.php
index a51014b..0ee42dd 100644
--- a/control.php
+++ b/control.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/dashboard.php b/dashboard.php
index 647c142..7addf36 100644
--- a/dashboard.php
+++ b/dashboard.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/examples/fieldsynchronisation/syncFieldFromLDAP.php b/examples/fieldsynchronisation/syncFieldFromLDAP.php
index fda6303..6b5804b 100644
--- a/examples/fieldsynchronisation/syncFieldFromLDAP.php
+++ b/examples/fieldsynchronisation/syncFieldFromLDAP.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/help.php b/help.php
index 9f9c354..d9066e8 100644
--- a/help.php
+++ b/help.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktapi/KTAPIConstants.inc.php b/ktapi/KTAPIConstants.inc.php
index 64a4ff5..1e8fe2e 100644
--- a/ktapi/KTAPIConstants.inc.php
+++ b/ktapi/KTAPIConstants.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktapi/KTAPIDocument.inc.php b/ktapi/KTAPIDocument.inc.php
index 770d4cc..72bcd70 100644
--- a/ktapi/KTAPIDocument.inc.php
+++ b/ktapi/KTAPIDocument.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktapi/KTAPIFolder.inc.php b/ktapi/KTAPIFolder.inc.php
index ca5c8a0..287a7a7 100644
--- a/ktapi/KTAPIFolder.inc.php
+++ b/ktapi/KTAPIFolder.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktapi/KTAPISession.inc.php b/ktapi/KTAPISession.inc.php
index 64e96e3..48a9a1a 100644
--- a/ktapi/KTAPISession.inc.php
+++ b/ktapi/KTAPISession.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktapi/ktapi.inc.php b/ktapi/ktapi.inc.php
index abe5caf..6869283 100644
--- a/ktapi/ktapi.inc.php
+++ b/ktapi/ktapi.inc.php
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebdav/index.php b/ktwebdav/index.php
index df32c8c..cf01684 100644
--- a/ktwebdav/index.php
+++ b/ktwebdav/index.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebdav/ktwebdav.php b/ktwebdav/ktwebdav.php
index 74c0254..d9ac978 100644
--- a/ktwebdav/ktwebdav.php
+++ b/ktwebdav/ktwebdav.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebdav/lib/KTWebDAVServer.inc.php b/ktwebdav/lib/KTWebDAVServer.inc.php
index b804e07..8ccc134 100644
--- a/ktwebdav/lib/KTWebDAVServer.inc.php
+++ b/ktwebdav/lib/KTWebDAVServer.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/KTDownloadManager.inc.php b/ktwebservice/KTDownloadManager.inc.php
index 667a63c..f09c24f 100644
--- a/ktwebservice/KTDownloadManager.inc.php
+++ b/ktwebservice/KTDownloadManager.inc.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/KTUploadManager.inc.php b/ktwebservice/KTUploadManager.inc.php
index 32dd4fd..d14c9d4 100644
--- a/ktwebservice/KTUploadManager.inc.php
+++ b/ktwebservice/KTUploadManager.inc.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/download.php b/ktwebservice/download.php
index 72c04a9..bd9d359 100644
--- a/ktwebservice/download.php
+++ b/ktwebservice/download.php
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/download_cleanup.php b/ktwebservice/download_cleanup.php
index ea713f9..d603c1b 100644
--- a/ktwebservice/download_cleanup.php
+++ b/ktwebservice/download_cleanup.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/index.php b/ktwebservice/index.php
index 2157e0b..8f00a6d 100644
--- a/ktwebservice/index.php
+++ b/ktwebservice/index.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/upload.php b/ktwebservice/upload.php
index 961c789..6ed508a 100644
--- a/ktwebservice/upload.php
+++ b/ktwebservice/upload.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/upload_cleanup.php b/ktwebservice/upload_cleanup.php
index 4662c97..d0b8693 100644
--- a/ktwebservice/upload_cleanup.php
+++ b/ktwebservice/upload_cleanup.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwebservice/webservice.php b/ktwebservice/webservice.php
index a80491c..ea07b48 100644
--- a/ktwebservice/webservice.php
+++ b/ktwebservice/webservice.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/ktwsapi/delphi/examples/KTWSAPIExamples.dpr b/ktwsapi/delphi/examples/KTWSAPIExamples.dpr
index abacfde..27531b9 100644
--- a/ktwsapi/delphi/examples/KTWSAPIExamples.dpr
+++ b/ktwsapi/delphi/examples/KTWSAPIExamples.dpr
@@ -1,55 +1,55 @@
-{
- Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
-
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- i) Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- ii) Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
- names of its contributors may be used to endorse or promote products
- derived from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-}
-
-{*
- This is a Delphi port of the php api for KnowledgeTree WebService.
-
- @Author Bjarte Kalstveit Vebjørnsen ';
- //print_r($aErrorMessage);
- //echo '
';
- //exit;
- $customErrorHandler = KTCustomErrorHandler::initCustomErrorHandler();
- $customErrorHandler->logError($oError);
- }
-
- $ErrorPageCurlSession = curl_init($CustomErrorPage);
- //curl_setopt($ErrorPageCurlSession, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ErrorPageCurlSession, CURLOPT_POST, true);
- curl_setopt($ErrorPageCurlSession, CURLOPT_POSTFIELDS, $aErrorMessage);
- $ErrorPageSent = curl_exec($ErrorPageCurlSession);
- curl_close($ErrorPageCurlSession);
-
- }
- // }}}
- }
- ?>
+.
+ *
+ * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place,
+ * Blake Street, Observatory, 7925 South Africa. 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.'/validation/customerrorhandler.php');
+
+ class KTCustomErrorViewer
+ {
+ // {{{ initCustomErrorViewer()
+ function initCustomErrorViewer()
+ {
+ return $oCustomViewer =& new KTCustomErrorViewer;
+ }
+ //}}}
+
+ //{{{ getCustomErrorConfigSetting()
+ function getCustomErrorConfigSetting()
+ {
+ $oKTConfig =& KTConfig::getSingleton();
+ $sCustomErrorCheck = $oKTConfig->get('CustomErrorMessages/customerrormessages');
+ return $sCustomErrorCheck;
+ }
+ //}}}
+
+ //{{{ getCustomErrorHandlerSetting()
+ function getCustomErrorHandlerSetting()
+ {
+ $oKTConfig =& KTConfig::getSingleton();
+ $sCustomErrorCheck = $oKTConfig->get('CustomErrorMessages/customerrorhandler');
+ return $sCustomErrorCheck;
+ }
+ //}}}
+
+ // {{{ getCustomErrorRedirectPage()
+ function getCustomErrorRedirectPage ()
+ {
+ $oKTErrorConfig =& KTConfig::getSingleton();
+ $sCustomErrorPage = $oKTErrorConfig->get('CustomErrorMessages/customerrorpagepath');
+
+ //if a filname is specified in the config.ini file make it into a url
+ if (substr($sCustomErrorPage, 0, 4) != 'http')
+ {
+
+ $sCustomErrorPage = 'http://'.$_SERVER['HTTP_HOST'].'/'.$sCustomErrorPage;
+
+ }
+
+ //checking if file exists
+ //curl options will return the page header, we can then check for an http error
+ $CurlSession = curl_init();
+ curl_setopt($CurlSession, CURLOPT_URL, $sCustomErrorPage);
+ curl_setopt($CurlSession, CURLOPT_HEADER, true);
+ curl_setopt($CurlSession, CURLOPT_NOBODY, true);
+ curl_setopt($CurlSession, CURLOPT_RETURNTRANSFER, true);
+ $data = curl_exec($CurlSession);
+ curl_close($CurlSession);
+ preg_match("/HTTP\/1\.[1|0]\s(\d{3})/",$data,$matches);
+
+ //checking for http error - if the retunr code isn't 200 then we have an error
+ //on an error we return 0
+ if ($matches[1] != '200')
+ {
+ //if file does not exist return error code of 0
+ return '0';
+ }
+ else
+ {
+ //if file exists return error page address
+ return $sCustomErrorPage;
+
+ }
+ }
+ // }}}
+
+ // {{{ customErrorPageRedirect()
+ function doCustomErrorPageRedirect($CustomErrorPage, $oError = null)
+ {
+ $sErrorMessage = '';
+ if($oError != null)
+ {
+ //call error handler
+
+ $aErrorMessage = array ();
+ $aErrorMessage['Error_MessageOne'] = $oError->getMessage();
+ $aErrorMessage['Error_MessageTwo'] = $oError->getUserInfo();
+ //echo '';
+ //print_r($aErrorMessage);
+ //echo '
';
+ //exit;
+ $customErrorHandler = KTCustomErrorHandler::initCustomErrorHandler();
+ $customErrorHandler->logError($oError);
+ }
+
+ $ErrorPageCurlSession = curl_init($CustomErrorPage);
+ //curl_setopt($ErrorPageCurlSession, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($ErrorPageCurlSession, CURLOPT_POST, true);
+ curl_setopt($ErrorPageCurlSession, CURLOPT_POSTFIELDS, $aErrorMessage);
+ $ErrorPageSent = curl_exec($ErrorPageCurlSession);
+ curl_close($ErrorPageCurlSession);
+
+ }
+ // }}}
+ }
+ ?>
diff --git a/lib/validation/dispatchervalidation.inc.php b/lib/validation/dispatchervalidation.inc.php
index 91297f1..f45666b 100644
--- a/lib/validation/dispatchervalidation.inc.php
+++ b/lib/validation/dispatchervalidation.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/validation/errorviewer.inc.php b/lib/validation/errorviewer.inc.php
index 5ef499b..a2ba7e7 100644
--- a/lib/validation/errorviewer.inc.php
+++ b/lib/validation/errorviewer.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/validation/validatorfactory.inc.php b/lib/validation/validatorfactory.inc.php
index 6fabd14..5cd0b40 100644
--- a/lib/validation/validatorfactory.inc.php
+++ b/lib/validation/validatorfactory.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/FieldsetDisplayRegistry.inc.php b/lib/widgets/FieldsetDisplayRegistry.inc.php
index 1756383..365cc5d 100644
--- a/lib/widgets/FieldsetDisplayRegistry.inc.php
+++ b/lib/widgets/FieldsetDisplayRegistry.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/basewidget.inc.php b/lib/widgets/basewidget.inc.php
index fee5374..19207b2 100644
--- a/lib/widgets/basewidget.inc.php
+++ b/lib/widgets/basewidget.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/fieldWidgets.php b/lib/widgets/fieldWidgets.php
index 247fdd3..e89aee7 100644
--- a/lib/widgets/fieldWidgets.php
+++ b/lib/widgets/fieldWidgets.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/fieldsetDisplay.inc.php b/lib/widgets/fieldsetDisplay.inc.php
index 03bb154..e85af47 100644
--- a/lib/widgets/fieldsetDisplay.inc.php
+++ b/lib/widgets/fieldsetDisplay.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/forms.inc.php b/lib/widgets/forms.inc.php
index d75ed1d..2339360 100644
--- a/lib/widgets/forms.inc.php
+++ b/lib/widgets/forms.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/portlet.inc.php b/lib/widgets/portlet.inc.php
index 61a0485..7239f98 100644
--- a/lib/widgets/portlet.inc.php
+++ b/lib/widgets/portlet.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/reorderdisplay.inc.php b/lib/widgets/reorderdisplay.inc.php
index 5fa121d..0fe5fc5 100644
--- a/lib/widgets/reorderdisplay.inc.php
+++ b/lib/widgets/reorderdisplay.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/widgets/widgetfactory.inc.php b/lib/widgets/widgetfactory.inc.php
index a393381..0617553 100644
--- a/lib/widgets/widgetfactory.inc.php
+++ b/lib/widgets/widgetfactory.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflow.inc.php b/lib/workflow/workflow.inc.php
index e353f49..9325066 100644
--- a/lib/workflow/workflow.inc.php
+++ b/lib/workflow/workflow.inc.php
@@ -8,7 +8,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflowadminutil.inc.php b/lib/workflow/workflowadminutil.inc.php
index fd895ca..032c83a 100644
--- a/lib/workflow/workflowadminutil.inc.php
+++ b/lib/workflow/workflowadminutil.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflowstate.inc.php b/lib/workflow/workflowstate.inc.php
index ee1c562..3f4f8cd 100644
--- a/lib/workflow/workflowstate.inc.php
+++ b/lib/workflow/workflowstate.inc.php
@@ -7,7 +7,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflowstatepermissionsassignment.inc.php b/lib/workflow/workflowstatepermissionsassignment.inc.php
index e739c4f..801a9a4 100644
--- a/lib/workflow/workflowstatepermissionsassignment.inc.php
+++ b/lib/workflow/workflowstatepermissionsassignment.inc.php
@@ -7,7 +7,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflowtransition.inc.php b/lib/workflow/workflowtransition.inc.php
index 81a0aef..d370fb0 100644
--- a/lib/workflow/workflowtransition.inc.php
+++ b/lib/workflow/workflowtransition.inc.php
@@ -7,7 +7,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflowtrigger.inc.php b/lib/workflow/workflowtrigger.inc.php
index b84ccae..770fa67 100644
--- a/lib/workflow/workflowtrigger.inc.php
+++ b/lib/workflow/workflowtrigger.inc.php
@@ -11,7 +11,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflowtriggerinstance.inc.php b/lib/workflow/workflowtriggerinstance.inc.php
index 25e7633..6ff0594 100644
--- a/lib/workflow/workflowtriggerinstance.inc.php
+++ b/lib/workflow/workflowtriggerinstance.inc.php
@@ -7,7 +7,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/lib/workflow/workflowutil.inc.php b/lib/workflow/workflowutil.inc.php
index 900d814..562b932 100644
--- a/lib/workflow/workflowutil.inc.php
+++ b/lib/workflow/workflowutil.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/login.php b/login.php
index c8d89ca..b9ef29a 100644
--- a/login.php
+++ b/login.php
@@ -7,7 +7,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/notify.php b/notify.php
index 97721ae..04f9fb0 100644
--- a/notify.php
+++ b/notify.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/olddashboard.php b/olddashboard.php
index c1121d7..8b691d4 100644
--- a/olddashboard.php
+++ b/olddashboard.php
@@ -9,7 +9,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugin.php b/plugin.php
index 7f98f9b..901183b 100644
--- a/plugin.php
+++ b/plugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/browseabledashlet/BrowseableDashlet.php b/plugins/browseabledashlet/BrowseableDashlet.php
index 5d7b5b4..07524bc 100644
--- a/plugins/browseabledashlet/BrowseableDashlet.php
+++ b/plugins/browseabledashlet/BrowseableDashlet.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/browseabledashlet/BrowseableDashletPlugin.php b/plugins/browseabledashlet/BrowseableDashletPlugin.php
index a9822c9..2d4f3a6 100644
--- a/plugins/browseabledashlet/BrowseableDashletPlugin.php
+++ b/plugins/browseabledashlet/BrowseableDashletPlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/housekeeper/DiskUsageDashlet.inc.php b/plugins/housekeeper/DiskUsageDashlet.inc.php
index e1a2d86..fb629f7 100644
--- a/plugins/housekeeper/DiskUsageDashlet.inc.php
+++ b/plugins/housekeeper/DiskUsageDashlet.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/housekeeper/FolderUsageDashlet.inc.php b/plugins/housekeeper/FolderUsageDashlet.inc.php
index abf1959..c1a96a0 100644
--- a/plugins/housekeeper/FolderUsageDashlet.inc.php
+++ b/plugins/housekeeper/FolderUsageDashlet.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/housekeeper/HouseKeeperDispatcher.php b/plugins/housekeeper/HouseKeeperDispatcher.php
index f198113..6b8c445 100644
--- a/plugins/housekeeper/HouseKeeperDispatcher.php
+++ b/plugins/housekeeper/HouseKeeperDispatcher.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/housekeeper/HouseKeeperPlugin.php b/plugins/housekeeper/HouseKeeperPlugin.php
index 9f5e671..0855f76 100644
--- a/plugins/housekeeper/HouseKeeperPlugin.php
+++ b/plugins/housekeeper/HouseKeeperPlugin.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTAssist.php b/plugins/ktcore/KTAssist.php
index 2879898..ad43961 100644
--- a/plugins/ktcore/KTAssist.php
+++ b/plugins/ktcore/KTAssist.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTBulkActions.php b/plugins/ktcore/KTBulkActions.php
index d9a84bf..ecca7d0 100644
--- a/plugins/ktcore/KTBulkActions.php
+++ b/plugins/ktcore/KTBulkActions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTColumns.inc.php b/plugins/ktcore/KTColumns.inc.php
index c2a313f..02fa4d3 100644
--- a/plugins/ktcore/KTColumns.inc.php
+++ b/plugins/ktcore/KTColumns.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTCoreLanguagePlugin.php b/plugins/ktcore/KTCoreLanguagePlugin.php
index bde4baa..8a5205e 100644
--- a/plugins/ktcore/KTCoreLanguagePlugin.php
+++ b/plugins/ktcore/KTCoreLanguagePlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTCorePlugin.php b/plugins/ktcore/KTCorePlugin.php
index 289c5d0..5e59514 100644
--- a/plugins/ktcore/KTCorePlugin.php
+++ b/plugins/ktcore/KTCorePlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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
@@ -181,6 +181,8 @@ class KTCorePlugin extends KTPlugin {
$this->registerWidget('KTDescriptorSelectionWidget', 'ktcore.widgets.descriptorselection', 'KTWidgets.php');
$this->registerWidget('KTCoreFolderCollectionWidget', 'ktcore.widgets.foldercollection', 'KTWidgets.php');
+ $this->registerWidget('KTCoreConditionalSelectionWidget', 'ktcore.widgets.conditionalselection', 'KTWidgets.php');
+
$this->registerPage('collection', 'KTCoreCollectionPage', 'KTWidgets.php');
$this->registerPage('notifications', 'KTNotificationOverflowPage', 'KTMiscPages.php');
diff --git a/plugins/ktcore/KTDashlets.php b/plugins/ktcore/KTDashlets.php
index 489f58d..6ff2eee 100644
--- a/plugins/ktcore/KTDashlets.php
+++ b/plugins/ktcore/KTDashlets.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTDocumentActions.php b/plugins/ktcore/KTDocumentActions.php
index 1356b31..612b2ae 100644
--- a/plugins/ktcore/KTDocumentActions.php
+++ b/plugins/ktcore/KTDocumentActions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTDocumentViewlets.php b/plugins/ktcore/KTDocumentViewlets.php
index 40d292e..ce63f07 100644
--- a/plugins/ktcore/KTDocumentViewlets.php
+++ b/plugins/ktcore/KTDocumentViewlets.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTFolderActions.php b/plugins/ktcore/KTFolderActions.php
index 82d814c..9f6fcb2 100644
--- a/plugins/ktcore/KTFolderActions.php
+++ b/plugins/ktcore/KTFolderActions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTMiscPages.php b/plugins/ktcore/KTMiscPages.php
index 022cc3b..2e66fee 100644
--- a/plugins/ktcore/KTMiscPages.php
+++ b/plugins/ktcore/KTMiscPages.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTPermissions.php b/plugins/ktcore/KTPermissions.php
index 4338541..2bd54f3 100644
--- a/plugins/ktcore/KTPermissions.php
+++ b/plugins/ktcore/KTPermissions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTPortlets.php b/plugins/ktcore/KTPortlets.php
index 75020a8..889e34f 100644
--- a/plugins/ktcore/KTPortlets.php
+++ b/plugins/ktcore/KTPortlets.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTValidators.php b/plugins/ktcore/KTValidators.php
index dd9825e..7d35a6b 100644
--- a/plugins/ktcore/KTValidators.php
+++ b/plugins/ktcore/KTValidators.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/KTWidgets.php b/plugins/ktcore/KTWidgets.php
index 36fd44a..3226c47 100644
--- a/plugins/ktcore/KTWidgets.php
+++ b/plugins/ktcore/KTWidgets.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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
@@ -767,4 +767,160 @@ class KTCoreCollectionPage extends KTStandardDispatcher {
}
-?>
+
+// based on the selection widget, this carries a mapping array,
+// which is converted to JSON and inserted into the output. javascript
+// enforces the various relationships between conditional fields.
+
+class KTCoreConditionalSelectionWidget extends KTCoreSelectionWidget {
+ var $sNamespace = 'ktcore.widgets.conditionalselection';
+
+ var $sIdMethod;
+ var $sLabelMethod;
+
+ var $bIsMaster;
+ var $bMappings;
+
+ function _getFieldIdForMetadataId($iMetadata) {
+ $sTable = 'metadata_lookup';
+ $sQuery = "SELECT document_field_id FROM " . $sTable . " WHERE id = ?";
+ $aParams = array($iMetadata);
+
+ $res = DBUtil::getOneResultKey(array($sQuery, $aParams), 'document_field_id');
+ if (PEAR::isError($res)) {
+ return false;
+ }
+ return $res;
+ }
+
+
+ function configure($aOptions) {
+ $res = parent::configure($aOptions);
+ if (PEAR::isError($res)) {
+ return $res;
+ }
+
+ $this->sIdMethod = KTUtil::arrayGet($aOptions, 'id_method', 'getId');
+ $this->sLabelMethod = KTUtil::arrayGet($aOptions, 'label_method');
+ if (empty($this->sLabelMethod)) {
+ return PEAR::raiseError(_kt('No label method specified.'));
+ }
+ $existing_entities = (array) KTUtil::arrayGet($aOptions, 'existing_entities');
+
+ if (empty($this->value)) {
+ $this->value = array();
+ foreach ($existing_entities as $oEntity) {
+ $this->value[] = call_user_func(array(&$oEntity, $this->sIdMethod));
+ }
+ }
+
+ $this->iField = KTUtil::arrayGet($aOptions, 'field');
+ $this->iMasterId = KTUtil::arrayGet($aOptions, 'masterid');
+
+ // if we're the master, we have to build the dependancy array and store it as JSON
+ // also, include the javascript
+ if(KTUtil::arrayGet($aOptions, 'master', false)) {
+ $this->bMaster = true;
+ $this->aJavascript = array('resources/js/conditional_selection.js');
+
+ $oFieldset = KTFieldset::get(KTUtil::arrayGet($aOptions, 'fieldset'));
+ $aLookups = array();
+ $aConnections = array();
+
+ foreach($oFieldset->getFields() as $oField) {
+ $c = array();
+
+ foreach($oField->getEnabledValues() as $oMetadata) {
+ $a = array();
+ // print '';
+
+ $nvals = KTMetadataUtil::getNextValuesForLookup($oMetadata->getId());
+ if($nvals) {
+ foreach($nvals as $i=>$aVals) {
+ $a = array_merge($a, $aVals);
+
+ foreach($aVals as $id) {
+ $field = $this->_getFieldIdForMetadataId($id);
+ // print 'id ' . $id . ' is in field ' . $field . "
";
+ if(!in_array($field, $c)) {
+ $c[] = $field;
+ }
+ }
+ }
+ }
+
+ $aLookups[$oMetadata->getId()] = $a;
+ }
+ $aConnections[$oField->getId()] = $c;
+ }
+
+ //exit(0);
+
+ $oJSON = new Services_JSON;
+ $this->sLookupsJSON = $oJSON->encode($aLookups);
+ $this->sConnectionsJSON = $oJSON->encode($aConnections);
+ }
+
+
+ $new_vocab = array();
+ foreach ($this->aVocab as $oEntity) {
+ $id = call_user_func(array(&$oEntity, $this->sIdMethod));
+ $label = call_user_func(array(&$oEntity, $this->sLabelMethod));
+ $new_vocab[$id] = array($label, $oEntity->getId());
+ }
+ $this->aVocab = $new_vocab;
+ }
+
+ function getWidget() {
+ $bHasErrors = false;
+ if (count($this->aErrors) != 0) { $bHasErrors = true; }
+
+ $this->sTemplate = 'ktcore/forms/widgets/conditional_selection';
+
+ $oTemplating =& KTTemplating::getSingleton();
+ $oTemplate = $oTemplating->loadTemplate($this->sTemplate);
+
+ $unselected = KTUtil::arrayGet($this->aOptions, 'unselected_label');
+ if (!empty($unselected)) {
+ $vocab = array();
+ $vocab[] = $unselected;
+ foreach ($this->aVocab as $k => $v) {
+ $vocab[$k] = $v;
+ }
+ $this->aVocab = $vocab;
+ if (empty($this->value)) {
+ $this->value = '0';
+ }
+ }
+
+ if ($this->bMulti) {
+ $this->_valuesearch = array();
+ $value = (array) $this->value;
+ foreach ($value as $v) {
+ $this->_valuesearch[$v] = true;
+ }
+ }
+
+ $aTemplateData = array(
+ 'context' => $this,
+ 'name' => $this->sName,
+ 'has_id' => ($this->sId !== null),
+ 'id' => $this->sId,
+ 'has_value' => ($this->value !== null),
+ 'value' => $this->value,
+ 'options' => $this->aOptions,
+ 'vocab' => $this->aVocab,
+ 'lookups' => $this->sLookupsJSON,
+ 'connections' => $this->sConnectionsJSON,
+ 'master' => $this->bMaster,
+ 'masterid' => $this->iMasterId,
+ 'field' => $this->iField,
+ );
+ return $oTemplate->render($aTemplateData);
+ }
+
+
+
+}
+
+
diff --git a/plugins/ktcore/KTWorkflowTriggers.inc.php b/plugins/ktcore/KTWorkflowTriggers.inc.php
index 9c6eb6b..eaa3f9a 100644
--- a/plugins/ktcore/KTWorkflowTriggers.inc.php
+++ b/plugins/ktcore/KTWorkflowTriggers.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/ajaxComplexConditionals.php b/plugins/ktcore/admin/ajaxComplexConditionals.php
index cc009ee..e365725 100755
--- a/plugins/ktcore/admin/ajaxComplexConditionals.php
+++ b/plugins/ktcore/admin/ajaxComplexConditionals.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/ajaxSimpleConditionals.php b/plugins/ktcore/admin/ajaxSimpleConditionals.php
index eac57c7..0b9fb8a 100755
--- a/plugins/ktcore/admin/ajaxSimpleConditionals.php
+++ b/plugins/ktcore/admin/ajaxSimpleConditionals.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/archivedDocuments.php b/plugins/ktcore/admin/archivedDocuments.php
index e64c029..3072083 100755
--- a/plugins/ktcore/admin/archivedDocuments.php
+++ b/plugins/ktcore/admin/archivedDocuments.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/conditions.php b/plugins/ktcore/admin/conditions.php
index 9cbdf61..44d4d7d 100755
--- a/plugins/ktcore/admin/conditions.php
+++ b/plugins/ktcore/admin/conditions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/deletedDocuments.php b/plugins/ktcore/admin/deletedDocuments.php
index b52c511..be5f9fc 100755
--- a/plugins/ktcore/admin/deletedDocuments.php
+++ b/plugins/ktcore/admin/deletedDocuments.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/documentCheckout.php b/plugins/ktcore/admin/documentCheckout.php
index 60832e9..9edb93e 100644
--- a/plugins/ktcore/admin/documentCheckout.php
+++ b/plugins/ktcore/admin/documentCheckout.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/documentFieldsv2.php b/plugins/ktcore/admin/documentFieldsv2.php
index bb1e149..3f7d5cf 100644
--- a/plugins/ktcore/admin/documentFieldsv2.php
+++ b/plugins/ktcore/admin/documentFieldsv2.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/documentTypes.php b/plugins/ktcore/admin/documentTypes.php
index fd9cdcb..9b688da 100755
--- a/plugins/ktcore/admin/documentTypes.php
+++ b/plugins/ktcore/admin/documentTypes.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/expungeList.php b/plugins/ktcore/admin/expungeList.php
index e9641bc..229f292 100644
--- a/plugins/ktcore/admin/expungeList.php
+++ b/plugins/ktcore/admin/expungeList.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/fieldsets/basic.inc.php b/plugins/ktcore/admin/fieldsets/basic.inc.php
index 1011a3a..0e683f5 100644
--- a/plugins/ktcore/admin/fieldsets/basic.inc.php
+++ b/plugins/ktcore/admin/fieldsets/basic.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/fieldsets/conditional.inc.php b/plugins/ktcore/admin/fieldsets/conditional.inc.php
index 8cceb0c..31065f2 100644
--- a/plugins/ktcore/admin/fieldsets/conditional.inc.php
+++ b/plugins/ktcore/admin/fieldsets/conditional.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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
@@ -414,6 +414,16 @@ ordering!");
$oField = $data['master_field'];
+ // remove all existing behaviors
+ $aFieldIds = array();
+ foreach($this->oFieldset->getFields() as $i) {
+ $aFieldIds[] = $i->getId();
+ }
+
+ $sTable = KTUtil::getTableName('field_behaviours');
+ $aQuery = array("DELETE FROM $sTable WHERE field_id IN (" . DBUtil::paramArray($aFieldIds) . ")", $aFieldIds);
+ $res = DBUtil::runQuery($aQuery);
+
$res = KTMetadataUtil::removeFieldOrdering($this->oFieldset);
$this->oFieldset->setMasterFieldId($oField->getId());
$res = $this->oFieldset->update();
diff --git a/plugins/ktcore/admin/groupManagement.php b/plugins/ktcore/admin/groupManagement.php
index df9cc66..0ee8fbc 100755
--- a/plugins/ktcore/admin/groupManagement.php
+++ b/plugins/ktcore/admin/groupManagement.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/manageCleanup.php b/plugins/ktcore/admin/manageCleanup.php
index 68a8e95..36a887b 100755
--- a/plugins/ktcore/admin/manageCleanup.php
+++ b/plugins/ktcore/admin/manageCleanup.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/manageConditionals.php b/plugins/ktcore/admin/manageConditionals.php
index dbdcc50..ee90b41 100755
--- a/plugins/ktcore/admin/manageConditionals.php
+++ b/plugins/ktcore/admin/manageConditionals.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/manageHelp.php b/plugins/ktcore/admin/manageHelp.php
index eab467b..2a1a26c 100755
--- a/plugins/ktcore/admin/manageHelp.php
+++ b/plugins/ktcore/admin/manageHelp.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/managePermissions.php b/plugins/ktcore/admin/managePermissions.php
index 9bedf9e..0b5d1b4 100755
--- a/plugins/ktcore/admin/managePermissions.php
+++ b/plugins/ktcore/admin/managePermissions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/manageViews.php b/plugins/ktcore/admin/manageViews.php
index 38af7a6..1106325 100644
--- a/plugins/ktcore/admin/manageViews.php
+++ b/plugins/ktcore/admin/manageViews.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/plugins.php b/plugins/ktcore/admin/plugins.php
index 0765cd2..9e55d03 100755
--- a/plugins/ktcore/admin/plugins.php
+++ b/plugins/ktcore/admin/plugins.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/roleManagement.php b/plugins/ktcore/admin/roleManagement.php
index ba01139..937f1c8 100644
--- a/plugins/ktcore/admin/roleManagement.php
+++ b/plugins/ktcore/admin/roleManagement.php
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/savedSearch.php b/plugins/ktcore/admin/savedSearch.php
index 087a0de..87a3c72 100755
--- a/plugins/ktcore/admin/savedSearch.php
+++ b/plugins/ktcore/admin/savedSearch.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/techsupport.php b/plugins/ktcore/admin/techsupport.php
index 586118f..20cee17 100644
--- a/plugins/ktcore/admin/techsupport.php
+++ b/plugins/ktcore/admin/techsupport.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/unitManagement.php b/plugins/ktcore/admin/unitManagement.php
index 6268713..87d5b3e 100755
--- a/plugins/ktcore/admin/unitManagement.php
+++ b/plugins/ktcore/admin/unitManagement.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/userManagement.php b/plugins/ktcore/admin/userManagement.php
index f97bb17..1a43611 100755
--- a/plugins/ktcore/admin/userManagement.php
+++ b/plugins/ktcore/admin/userManagement.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/workflow/newworkflow.inc.php b/plugins/ktcore/admin/workflow/newworkflow.inc.php
index a76c6f6..4fc4946 100644
--- a/plugins/ktcore/admin/workflow/newworkflow.inc.php
+++ b/plugins/ktcore/admin/workflow/newworkflow.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/admin/workflowsv2.php b/plugins/ktcore/admin/workflowsv2.php
index cee5a27..5929493 100644
--- a/plugins/ktcore/admin/workflowsv2.php
+++ b/plugins/ktcore/admin/workflowsv2.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/authentication/authenticationadminpage.inc.php b/plugins/ktcore/authentication/authenticationadminpage.inc.php
index c2b4388..95b4855 100644
--- a/plugins/ktcore/authentication/authenticationadminpage.inc.php
+++ b/plugins/ktcore/authentication/authenticationadminpage.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/document/Rename.php b/plugins/ktcore/document/Rename.php
index 2b51cf3..7e0b555 100644
--- a/plugins/ktcore/document/Rename.php
+++ b/plugins/ktcore/document/Rename.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/document/edit.php b/plugins/ktcore/document/edit.php
index 419d4df..c9f7c48 100644
--- a/plugins/ktcore/document/edit.php
+++ b/plugins/ktcore/document/edit.php
@@ -3,7 +3,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/folder/BulkImport.php b/plugins/ktcore/folder/BulkImport.php
index 74ba7fa..a7c978d 100644
--- a/plugins/ktcore/folder/BulkImport.php
+++ b/plugins/ktcore/folder/BulkImport.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/folder/BulkUpload.php b/plugins/ktcore/folder/BulkUpload.php
index e95dd6f..d659a52 100644
--- a/plugins/ktcore/folder/BulkUpload.php
+++ b/plugins/ktcore/folder/BulkUpload.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/folder/Permissions.php b/plugins/ktcore/folder/Permissions.php
index 7ca2fbc..1295f84 100644
--- a/plugins/ktcore/folder/Permissions.php
+++ b/plugins/ktcore/folder/Permissions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/folder/Rename.php b/plugins/ktcore/folder/Rename.php
index 727f3b7..2fe40bd 100644
--- a/plugins/ktcore/folder/Rename.php
+++ b/plugins/ktcore/folder/Rename.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/folder/Transactions.php b/plugins/ktcore/folder/Transactions.php
index 82a9af9..47b4b37 100644
--- a/plugins/ktcore/folder/Transactions.php
+++ b/plugins/ktcore/folder/Transactions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/folder/addDocument.php b/plugins/ktcore/folder/addDocument.php
index e46df60..f566450 100644
--- a/plugins/ktcore/folder/addDocument.php
+++ b/plugins/ktcore/folder/addDocument.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/scheduler/background.php b/plugins/ktcore/scheduler/background.php
index 0313b17..9ce9f73 100644
--- a/plugins/ktcore/scheduler/background.php
+++ b/plugins/ktcore/scheduler/background.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/scheduler/scheduler.php b/plugins/ktcore/scheduler/scheduler.php
index 78ff4a0..b5d2dac 100644
--- a/plugins/ktcore/scheduler/scheduler.php
+++ b/plugins/ktcore/scheduler/scheduler.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/scheduler/schedulerDashlet.php b/plugins/ktcore/scheduler/schedulerDashlet.php
index 3fa4aab..5dc60f8 100644
--- a/plugins/ktcore/scheduler/schedulerDashlet.php
+++ b/plugins/ktcore/scheduler/schedulerDashlet.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/scheduler/schedulerEntity.php b/plugins/ktcore/scheduler/schedulerEntity.php
index fb60fbe..7b2ecd7 100644
--- a/plugins/ktcore/scheduler/schedulerEntity.php
+++ b/plugins/ktcore/scheduler/schedulerEntity.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/scheduler/schedulerUtil.php b/plugins/ktcore/scheduler/schedulerUtil.php
index 5839787..02f7535 100644
--- a/plugins/ktcore/scheduler/schedulerUtil.php
+++ b/plugins/ktcore/scheduler/schedulerUtil.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktcore/scheduler/taskScheduler.php b/plugins/ktcore/scheduler/taskScheduler.php
index 61a31a9..326c440 100644
--- a/plugins/ktcore/scheduler/taskScheduler.php
+++ b/plugins/ktcore/scheduler/taskScheduler.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/AdminVersionPlugin/AdminVersionDashlet.php b/plugins/ktstandard/AdminVersionPlugin/AdminVersionDashlet.php
index 2e89643..5c9d794 100644
--- a/plugins/ktstandard/AdminVersionPlugin/AdminVersionDashlet.php
+++ b/plugins/ktstandard/AdminVersionPlugin/AdminVersionDashlet.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/AdminVersionPlugin/AdminVersionPage.php b/plugins/ktstandard/AdminVersionPlugin/AdminVersionPage.php
index 44fb158..39ee528 100644
--- a/plugins/ktstandard/AdminVersionPlugin/AdminVersionPage.php
+++ b/plugins/ktstandard/AdminVersionPlugin/AdminVersionPage.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/AdminVersionPlugin/AdminVersionPlugin.php b/plugins/ktstandard/AdminVersionPlugin/AdminVersionPlugin.php
index 5d902d8..fa9c01f 100644
--- a/plugins/ktstandard/AdminVersionPlugin/AdminVersionPlugin.php
+++ b/plugins/ktstandard/AdminVersionPlugin/AdminVersionPlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/ImmutableActionPlugin.php b/plugins/ktstandard/ImmutableActionPlugin.php
index a638c0b..da77b37 100644
--- a/plugins/ktstandard/ImmutableActionPlugin.php
+++ b/plugins/ktstandard/ImmutableActionPlugin.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTBulkExportPlugin.php b/plugins/ktstandard/KTBulkExportPlugin.php
index 8d31fc6..7af5381 100644
--- a/plugins/ktstandard/KTBulkExportPlugin.php
+++ b/plugins/ktstandard/KTBulkExportPlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTDisclaimers.php b/plugins/ktstandard/KTDisclaimers.php
index ed18a45..55a065c 100644
--- a/plugins/ktstandard/KTDisclaimers.php
+++ b/plugins/ktstandard/KTDisclaimers.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTDiscussion.php b/plugins/ktstandard/KTDiscussion.php
index b9b36f4..1727d92 100644
--- a/plugins/ktstandard/KTDiscussion.php
+++ b/plugins/ktstandard/KTDiscussion.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTDocumentLinks.php b/plugins/ktstandard/KTDocumentLinks.php
index 27ee103..8190a2f 100644
--- a/plugins/ktstandard/KTDocumentLinks.php
+++ b/plugins/ktstandard/KTDocumentLinks.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTDocumentLinksColumns.php b/plugins/ktstandard/KTDocumentLinksColumns.php
index e40bcfc..863e2bd 100644
--- a/plugins/ktstandard/KTDocumentLinksColumns.php
+++ b/plugins/ktstandard/KTDocumentLinksColumns.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTEmail.php b/plugins/ktstandard/KTEmail.php
index 6cf1ec3..d599636 100644
--- a/plugins/ktstandard/KTEmail.php
+++ b/plugins/ktstandard/KTEmail.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTIndexer.php b/plugins/ktstandard/KTIndexer.php
index 9e3ae21..5b46066 100644
--- a/plugins/ktstandard/KTIndexer.php
+++ b/plugins/ktstandard/KTIndexer.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTLDAPAuthenticationPlugin.php b/plugins/ktstandard/KTLDAPAuthenticationPlugin.php
index 91a14d2..df87a42 100644
--- a/plugins/ktstandard/KTLDAPAuthenticationPlugin.php
+++ b/plugins/ktstandard/KTLDAPAuthenticationPlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTStandardPlugin.php b/plugins/ktstandard/KTStandardPlugin.php
index 75d2328..e2f8520 100644
--- a/plugins/ktstandard/KTStandardPlugin.php
+++ b/plugins/ktstandard/KTStandardPlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTSubscriptions.php b/plugins/ktstandard/KTSubscriptions.php
index 3d154e9..8a98ece 100644
--- a/plugins/ktstandard/KTSubscriptions.php
+++ b/plugins/ktstandard/KTSubscriptions.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTWebDAVDashletPlugin.php b/plugins/ktstandard/KTWebDAVDashletPlugin.php
index d7cddca..3e03791 100644
--- a/plugins/ktstandard/KTWebDAVDashletPlugin.php
+++ b/plugins/ktstandard/KTWebDAVDashletPlugin.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/KTWorkflowAssociation.php b/plugins/ktstandard/KTWorkflowAssociation.php
index 997cd10..7c8d292 100644
--- a/plugins/ktstandard/KTWorkflowAssociation.php
+++ b/plugins/ktstandard/KTWorkflowAssociation.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/PDFGeneratorAction.php b/plugins/ktstandard/PDFGeneratorAction.php
index 054de9a..97a380c 100644
--- a/plugins/ktstandard/PDFGeneratorAction.php
+++ b/plugins/ktstandard/PDFGeneratorAction.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/PDFGeneratorPlugin.php b/plugins/ktstandard/PDFGeneratorPlugin.php
index c6fd13e..5cd9426 100644
--- a/plugins/ktstandard/PDFGeneratorPlugin.php
+++ b/plugins/ktstandard/PDFGeneratorPlugin.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/admin/manageDisclaimers.php b/plugins/ktstandard/admin/manageDisclaimers.php
index ce31c20..3409cab 100644
--- a/plugins/ktstandard/admin/manageDisclaimers.php
+++ b/plugins/ktstandard/admin/manageDisclaimers.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/ktstandard/contents/BaseIndexer.php b/plugins/ktstandard/contents/BaseIndexer.php
index 04eb62d..eeeb5e5 100644
--- a/plugins/ktstandard/contents/BaseIndexer.php
+++ b/plugins/ktstandard/contents/BaseIndexer.php
@@ -4,33 +4,33 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
- *
+ * Copyright (C) 2004 - 2008 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
* Free Software Foundation.
- *
+ *
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program. If not, see ".$aRSSArray[channel][title]."
" .
- "";
- for($i=0;$i
-
- ".$aRSSArray[items][$i][description]."
- ";
- }
- $reposonse .= "
";
-
- echo $reposonse;
-
- function _checkCache($feed) {
- session_start();
- $iLastCheck = $_SESSION['kt_dedicated_rss'][$feed]['lastcheck'];
-
- if (empty($iLastCheck)) {
- return;
- }
- $sStoredFeed = $_SESSION['kt_dedicated_rss'][$feed];
- if (empty($sStoredFeed)) {
- $now = time();
- $diff = $now - $iLastCheck;
- if ($diff > (5*60)) {
- return;
- }
- }
- $now = time();
- $diff = $now - $iLastCheck;
- if ($diff > (5*60)) {
- return;
- }
- return $sStoredFeed;
-}
-?>
+.
+ *
+ * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place,
+ * Blake Street, Observatory, 7925 South Africa. 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('../../config/dmsDefaults.php');
+ require_once(KT_DIR. '/plugins/rssplugin/rss2array.inc.php');
+ require_once(KT_DIR. '/plugins/rssplugin/KTrss.inc.php');
+
+ $feed = $_GET["feed"];
+ $user = $_GET["user"];
+ session_start();
+
+ $sCache = _checkCache($feed);
+
+ if(!is_null($sCache)) {
+ $aRSSArray = $sCache;
+ }else{
+ $aRSSArray = rss2array($feed);
+ $_SESSION['kt_dedicated_rss'][$feed]['lastcheck'] = time();
+ $_SESSION['kt_dedicated_rss'][$feed] = $aRSSArray;
+ }
+ // Prepare response data to be passed back to page
+ $reposonse = "".$aRSSArray[channel][title]."
" .
+ "";
+ for($i=0;$i
+
+ ".$aRSSArray[items][$i][description]."
+ ";
+ }
+ $reposonse .= "
";
+
+ echo $reposonse;
+
+ function _checkCache($feed) {
+ session_start();
+ $iLastCheck = $_SESSION['kt_dedicated_rss'][$feed]['lastcheck'];
+
+ if (empty($iLastCheck)) {
+ return;
+ }
+ $sStoredFeed = $_SESSION['kt_dedicated_rss'][$feed];
+ if (empty($sStoredFeed)) {
+ $now = time();
+ $diff = $now - $iLastCheck;
+ if ($diff > (5*60)) {
+ return;
+ }
+ }
+ $now = time();
+ $diff = $now - $iLastCheck;
+ if ($diff > (5*60)) {
+ return;
+ }
+ return $sStoredFeed;
+}
+?>
diff --git a/plugins/rssplugin/loadFeed.inc.php b/plugins/rssplugin/loadFeed.inc.php
index ec20e6d..6b5e987 100644
--- a/plugins/rssplugin/loadFeed.inc.php
+++ b/plugins/rssplugin/loadFeed.inc.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/rssplugin/manageRSSFeeds.php b/plugins/rssplugin/manageRSSFeeds.php
index a36c3c7..0743808 100644
--- a/plugins/rssplugin/manageRSSFeeds.php
+++ b/plugins/rssplugin/manageRSSFeeds.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/rssplugin/rss2array.inc.php b/plugins/rssplugin/rss2array.inc.php
index 92c2b82..3124f40 100644
--- a/plugins/rssplugin/rss2array.inc.php
+++ b/plugins/rssplugin/rss2array.inc.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/search2/ExternalDashlet.php b/plugins/search2/ExternalDashlet.php
index d8a40cd..7ed7fc0 100644
--- a/plugins/search2/ExternalDashlet.php
+++ b/plugins/search2/ExternalDashlet.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/search2/IndexingStatusDashlet.php b/plugins/search2/IndexingStatusDashlet.php
index 6eb1a14..527eaf2 100644
--- a/plugins/search2/IndexingStatusDashlet.php
+++ b/plugins/search2/IndexingStatusDashlet.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/search2/LuceneStatisticsDashlet.php b/plugins/search2/LuceneStatisticsDashlet.php
index 3cec0de..3cc6544 100644
--- a/plugins/search2/LuceneStatisticsDashlet.php
+++ b/plugins/search2/LuceneStatisticsDashlet.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/search2/MigrationDashlet.php b/plugins/search2/MigrationDashlet.php
index c5db154..7d30698 100644
--- a/plugins/search2/MigrationDashlet.php
+++ b/plugins/search2/MigrationDashlet.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/tagcloud/TagCloudDashlet.php b/plugins/tagcloud/TagCloudDashlet.php
index 08597cb..cdf5b94 100644
--- a/plugins/tagcloud/TagCloudDashlet.php
+++ b/plugins/tagcloud/TagCloudDashlet.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/tagcloud/TagCloudPlugin.php b/plugins/tagcloud/TagCloudPlugin.php
index 038fe00..a83324c 100644
--- a/plugins/tagcloud/TagCloudPlugin.php
+++ b/plugins/tagcloud/TagCloudPlugin.php
@@ -5,7 +5,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/tagcloud/TagCloudRedirectPage.php b/plugins/tagcloud/TagCloudRedirectPage.php
index cea5c72..f1179be 100644
--- a/plugins/tagcloud/TagCloudRedirectPage.php
+++ b/plugins/tagcloud/TagCloudRedirectPage.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/plugins/tagcloud/TagCloudTriggers.php b/plugins/tagcloud/TagCloudTriggers.php
index 47a8124..9de5f2c 100644
--- a/plugins/tagcloud/TagCloudTriggers.php
+++ b/plugins/tagcloud/TagCloudTriggers.php
@@ -1,247 +1,247 @@
-.
- *
- * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place,
- * Blake Street, Observatory, 7925 South Africa. 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): ______________________________________
- *
- */
-/**
- * Trigger for document add (postValidate)
- *
- */
-class KTAddDocumentTrigger {
- var $aInfo = null;
- /**
- * function to set the info for the trigger
- *
- * @param array $aInfo
- */
- function setInfo(&$aInfo) {
- $this->aInfo =& $aInfo;
- }
-
- /**
- * postValidate method for trigger
- *
- * @return unknown
- */
- function postValidate() {
- global $default;
- $oDocument =& $this->aInfo['document'];
- $aMeta = & $this->aInfo['aOptions'];
-
- $iDocId = $oDocument->getID();
-
- // get tag id from document_fields table where name = Tag
- $sQuery = 'SELECT df.id AS id FROM document_fields AS df ' .
- 'WHERE df.name = \'Tag\'';
-
- $sTags = DBUtil::getOneResultKey(array($sQuery), 'id');
- if (PEAR::isError($sTags)) {
- // XXX: log error
- return false;
- }
- $tagString = '';
- // add tags
- if ($sTags) {
- if (count($aMeta['metadata']) > 0)
- {
- foreach($aMeta['metadata'] as $aMetaData)
- {
-
- $oProxy = $aMetaData[0];
- if($oProxy->iId == $sTags)
- {
- $tagString = $aMetaData[1];
- }
- }
- }
- if($tagString != ''){
- $words_table = KTUtil::getTableName('tag_words');
- $tagString = str_replace(' ', '', $tagString);
- $tags = explode(',',$tagString);
-
- $aTagIds = array();
-
- foreach($tags as $sTag)
- {
- $sTag=strtolower(trim($sTag));
-
- $res = DBUtil::getOneResult(array("SELECT id FROM $words_table WHERE tag = ?", array($sTag)));
-
- if (PEAR::isError($res)) {
- return $res;
- }
-
- if (is_null($res))
- {
- $id = & DBUtil::autoInsert($words_table, array('tag'=>$sTag));
- $aTagIds[$sTag] = $id;
- }
- else
- {
- $aTagIds[$sTag] = $res['id'];
- }
- }
-
- $doc_tags = KTUtil::getTableName('document_tags');
-
- foreach($aTagIds as $sTag=>$tagid)
- {
- DBUtil::autoInsert($doc_tags, array(
-
- 'document_id'=>$iDocId,
- 'tag_id'=>$tagid),
- array('noid'=>true));
- }
- }
- }
- }
-}
-
-
-/**
- * Trigger for document edit (postValidate)
- *
- */
-class KTEditDocumentTrigger {
- var $aInfo = null;
- /**
- * function to set the info for the trigger
- *
- * @param array $aInfo
- */
- function setInfo(&$aInfo) {
- $this->aInfo =& $aInfo;
- }
-
- /**
- * postValidate method for trigger
- *
- * @return unknown
- */
- function postValidate() {
- global $default;
- $oDocument =& $this->aInfo['document'];
- $aMeta = & $this->aInfo['aOptions'];
- // get document id
- $iDocId = $oDocument->getID();
-
- // get all tags that are linked to the document
- $sQuery = 'SELECT tw.id FROM tag_words AS tw, document_tags AS dt, documents AS d ' .
- 'WHERE dt.tag_id = tw.id ' .
- 'AND dt.document_id = d.id ' .
- 'AND d.id = ?';
- $aParams = array($iDocId);
- $aTagId = DBUtil::getResultArray(array($sQuery, $aParams));
- if (PEAR::isError($aTagId)) {
- // XXX: log error
- return false;
- }
- // if there are any related tags proceed
- if ($aTagId) {
- // delete all entries from document_tags table for the document
- $sQuery = 'DELETE FROM document_tags ' .
- 'WHERE document_id = ?';
- $aParams = array($iDocId);
- $removed = DBUtil::runQuery(array($sQuery, $aParams));
- if (PEAR::isError($removed)) {
- // XXX: log error
- return false;
- }
- }
- // proceed to add the tags as per normaly
- $sQuery = 'SELECT df.id AS id FROM document_fields AS df ' .
- 'WHERE df.name = \'Tag\'';
-
- $sTags = DBUtil::getOneResultKey(array($sQuery), 'id');
- if (PEAR::isError($sTags)) {
- // XXX: log error
- return false;
- }
- $tagString = '';
- if ($sTags) {
- // it is actually correct using $aMeta. It is different to the add trigger above...
- if (count($aMeta) > 0)
- {
- foreach($aMeta as $aMetaData)
- {
- $oProxy = $aMetaData[0];
- if($oProxy->iId == $sTags)
- {
- $tagString = $aMetaData[1];
- break;
- }
- }
- }
- if($tagString != ''){
- $words_table = KTUtil::getTableName('tag_words');
- $tagString = str_replace(' ', ' ', $tagString);
- $tags = explode(',',$tagString);
-
- $aTagIds = array();
-
- foreach($tags as $sTag)
- {
- $sTag=strtolower(trim($sTag));
-
- $res = DBUtil::getOneResult(array("SELECT id FROM $words_table WHERE tag = ?", array($sTag)));
-
- if (PEAR::isError($res)) {
- return $res;
- }
-
- if (is_null($res))
- {
- $id = & DBUtil::autoInsert($words_table, array('tag'=>$sTag));
- $aTagIds[$sTag] = $id;
- }
- else
- {
- $aTagIds[$sTag] = $res['id'];
- }
- }
-
- $doc_tags = KTUtil::getTableName('document_tags');
-
- foreach($aTagIds as $sTag=>$tagid)
- {
- DBUtil::autoInsert($doc_tags, array(
- 'document_id'=>$iDocId,
- 'tag_id'=>$tagid),
- array('noid'=>true));
- }
- }
- }
- }
-}
+.
+ *
+ * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place,
+ * Blake Street, Observatory, 7925 South Africa. 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): ______________________________________
+ *
+ */
+/**
+ * Trigger for document add (postValidate)
+ *
+ */
+class KTAddDocumentTrigger {
+ var $aInfo = null;
+ /**
+ * function to set the info for the trigger
+ *
+ * @param array $aInfo
+ */
+ function setInfo(&$aInfo) {
+ $this->aInfo =& $aInfo;
+ }
+
+ /**
+ * postValidate method for trigger
+ *
+ * @return unknown
+ */
+ function postValidate() {
+ global $default;
+ $oDocument =& $this->aInfo['document'];
+ $aMeta = & $this->aInfo['aOptions'];
+
+ $iDocId = $oDocument->getID();
+
+ // get tag id from document_fields table where name = Tag
+ $sQuery = 'SELECT df.id AS id FROM document_fields AS df ' .
+ 'WHERE df.name = \'Tag\'';
+
+ $sTags = DBUtil::getOneResultKey(array($sQuery), 'id');
+ if (PEAR::isError($sTags)) {
+ // XXX: log error
+ return false;
+ }
+ $tagString = '';
+ // add tags
+ if ($sTags) {
+ if (count($aMeta['metadata']) > 0)
+ {
+ foreach($aMeta['metadata'] as $aMetaData)
+ {
+
+ $oProxy = $aMetaData[0];
+ if($oProxy->iId == $sTags)
+ {
+ $tagString = $aMetaData[1];
+ }
+ }
+ }
+ if($tagString != ''){
+ $words_table = KTUtil::getTableName('tag_words');
+ $tagString = str_replace(' ', '', $tagString);
+ $tags = explode(',',$tagString);
+
+ $aTagIds = array();
+
+ foreach($tags as $sTag)
+ {
+ $sTag=strtolower(trim($sTag));
+
+ $res = DBUtil::getOneResult(array("SELECT id FROM $words_table WHERE tag = ?", array($sTag)));
+
+ if (PEAR::isError($res)) {
+ return $res;
+ }
+
+ if (is_null($res))
+ {
+ $id = & DBUtil::autoInsert($words_table, array('tag'=>$sTag));
+ $aTagIds[$sTag] = $id;
+ }
+ else
+ {
+ $aTagIds[$sTag] = $res['id'];
+ }
+ }
+
+ $doc_tags = KTUtil::getTableName('document_tags');
+
+ foreach($aTagIds as $sTag=>$tagid)
+ {
+ DBUtil::autoInsert($doc_tags, array(
+
+ 'document_id'=>$iDocId,
+ 'tag_id'=>$tagid),
+ array('noid'=>true));
+ }
+ }
+ }
+ }
+}
+
+
+/**
+ * Trigger for document edit (postValidate)
+ *
+ */
+class KTEditDocumentTrigger {
+ var $aInfo = null;
+ /**
+ * function to set the info for the trigger
+ *
+ * @param array $aInfo
+ */
+ function setInfo(&$aInfo) {
+ $this->aInfo =& $aInfo;
+ }
+
+ /**
+ * postValidate method for trigger
+ *
+ * @return unknown
+ */
+ function postValidate() {
+ global $default;
+ $oDocument =& $this->aInfo['document'];
+ $aMeta = & $this->aInfo['aOptions'];
+ // get document id
+ $iDocId = $oDocument->getID();
+
+ // get all tags that are linked to the document
+ $sQuery = 'SELECT tw.id FROM tag_words AS tw, document_tags AS dt, documents AS d ' .
+ 'WHERE dt.tag_id = tw.id ' .
+ 'AND dt.document_id = d.id ' .
+ 'AND d.id = ?';
+ $aParams = array($iDocId);
+ $aTagId = DBUtil::getResultArray(array($sQuery, $aParams));
+ if (PEAR::isError($aTagId)) {
+ // XXX: log error
+ return false;
+ }
+ // if there are any related tags proceed
+ if ($aTagId) {
+ // delete all entries from document_tags table for the document
+ $sQuery = 'DELETE FROM document_tags ' .
+ 'WHERE document_id = ?';
+ $aParams = array($iDocId);
+ $removed = DBUtil::runQuery(array($sQuery, $aParams));
+ if (PEAR::isError($removed)) {
+ // XXX: log error
+ return false;
+ }
+ }
+ // proceed to add the tags as per normaly
+ $sQuery = 'SELECT df.id AS id FROM document_fields AS df ' .
+ 'WHERE df.name = \'Tag\'';
+
+ $sTags = DBUtil::getOneResultKey(array($sQuery), 'id');
+ if (PEAR::isError($sTags)) {
+ // XXX: log error
+ return false;
+ }
+ $tagString = '';
+ if ($sTags) {
+ // it is actually correct using $aMeta. It is different to the add trigger above...
+ if (count($aMeta) > 0)
+ {
+ foreach($aMeta as $aMetaData)
+ {
+ $oProxy = $aMetaData[0];
+ if($oProxy->iId == $sTags)
+ {
+ $tagString = $aMetaData[1];
+ break;
+ }
+ }
+ }
+ if($tagString != ''){
+ $words_table = KTUtil::getTableName('tag_words');
+ $tagString = str_replace(' ', ' ', $tagString);
+ $tags = explode(',',$tagString);
+
+ $aTagIds = array();
+
+ foreach($tags as $sTag)
+ {
+ $sTag=strtolower(trim($sTag));
+
+ $res = DBUtil::getOneResult(array("SELECT id FROM $words_table WHERE tag = ?", array($sTag)));
+
+ if (PEAR::isError($res)) {
+ return $res;
+ }
+
+ if (is_null($res))
+ {
+ $id = & DBUtil::autoInsert($words_table, array('tag'=>$sTag));
+ $aTagIds[$sTag] = $id;
+ }
+ else
+ {
+ $aTagIds[$sTag] = $res['id'];
+ }
+ }
+
+ $doc_tags = KTUtil::getTableName('document_tags');
+
+ foreach($aTagIds as $sTag=>$tagid)
+ {
+ DBUtil::autoInsert($doc_tags, array(
+ 'document_id'=>$iDocId,
+ 'tag_id'=>$tagid),
+ array('noid'=>true));
+ }
+ }
+ }
+ }
+}
?>
\ No newline at end of file
diff --git a/preferences.php b/preferences.php
index 089e2ec..b638669 100644
--- a/preferences.php
+++ b/preferences.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/presentation/i18nJavascript.php b/presentation/i18nJavascript.php
index 9990175..599f096 100644
--- a/presentation/i18nJavascript.php
+++ b/presentation/i18nJavascript.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/presentation/logout.php b/presentation/logout.php
index f62f0e0..8bd29ec 100644
--- a/presentation/logout.php
+++ b/presentation/logout.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/presentation/lookAndFeel/knowledgeTree/ajaxConditional.php b/presentation/lookAndFeel/knowledgeTree/ajaxConditional.php
index ed4eeaa..3a1ac19 100644
--- a/presentation/lookAndFeel/knowledgeTree/ajaxConditional.php
+++ b/presentation/lookAndFeel/knowledgeTree/ajaxConditional.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php
index 0f27328..5a24b34 100644
--- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php
@@ -4,7 +4,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/presentation/lookAndFeel/knowledgeTree/help.php b/presentation/lookAndFeel/knowledgeTree/help.php
index 9c5c220..0899293 100644
--- a/presentation/lookAndFeel/knowledgeTree/help.php
+++ b/presentation/lookAndFeel/knowledgeTree/help.php
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/presentation/lookAndFeel/knowledgeTree/noAccess.php b/presentation/lookAndFeel/knowledgeTree/noAccess.php
index 1030f12..5c4ff49 100644
--- a/presentation/lookAndFeel/knowledgeTree/noAccess.php
+++ b/presentation/lookAndFeel/knowledgeTree/noAccess.php
@@ -6,7 +6,7 @@
*
* KnowledgeTree Open Source Edition
* Document Management Made Simple
- * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
+ * Copyright (C) 2004 - 2008 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/resources/css/kt-framing.css b/resources/css/kt-framing.css
index 7377c4a..9763b18 100644
--- a/resources/css/kt-framing.css
+++ b/resources/css/kt-framing.css
@@ -553,8 +553,10 @@ a.main_nav_item {
top: 0;
z-index: 1;
width:auto;
- padding: 0 2em 1em 0;
- overflow: auto;
+ /*padding: 0 2em 1em 0;
+ overflow: auto;*/
+ padding: 0.25em 2em 0em 0em;
+ overflow: hidden;
min-height: 600px;
}
diff --git a/resources/js/conditional_selection.js b/resources/js/conditional_selection.js
new file mode 100755
index 0000000..df27143
--- /dev/null
+++ b/resources/js/conditional_selection.js
@@ -0,0 +1,172 @@
+// 'lookups' and 'connections' are produced by the master conditional widget
+var NOSELECTION = 'No selection.';
+
+function ConditionalSelection() {
+}
+
+function in_array(a, val) {
+ if(!a.length) {
+ return;
+ }
+ for(var i=0;i
- {i18n}Rename Behaviours{/i18n} - {i18n}Rename Behaviours{/i18n} -
- -{if $oFieldset->getIsComplex()} -{i18n}The fieldset is currently designated as Complex.{/i18n} {i18n}Changing the conditional type set will remove all existing field -ordering!{/i18n}
- - -{i18n}Change to simple{/i18n} -{i18n}Change to simple{/i18n}
- -{else} - -{i18n}The fieldset is currently designated as Simple.{/i18n}
- -{i18n}Change to complex{/i18n} -{i18n}Change to complex{/i18n}
- -{/if} -{i18n}Conditional fieldsets allow you to restrict the options -a user has for values in some fields based on the values in other fields. There -are two kinds of conditional fieldsets: Simple and Complex -. Simple fieldsets should be sufficient for most things: they allow you to say that +a user has for values in some fields based on the values in other fields, allowing you to say that the values of one field are restricted to a certain subset of values if another field has a specific value. For example, you could say that if the field "Street" is "Jeffrey", then the field "Residents" must be one of "Jones","Smith" or "Friedman".{/i18n}
-{i18n}Complex fieldsets allow you to give far more detailed structure to -your information: The value of "Residents" can depend not only on "Street", but on -how the user was allowed to select the specific street (given another field).{/i18n}
{* don't show warnings until the basics are done. *} @@ -42,29 +37,6 @@ to complete{/i18n}: {$sIncomplete}{i18n}The fieldset is currently designated as Complex{/i18n}
- -{if ($oMasterField && empty($free_fields))}getId()}">{i18n}Manage -complex conditional{/i18n}
{/if} - - - -{else} - -{i18n}The fieldset is currently designated as Simple{/i18n}
- -{if ($oMasterField && empty($free_fields))} -{/if}