Discuz! $title Error
$errormsg
EOT;
if(!empty($phpmsg)) {
echo '
';
echo '
PHP Debug
';
echo '
';
if(is_array($phpmsg)) {
echo 'No. | File | Line | Code |
';
foreach($phpmsg as $k => $msg) {
$k++;
echo '';
echo ''.$k.' | ';
echo ''.$msg['file'].' | ';
echo ''.$msg['line'].' | ';
echo ''.$msg['function'].' | ';
echo '
';
}
} else {
echo ' |
';
}
echo '
';
}
$helplink = '';
if($type == 'db') {
$helplink = "http://faq.comsenz.com/?type=mysql&dberrno=".rawurlencode(DB::errno())."&dberror=".rawurlencode(str_replace(DB::object()->tablepre, '', DB::error()));
$helplink = "
Need Help?";
}
$endmsg = lang('error', 'error_end_message', array('host'=>$host));
echo <<
$endmsg. $helplink
EOT;
$exit && exit();
}
public static function mobile_show_error($type, $errormsg, $phpmsg) {
global $_G;
ob_end_clean();
ob_start();
$host = $_SERVER['HTTP_HOST'];
$phpmsg = trim($phpmsg);
$title = 'Mobile '.($type == 'db' ? 'Database' : 'System');
echo <<