fixup whitespace
darcs-hash:20080827131603-84dde-7be64f28840a29c5833bc625aaf6cb8f07b891e5.gz
This commit is contained in:
parent
44c1863f0e
commit
108b1e7bfd
@ -21,24 +21,24 @@
|
|||||||
function xmppdaemon_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
|
function xmppdaemon_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
|
||||||
switch ($errno) {
|
switch ($errno) {
|
||||||
case E_USER_ERROR:
|
case E_USER_ERROR:
|
||||||
echo "ERROR: [$errno] $errstr ($errfile:$errline)\n";
|
echo "ERROR: [$errno] $errstr ($errfile:$errline)\n";
|
||||||
echo " Fatal error on line $errline in file $errfile";
|
echo " Fatal error on line $errline in file $errfile";
|
||||||
echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";
|
echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";
|
||||||
echo "Aborting...\n";
|
echo "Aborting...\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_USER_WARNING:
|
case E_USER_WARNING:
|
||||||
echo "WARNING [$errno] $errstr ($errfile:$errline)\n";
|
echo "WARNING [$errno] $errstr ($errfile:$errline)\n";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_USER_NOTICE:
|
case E_USER_NOTICE:
|
||||||
echo "My NOTICE [$errno] $errstr ($errfile:$errline)\n";
|
echo "NOTICE [$errno] $errstr ($errfile:$errline)\n";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
echo "Unknown error type: [$errno] $errstr ($errfile:$errline)\n";
|
echo "Unknown error type: [$errno] $errstr ($errfile:$errline)\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't execute PHP internal error handler */
|
/* Don't execute PHP internal error handler */
|
||||||
@ -201,7 +201,7 @@ class XMPPDaemon {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function from_site($address, $msg) {
|
function from_site($address, $msg) {
|
||||||
$text = '['.common_config('site', 'name') . '] ' . $msg;
|
$text = '['.common_config('site', 'name') . '] ' . $msg;
|
||||||
jabber_send_message($address, $text);
|
jabber_send_message($address, $text);
|
||||||
|
Loading…
Reference in New Issue
Block a user