__log($msg, $type = ”)
11: function __log($msg, $type = '') {
12: __info($msg, $type);
13: }
File: lib/support/globals.php, #line 11
__info($msg, $type = ‘INFO’)
21: function __info($msg, $type = 'INFO') {
22: Logger::get_instance()->write_to_log($msg, $type);
23: }
File: lib/support/globals.php, #line 21
__debug($msg, $type = ‘DEBUG’)
31: function __debug($msg, $type = 'DEBUG') {
32: Logger::get_instance()->write_to_log($msg, $type);
33: }
File: lib/support/globals.php, #line 31
__warn($msg, $type = ‘WARN’)
41: function __warn($msg, $type = 'WARN') {
42: Logger::get_instance()->write_to_log($msg, $type);
43: }
File: lib/support/globals.php, #line 41
__error($msg, $type = ‘ERROR’)
51: function __error($msg, $type = 'ERROR') {
52: Logger::get_instance()->write_to_log($msg, $type);
53: }
File: lib/support/globals.php, #line 51
__add_include_path($path = APP_ROOT)
62: function __add_include_path($path = APP_ROOT) {
64: ini_set('include_path', ini_get('include_path') . ':' . $path);
66: $subpaths = array ();
68: $dh = dir($path);
70: while ($entry = $dh->read()) {
72: if ($entry == '.' || $entry == '..' || $entry == '.svn')
73: continue;
74: if (is_dir($path . '/' . $entry)) {
75: $subpaths[] = $path . '/' . $entry;
76: }
77: }
79: $dh->close();
80:
82: foreach ($subpaths as $path) {
84: __add_include_path($path);
85: }
86: }
File: lib/support/globals.php, #line 62
__autoload($class_name)
95: function __autoload($class_name) {
97: $filename = Inflector :: underscore($class_name) . '.php';
99: require_once $filename;
100: }
File: lib/support/globals.php, #line 95
__config($option)
108: function __config($option) {
109: global $env;
110: return $env[$option];
111: }
File: lib/support/globals.php, #line 108
__db_config($option = false)
119: function __db_config($option = false) {
120: global $env;
121: if ($option) {
122: return $env[__config('phpway_env')][$option];
123: } else {
124: return $env[__config('phpway_env')];
125: }
126: }
File: lib/support/globals.php, #line 119
__phpway_howto_link($api = ”)
128: function __phpway_howto_link($api = '') {
129: return " Click here for details http://phpway.org/doku.php/howto/{$api}";
130: }
File: lib/support/globals.php, #line 128
__session_settings()
132: function __session_settings() {
133: if (!is_writable(APP_ROOT . '/tmp/sessions')) {
134: trigger_error('Wrong permissions to directory ' . APP_ROOT . '/tmp/sessions
Quick Fix:
chmod 777 ' . APP_ROOT . '/tmp/sessions', E_USER_ERROR);
135: }
136:
138: if (__config('phpway_session_storage')) {
139: session_save_path(APP_ROOT . '/tmp/sessions');
140: }
141:
143: $_SERVER['DOCUMENT_ROOT'] = APP_ROOT . '/';
144:
146: session_start();
147: }
File: lib/support/globals.php, #line 132
