jablonka.czprosek.czf

freenet-router

Subversion Repositories:
[/] [trunk/] [freenet-router/] [var/] [www/] [freenet-router/] [framework.conf.php] - Blame information for rev 2

 

Line No. Rev Author Line
12simandl<?php
2 
3/*
4 * This file contains basic configuration of the framework.
5 * In most cases there is no need for changes in this file unless
6 * you want to modify framework core
7 * and maybe brake compatibility with the trunk.
8 *
9 * All application specific settings can be done in application.conf.php.
10 */
11 
12/* Directory separator */
13if (!defined("DS"))
14{
15 define("DS", "/");
16}
17 
18define("ABSOLUTE_PATH", __DIR__);
19 
20define("FRAMEWORK_EXEC", true);
21define("ROOT_NAMESPACE", "Phem");
22if(!defined("ROOT_DIR"))
23{
24 define("ROOT_DIR", '.');
25}
26define("FRAMEWORK_DIR", ROOT_DIR.DS."Framework");
27/* Directory with 3rd party libraries */
28define("THIRD_PARTY_DIR", FRAMEWORK_DIR . DS . "3rdParty");
29 
30/* Running environment directory */
31if (!defined("RUN_DIR"))
32{
33 define("RUN_DIR", ROOT_DIR.DS.'Run');
34}
35 
36/* Proxy directories */
37define("PROXY_DIR", RUN_DIR . DS . 'Proxy');
38define("DOCTRINE_PROXY_DIR", PROXY_DIR . DS . 'Doctrine');
39 
40/* Cache directories */
41define("CACHE_DIR", RUN_DIR . DS . 'Cache');
42define("TEMPLATE_CACHE_DIR", CACHE_DIR . DS . 'Twig');
43 
44define("CONTROLLER_SUFFIX", "Controller");
45define("CONTROLLER_ROUTE_ATTR", "controller");
46define("TASK_ROUTE_ATTR", "task");
47 
48define("DISPATCHER_CONTROLLER_NAME", "Dispatcher");
49define("DISPATCHER_LOGIN_TASK_NAME", "login");
50define("DISPATCHER_DENIED_ACCESS_TASK_NAME", "showAccessDenied");
51 
52define("BOOTSTRAPER_SUFFIX", "Boot");
53define("RESOURCELOADER_SUFFIX", "Loader");
54 
55define("BUILTIN_RESOURCES_DIR", 'Resources');
56define("BUILTIN_TEMPLATES_DIR", 'templates');
57define("BUILTIN_CSS_DIR", 'css');
58define("BUILTIN_JS_DIR", 'javascript');
59define("BUILTIN_THIRD_PARTY_RES_DIR", '3rdParty');\
60 
61define("BUILTIN_TEMPLATES_NAMESPACE", 'Phem');
62 
63if (array_key_exists("HTTP_HOST",$_SERVER))
64{
65 define("HOST_URL","http://".$_SERVER["HTTP_HOST"]);
66}
67else
68{
69 define("HOST_URL","http://localhost");
70}

Powered by WebSVN 2.2.1