-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.inc.php
52 lines (40 loc) · 1.47 KB
/
config.inc.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
<?php
/***************************************************************************
* config.inc.php
*
* Jul 05, 07:00:00 2009
* Copyright 2009 Istvan Petres (aka P.I.Julius)
* For licensing, see LICENSE or http://jcore.net/license
****************************************************************************/
@define('SQL_HOST', 'localhost');
@define('SQL_DATABASE', 'yourdomain_DB');
@define('SQL_USER', 'yourdomain_mysqluser');
@define('SQL_PASS', 'mysqlpass');
@define('SQL_PREFIX', '');
@define('SITE_URL', 'http://yourdomain.com/');
@define('SITE_PATH', '/home/yourdomain/public_html/');
@define('SEO_FRIENDLY_LINKS', true);
/*
* Do Not touch these unless you know what to do
*/
@define('JCORE_VERSION', '1.0');
if (!defined('ROOT_DIR'))
define('ROOT_DIR', '');
set_include_path(get_include_path().PATH_SEPARATOR.SITE_PATH);
if (defined('JCORE_PATH'))
set_include_path(get_include_path().PATH_SEPARATOR.JCORE_PATH);
include_once('lib/settings.class.php');
settings::defineSettings();
if (defined('WEBSITE_TEMPLATE') && WEBSITE_TEMPLATE) {
if (defined('JCORE_PATH'))
set_include_path(preg_replace('/'.preg_quote(SITE_PATH, '/').'/',
SITE_PATH.PATH_SEPARATOR.SITE_PATH.'template/'.
preg_replace('/[^a-zA-Z0-9\@\.\_\- ]/', '', WEBSITE_TEMPLATE),
get_include_path(), 1));
else
set_include_path(SITE_PATH.'template/'.
preg_replace('/[^a-zA-Z0-9\@\.\_\- ]/', '', WEBSITE_TEMPLATE) .
PATH_SEPARATOR.get_include_path());
}
?>