Changeset 7799 for trunk


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

Small bug fixing + formating code

Location:
trunk/src
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/inc/FileHandler.class.php

    r7795 r7799  
    6060
    6161                try {
    62                        
    63                        
    6462                        fwrite($this->handle, $data);
    65 
    66                        
    6763                } catch (Exception $err) {
    6864                        trigger_log(SYSLOG_ERR, 'Couldn\'t write to file "' . $this->filename . '"', __FILE__, __LINE__);
  • trunk/src/kml-echo.php

    r7789 r7799  
    2525$kmlFile->parseStatusFile($nodeStatus->read());
    2626
    27 if (isset($_GET['write']) && $_GET['write'] == true) {
    28         // TODO: David: Write the KML file to a folder with date stamp
    29 }
    30 
    3127// And echo the result to the screen
    3228echo $kmlFile->toString();
  • trunk/src/kml.php

    r7771 r7799  
    2828        // Write the file to the server
    2929        $file = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'w');
    30         $file->write($kmlFile->toString());     // Function doesn't work yet... Waiting for David...
     30        $file->write($kmlFile->toString());
    3131}
    3232
    33 //header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml');
     33header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml');
    3434?>
  • trunk/src/logfile.txt

    r7788 r7799  
     1Warning (5 | 2010/17/04 09:41:11): mail() [<a href='function.mail'>function.mail</a>]: Failed to Send
     2        In file "D:\Werkplaats\NodeMap2.0\trunk\src\inc\LogHandler.class.php" on line "119"
Note: See TracChangeset for help on using the changeset viewer.