-
Notifications
You must be signed in to change notification settings - Fork 39
/
main.php
110 lines (103 loc) · 2.35 KB
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'XBMC Video Server',
'defaultController'=>'movie',
// preloaded components
'preload'=>array(
'log',
),
// autoloading model and component classes
'import'=>require_once('_import.php'),
'modules'=>array(
// uncomment the following to enable the Gii tool
/*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
*/
),
// application components
'components'=>array(
'bootstrap'=>array(
'class'=>'bootstrap.components.TbApi',
),
// cache for API calls
'apiCallCache'=>array(
'class'=>'ApiCallCache',
),
// general cache
'cache'=>array(
'class'=>'CFileCache',
),
'clientScript'=>array(
'class'=>'GruntClientScript',
'coreScriptPosition'=>CClientScript::POS_END,
'packages'=>array(
// we ship these in the compiled script
'jquery'=>array('js'=>false),
'bbq'=>array('js'=>false),
'history'=>array('js'=>false),
),
// list of scripts and styles that we include in our compiled files
'bundledFiles'=>array(
'jquery.yiilistview.js',
'jquery.yiigridview.js',
'jquery-unveil.min.js',
'listview/styles.css',
)
),
'backendManager'=>array(
'class'=>'BackendManager',
),
'db'=>require '_db.php',
'xbmc'=>array(
'class'=>'XBMC',
),
'languageManager'=>array(
'class'=>'LanguageManager',
),
'powerOffManager'=>array(
'class'=>'PowerOffManager',
),
'user'=>array(
'class'=>'WebUser',
'allowAutoLogin'=>true,
),
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
'errorHandler'=>array(
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'DbLogRoute',
'logTableName'=>'log',
'connectionID'=>'db',
),
array(
'class'=>'CFileLogRoute',
)
),
),
'whitelist'=>array(
'class'=>'Whitelist',
)
),
// application-level parameters
'params'=>array(
'minimumBackendVersion'=>13,
)
);