From: Panos Date: Fri, 1 Apr 2011 09:58:27 +0000 (+0200) Subject: Aligned the "\n" in logSorting and updateConfiguration to have more X-Git-Tag: plewww-4.3-64~12^2~1 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=f5e8314bb8faf95850b5008208cfcdd69877a641 Aligned the "\n" in logSorting and updateConfiguration to have more clear output at myslice.log --- diff --git a/plekit/php/logSorting.php b/plekit/php/logSorting.php index ec51656..69e98aa 100644 --- a/plekit/php/logSorting.php +++ b/plekit/php/logSorting.php @@ -19,7 +19,7 @@ $slice_id=$_GET["slice_id"]; $myFile = "/var/log/myslice.log"; $fh = fopen($myFile, 'a') or die("can't open file"); -$stringData = "\n".date('Ymd-H:i')."|".$person_id.":".$slice_id.":".$value; +$stringData = date('Ymd-H:i')."|".$person_id.":".$slice_id.":".$value."\n"; fwrite($fh, $stringData); fclose($fh); diff --git a/plekit/php/updateConfiguration.php b/plekit/php/updateConfiguration.php index cb511c9..3ed36d9 100644 --- a/plekit/php/updateConfiguration.php +++ b/plekit/php/updateConfiguration.php @@ -29,7 +29,7 @@ $myFile = "/var/log/myslice.log"; if (file_exists($myFile)) $fh = fopen($myFile, 'a') or die("can't open file"); -$stringData = date('Y-m-d@H:i')."|p=".$person_id.":s=".$slice_id.":t=".$tag_name.":v=".$value."\n"; +$stringData = "\n".date('Y-m-d@H:i')."|p=".$person_id.":s=".$slice_id.":t=".$tag_name.":v=".$value; fwrite($fh, $stringData); fclose($fh);