make debug files pathnames more FHS compliant

* Changed the pathnames of the debug files to be a bit more FHS compliant.
This commit is contained in:
Christoph Anton Mitterer 2013-03-21 02:10:34 +01:00 committed by Andrew McMillan
parent 4ae44558c7
commit c092a6153e
10 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2013-03-21 Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
* Changed the pathnames of the debug files to be a bit more FHS
compliant.
2013-03-20 Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
* Changed the end-of-line encodings of all non-Windows-related and
non-autogenerated text files to use UNIX LF (lots of them had mixed

View File

@ -183,7 +183,7 @@ class CalDAVRequest
@dbg_error_log('caldav', 'Content-Encoding: %s', $encoding );
$encoding = preg_replace('{[^a-z0-9-]}i','',$encoding);
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || isset($c->dbg['caldav'])) ) {
$fh = fopen('/tmp/encoded_data.'.$encoding,'w');
$fh = fopen('/var/log/davical/encoded_data.debug'.$encoding,'w');
if ( $fh ) {
fwrite($fh,$c->raw_post);
fclose($fh);

View File

@ -15,7 +15,7 @@ require_once('DAVResource.php');
$request->NeedPrivilege('DAV::write-acl');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put']) && $c->dbg['put'])) ) {
$fh = fopen('/tmp/MOVE.txt','w');
$fh = fopen('/var/log/davical/MOVE.debug','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);

View File

@ -15,7 +15,7 @@ require_once('DAVResource.php');
$request->NeedPrivilege('DAV::unbind');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['move']) && $c->dbg['move'])) ) {
$fh = fopen('/tmp/MOVE.txt','w');
$fh = fopen('/var/log/davical/MOVE.debug','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);

View File

@ -16,7 +16,7 @@ include_once('freebusy-functions.php');
include_once('iSchedule.php');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || isset($c->dbg['post'])) ) {
$fh = fopen('/tmp/POST.txt','w');
$fh = fopen('/var/log/davical/POST.debug','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);

View File

@ -13,7 +13,7 @@ dbg_error_log("PUT", "method handler");
require_once('DAVResource.php');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put']) && $c->dbg['put'])) ) {
$fh = fopen('/tmp/PUT.txt','w');
$fh = fopen('/var/log/davical/PUT.debug','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);

View File

@ -647,7 +647,7 @@ function import_collection( $import_content, $user_no, $path, $caldav_context, $
global $c;
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || isset($c->dbg['put'])) ) {
$fh = fopen('/tmp/PUT-2.txt','w');
$fh = fopen('/var/log/davical/PUT-2.debug','w');
if ( $fh ) {
fwrite($fh,$import_content);
fclose($fh);

View File

@ -45,7 +45,7 @@ if ( ! $dav_resource->Exists() && ! $dav_resource->HavePrivilegeTo('DAV::bind')
}
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put']) && $c->dbg['put'])) ) {
$fh = fopen('/tmp/PUT.txt','w');
$fh = fopen('/var/log/davical/PUT.debug','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);

View File

@ -13,7 +13,7 @@ dbg_error_log("PUT", "method handler");
require_once('DAVResource.php');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put']) && $c->dbg['put'])) ) {
$fh = fopen('/tmp/PUT.txt','w');
$fh = fopen('/var/log/davical/PUT.debug','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);

View File

@ -16,7 +16,7 @@ require_once('DAVResource.php');
require_once('RRule-v2.php');
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['report']) && $c->dbg['report'])) ) {
$fh = fopen('/tmp/REPORT.txt','w');
$fh = fopen('/var/log/davical/REPORT.debug','w');
if ( $fh ) {
fwrite($fh,$request->raw_post);
fclose($fh);