summaryrefslogtreecommitdiff
path: root/protected/config/maincfg.php
blob: 23274686c61d5f116fb7a7e446d7982de219af5b (plain)
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Vereinsadministration - Altstadtfest Waiblingen',
	'sourceLanguage'=>'en',
	'language'=>'de',

	// preloading 'log' component
	'preload'=>array('log'),

	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.extensions.egmap.*',
		'application.modules.auditTrail.models.AuditTrail',
        'application.extensions.yii-mail.YiiMailMessage',
		'application.modules.cms.models.*',
		'application.extensions.extckeditor.*',
	),

	'modules'=>array(
		// uncomment the following to enable the Gii tool
		/*'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'astafGen',
		 	// If removed, Gii defaults to localhost only. Edit carefully to taste.
			'ipFilters'=>array('127.0.0.1','::1'),
		),*/
		'auditTrail'=>array(
				'userClass' => 'User', // the class name for the user object
				'userIdColumn' => 'id', // the column name of the primary key for the user
				'userNameColumn' => 'username', // the column name of the primary key for the user
		),
		'cms' => array(
					'languages' => array('de','en'), // place all valid languages here
					'layout' => '//layouts/column2',
			),
	),

	// application components
	'components'=>array(
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>true,
		),
		'session'=>array(
				'timeout'=>30,
		),
		'simpleImage'=>array(
        		'class' => 'application.extensions.SimpleImage.CSimpleImage',
		),
        'mail' => array(
                'class' => 'application.extensions.yii-mail.YiiMail',
                'transportType' => 'php',
                'viewPath' => 'application.views.mail',
                'logging' => true,
                'dryRun' => false
        ),
		// uncomment the following to enable URLs in path-format
		
		/*'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>',
			),
		),*/
		/*'db'=>array(
			'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
		),*/
		// uncomment the following to use a MySQL database
		'db'=>array(
                        'connectionString' => 'mysql:host=database;dbname=astaf_2012',
                        'emulatePrepare' => true,
                        'username' => 'astaf',
                        'password' => 'AsTaF4',
                        'charset' => 'utf8',
                        'tablePrefix' => 'tbl_'
                ),
		'errorHandler'=>array(
			// use 'site/error' action to display errors
            'errorAction'=>'site/error',
        ),
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
				array(
					'class'=>'CFileLogRoute',
					'logFile'=>'debug.log',
				),
				// uncomment the following to show log messages on web pages
			/*	array(
					'class'=>'CWebLogRoute',
				),*/
			),
		),
	),

	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	'params'=>array(
		// this is used in contact page
		'adminEmail'=>'webmaster@astaf.de',
		'pos_lat'=>48.8323934983,
		'pos_long'=>9.31750059128,
		'map_api_key'=>'ABQIAAAAzwMJRVnIOel5nqTjdUcPrRTSNOUR83EeIVShY4aBvXxHJx0DexSUFNGH3KQhtFhfSNHxkECqL5rQBA',
		'map_api_domain'=>'www.astaf.de',
		'start_date'=>'28.06.2013',
		'end_date'=>'30.06.2013',
		'start_time'=>'19:00',
		'end_time'=>'23:00',
		'logo_width'=>150,
		'logo_height'=>150,
		'verein_background_width'=>850,
		'verein_background_height'=>200,
	),
);