Skip to content

Commit ce6f49c

Browse files
committed
kt src oss 3.7.0.2
0 parents  commit ce6f49c

File tree

4,557 files changed

+884549
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,557 files changed

+884549
-0
lines changed

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
*~
2+
bin/luceneserver/lucene.pid
3+
bin/schedulerTask.sh
4+
*.tmproj
5+
.DS_Store
6+
.buildpath
7+
.project
8+
.settings/
9+
dummy.php
10+
var/*
11+
plugins/commercial
12+
clienttools/ExplorerCP
13+
clienttools/Office
14+
.gitmodules
15+
*.out
16+
baobab/
17+
ktoffice*/
18+
setup/wizard/install.lock

.htaccess

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# This file sets up the necessary PHP settings to run KnowledgeTree
2+
# optimally.
3+
#
4+
# It is best that KnowledgeTree be allowed to manage its PHP and access
5+
# permissions using these .htaccess files. This prevents direct access
6+
# to libraries, scripts, and documents that should not be available via
7+
# the web.
8+
#
9+
# By default, to facilitate quick testing of functionality,
10+
# KnowledgeTree places the Documents directory within the KnowledgeTree
11+
# web root. This, by default, would allow people to browse the
12+
# documents in the DMS, bypassing the security permissions. The
13+
# default .htaccess settings would prevent this.
14+
#
15+
# KnowledgeTree itself is able to deal with most PHP configurations,
16+
# excepting "safe mode" currently, but is unable to handle certain
17+
# inherent configuration options (for example, setting the upload size
18+
# very low). Check the setup checklists (as described in the
19+
# documentation) to see how your configuration is handled.
20+
#
21+
# The default .htaccess settings ensure that no workarounds occur in the
22+
# PHP code, leading to better performance and robustness.
23+
#
24+
<IfModule mod_php5.c>
25+
php_value default_mimetype text/html
26+
php_value auto_prepend_file none
27+
php_value auto_append_file none
28+
php_flag display_startup_errors ON
29+
php_flag display_errors ON
30+
php_flag file_uploads ON
31+
php_flag magic_quotes_gpc OFF
32+
php_flag magic_quotes_runtime OFF
33+
php_flag register_globals OFF
34+
php_flag output_buffering OFF
35+
php_flag session.auto_start OFF
36+
</IfModule>
37+
38+
<IfModule sapi_apache2.c>
39+
php_value default_mimetype text/html
40+
php_value auto_prepend_file none
41+
php_value auto_append_file none
42+
php_flag display_startup_errors ON
43+
php_flag display_errors ON
44+
php_flag file_uploads ON
45+
php_flag magic_quotes_gpc OFF
46+
php_flag magic_quotes_runtime OFF
47+
php_flag register_globals OFF
48+
php_flag output_buffering OFF
49+
php_flag session.auto_start OFF
50+
</IfModule>
51+
52+
<IfModule mod_env.c>
53+
SetEnv kt_htaccess_worked yes
54+
SetEnvIf Authorization (.*) kt_auth=$1
55+
</IfModule>
56+
LimitRequestBody 0
57+
DirectoryIndex index.html index.php
58+
Options none
59+
Options +ExecCGI
60+
Options +SymLinksIfOwnerMatch
61+
#AcceptPathInfo On
62+
63+
AddOutputFilter DEFLATE text/html text/plain text/xml text/javascript application/x-javascript text/css
64+
# The following seems to breaking things on ZendServer - kgf
65+
#ExpiresActive ON
66+
#ExpiresByType text/html "access plus 1 day"
67+
#ExpiresByType text/css "access plus 1 day"
68+
#ExpiresByType text/javascript "access plus 7 days"
69+
#ExpiresByType application/x-javascript "access plus 7 days"
70+
#ExpiresByType image/gif "access plus 1 month"
71+
#ExpiresByType image/jpg "access plus 1 month"
72+
#ExpiresByType image/png "access plus 1 month"
73+
#ExpiresByType image/x-icon "access plus 1 month"
74+
75+
#
76+
# If you are having uploading larger documents, adjust the 16M examples
77+
# below to increase the maximum file size. This is set to a reasonable
78+
# size for testing and most usage patterns, as increased sizes may allow
79+
# malicious users to use up resources.
80+
#
81+
<IfModule mod_php5.c>
82+
php_value upload_max_filesize -1
83+
php_value post_max_size 2000M
84+
php_value memory_limit -1
85+
php_value max_input_time -1
86+
php_value max_execution_time 0
87+
php_value error_reporting 5
88+
</IfModule>
89+
<IfModule sapi_apache2.c>
90+
php_value upload_max_filesize -1
91+
php_value post_max_size 2000M
92+
php_value memory_limit -1
93+
php_value max_input_time -1
94+
php_value max_execution_time 0
95+
php_value error_reporting 5
96+
</IfModule>
97+
98+
# Workaround for mod_auth when running php cgi
99+
<IfModule mod_rewrite.c>
100+
RewriteEngine on
101+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
102+
</IfModule>
103+
104+
#<IfModule mod_rewrite.c>
105+
#RewriteEngine On
106+
#RewriteBase /
107+
## Set RewriteBase to the base directory that KnowledgeTree is viewable
108+
## from via the web. So http://foo.org/ is /, and
109+
## http://bar.com/knowledgeTree/ is /knowledgeTree
110+
##RewriteBase /knowledgeTree
111+
#RewriteCond %{REQUEST_FILENAME} !-f
112+
#RewriteCond %{REQUEST_FILENAME}.php -f
113+
#RewriteRule !^[^/]*.php - [C]
114+
#RewriteRule ^([^/]*)([/].+)? $1.php [E=kt_path_info:$2,E=kt_orig_file:$1.php]
115+
#<IfModule mod_env.c>
116+
#SetEnv kt_no_extensions yes
117+
#</IfModule>
118+
#</IfModule>

about.php

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?php
2+
3+
/**
4+
* $Id$
5+
*
6+
* KnowledgeTree Community Edition
7+
* Document Management Made Simple
8+
* Copyright (C) 2008, 2009 KnowledgeTree Inc.
9+
*
10+
*
11+
* This program is free software; you can redistribute it and/or modify it under
12+
* the terms of the GNU General Public License version 3 as published by the
13+
* Free Software Foundation.
14+
*
15+
* This program is distributed in the hope that it will be useful, but WITHOUT
16+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18+
* details.
19+
*
20+
* You should have received a copy of the GNU General Public License
21+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
*
23+
* You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
24+
* California 94120-7775, or email [email protected].
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+
// main library routines and defaults
41+
require_once("config/dmsDefaults.php");
42+
require_once(KT_LIB_DIR . "/unitmanagement/Unit.inc");
43+
44+
require_once(KT_LIB_DIR . "/templating/templating.inc.php");
45+
require_once(KT_LIB_DIR . "/dispatcher.inc.php");
46+
require_once(KT_LIB_DIR . "/widgets/forms.inc.php");
47+
48+
class KTAbout extends KTStandardDispatcher {
49+
var $sSection = 'aboutkt';
50+
51+
function do_main() {
52+
global $default;
53+
$this->aBreadcrumbs = array(array('action' => 'aboutkt', 'name' => _kt("About")));
54+
$oUser =& $this->oUser;
55+
56+
$oTemplating =& KTTemplating::getSingleton();
57+
$oTemplate = $oTemplating->loadTemplate("ktcore/principals/about");
58+
59+
$aVersionInfo = explode(' ', $default->versionName);
60+
foreach($aVersionInfo as $sVersionpiece){
61+
if(substr($sVersionpiece, 1, 1) == '.'){
62+
$sVersionNo = $sVersionpiece;
63+
}else{
64+
$sVersionName .= " ".$sVersionpiece;
65+
}
66+
}
67+
68+
$aTemplateData = array(
69+
"context" => $this,
70+
"versionname" => $sVersionName,
71+
"versionnumber" => $sVersionNo,
72+
'smallVersion' => substr($default->versionName, -18, -1),
73+
);
74+
return $oTemplate->render($aTemplateData);
75+
}
76+
}
77+
78+
$oDispatcher = new KTAbout();
79+
$oDispatcher->dispatch();
80+
81+
?>

0 commit comments

Comments
 (0)