more instrumentation
This commit is contained in:
parent
c7c3db8c54
commit
66a6fd8df0
|
@ -2,6 +2,10 @@
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
AddType application/x-java-archive .jar
|
AddType application/x-java-archive .jar
|
||||||
|
|
||||||
|
<FilesMatch "\.out">
|
||||||
|
Deny from all
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,10 @@ class dba {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if(($result === false) && (file_exists('dbfail.out')))
|
||||||
|
file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND);
|
||||||
|
}
|
||||||
|
|
||||||
if(($result === true) || ($result === false))
|
if(($result === true) || ($result === false))
|
||||||
return $result;
|
return $result;
|
||||||
|
|
|
@ -117,8 +117,8 @@ function dfrn_notify_post(&$a) {
|
||||||
'$username' => $importer['username'],
|
'$username' => $importer['username'],
|
||||||
'$email' => $importer['email'],
|
'$email' => $importer['email'],
|
||||||
'$from' => $msg['from-name'],
|
'$from' => $msg['from-name'],
|
||||||
'$title' => $msg['title'],
|
'$title' => stripslashes($msg['title']),
|
||||||
'$body' => strip_tags(bbcode($msg['body']))
|
'$body' => strip_tags(bbcode(stripslashes($msg['body'])))
|
||||||
));
|
));
|
||||||
|
|
||||||
$res = mail($importer['email'], t('New mail received at ') . $a->config['sitename'],
|
$res = mail($importer['email'], t('New mail received at ') . $a->config['sitename'],
|
||||||
|
|
Loading…
Reference in a new issue