source: trunk/src/index.php@ 7629

Last change on this file since 7629 was 7629, checked in by Pieter Naber, 16 years ago

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

File size: 684 bytes
RevLine 
[7622]1<?
2/*
3 * Project: NodeMap2.0
4 * File: index.php
5 * Purpose: Main index file of application
6 */
7
[7629]8require_once('config.php');
9require_once($config['file_init']);
[7622]10
[7629]11// Creating a placemark using our class
[7628]12$kmlPlacemark = new KMLPlacemark();
13$kmlPlacemark->setName('Test name');
14$kmlPlacemark->setDescription('Test description');
15$kmlPlacemark->setXCoordinate(52.138476);
16$kmlPlacemark->setYCoordinate(4.463046);
17
[7629]18// Creating a KMLFile using our class, add our placemark and echo
[7627]19$kml = new KMLFile();
[7628]20$kml->addPlacemark($kmlPlacemark);
21echo $kml->toString();
[7629]22
23// Let's try to read the node status file
24$nodeStatus = new FileHandler($config['node_status_file']);
[7622]25?>
Note: See TracBrowser for help on using the repository browser.