Cheetah
header.inc.php
Go to the documentation of this file.
1 <?php
2 
9 
10 $gConf['ver'] = 'Orca-v.2.0.2';
11 $gConf['def_title'] = 'Forum';
12 $path = ''; // path to orca files
13 
17 $gConf['date_format'] = '%b %d, %Y %H:%i'; // time/date format
18 $gConf['topics_per_page'] = 10; // topics per page
19 $gConf['topics_desc_len'] = 128;
20 $gConf['live_tracker_desc_len'] = 512;
21 $gConf['edit_timeout'] = 3600; // edit timeout in sec
22 
23 $gConf['email']['sender'] = ''; // email sender
24 
25 $gConf['user']['admin'] = 'admin'; // admin user
26 
27 $gConf['min_point'] = -4; // min points to hide post automatically
28 
29 $gConf['anonymous'] = '#anonymous#'; // username to assign posts to after user deletetion
30 
31 $gConf['robot'] = '#robot#'; // robot usernme to post service posts under
32 $gConf['max_posts'] = 50; // max number of posts per topic before creating new one
33 
34 $gConf['fulltext_search'] = false; // use FULLTEXT search or search using LIKE
35 
36 $gConf['online'] = 72000; // online user timeout (seconds) default: 20 min
37 
38 $xsl_mode = isset($_GET['xsl_mode']) && $_GET['xsl_mode'] ? $_GET['xsl_mode'] : (isset($_COOKIE['xsl_mode']) ? $_COOKIE['xsl_mode'] : '');
39 if (preg_match("/^\w+$/",$xsl_mode)) {
40  $gConf['xsl_mode'] = $xsl_mode;
41  setcookie ('xsl_mode', $xsl_mode);
42 } else {
43  $gConf['xsl_mode'] = 'auto'; // client, server
44 }
45 
46 // mod rewrite configuration, also make changes in layout/base/xsl/rewrite.xsl, js/ChHistory.js and .htaccess
47 $gConf['rewrite']['cat'] = 'group/%s.htm';
48 $gConf['rewrite']['forum'] = 'forum/%s-%d.htm';
49 $gConf['rewrite']['topic'] = 'topic/%s.htm';
50 $gConf['rewrite']['user'] = 'user/%s.htm';
51 $gConf['rewrite']['rss_forum'] = 'rss/forum/%s.htm';
52 $gConf['rewrite']['rss_topic'] = 'rss/topic/%s.htm';
53 $gConf['rewrite']['rss_user'] = 'rss/user/%s.htm';
54 $gConf['rewrite']['rss_all'] = 'rss/all.htm';
55 
56 $aPathInfo = pathinfo(__FILE__);
57 require_once ($aPathInfo['dirname'] . '/../integrations/' . CH_ORCA_INTEGRATION . '/config.php');
$xsl_mode
$xsl_mode
Definition: header.inc.php:38
CH_ORCA_INTEGRATION
const CH_ORCA_INTEGRATION
Definition: ChForumSiteMaps.php:10
php
$aPathInfo
$aPathInfo
Definition: header.inc.php:56
$_GET
$_GET['debug']
Definition: index.php:67
$path
$path
Definition: header.inc.php:12
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
$gConf
global $gConf
Definition: header.inc.php:8