adding php tag declaration instead of output buffer to suppress incude files output
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Mar 2016 15:54:40 +0000 (11:54 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Mar 2016 15:54:40 +0000 (11:54 -0400)
functions.php
glmfds.php
siteinfo.php
xml_functions.php

index ae70eea..4c93ad2 100755 (executable)
@@ -1,4 +1,4 @@
-<?
+<?php
 
 /************************************************************************
 $Id: functions.inc,v 1.1 2006/04/28 19:13:29 cscott Exp $
index 4550ab9..dcd25f8 100644 (file)
@@ -1,10 +1,9 @@
 <?php
 
-ob_start();
+
 require_once( 'xml_functions.php' );
 require_once( 'functions.php' );
-$data = ob_get_clean();
-ob_end_clean();
+
 
 define( 'EXPECTED_NWS_MSG_MAJ_VERSION',         '1' );          // Expected message XML message version from NWA
 echo '<html><head></head><body>Gaslight Media - Northwest Airlines Flight Data Capture<p>';
@@ -40,7 +39,7 @@ class FlightData{
 
         // Delete flight data older than yesterday
 
-//    db_auto_exec( "DELETE FROM flight WHERE msg_dtm < 'yesterday';", SI_CONN_STR, FALSE );
+    db_auto_exec( "DELETE FROM flight WHERE msg_dtm < 'yesterday';", SI_CONN_STR, FALSE );
 
        
         // Get item data
index 328a9f6..3565ed7 100644 (file)
@@ -1,4 +1,4 @@
-<?
+<?php
 
 /********************************************************************************
  *
index a4e9b10..9af16f5 100644 (file)
@@ -1,4 +1,4 @@
-<?
+<?php
 
 /************************************************************************