Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webservice/index.php

    r9160ba0 r9be4f3f  
    9292                                if(!is_numeric($tmp[$key]) || is_nan($tmp[$key])){
    9393                                        $allValid = false;
     94                                        if($debug > 1){
     95                                                echo "Invalid value ". $key ." (". $tmp[$key] .") at time ". $time ."<br/>";
     96                                        }
    9497                                }
    9598                                elseif(array_key_exists($key, $configRound) && is_integer($configRound[$key]))
    … …  
    98101                }
    99102                // only add the timeframe to the track, if the values are valid and we had a gps fix at that time
    100                 if($allValid && $tmp["gpsfix"] != "-"){
    101                         echo "want to add ". $time ."<br/>\n";
    102                         if(!array_key_exists($time, $result["track"])){
     103                if($allValid){
     104                        if(!array_key_exists($time, $result["track"])){
    103105                                $result["track"][$time] = $tmp;
    104                         }
     106                        }
    105107                        $lastTime = $time;
    106108                }
    … …  
    131133$result = array();
    132134if($request == REQUEST_SHUTDOWN){
    133         $handle = @fopen("/var/spool/gnuboat/shutdown.request", "w");
     135        $handle = @fopen($config->shutdownRequestFile(), "w");
    134136        if($handle === false){
    135                 $message = "Could not create file to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";
     137                $message = "Could not create file (". $config->shutdownRequestFile() .") to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";
    136138                if($debug > 0)
    137139                        echo $message;
Note: See TracChangeset for help on using the changeset viewer.