-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.php.example
42 lines (33 loc) · 1.04 KB
/
init.php.example
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
<?php
/**
* @package JBDump init
* @version 1.3.0
* @author [email protected]
* @link http://joomla-book.ru/
* @copyright Copyright (c) 2009-2011 Joomla-book.ru
* @license GNU General Public License version 2 or later; see LICENSE
*/
// quick on/off
if (1) {
// include JBDump library
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'class.jbdump.php';
// init and configuration JBDump library
JBDump::i(array());
// usability methods
if (!function_exists('dump')) {
function dump($var = 'JBDump::variable no set', $isDie = true, $name = '...')
{
$_this = JBDump::i();
if ($var !== 'JBDump::variable no set') {
if ($_this->isDebug()) {
$params = array('trace' => debug_backtrace());
$_this->dump($var, $name, $params);
if ($isDie) {
die('JBDump_die');
}
}
}
return $_this;
}
}
}