Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
 
3
  /**
4
  * Config file for MLib
5
  *
6
  * File includes all of the static variables that controls
7
  * the default behavior of MLib.
8
  *
9
  * @author Joe Stump <joe@joestump.net>
10
  * @version 0.1
11
  * @see MLib
12
  * @name Config
13
  * @package tests
14
  * @access public
15
  */
16
 
17
  /**
18
  * MLib include path
19
  *
20
  * @author Joe Stump <joe@joestump.net>
21
  * The absolute path to the directory where MLib resides.
22
  */
23
 
24
define('MLIB_INCLUDE_PATH','/home/jstump/public_html/v3/includes');
25
 
26
  /**
27
  * Default log file
28
  *
29
  * The log file where you wish all class errors to be
30
written to.
31
  *  Must be writable by the webserver.
32
  *
33
  * @author Joe Stump <joe@joestump.net>
34
  * @see MLIB_USE_SYSLOG
35
  */
36
  define('MLIB_LOG_FILE','/tmp/mlib.log');
37
 
38
  /**
39
  * Use syslog
40
  *
41
  * If set to true MLib will send errors to syslog instead of
42
  * the file defined in MLIB_LOG_FILE
43
  *
44
  * @author Joe Stump <joe@joestump.net>
45
  * @see MLIB_LOG_FILE
46
  */
47
  define('MLIB_USE_SYSLOG',false);
48
 
49
  /**
50
  * Syslog priority
51
  *
52
  * The PHP function syslog takes a priority as a parameter.
53
If you
54
  * do not know what this means do NOT change this variable.
55
  *
56
  * @author Joe Stump <joe@joestump.net>
57
  * @see MLIB_USE_SYSLOG
58
  * @link http://www.php.net/manual/en/function.syslog.php
59
  */
60
  define('MLIB_SYSLOG_PRIORITY',LOG_WARNING);
61
 
62
  /**
63
  * Template path
64
  *
65
  * MLib comes with a template class that lets you separate your
66
  * code from your HTML. This is the path where the template
67
files
68
  * reside.
69
  *
70
  * @author Joe Stump <joe@joestump.net>
71
  * @see Template, MLIB_INCLUDE_PATH
72
  */
73
  define('MLIB_TEMPLATE_PATH',MLIB_INCLUDE_PATH.'/templates');
74
 
75
  /**
76
  * Global debugging
77
  *
78
  * By turning on global debugging you enable debugging in ALL
79
  * classes derived from MLib on ALL pages. BE CAREFUL SETTING
80
  * THIS TO TRUE!!
81
  *
82
  * @author Joe Stump <joe@joestump.net>
83
  * @see MLib, MLIB::$debug, MLib::MLib()
84
  */
85
  define('MLIB_GLOBAL_DEBUG',false);
86
 
87
  /**
88
  * Global DSN to be used by classes
89
  *
90
  * The DSN to be used. Please see the PEAR documentation
91
for more
92
  * information.
93
  *
94
  * @global array $_MLIB_GLOBAL_DSN
95
  * @author Joe Stump <joe@joestump.net>
96
  * @see TemplateDB
97
  * @link http://pear.php.net
98
  */
99
  $_MLIB_GLOBAL_DSN = array('db_type'=> 'mysql',
100
                            'username' => 'nobody',
101
                            'password' => '',
102
                            'database' => 'miester',
103
                            'server' => 'localhost');
104
 
105
  /**
106
  * MLib include file
107
  * @see MLib
108
  */
109
  require_once(MLIB_INCLUDE_PATH.'/MLib.php');
110
 
111
  /**
112
  * Debug include file
113
  * @see Debug
114
  */
115
  require_once(MLIB_INCLUDE_PATH.'/Debug.php');
116
 
117
  /**
118
  * DSN include file
119
  * @see DSN
120
  */
121
  require_once(MLIB_INCLUDE_PATH.'/DSN.php');
122
 
123
  /**
124
  * Table include file
125
  * @see Table
126
  */
127
  require_once(MLIB_INCLUDE_PATH.'/Table.php');
128
 
129
  /**
130
  * Template include file
131
  * @see Template
132
  */
133
  require_once(MLIB_INCLUDE_PATH.'/Template.php');
134
 
135
  /**
136
  * TemplateFile include file
137
  * @see TemplateFile
138
  */
139
  require_once(MLIB_INCLUDE_PATH.'/Template/TemplateFile.php');
140
 
141
  /**
142
  * TemplateDB include file
143
  * @see TemplateDB
144
  */
145
  require_once(MLIB_INCLUDE_PATH.'/Template/TemplateDB.php');
146
 
147
  /**
148
  * TemplateVar include file
149
  * @see TemplateVar
150
  */
151
  require_once(MLIB_INCLUDE_PATH.'/Template/TemplateVar.php');
152
 
153
 
154
?>