source: trunk/_InstallationResources/omconfig.php @ 1847

Revision 1847, 8.9 KB checked in by Xiping.Wang, 20 months ago (diff)

[trunk] 1.change logged layout to float. 2.Signup form refactor

Line 
1<?php
2
3//if( file_exists( dirname( dirname( __file__ ) ) . '/install.php' ) ) {
4//      die( "Error: '" . dirname( dirname( __file__ ) ) . "\install.php' must not be present!" );
5//}
6
7//if( file_exists( dirname( dirname( __file__ ) ) . '/install.completed.php' )
8//|| ( file_exists( dirname( dirname( __file__ ) ) . '/_InstallationResources' ) )
9//   && is_dir( dirname( dirname( __file__ ) ) . '/_InstallationResources' ) ){
10//      die( "Please delete '" . dirname( dirname( __file__ ) ) . "\install.completed.php'\n"
11//         . "and remove or rename the '" . dirname( dirname( __file__ ) ) . "\_InstallationResources' directory,\n"
12//         . "then <a href='../'>try again</a>" );
13//}
14
15# [ a quick tip of the hat to the boys ay IIS who decided document_root should not be available ]
16if(!isset($_SERVER['DOCUMENT_ROOT'])){
17        if(isset($_SERVER['SCRIPT_FILENAME'])){
18                $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
19        }
20}
21if(!isset($_SERVER['DOCUMENT_ROOT'])){
22        if(isset($_SERVER['PATH_TRANSLATED'])){
23                $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
24        }
25}
26
27# [ add support for JSON, for versions older than PHP 5.2 ]
28if(!function_exists('json_encode')){
29        require_once(dirname(__FILE__) .'/json_service.php');
30        $GLOBALS['JSON_OBJECT'] = new Services_JSON();
31        function json_encode($value){   
32                return $GLOBALS['JSON_OBJECT']->encode($value);
33        }
34        function json_decode($value)    {
35                return $GLOBALS['JSON_OBJECT']->decode($value);
36        }
37}
38
39# [ omCollab Version - increment manually - will appear as title on omCollab logo]
40define( 'OMCOLLAB_VERSION'                         , '1.400.2' );
41
42# [ ... ]
43define( 'OMCOLLAB_HTTP_HOST'           , $_SERVER['HTTP_HOST'] );
44define( 'OMCOLLAB_ADMIN_EMAIL'         , '{omcollab_admin_email}' );
45
46# [ folder name of skin (folder basename) ]
47define( 'OMCOLLAB_SKIN_DIRNAME'        , 'mike2{omcollab_initial_skin}' ); // shipped with 'mike2' (default), 'mike2green' and 'mike2red'
48
49# [ omcollab application databases ]
50define( 'OMCOLLAB_DB_HOSTNAME'         , '{omcollab_db_hostname}' );
51
52define( 'OMWIKI_DATABASE_NAME'         , '{omwiki_database_name}' );
53define( 'OMWIKI_DB_USERNAME'           , '{omwiki_db_username}' );
54define( 'OMWIKI_DB_PASSWORD'           , '{omwiki_db_password}' );
55define( 'OMWIKI_DB_TABLE_PREFIX'       , '{omcollab_db_table_prefix}' );
56
57define( 'OMBLOG_DATABASE_NAME'         , '{omblogs_database_name}' );
58define( 'OMBLOG_DB_USERNAME'           , '{omblogs_db_username}' );
59define( 'OMBLOG_DB_PASSWORD'           , '{omblogs_db_password}' );
60define( 'OMBLOG_DB_TABLE_PREFIX'       , '{omcollab_db_table_prefix}' );
61
62define( 'OMBOOKMARKS_DATABASE_NAME'    , '{ombookmarks_database_name}' );
63define( 'OMBOOKMARKS_DB_USERNAME'      , '{ombookmarks_db_username}' );
64define( 'OMBOOKMARKS_DB_PASSWORD'      , '{ombookmarks_db_password}' );
65define( 'OMBOOKMARKS_DB_TABLE_PREFIX'  , '{omcollab_db_table_prefix}' );
66
67define( 'OMFORUM_DATABASE_NAME'            , '{omforum_database_name}' );
68define( 'OMFORUM_DB_USERNAME'              , '{omforum_db_username}' );
69define( 'OMFORUM_DB_PASSWORD'              , '{omforum_db_password}' );
70define( 'OMFORUM_DB_TABLE_PREFIX'          , '{omcollab_db_table_prefix}' );
71
72# [ omcollab application names (used in titles etc) ]
73define( 'OMCOLLAB_APPLICATION_NAME'    , '{omcollab_application_name}' );
74define( 'OMWIKI_APPLICATION_NAME'      , '{omwiki_application_name}' );
75define( 'OMBLOG_APPLICATION_NAME'      , '{omblog_application_name}' );
76define( 'OMBOOKMARKS_APPLICATION_NAME' , '{ombookmarks_application_name}' );
77define( 'OMEXPLORE_APPLICATION_NAME'   , '{omexplore_application_name}' );
78define( 'OMFORUM_APPLICATION_NAME'         , '{omforum_application_name}' );
79
80        # [ omwiki script & article paths ]
81        define( 'OMWIKI_SCRIPT_PATH'           , '{omwiki_script_path}' );
82        define( 'OMWIKI_ARTICLE_PATH'          , '{omwiki_article_path}' );
83
84# [ google codes (requires a google account) ]
85define( 'OMCOLLAB_GOOGLE_ANALYTICS'    , '{omcollab_google_analytics}' );
86define( 'OMCOLLAB_GOOGLE_CSE_CODE'     , '{omcollab_google_cse_code}' );
87define( 'OMCOLLAB_GOOGLE_CSE_FORID'    , '{omcollab_google_cse_forid}' );
88define( 'OMCOLLAB_GOOGLE_BLOG_API_KEY' , '{omcollab_google_blog_key}' );
89
90# [ path definitions (RR = Root-Relative) ]
91
92define( 'RR_OMCOLLAB_DIRECTORY'        , '{omcollab_installation_dir}' );
93define( 'RR_COMMON_DIRECTORY'          , RR_OMCOLLAB_DIRECTORY . 'common/' );
94
95# [ path definitions (FS = File System) ]
96define( 'OMCOLLAB_DOCROOT'             , $_SERVER['DOCUMENT_ROOT'] );
97define( 'FS_COMMON_DIRECTORY'          , dirname(__file__) );
98if(array_key_exists(OMWIKI_DATABASE_NAME.'_'.OMWIKI_DB_TABLE_PREFIX.'myskin',$_COOKIE)) {
99    $myskin = $_COOKIE[OMWIKI_DATABASE_NAME.'_'.OMWIKI_DB_TABLE_PREFIX.'myskin'];
100    define( 'RR_COMMON_SKIN_DIRECTORY'     , RR_COMMON_DIRECTORY . 'skins/' . $myskin );
101    define( 'FS_COMMON_SKIN_DIRECTORY'     , FS_COMMON_DIRECTORY . '/skins/' . $myskin );
102} else {
103    define( 'RR_COMMON_SKIN_DIRECTORY'     , RR_COMMON_DIRECTORY . 'skins/' . OMCOLLAB_SKIN_DIRNAME );
104    define( 'FS_COMMON_SKIN_DIRECTORY'     , FS_COMMON_DIRECTORY . '/skins/' . OMCOLLAB_SKIN_DIRNAME );
105}
106
107define( 'FS_FORUM_ROOT'                            , OMCOLLAB_DOCROOT . RR_OMCOLLAB_DIRECTORY . 'forum/');
108
109# [ omcollab can force user to re-authenticate across all apps - by default this is set to false ]
110define( 'OMCOLLAB_FORCE_AUTHENTICATION', false );
111
112# [ configure the apps you want to use ]
113require_once( FS_COMMON_SKIN_DIRECTORY . '/omcollab-applications.php' );
114
115# [ RSS feed address (best managed with Feedburner) ]
116#TODO to be included in install.php file
117define( 'OMCOLLAB_RSS_ADDRESS'    , 'http://feeds.feedburner.com/MIKE20InformationDevelopment' );
118
119# [ configure Wiki Extension SelectCategoryTagCloud parameters ]
120#TODO to be included in the install.php file
121define( 'OMWIKI_EXT_SCTC_MIN_SIZE'    , '77' );
122define( 'OMWIKI_EXT_SCTC_INCREASE_FACTOR'    , '200' );
123define( 'OMWIKI_EXT_SCTC_MIN_COUNT'    , '2' );
124
125# [ configure Explore Blogbar parameters ]
126#TODO to be included in the install.php file
127define( 'OMEXPLORE_BLOGBAR_TITLE'                               , 'MIKE2.0 on the Web' );
128define( 'OMEXPLORE_BLOGBAR_SEARCH_TERMS'                        , 'MIKE2.0' );
129define( 'OMEXPLORE_BLOGBAR_SEARCH_TERMS_SHOW_ALL'   , 'MIKE2.0' );
130
131#[ omwiki DocConvert Extension configuration ]
132define( 'OMWIKI_ENABLE_DOCCONVERT'   , '{omwiki_enable_docconvert}' );
133define( 'OMWIKI_DOCCONVERT_OO_PATH'   , '{omwiki_docconvert_oo_path}' );
134
135#[ omcollab typeahead separator charactor ]
136define( 'OMCOLLAB_TYPEAHEAD_SEPARATOR'   , ';' );
137
138#[ omcollab front page description/subtitle .for SEO ]
139#define( 'OMCOLLAB_FRONTPAGE_DESCRIPTION' , 'MIKE2.0 (Method for an Integrated Knowledge Environment) is an open source standard and delivery methodology for IM projects');
140#[ omcollab front page keywords .for SEO ]
141#define( 'OMCOLLAB_FRONTPAGE_KEYWORDS','MIKE2, information management, IM, open source, omcollab, what is mike2.0, open methodology framework, SAFE architecture, deliverable templates, overall task list, BearingPoint, business intelligence, enterprise data management, enterprise search, enterprise content management, information asset management, IM strategy, architecture, information governance, enterprise 2.0');
142
143## based on the new SEO suggestion from Shreyas Kanekar
144define( 'OMCOLLAB_FRONTPAGE_DESCRIPTION' , 'MIKE2.0 is an open source methodology for enterprise information management that provides a framework for information development. It is part of the overall open methodology framework.');
145#[ omcollab front page keywords .for SEO ]
146define( 'OMCOLLAB_FRONTPAGE_KEYWORDS','open framework, information management strategy, collaborative governance, data methodology, social methodology, data governance, data governance framework, data strategy');
147
148
149#[ omcollab front page logo tagline]
150define('OMCOLLAB_FRONTPAGE_TAGLINE','The Open Source Standard for Information Management');
151
152#[ subscription help]
153define('OMCOLLAB_SUBSCRIPTION_HELP','Select the categories you want to subscribe!');
154
155# [ defined security key, please notice if a space exists in your key]
156define('OMCOLLAB_CACHE_KEY','enter_your_key');
157
158# [ defined cache enable variable]
159define('OMCOLLAB_CACHE_DISABLED',true);
160# [this variable standand for cache file will be updated every 30 minutes if the OMCOLLAB_CACHE_DISABLED is true ]
161define('OMCOLLAB_CACHE_UPDATED_INTERVAL',30);
162
163define('OMCOLLAB_SITE_NAME','omCollab');
164
165
166# languages supported by omcollab
167# Adopted from wiki/languages/Names.php
168$omcollab_languages = array(
169        'en' => 'English',      # English
170        'ar' => 'ﺎﻠﻋﺮﺒﻳﺓ',      # Arabic
171        'es' => 'Español',      # Spanish
172        'fr' => 'Français',     # French
173        'ko' => '한국얎',       # Korean
174        'zh' => 'äž­æ–‡',         # (Zhōng Wén) - Chinese
175);
176
177#wiki multiple language switch flag
178$omcollab_languages_ignore_array = array();
179
Note: See TracBrowser for help on using the repository browser.