Assertion failed!
Script: $script
Line: $line
Condition:
$message
";
// Now display the call stack
echo debug_callstackinfo();
}
// Production error handling
function trigger_dberror($text = '')
{
global $mainframe;
global $database;
echo debug_callstackinfo();
require_once ($mainframe->getCfg('absolute_path') . '/components/com_kunena/lib/kunena.version.php');
$kunenaVersion = CKunenaVersion::version();
$kunenaPHPVersion = CKunenaVersion::PHPVersion();
$kunenaMySQLVersion = CKunenaVersion::MySQLVersion();
?>
stderr(true), E_USER_ERROR);
}
function check_dberror($text='')
{
global $database;
if ($database->_errorNum != 0)
{
trigger_dberror($text);
}
}
function trigger_dbwarning($text = '')
{
global $database;
trigger_error($text.'\n'.$database->stderr(true), E_USER_WARNING);
}
// Little helper to created a formated output of variables
function debug_vars($varlist)
{
$output = ' | variable | value |
';
foreach( $varlist as $key => $value)
{
if (is_array ($value) )
{
$output .= '| $'.$key .' | ';
if ( sizeof($value)>0 )
{
$output .= '" | key | value | ';
foreach ($value as $skey => $svalue)
{
if (is_array ($svalue) )
{
$output .= '| [' . $skey .'] | Nested Array | ';
}
else if (is_object($svalue))
{
$objvarlist = get_object_vars($svalue);
// recursive function call
debug_vars($objvarlist);
}
else
{
$output .= '| $' . $skey .' | "'. $svalue .'" | ';
}
}
$output .= ' "';
}
else
{
$output .= 'EMPTY';
}
$output .= ' |
';
}
else if (is_object($value))
{
$objvarlist = get_object_vars($value);
// recursive function call
debug_vars($objvarlist);
}
else
{
$output .= '| $' . $key .' | "'. $value .'" |
';
}
}
$output .= '
';
return $output;
}
// Show the callstack to this point in a decent format
function debug_callstackinfo()
{
return debug_vars(debug_backtrace());
}
?>