Copyrights added
[mailer.git] / inc / config.php
1 <?php
2 /**
3  * General configuration. Do not touch this file! If you need different settings
4  * create a config-local.php in this directory at and set your changed
5  * configuration entries there.
6  *
7  * @author              Roland Haeder <webmaster@mxchange.org>
8  * @version             0.3.0
9  * @copyright   Copyright(c) 2007, 2008 Roland Haeder, this is free software
10  * @license             GNU GPL 3.0 or any newer version
11  * @link                http://www.mxchange.org
12  *
13  * This program is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation, either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
25  */
26
27 // Load the class from inc/config direktory
28 @require_once(dirname(__FILE__) . "/config/class_FrameworkConfiguration.php");
29
30 // Get a new configuration instance
31 $cfg = FrameworkConfiguration::createFrameworkConfiguration();
32
33 // CFG: SERVER-PATH
34 $cfg->definePath(dirname(dirname(__FILE__)) . "/"); // DON'T MISS THE TRAILING SLASH!!!
35
36 // CFG: DATABASE-TYPE
37 $cfg->defineDatabaseType("local");
38
39 // CFG: TIME-ZONE
40 $cfg->setDefaultTimezone("Europe/Berlin");
41
42 // CFG: MAGIC-QUOTES-RUNTIME
43 $cfg->setMagicQuotesRuntime(false);
44
45 // CFG: PHP-SCRIPT-EXTENSION
46 $cfg->setConfigEntry("php_extension", ".php");
47
48 // CFG: CLASS-PREFIX
49 $cfg->setConfigEntry("class_prefix", "class_");
50
51 // CFG: CLASS-SUFFIX
52 $cfg->setConfigEntry("class_suffix", ".php");
53
54 // CFG: RAW-TEMPLATE-EXTENSION
55 $cfg->setConfigEntry("raw_template_extension", ".tpl");
56
57 // CFG: CODE-TEMPLATE-EXTENSION
58 $cfg->setConfigEntry("code_template_extension", ".ctp");
59
60 // CFG: SELECTOR-GET
61 $cfg->setConfigEntry("app_selector_get", "app");
62
63 // CFG: APPLICATION-HELPER
64 $cfg->setConfigEntry("app_helper_class", "ApplicationHelper");
65
66 // CFG: SELECTOR-PATH
67 $cfg->setConfigEntry("selector_path", "selector");
68
69 // CFG: TEMPLATE-BASE-PATH
70 $cfg->setConfigEntry("tpl_base_path", "templates/"); // DON'T MISS THE TRAILING SLASH!
71
72 // CFG: LANGUAGE-BASE-PATH
73 $cfg->setConfigEntry("lang_base_path", "inc/language/"); // DON'T MISS THE TRAILING SLASH!
74
75 // CFG: COMPRESSOR-BASE-PATH
76 $cfg->setConfigEntry("compressor_base_path", "inc/classes/main/compressor/"); // DON'T MISS THE TRAILING SLASH!
77
78 // CFG: APPLICATION-PATH
79 $cfg->setConfigEntry("application_path", "application");
80
81 // CFG: COMPILE-OUTPUT-PATH
82 $cfg->setConfigEntry("compile_output_path", "templates/_compiled/"); // DON'T MISS THE TRAILING SLASH!
83
84 // CFG: TEMPLATE-ENGINE
85 $cfg->setConfigEntry("tpl_engine", "TemplateEngine");
86
87 // CFG: DEBUG-ENGINE
88 $cfg->setConfigEntry("debug_engine", "DebugWebOutput");
89
90 // CFG: DEFAULT-LANGUAGE
91 $cfg->setConfigEntry("default_lang", "de"); // A two-char language string: de for german, en for english and so on
92
93 // CFG: WEB-TEMPLATE-TYPE
94 $cfg->setConfigEntry("web_template_type", "html");
95
96 // CFG: EMAIL-TEMPLATE-TYPE
97 $cfg->setConfigEntry("email_template_type", "emails");
98
99 // CFG: CODE-TEMPLATE-TYPE
100 $cfg->setConfigEntry("code_template_type", "code");
101
102 // CFG: WEB-ENGINE
103 $cfg->setConfigEntry("web_engine", "WebOutput");
104
105 // CFG: SELECTOR-TEMPLATE-PREFIX
106 $cfg->setConfigEntry("tpl_selector_prefix", "selector");
107
108 // CFG: WEB-CONTENT-TYPE
109 $cfg->setConfigEntry("web_content_type", "text/html");
110
111 // CFG: VALID-TEMPLATE-VARIABLE
112 $cfg->setConfigEntry("tpl_valid_var", "content");
113
114 // CFG: META-AUTHOR
115 $cfg->setConfigEntry("meta_author", "Roland H&auml;der");
116
117 // CFG: META-PUBLISHER
118 $cfg->setConfigEntry("meta_publisher", "Roland H&auml;der");
119
120 // CFG: META-KEYWORDS
121 $cfg->setConfigEntry("meta_keywords", "test,test,test");
122
123 // CFG: META-DESCRIPTION
124 $cfg->setConfigEntry("meta_description", "A lame description for an application framework");
125
126 // CFG: LAUNCH-METHOD
127 $cfg->setConfigEntry("entry_method", "entryPoint");
128
129 // CFG: SELECTOR-MAIN-TEMPLATE
130 $cfg->setConfigEntry("selector_main_tpl", "selector_main");
131
132 // CFG: SELECTOR-APPS-TEMPLATE
133 $cfg->setConfigEntry("selector_apps_tpl", "selector_apps");
134
135 // CFG: SELECTOR-NAME
136 $cfg->setConfigEntry("selector_name", "selector");
137
138 // CFG: DEFAULT-APPLICATION
139 $cfg->setConfigEntry("default_application", "selector");
140
141 // CFG: VERBOSE-LEVEL
142 $cfg->setConfigEntry("verbose_level", 0);
143
144 // Shall we include config-local.php where you can configure some things? Then
145 // We need to do some things:
146 //
147 // First generate FQFN
148 $localConfig = sprintf("%sinc/config-local%s", PATH, $cfg->readConfig("php_extension"));
149
150 // Second is the file there and readable?
151 if ((file_exists($localConfig)) && (is_readable($localConfig))) {
152         // The third step to load it
153         require_once($localConfig);
154 }
155
156 // [EOF]
157 ?>