Changeset 7629


Ignore:
Timestamp:
Mar 30, 2010, 5:19:02 PM (13 years ago)
Author:
Pieter Naber
Message:

Added config and init file for easy editing of class and node files

Location:
trunk/src
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r7628 r7629  
    66 */
    77
    8 require_once('class/ErrorHandler.class.php');
    9 require_once('class/LogHandler.class.php');
    10 require_once('class/FileHandler.class.php');
    11 require_once('class/KMLFile.class.php');
    12 require_once('class/KMLPlacemark.class.php');
     8require_once('config.php');
     9require_once($config['file_init']);
    1310
     11// Creating a placemark using our class
    1412$kmlPlacemark = new KMLPlacemark();
    1513$kmlPlacemark->setName('Test name');
     
    1816$kmlPlacemark->setYCoordinate(4.463046);
    1917
     18// Creating a KMLFile using our class, add our placemark and echo
    2019$kml = new KMLFile();
    2120$kml->addPlacemark($kmlPlacemark);
    2221echo $kml->toString();
     22
     23// Let's try to read the node status file
     24$nodeStatus = new FileHandler($config['node_status_file']);
    2325?>
Note: See TracChangeset for help on using the changeset viewer.