-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.php
More file actions
88 lines (79 loc) · 2.43 KB
/
config.sample.php
File metadata and controls
88 lines (79 loc) · 2.43 KB
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
<?php
/**
* @file
* A single location to store configuration.
*/
define('CONSUMER_KEY', 'eaaeaeaee');
define('CONSUMER_SECRET', 'aeaeaaeaeaeea');
define('OAUTH_CALLBACK', 'http://twitlista.generandomaldad.net/callback.php?mun_id=');
define('UPDATE_TIME', 3500);
define('MYSQL_SERVER', 'localhost');
define('MYSQL_USER', 'eaeaeaae');
define('MYSQL_PASSWD', 'eaeaeeaea');
define('MYSQL_DB', 'eaaeaee');
if (!defined('LOG4PHP_APPENDER')) {
define('LOG4PHP_APPENDER', 'appender_php.properties');
}
//stop the normal changeable values
$dirTmp = getcwd();
// define the "root" directory of the application
if (!defined('_DIR_SITE')) {
if ( strlen( substr($dirTmp,strlen($_SERVER['DOCUMENT_ROOT']) + 1) ) > 0 ) {
define('_DIR_SITE', substr($dirTmp,strlen($_SERVER['DOCUMENT_ROOT']) + 1) . "/");
} else {
define('_DIR_SITE', '');
}
}
// define the "root" URL of the application
/*if (!defined('_URL_HOME')) {
if ( strlen( substr($dirTmp,strlen($_SERVER['DOCUMENT_ROOT']) + 1) ) > 0 ) {
define('_URL_HOME', "http://" . $_SERVER['HTTP_HOST'] . "/" . substr($dirTmp,strlen($_SERVER['DOCUMENT_ROOT']) + 1) . "/");
} else {
define('_URL_HOME', "http://" . $_SERVER['HTTP_HOST'] . "/");
}
}*/
if (!defined('_URL_HOME')) {
define('_URL_HOME', 'http://' . $_SERVER['HTTP_HOST'] . str_replace('index.php', '', $_SERVER['SCRIPT_NAME']));
}
echo _URL_HOME;
// define the paths and URLs of the application
if (!defined('_PATH_HOME')) {
define('_PATH_HOME', $dirTmp . "/");
}
//the skins dir
if (!defined('_PATH_SKINS')) {
define('_PATH_SKINS', _PATH_HOME . "_skins/");
}
if (!defined('_URL_SKINS')) {
define('_URL_SKINS', _URL_HOME . "_skins/");
}
if (!defined('_PREF_TPL')) {
define('_PREF_TPL', "default/");
}
if (!defined('_URL_USRIMG')) {
define('_URL_USRIMG', _URL_HOME . "images/");
}
if (!defined('_URL_USRCSS')) {
define('_URL_USRCSS', _URL_HOME . "css/");
}
if (!defined('_URL_USRJS')) {
define('_URL_USRJS', _URL_HOME . "js/");
}
if (!defined('_DIR_LIB')) {
define('_DIR_LIB', _PATH_HOME . 'lib/');
}
if (!defined('_CONFIG_DIR')) {
define('_CONFIG_DIR', _PATH_HOME .'config/');
}
if (!defined('LOCALE_DIR')) {
define('LOCALE_DIR', _PATH_HOME .'/locale');
}
if (!defined('DEFAULT_LOCALE')) {
define('DEFAULT_LOCALE', 'es_MX');
}
if (!defined('LOG4PHP_DIR')) {
define('LOG4PHP_DIR', _DIR_LIB .'log4php/');
}
if (!defined('LOG4PHP_CONFIG_DIR')) {
define('LOG4PHP_CONFIG_DIR', _CONFIG_DIR .'log4php/');
}