Changes in src/webapp/webservice/index.php [9be4f3f:9160ba0]
- File:
-
- 1 edited
-
src/webapp/webservice/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/webservice/index.php
r9be4f3f r9160ba0 92 92 if(!is_numeric($tmp[$key]) || is_nan($tmp[$key])){ 93 93 $allValid = false; 94 if($debug > 1){95 echo "Invalid value ". $key ." (". $tmp[$key] .") at time ". $time ."<br/>";96 }97 94 } 98 95 elseif(array_key_exists($key, $configRound) && is_integer($configRound[$key])) … … 101 98 } 102 99 // only add the timeframe to the track, if the values are valid and we had a gps fix at that time 103 if($allValid){ 104 if(!array_key_exists($time, $result["track"])){ 100 if($allValid && $tmp["gpsfix"] != "-"){ 101 echo "want to add ". $time ."<br/>\n"; 102 if(!array_key_exists($time, $result["track"])){ 105 103 $result["track"][$time] = $tmp; 106 }104 } 107 105 $lastTime = $time; 108 106 } … … 133 131 $result = array(); 134 132 if($request == REQUEST_SHUTDOWN){ 135 $handle = @fopen( $config->shutdownRequestFile(), "w");133 $handle = @fopen("/var/spool/gnuboat/shutdown.request", "w"); 136 134 if($handle === false){ 137 $message = "Could not create file (". $config->shutdownRequestFile() .")to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";135 $message = "Could not create file to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")"; 138 136 if($debug > 0) 139 137 echo $message;
Note:
See TracChangeset
for help on using the changeset viewer.
