-
-
-
-
-
+{literal}
+
+
+
+{/literal}
+
+
\ No newline at end of file
diff --git a/plugins/ktstandard/AdminVersionPlugin/test/checkVersion.php b/plugins/ktstandard/AdminVersionPlugin/test/checkVersion.php
new file mode 100644
index 0000000..74e224c
--- /dev/null
+++ b/plugins/ktstandard/AdminVersionPlugin/test/checkVersion.php
@@ -0,0 +1,50 @@
+.
+ *
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
+ *
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
+ *
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
+ *
+ */
+
+chdir(dirname(__FILE__));
+require_once(realpath('../../../../config/dmsDefaults.php'));
+require_once('../AdminVersion.inc.php');
+
+$version = AdminVersion::isNewVersionAvailable();
+
+if ($version == false)
+print 'No new version available.';
+else
+print_r($version);
+
diff --git a/plugins/ktstandard/AdminVersionPlugin/test/latestVersion.php b/plugins/ktstandard/AdminVersionPlugin/test/latestVersion.php
new file mode 100644
index 0000000..cbace13
--- /dev/null
+++ b/plugins/ktstandard/AdminVersionPlugin/test/latestVersion.php
@@ -0,0 +1,48 @@
+.
+ *
+ * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
+ * California 94120-7775, or email info@knowledgetree.com.
+ *
+ * The interactive user interfaces in modified source and object code versions
+ * of this program must display Appropriate Legal Notices, as required under
+ * Section 5 of the GNU General Public License version 3.
+ *
+ * In accordance with Section 7(b) of the GNU General Public License version 3,
+ * these Appropriate Legal Notices must retain the display of the "Powered by
+ * KnowledgeTree" logo and retain the original copyright notice. If the display of the
+ * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
+ * must display the words "Powered by KnowledgeTree" and retain the original
+ * copyright notice.
+ * Contributor( s): ______________________________________
+ *
+ */
+
+// NOTE: this is a test script. The values are for test purposes only.
+
+$versions = array(
+'Development OSS'=> '3.5'
+);
+
+print json_encode($versions);
+
+?>
\ No newline at end of file
diff --git a/sql/mysql/install/data.sql b/sql/mysql/install/data.sql
index d7c3977..9d999c3 100644
--- a/sql/mysql/install/data.sql
+++ b/sql/mysql/install/data.sql
@@ -932,7 +932,8 @@ INSERT INTO `scheduler_tasks` VALUES
(5,'Database Maintenance','bin/dbmaint.php','optimize',0,'monthly','2007-10-01',NULL,0,'disabled'),
(6,'Open Office test','bin/checkopenoffice.php','',0,'1min','2007-10-01',NULL,0,'enabled'),
(7,'Cleanup Temporary Directory','search2/bin/cronCleanup.php','',0,'1min','2007-10-01',NULL,0,'enabled'),
-(8,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01',NULL,0,'enabled');
+(8,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01',NULL,0,'enabled'),
+(9,'Check Latest Version','plugins/ktstandard/AdminVersionPlugin/bin/UpdateNewVersion.php','',0,'daily','2007-10-01',NULL,0,'enabled');
/*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */;
UNLOCK TABLES;
@@ -1846,7 +1847,7 @@ UNLOCK TABLES;
LOCK TABLES `zseq_scheduler_tasks` WRITE;
/*!40000 ALTER TABLE `zseq_scheduler_tasks` DISABLE KEYS */;
-INSERT INTO `zseq_scheduler_tasks` VALUES (7);
+INSERT INTO `zseq_scheduler_tasks` VALUES (9);
/*!40000 ALTER TABLE `zseq_scheduler_tasks` ENABLE KEYS */;
UNLOCK TABLES;
diff --git a/sql/mysql/upgrade/3.5.2/zdashboard_tasks.sql b/sql/mysql/upgrade/3.5.2/zdashboard_tasks.sql
index 0ce5c90..4351aec 100644
--- a/sql/mysql/upgrade/3.5.2/zdashboard_tasks.sql
+++ b/sql/mysql/upgrade/3.5.2/zdashboard_tasks.sql
@@ -1,4 +1,7 @@
select @id:=max(id)+1 from scheduler_tasks;
INSERT INTO `scheduler_tasks` VALUES (@id,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01',NULL,0,'enabled');
+select @id:=max(id)+1 from scheduler_tasks;
+INSERT INTO `scheduler_tasks` VALUES (@id,'Check Latest Version','plugins/ktstandard/AdminVersionPlugin/bin/UpdateNewVersion.php','',0,'daily','2007-10-01',NULL,0,'enabled');
+
UPDATE zseq_scheduler_tasks set id=@id;
\ No newline at end of file