Changeset 7720 for trunk/src/index.php


Ignore:
Timestamp:
Apr 12, 2010, 5:56:17 PM (15 years ago)
Author:
Pieter Naber
Message:

Adding a lot of checks for the variables in the status and the location file. Added even more comments everywhere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r7702 r7720  
    4242
    4343// Let's try to read the node location file
    44 $nodeLocation = new FileHandler($config['node_location_file']);
    45 $kmlFile->parseLocationFile($nodeLocation->getFile());
     44$nodeLocation = new FileHandler($config['node_location_file'], 'r');
     45$kmlFile->parseLocationFile($nodeLocation->read());
    4646/*
    4747 * For testing, echo the example KML file
     
    5151
    5252// Let's try to read the node status file
    53 $nodeStatus = new FileHandler($config['node_status_file']);
    54 $kmlFile->parseStatusFile($nodeStatus->getFile());
     53$nodeStatus = new FileHandler($config['node_status_file'], 'r');
     54$kmlFile->parseStatusFile($nodeStatus->read());
    5555
    5656// And echo the result to the screen
Note: See TracChangeset for help on using the changeset viewer.