Commit 453601a49bebc3498d1da661cbdbb785b0bb71a3

Authored by Brad Shuttleworth
1 parent 9a198e28

remove vestigal assistance.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5313 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktcore/assistance/KTUserAssistancePlugin.php deleted
1 -<?php  
2 -  
3 -/**  
4 - * $Id$  
5 - *  
6 - * Copyright (c) 2006 Jam Warehouse http://www.jamwarehouse.com  
7 - *  
8 - * This program is free software; you can redistribute it and/or modify  
9 - * it under the terms of the GNU General Public License as published by  
10 - * the Free Software Foundation; using version 2 of the License.  
11 - *  
12 - * This program is distributed in the hope that it will be useful,  
13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of  
14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  
15 - * GNU General Public License for more details.  
16 - *  
17 - * You should have received a copy of the GNU General Public License  
18 - * along with this program; if not, write to the Free Software  
19 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  
20 - *  
21 - * -------------------------------------------------------------------------  
22 - *  
23 - * You can contact the copyright owner regarding licensing via the contact  
24 - * details that can be found on the KnowledgeTree web site:  
25 - *  
26 - * http://www.ktdms.com/  
27 - */  
28 -  
29 -require_once(KT_LIB_DIR . '/dispatcher.inc.php');  
30 -require_once(KT_LIB_DIR . '/plugins/pluginregistry.inc.php');  
31 -require_once(KT_LIB_DIR . '/plugins/plugin.inc.php');  
32 -require_once(KT_LIB_DIR . '/dashboard/dashlet.inc.php');  
33 -require_once(KT_LIB_DIR . '/dashboard/DashletDisables.inc.php');  
34 -require_once(KT_LIB_DIR . "/templating/templating.inc.php");  
35 -require_once(KT_LIB_DIR . "/dashboard/Notification.inc.php");  
36 -require_once(KT_LIB_DIR . "/security/Permission.inc");  
37 -  
38 -class KTUserAssistance extends KTPlugin {  
39 - var $sNamespace = 'ktcore.userassistance';  
40 -  
41 - function setup() {  
42 - //$this->registerDashlet('KTUserTutorialDashlet', 'ktcore.dashlet.usertutorial', __FILE__);  
43 - //$this->registerDashlet('KTAdminTutorialDashlet', 'ktcore.dashlet.admintutorial', __FILE__);  
44 - $this->registerPage('kt3b1-what-is-a-beta', 'KTUserAssistB1WhatIs', __FILE__);  
45 - $this->registerPage('kt-bug-reporting-guide', 'KTUserAssistBugReportingGUide', __FILE__);  
46 - $this->registerPage('admin-quickguide', 'KTUserAssistAdminQuickguide', __FILE__);  
47 - $this->registerPage('admin-guide-whats-new-in-kt3', 'KTUserAssistAdminGuideWhatsNew', __FILE__);  
48 - }  
49 -}  
50 -  
51 -$oRegistry =& KTPluginRegistry::getSingleton();  
52 -$oRegistry->registerPlugin('KTUserAssistance', 'ktcore.userassistance', __FILE__);  
53 -  
54 -// ultra simple skeleton for the user tutorial  
55 -// FIXME do we want to store the namespace inside the dashlet?  
56 -class KTUserTutorialDashlet extends KTBaseDashlet {  
57 - function is_active($oUser) {  
58 - $namespace = 'ktcore.dashlet.usertutorial';  
59 - $disables = KTDashletDisable::getForUserAndDashlet($oUser->getId(), $namespace);  
60 -  
61 - if (!empty($disables)) {  
62 - return false;  
63 - } else {  
64 - return true;  
65 - }  
66 - }  
67 -  
68 - function render() {  
69 - $oTemplating =& KTTemplating::getSingleton();  
70 - $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/usertutorial");  
71 - $aTemplateData = array(  
72 - );  
73 - return $oTemplate->render($aTemplateData);  
74 - }  
75 -}  
76 -  
77 -  
78 -// ultra simple skeleton for the admin tutorial  
79 -class KTAdminTutorialDashlet extends KTBaseDashlet {  
80 - function is_active($oUser) {  
81 -  
82 - $namespace = 'ktcore.dashlet.admintutorial';  
83 -  
84 - if (!Permission::userIsSystemAdministrator($oUser->getId())) {  
85 - return false; // quickest disable.  
86 - }  
87 -  
88 - $disables = KTDashletDisable::getForUserAndDashlet($oUser->getId(), $namespace);  
89 - if (!empty($disables)) {  
90 - return false;  
91 - } else {  
92 - return true;  
93 - }  
94 - }  
95 -  
96 - function render() {  
97 - $oTemplating =& KTTemplating::getSingleton();  
98 - $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/admintutorial");  
99 - $aTemplateData = array(  
100 - );  
101 - return $oTemplate->render($aTemplateData);  
102 - }  
103 -}  
104 -  
105 -class KTUserAssistBasePage extends KTStandardDispatcher {  
106 - var $sSection = 'help';  
107 - var $aBreadcrumbs = array(  
108 - array('action' => 'dashboard', 'name' => 'Dashboard'),  
109 - array('name' => 'User Assistance')  
110 - );  
111 - var $pagefile = 'base';  
112 - var $title = 'User Assistance';  
113 - function do_main() {  
114 - $this->oPage->setBreadcrumbDetails($this->title);  
115 - $contents = @file_get_contents(dirname(__FILE__) . '/docs/' . $this->pagefile);  
116 - if ($contents === false) {  
117 - $contents = '<div class="ktError"><p>Unable to find requested documentation.</p></div>';  
118 - }  
119 - $this->oPage->setTitle($this->title);  
120 - $this->oPage->setShowPortlets(false);  
121 - return $contents;  
122 - }  
123 -  
124 - // hide the dashlet from the user (e.g. don't show it again) and redirect back to the dashboard.  
125 -}  
126 -  
127 -class KTUserAssistB1WhatIs extends KTUserAssistBasePage { var $pagefile = 'kt3b1-what-is-a-beta'; var $title = 'What is a Beta?'; }  
128 -  
129 -class KTUserAssistBugReportingGUide extends KTUserAssistBasePage { var $pagefile = 'kt-bug-reporting-guide'; var $title = 'Help! Something went wrong'; }  
130 -  
131 -class KTUserAssistAdminQuickguide extends KTUserAssistBasePage { var $pagefile = 'admin-quickguide'; var $title = 'Quickstart Guide for Administrators'; }  
132 -  
133 -class KTUserAssistAdminGuideWhatsNew extends KTUserAssistBasePage { var $pagefile = 'admin-guide-whats-new-in-kt3'; var $title = 'What\'s new in KT3 for Administrators'; }  
134 -  
135 -?>  
plugins/ktcore/assistance/docs/admin-guide-whats-new-in-kt3 deleted
1 -<h2>What's different in KT3</h2>  
2 -  
3 -<p><strong>Almost Everything.</strong> We have rewritten almost all of the KnowledgeTree DMS, and hope that the changes  
4 -will be good.</p>  
5 -  
6 -<p>Things you need to be aware of in terms of major changes for administrators:</p>  
7 -  
8 -  
9 -<ul>  
10 - <li>Document Indexing is now done from PHP, and uses <strong>catdoc</strong> to do its work. More about this in the file <kbd>docs/INSTALL.txt</kbd></li>  
11 - <li>While we ship with a very basic set of icons, far better ones have been produced in the Open Source community. This means  
12 - that you can take advantage of <strong>icon themes</strong> which follow the <a href="http://tango-project.org/Standard_Icon_Naming_Specification">Icon Naming Theme Specification</a> from <a href="http://freedesktop.org">freedesktop.org</a>.  
13 -In particular, the <a href="http://tango-project.org/">Tango Project icons</a> are a superb, Creative Commons licensed set of icons  
14 -which provide an improved user interface experience. <strong>Note that these icons are transparent PNG files, and as such may not  
15 -appear correctly in Internet Explorer.</strong> We are exploring various solutions to that issue.  
16 -<p>To take advantage of a theme such as <strong>tango</strong>, copy its contents into the <kbd>thirdparty/icon-theme</kbd> directory.</p></li>  
17 -</ul>  
plugins/ktcore/assistance/docs/admin-quickguide deleted
1 -<h2>Admin Quickguide</h2>  
2 -  
3 -<p><strong>FIXME</strong> we need a guide to getting started as an administrator. Since this is Beta1, we  
4 -assume that you have <strong>some</strong> history with KnowledgeTree&trade;, so we ask that you start at  
5 -the "<a href="admin-guide-whats-new-in-kt3">what's new for administrators</a>" page.</p>  
plugins/ktcore/assistance/docs/base deleted
1 -OI! This doesn't work.  
plugins/ktcore/assistance/docs/kt-bug-reporting-guide deleted
1 -<h2>Help! Something went wrong!</h2>  
2 -  
3 -<p>Our community forums are a good place to ask questions about installing,  
4 -configuring or using KnowledgeTree. Our developers, along with other  
5 -members of the open source community and our partner network, will  
6 -endeavour to answer your questions.</p>  
7 -  
8 -<p>Find the <a href="http://forum.ktdms.com">KnowledgeTree forums</a> online at <a href="http://forum.ktdms.com">forum.ktdms.com</a></p>  
9 -  
10 -<p>You can report bugs in the open source KnowledgeTree server software by  
11 -accessing our online ticketing system. The ticketing system will also  
12 -provide feedback on the status of the issue. You may view issues  
13 -reported by other people and search the system to determine if your  
14 -issue has already been reported.</p>  
15 -  
16 -<p>Access the <a href="http://support.ktdms.com">KnowledgeTree support</a> website online at <a href="http://support.ktdms.com">support.ktdms.com</a>.</p>  
plugins/ktcore/assistance/docs/kt3b1-what-is-a-beta deleted
1 -<h2>What is a beta?</h2>  
2 -  
3 -<p>Beta software is pre-production quality software. It is released with  
4 -the intention of providing the software's users with insight into where  
5 -the software feature-set is going for a particular release cycle,  
6 -getting as wide a base of testers for the release as possible and  
7 -gauging the uptake of new features. </p>  
8 -  
9 -<p>The software may not be entirely complete yet and may be buggy. We  
10 -highly value your input and urge you to evaluate the software in a test  
11 -environment. We do however strongly suggest you do not to implement this  
12 -version of KnowledgeTree in a production environment as we can't warrant  
13 -it functioning correctly.</p>