2 /********************************************************************
6 Copyright 2008 Radosław Pietruszewski
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 ********************************************************************/
23 define('WTRMLN_IS','true');
24 $_w_autoload = array();
25 $_w_superusers = array();
27 ########################################
29 ########################################
35 $_w_cmsDir = 'wtrmln/';
51 $_w_hashAlgo = array('_sha1');
55 $_w_autoload[] = array('user', '');
64 $_w_superusers[''] = '';
66 ########################################
67 # Systemowe - NIE EDYTOWAĆ! #
68 ########################################
70 $_w_basePath = str_replace('\\', '/', realpath(dirname(__FILE__
))) . '/';
72 define('WTRMLN_SITEURL' , $_w_siteURL );
73 define('WTRMLN_CMSDIR' , $_w_cmsDir );
74 define('WTRMLN_THEME' , $_w_theme );
75 define('WTRMLN_DEFAULTCNT' , $_w_defaultCnt );
76 define('WTRMLN_SITENAME' , $_w_siteName );
77 define('WTRMLN_SITESLOGAN' , $_w_siteSlogan );
79 define('WTRMLN_CMSURL' , $_w_baseURL . WTRMLN_CMSDIR
);
80 define('WTRMLN_CMSPATH' , $_w_basePath . WTRMLN_CMSDIR
);
81 define('WTRMLN_APPPATH' , WTRMLN_CMSPATH
. 'modules/' );
83 define('WTRMLN_THEMEURL' , WTRMLN_CMSURL
. 'themes/' . WTRMLN_THEME
. '/');
84 define('WTRMLN_THEMEPATH' , WTRMLN_CMSPATH
. 'themes/' . WTRMLN_THEME
. '/');
85 define('WTRMLN_LIBS' , WTRMLN_CMSPATH
. 'libs/' );
86 define('WTRMLN_ADMINLIBS' , WTRMLN_CMSPATH
. 'admin/libs/' );
87 define('WTRMLN_HELPERS' , WTRMLN_CMSPATH
. 'helpers/' );
88 define('WTRMLN_FILES' , WTRMLN_CMSURL
. 'files/' );
89 define('WTRMLN_ADMIN' , WTRMLN_CMSURL
. 'admin/' );
90 define('WTRMLN_ADMINCNT' , WTRMLN_APPPATH
. 'admin/' );
91 define('WTRMLN_CONTROLLERS' , WTRMLN_APPPATH
. 'controllers/' );
92 define('WTRMLN_VIEWS' , WTRMLN_APPPATH
. 'views/' );
93 define('WTRMLN_MODELS' , WTRMLN_APPPATH
. 'models/' );
94 define('WTRMLN_PLUGINS' , WTRMLN_APPPATH
. 'plugins/' );
96 include WTRMLN_LIBS
. 'config.php';
98 Config
::$theme = $_w_theme;
99 Config
::$defaultController = $_w_defaultCnt;
100 Config
::$hashAlgo = $_w_hashAlgo;
101 Config
::$siteName = $_w_siteName;
102 Config
::$siteSlogan = $_w_siteSlogan;