Add security logger to RedDAV.

Some smaller clean ups whitepsaces and tabs, use PHP_EOL, Doxygen, etc.
This commit is contained in:
Klaus Weidenbach
2014-12-14 01:22:52 +01:00
parent 7a19bd7fb3
commit 233903c844
5 changed files with 237 additions and 233 deletions

View File

@@ -118,8 +118,11 @@ class RedBasicAuth extends DAV\Auth\Backend\AbstractBasic {
}
}
}
logger('password failed for ' . $username);
// @TODO add security logger
$error = 'password failed for ' . $username;
logger($error);
log_failed_login($error);
return false;
}

View File

@@ -182,10 +182,10 @@ class RedBrowser extends DAV\Browser\Plugin {
}
}
}
$parentHash = "";
$parentHash = '';
$owner = $this->auth->owner_id;
$splitPath = split("/", $fullPath);
$splitPath = split('/', $fullPath);
if (count($splitPath) > 3) {
for ($i = 3; $i < count($splitPath); $i++) {
$attachName = urldecode($splitPath[$i]);
@@ -233,6 +233,7 @@ class RedBrowser extends DAV\Browser\Plugin {
}
// prepare quota for template
$quota = array();
$quota['used'] = $used;
$quota['limit'] = $limit;
$quota['desc'] = $quotaDesc;
@@ -257,7 +258,7 @@ class RedBrowser extends DAV\Browser\Plugin {
$this->server->broadcastEvent('onHTMLActionsPanel', array($parent, &$output));
}
$html .= $output;
get_app()->page['content'] = $html;
load_pdl(get_app());
construct_page(get_app());