Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.

Commit e93f9c6

Browse files
fixed logging
1 parent 19e750f commit e93f9c6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

config.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?php
22
$APIurl = "http://api.irail.be/";
33
$iRailAgent = "Mobile website 2.0; iRail.be - " . $_SERVER['HTTP_USER_AGENT'];
4-
$configfile = "/var/www/irail.log";
4+
$configfile = "../irail.log";
55

66
//cookie settings
77
$values = 5;
88
$timetolive = time()+60*60*24*30;
99

10-
1110
?>

irail.log

Whitespace-only changes.

requesthandlers/Page.class.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ function errorhandler($errno,$errstr){
149149
}
150150
function logerror($errno,$errstr){
151151
include("config.php");
152-
$handle = fopen($configfile, 'a');
153-
$data = date("H:i d/m/y") . ";" . $errstr . ";" . $errstr . "\n";
152+
$handle = fopen($configfile, "a");
153+
$data = date("H:i:s d/m/y") . ";" . $errstr . ";" . $errstr . "\n";
154154
fwrite($handle, $data);
155155
fclose($handle);
156156
}

0 commit comments

Comments
 (0)