Commit cbe796f8de0f907439aee86f9b5a24e4edb2a0a0

Authored by kevin_fourie
1 parent 211f4f4a

Merged in from DEV trunk...

KTS-3588
"Remove Admin Version Notifier plugin"
Removed. BitRock Updates & Messages Plugin replaces this plugin.

Committed By: Kevin Fourie
Reviewed By: Conrad Vermeulen


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@9056 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/AdminVersionPlugin/AdminVersion.inc.php deleted
1   -<?php
2   -
3   -class AdminVersion
4   -{
5   - //const KT_VERSION_URL = 'http://version.knowledgetree.com/kt_versions';
6   - const KT_VERSION_URL = 'http://ktdms.trunk/plugins/ktstandard/AdminVersionPlugin/test/latestVersion.php';
7   -
8   - public static
9   - function refresh($url = null)
10   - {
11   - $aEncoded = array();
12   - $aVersions = KTUtil::getKTVersions();
13   -
14   - foreach ($aVersions as $k => $v)
15   - {
16   - $aEncoded[] = sprintf("%s=%s", urlencode($k), urlencode($v));
17   - }
18   -
19   - if (empty($url))
20   - $sUrl = self::KT_VERSION_URL;
21   - else
22   - $sUrl = $url;
23   - $sUrl .= '?' . implode('&', $aEncoded);
24   -
25   - $sIdentifier = KTUtil::getSystemIdentifier();
26   - $sUrl .= '&' . sprintf("system_identifier=%s", $sIdentifier);
27   -
28   - if (!function_exists('curl_init'))
29   - {
30   - $stuff = @file_get_contents($sUrl);
31   - }
32   - else
33   - {
34   - $ch = @curl_init($sUrl);
35   - if (!$ch)
36   - {
37   - return false;
38   - }
39   - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
40   - curl_setopt($ch, CURLOPT_TIMEOUT, 10);
41   - $stuff = curl_exec($ch);
42   - curl_close($ch);
43   - }
44   - if ($stuff === false)
45   - {
46   - $stuff = "";
47   - }
48   - else
49   - {
50   - $stuff = str_replace('\'','"', $stuff);
51   - $decoded = json_decode($stuff);
52   - if ($decoded === false)
53   - {
54   - return false;
55   - }
56   - KTUtil::setSystemSetting('ktadminversion_lastcheck', date('Y-m-d H:i:s'));
57   - KTUtil::setSystemSetting('ktadminversion_lastvalue', serialize($decoded));
58   - }
59   - }
60   -
61   - public static
62   - function isNewVersionAvailable()
63   - {
64   - $aVersions = KTUtil::getKTVersions();
65   -
66   - $name = array_keys($aVersions);
67   - $name = $name[0];
68   - $version = array_values($aVersions);
69   - $version = $version[0];
70   -
71   - $aRemoteVersions = unserialize(KTUtil::getSystemSetting('ktadminversion_lastvalue'));
72   -
73   - $aVersions = get_object_vars($aRemoteVersions);
74   -
75   - if (!isset($aVersions[$name]))
76   - {
77   - return false;
78   - }
79   -
80   - $newVersion = $aRemoteVersions->$name;
81   - if (version_compare($version, $newVersion) == -1)
82   - {
83   - return array('name'=>$name,'version'=>$aRemoteVersions->$name);
84   - }
85   -
86   - return false;
87   - }
88   -}
89   -
90   -?>
91 0 \ No newline at end of file
plugins/ktstandard/AdminVersionPlugin/AdminVersionDashlet.php deleted
1   -<?php
2   -/*
3   - * $Id:$
4   - *
5   - * KnowledgeTree Community Edition
6   - * Document Management Made Simple
7   - * Copyright (C) 2008 KnowledgeTree Inc.
8   - * Portions copyright The Jam Warehouse Software (Pty) Limited
9   - *
10   - * This program is free software; you can redistribute it and/or modify it under
11   - * the terms of the GNU General Public License version 3 as published by the
12   - * Free Software Foundation.
13   - *
14   - * This program is distributed in the hope that it will be useful, but WITHOUT
15   - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16   - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17   - * details.
18   - *
19   - * You should have received a copy of the GNU General Public License
20   - * along with this program. If not, see <http://www.gnu.org/licenses/>.
21   - *
22   - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
23   - * California 94120-7775, or email info@knowledgetree.com.
24   - *
25   - * The interactive user interfaces in modified source and object code versions
26   - * of this program must display Appropriate Legal Notices, as required under
27   - * Section 5 of the GNU General Public License version 3.
28   - *
29   - * In accordance with Section 7(b) of the GNU General Public License version 3,
30   - * these Appropriate Legal Notices must retain the display of the "Powered by
31   - * KnowledgeTree" logo and retain the original copyright notice. If the display of the
32   - * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
33   - * must display the words "Powered by KnowledgeTree" and retain the original
34   - * copyright notice.
35   - * Contributor( s): ______________________________________
36   - *
37   - */
38   -
39   -require_once('AdminVersion.inc.php');
40   -
41   -class AdminVersionDashlet extends KTBaseDashlet {
42   - var $sClass = 'ktError';
43   -
44   - function AdminVersionDashlet(){
45   - $this->sTitle = _kt('New Version Available');
46   - }
47   -
48   - function is_active($oUser)
49   - {
50   - $this->version = AdminVersion::isNewVersionAvailable();
51   - if ($this->version === false)
52   - {
53   - return false;
54   - }
55   - return Permission::userIsSystemAdministrator();
56   - }
57   -
58   - function render() {
59   - global $main;
60   -
61   - $oTemplating =& KTTemplating::getSingleton();
62   - $oTemplate = $oTemplating->loadTemplate('dashlet');
63   -
64   - $name = $this->version['name'];
65   - $version = $this->version['version'];
66   -
67   - $aTemplateData = array(
68   - 'context' => $this,
69   - 'name' => $name,
70   - 'version' => $version
71   - );
72   -
73   - return $oTemplate->render($aTemplateData);
74   - }
75   -}
76   -?>
77 0 \ No newline at end of file
plugins/ktstandard/AdminVersionPlugin/AdminVersionPlugin.php deleted
1   -<?php
2   -/*
3   - * $Id:$
4   - *
5   - * KnowledgeTree Community Edition
6   - * Document Management Made Simple
7   - * Copyright (C) 2008 KnowledgeTree Inc.
8   - * Portions copyright The Jam Warehouse Software (Pty) Limited
9   - *
10   - * This program is free software; you can redistribute it and/or modify it under
11   - * the terms of the GNU General Public License version 3 as published by the
12   - * Free Software Foundation.
13   - *
14   - * This program is distributed in the hope that it will be useful, but WITHOUT
15   - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16   - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17   - * details.
18   - *
19   - * You should have received a copy of the GNU General Public License
20   - * along with this program. If not, see <http://www.gnu.org/licenses/>.
21   - *
22   - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
23   - * California 94120-7775, or email info@knowledgetree.com.
24   - *
25   - * The interactive user interfaces in modified source and object code versions
26   - * of this program must display Appropriate Legal Notices, as required under
27   - * Section 5 of the GNU General Public License version 3.
28   - *
29   - * In accordance with Section 7(b) of the GNU General Public License version 3,
30   - * these Appropriate Legal Notices must retain the display of the "Powered by
31   - * KnowledgeTree" logo and retain the original copyright notice. If the display of the
32   - * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
33   - * must display the words "Powered by KnowledgeTree" and retain the original
34   - * copyright notice.
35   - * Contributor( s): ______________________________________
36   - *
37   - */
38   -
39   -require_once(KT_LIB_DIR . "/plugins/plugin.inc.php");
40   -require_once(KT_LIB_DIR . "/plugins/pluginregistry.inc.php");
41   -require_once(KT_LIB_DIR . "/templating/templating.inc.php");
42   -
43   - class AdminVersionPlugin extends KTPlugin
44   - {
45   - var $sNamespace = 'ktstandard.adminversion.plugin';
46   - var $autoRegister = true;
47   -
48   - function AdminVersionPlugin($sFilename = null) {
49   -
50   - $res = parent::KTPlugin($sFilename);
51   - $this->sFriendlyName = _kt('Admin Version Notifier');
52   - return $res;
53   -
54   - }
55   -
56   - function setup() {
57   -
58   - $this->registerDashlet('AdminVersionDashlet', 'ktstandard.adminversion.dashlet', 'AdminVersionDashlet.php');
59   -
60   - $oTemplating =& KTTemplating::getSingleton();
61   - $oTemplating->addLocation('AdminVersionDashlet', '/plugins/ktstandard/AdminVersionPlugin/templates');
62   - }
63   - }
64   -
65   -$oPluginRegistry =& KTPluginRegistry::getSingleton();
66   -$oPluginRegistry->registerPlugin('AdminVersionPlugin', 'ktstandard.adminversion.plugin', __FILE__);
67   -
68   -?>
69 0 \ No newline at end of file
plugins/ktstandard/AdminVersionPlugin/bin/UpdateNewVersion.php deleted
1   -<?php
2   -
3   -/**
4   - * $Id: $
5   - *
6   - * KnowledgeTree Community Edition
7   - * Document Management Made Simple
8   - * Copyright (C) 2008 KnowledgeTree Inc.
9   - * Portions copyright The Jam Warehouse Software (Pty) Limited
10   - *
11   - * This program is free software; you can redistribute it and/or modify it under
12   - * the terms of the GNU General Public License version 3 as published by the
13   - * Free Software Foundation.
14   - *
15   - * This program is distributed in the hope that it will be useful, but WITHOUT
16   - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17   - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18   - * details.
19   - *
20   - * You should have received a copy of the GNU General Public License
21   - * along with this program. If not, see <http://www.gnu.org/licenses/>.
22   - *
23   - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
24   - * California 94120-7775, or email info@knowledgetree.com.
25   - *
26   - * The interactive user interfaces in modified source and object code versions
27   - * of this program must display Appropriate Legal Notices, as required under
28   - * Section 5 of the GNU General Public License version 3.
29   - *
30   - * In accordance with Section 7(b) of the GNU General Public License version 3,
31   - * these Appropriate Legal Notices must retain the display of the "Powered by
32   - * KnowledgeTree" logo and retain the original copyright notice. If the display of the
33   - * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
34   - * must display the words "Powered by KnowledgeTree" and retain the original
35   - * copyright notice.
36   - * Contributor( s): ______________________________________
37   - *
38   - */
39   -
40   -chdir(dirname(__FILE__));
41   -require_once(realpath('../../../../config/dmsDefaults.php'));
42   -require_once('../AdminVersion.inc.php');
43   -
44   -AdminVersion::refresh();
45   -
plugins/ktstandard/AdminVersionPlugin/templates/computer_go.png deleted

777 Bytes

plugins/ktstandard/AdminVersionPlugin/templates/dashlet.smarty deleted
1   -{literal}
2   -
3   -<style type="text/css">
4   -
5   -#AdminVersionDashlet .action_close {
6   - display: none;
7   -}
8   -#AdminHeader { font-weight: bold;
9   - margin-left: 25px;}
10   -#AdminVersionBlock {
11   - background: url(./plugins/ktstandard/AdminVersionPlugin/templates/computer_go.png) no-repeat scroll left;
12   - font-weight: bold;
13   - padding-left:25px;
14   - background-position: top left;
15   -}
16   -</style>
17   -
18   -{/literal}
19   -
20   -<div>
21   -<div id="AdminHeader">
22   - The following upgrade is available:
23   -</div>
24   -<div id="AdminVersionBlock" name="AdminVersionBlock">
25   -<div id="AdminVersion"><a href="http://www.knowledgetree.com/products/whats-new" target="_blank">{$name} version {$version}</a></div><br></div>
26   -</div>
27 0 \ No newline at end of file
plugins/ktstandard/AdminVersionPlugin/test/checkVersion.php deleted
1   -<?php
2   -
3   -/**
4   - * $Id: $
5   - *
6   - * KnowledgeTree Community Edition
7   - * Document Management Made Simple
8   - * Copyright (C) 2008 KnowledgeTree Inc.
9   - * Portions copyright The Jam Warehouse Software (Pty) Limited
10   - *
11   - * This program is free software; you can redistribute it and/or modify it under
12   - * the terms of the GNU General Public License version 3 as published by the
13   - * Free Software Foundation.
14   - *
15   - * This program is distributed in the hope that it will be useful, but WITHOUT
16   - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17   - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18   - * details.
19   - *
20   - * You should have received a copy of the GNU General Public License
21   - * along with this program. If not, see <http://www.gnu.org/licenses/>.
22   - *
23   - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
24   - * California 94120-7775, or email info@knowledgetree.com.
25   - *
26   - * The interactive user interfaces in modified source and object code versions
27   - * of this program must display Appropriate Legal Notices, as required under
28   - * Section 5 of the GNU General Public License version 3.
29   - *
30   - * In accordance with Section 7(b) of the GNU General Public License version 3,
31   - * these Appropriate Legal Notices must retain the display of the "Powered by
32   - * KnowledgeTree" logo and retain the original copyright notice. If the display of the
33   - * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
34   - * must display the words "Powered by KnowledgeTree" and retain the original
35   - * copyright notice.
36   - * Contributor( s): ______________________________________
37   - *
38   - */
39   -
40   -chdir(dirname(__FILE__));
41   -require_once(realpath('../../../../config/dmsDefaults.php'));
42   -require_once('../AdminVersion.inc.php');
43   -
44   -$version = AdminVersion::isNewVersionAvailable();
45   -
46   -if ($version == false)
47   -print 'No new version available.';
48   -else
49   -print_r($version);
50   -
plugins/ktstandard/AdminVersionPlugin/test/latestVersion.php deleted
1   -<?php
2   -
3   -/**
4   - * $Id: $
5   - *
6   - * KnowledgeTree Community Edition
7   - * Document Management Made Simple
8   - * Copyright (C) 2008 KnowledgeTree Inc.
9   - * Portions copyright The Jam Warehouse Software (Pty) Limited
10   - *
11   - * This program is free software; you can redistribute it and/or modify it under
12   - * the terms of the GNU General Public License version 3 as published by the
13   - * Free Software Foundation.
14   - *
15   - * This program is distributed in the hope that it will be useful, but WITHOUT
16   - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17   - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18   - * details.
19   - *
20   - * You should have received a copy of the GNU General Public License
21   - * along with this program. If not, see <http://www.gnu.org/licenses/>.
22   - *
23   - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
24   - * California 94120-7775, or email info@knowledgetree.com.
25   - *
26   - * The interactive user interfaces in modified source and object code versions
27   - * of this program must display Appropriate Legal Notices, as required under
28   - * Section 5 of the GNU General Public License version 3.
29   - *
30   - * In accordance with Section 7(b) of the GNU General Public License version 3,
31   - * these Appropriate Legal Notices must retain the display of the "Powered by
32   - * KnowledgeTree" logo and retain the original copyright notice. If the display of the
33   - * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
34   - * must display the words "Powered by KnowledgeTree" and retain the original
35   - * copyright notice.
36   - * Contributor( s): ______________________________________
37   - *
38   - */
39   -
40   -// NOTE: this is a test script. The values are for test purposes only.
41   -
42   -$versions = array(
43   -'Development OSS'=> '3.5'
44   -);
45   -
46   -print json_encode($versions);
47   -
48   -?>
49 0 \ No newline at end of file
sql/mysql/install/data.sql
... ... @@ -1281,25 +1281,24 @@ INSERT INTO `plugins` VALUES
1281 1281 (2,'ktcore.rss.plugin','plugins/rssplugin/RSSPlugin.php',0,0,NULL,0,'RSS Plugin',0),
1282 1282 (3,'ktcore.language.plugin','plugins/ktcore/KTCoreLanguagePlugin.php',0,0,NULL,0,'Core Language Support',-75),
1283 1283 (4,'ktcore.plugin','plugins/ktcore/KTCorePlugin.php',0,0,NULL,0,'Core Application Functionality',-25),
1284   -(5,'ktstandard.adminversion.plugin','plugins/ktstandard/AdminVersionPlugin/AdminVersionPlugin.php',0,0,NULL,0,'Admin Version Notifier',0),
1285   -(6,'ktstandard.ldapauthentication.plugin','plugins/ktstandard/KTLDAPAuthenticationPlugin.php',0,0,NULL,0,'LDAP Authentication Plugin',0),
1286   -(7,'ktstandard.pdf.plugin','plugins/ktstandard/PDFGeneratorPlugin.php',0,0,NULL,0,'PDF Generator Plugin',0),
1287   -(8,'ktstandard.bulkexport.plugin','plugins/ktstandard/KTBulkExportPlugin.php',0,0,NULL,0,'Bulk Export Plugin',0),
1288   -(9,'ktstandard.immutableaction.plugin','plugins/ktstandard/ImmutableActionPlugin.php',0,0,NULL,0,'Immutable action plugin',0),
1289   -(10,'ktstandard.subscriptions.plugin','plugins/ktstandard/KTSubscriptions.php',0,0,NULL,0,'Subscription Plugin',0),
1290   -(11,'ktstandard.discussion.plugin','plugins/ktstandard/KTDiscussion.php',0,0,NULL,0,'Document Discussions Plugin',0),
1291   -(12,'ktstandard.email.plugin','plugins/ktstandard/KTEmail.php',0,0,NULL,0,'Email Plugin',0),
1292   -(13,'ktstandard.indexer.plugin','plugins/ktstandard/KTIndexer.php',0,0,NULL,0,'Full-text Content Indexing',0),
1293   -(14,'ktstandard.documentlinks.plugin','plugins/ktstandard/KTDocumentLinks.php',0,0,NULL,0,'Inter-document linking',0),
1294   -(15,'ktstandard.workflowassociation.plugin','plugins/ktstandard/KTWorkflowAssociation.php',0,0,NULL,0,'Workflow Association Plugin',0),
1295   -(16,'ktstandard.workflowassociation.documenttype.plugin','plugins/ktstandard/workflow/TypeAssociator.php',0,0,NULL,0,'Workflow allocation by document type',0),
1296   -(17,'ktstandard.workflowassociation.folder.plugin','plugins/ktstandard/workflow/FolderAssociator.php',0,0,NULL,0,'Workflow allocation by location',0),
1297   -(18,'ktstandard.disclaimers.plugin','plugins/ktstandard/KTDisclaimers.php',0,0,NULL,0,'Disclaimers Plugin',0),
1298   -(19,'nbm.browseable.plugin','plugins/browseabledashlet/BrowseableDashletPlugin.php',0,0,NULL,0,'Orphaned Folders Plugin',0),
1299   -(20,'ktstandard.ktwebdavdashlet.plugin','plugins/ktstandard/KTWebDAVDashletPlugin.php',0,0,NULL,0,'WebDAV Dashlet Plugin',0),
1300   -(21,'ktcore.housekeeper.plugin','plugins/housekeeper/HouseKeeperPlugin.php',0,0,NULL,0,'Housekeeper',0),
1301   -(22,'ktstandard.preview.plugin','plugins/ktstandard/documentpreview/documentPreviewPlugin.php',0,0,NULL,0,'Property Preview Plugin',0),
1302   -(23,'ktlive.mydropdocuments.plugin','plugins/MyDropDocumentsPlugin/MyDropDocumentsPlugin.php',0,0,NULL,0,'Drop Documents Plugin',0);
  1284 +(5,'ktstandard.ldapauthentication.plugin','plugins/ktstandard/KTLDAPAuthenticationPlugin.php',0,0,NULL,0,'LDAP Authentication Plugin',0),
  1285 +(6,'ktstandard.pdf.plugin','plugins/ktstandard/PDFGeneratorPlugin.php',0,0,NULL,0,'PDF Generator Plugin',0),
  1286 +(7,'ktstandard.bulkexport.plugin','plugins/ktstandard/KTBulkExportPlugin.php',0,0,NULL,0,'Bulk Export Plugin',0),
  1287 +(8,'ktstandard.immutableaction.plugin','plugins/ktstandard/ImmutableActionPlugin.php',0,0,NULL,0,'Immutable action plugin',0),
  1288 +(9,'ktstandard.subscriptions.plugin','plugins/ktstandard/KTSubscriptions.php',0,0,NULL,0,'Subscription Plugin',0),
  1289 +(10,'ktstandard.discussion.plugin','plugins/ktstandard/KTDiscussion.php',0,0,NULL,0,'Document Discussions Plugin',0),
  1290 +(11,'ktstandard.email.plugin','plugins/ktstandard/KTEmail.php',0,0,NULL,0,'Email Plugin',0),
  1291 +(12,'ktstandard.indexer.plugin','plugins/ktstandard/KTIndexer.php',0,0,NULL,0,'Full-text Content Indexing',0),
  1292 +(13,'ktstandard.documentlinks.plugin','plugins/ktstandard/KTDocumentLinks.php',0,0,NULL,0,'Inter-document linking',0),
  1293 +(14,'ktstandard.workflowassociation.plugin','plugins/ktstandard/KTWorkflowAssociation.php',0,0,NULL,0,'Workflow Association Plugin',0),
  1294 +(15,'ktstandard.workflowassociation.documenttype.plugin','plugins/ktstandard/workflow/TypeAssociator.php',0,0,NULL,0,'Workflow allocation by document type',0),
  1295 +(16,'ktstandard.workflowassociation.folder.plugin','plugins/ktstandard/workflow/FolderAssociator.php',0,0,NULL,0,'Workflow allocation by location',0),
  1296 +(17,'ktstandard.disclaimers.plugin','plugins/ktstandard/KTDisclaimers.php',0,0,NULL,0,'Disclaimers Plugin',0),
  1297 +(18,'nbm.browseable.plugin','plugins/browseabledashlet/BrowseableDashletPlugin.php',0,0,NULL,0,'Orphaned Folders Plugin',0),
  1298 +(19,'ktstandard.ktwebdavdashlet.plugin','plugins/ktstandard/KTWebDAVDashletPlugin.php',0,0,NULL,0,'WebDAV Dashlet Plugin',0),
  1299 +(20,'ktcore.housekeeper.plugin','plugins/housekeeper/HouseKeeperPlugin.php',0,0,NULL,0,'Housekeeper',0),
  1300 +(21,'ktstandard.preview.plugin','plugins/ktstandard/documentpreview/documentPreviewPlugin.php',0,0,NULL,0,'Property Preview Plugin',0),
  1301 +(22,'ktlive.mydropdocuments.plugin','plugins/MyDropDocumentsPlugin/MyDropDocumentsPlugin.php',0,0,NULL,0,'Drop Documents Plugin',0);
1303 1302 /*!40000 ALTER TABLE `plugins` ENABLE KEYS */;
1304 1303 UNLOCK TABLES;
1305 1304  
... ...