Update of /cvsroot/openfirst/logger
In directory sc8-pr-cvs1:/tmp/cvs-serv29549
Modified Files:
graph.php index.php rawdata.php reset.php stats.php track.php
Log Message:
Change include to include_once so that scripts may be easily included from other scripts without problems.
Index: graph.php
===================================================================
RCS file: /cvsroot/openfirst/logger/graph.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** graph.php 1 Oct 2003 16:36:30 -0000 1.2
--- graph.php 13 Oct 2003 17:57:22 -0000 1.3
***************
*** 28,32 ****
//include database functions
! include("../config/globals.php");
//set header
--- 28,32 ----
//include database functions
! include_once("../config/globals.php");
//set header
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/logger/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** index.php 23 Aug 2003 20:30:12 -0000 1.4
--- index.php 13 Oct 2003 17:57:22 -0000 1.5
***************
*** 27,33 ****
*/
! include("../config/globals.php");
! include("$header");
if (isset($_POST['view'])) {
--- 27,33 ----
*/
! include_once("../config/globals.php");
! include_once("$header");
if (isset($_POST['view'])) {
***************
*** 89,92 ****
</table>
<?php
! include("$footer");
?>
--- 89,92 ----
</table>
<?php
! include_once("$footer");
?>
Index: rawdata.php
===================================================================
RCS file: /cvsroot/openfirst/logger/rawdata.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** rawdata.php 23 Aug 2003 20:30:12 -0000 1.6
--- rawdata.php 13 Oct 2003 17:57:22 -0000 1.7
***************
*** 26,31 ****
*
*/
! include("../config/globals.php");
! include("$header");
if (isset($_POST['view'])) {
--- 26,31 ----
*
*/
! include_once("../config/globals.php");
! include_once("$header");
if (isset($_POST['view'])) {
***************
*** 79,82 ****
</table>
<?php
! include("$footer");
?>
--- 79,82 ----
</table>
<?php
! include_once("$footer");
?>
Index: reset.php
===================================================================
RCS file: /cvsroot/openfirst/logger/reset.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** reset.php 13 Sep 2003 15:38:26 -0000 1.6
--- reset.php 13 Oct 2003 17:57:22 -0000 1.7
***************
*** 26,31 ****
*
*/
! include("../config/globals.php");
! include("$header");
if (isset($_POST['confirm'])) {
--- 26,31 ----
*
*/
! include_once("../config/globals.php");
! include_once("$header");
if (isset($_POST['confirm'])) {
***************
*** 49,52 ****
<br>
<?php
! include("$footer");
?>
--- 49,52 ----
<br>
<?php
! include_once("$footer");
?>
Index: stats.php
===================================================================
RCS file: /cvsroot/openfirst/logger/stats.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** stats.php 1 Oct 2003 01:53:14 -0000 1.3
--- stats.php 13 Oct 2003 17:57:22 -0000 1.4
***************
*** 27,32 ****
*/
! include("../config/globals.php");
! include("$header");
// Check if outputting a graph
--- 27,32 ----
*/
! include_once("../config/globals.php");
! include_once("$header");
// Check if outputting a graph
***************
*** 204,208 ****
supplied by the web server. Consult the openFIRST manual for more information.
<?php
! include("$footer");
?>
! </font>
\ No newline at end of file
--- 204,208 ----
supplied by the web server. Consult the openFIRST manual for more information.
<?php
! include_once("$footer");
?>
! </font>
Index: track.php
===================================================================
RCS file: /cvsroot/openfirst/logger/track.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** track.php 1 Oct 2003 20:40:07 -0000 1.11
--- track.php 13 Oct 2003 17:57:22 -0000 1.12
***************
*** 26,31 ****
*
*/
! include("../config/globals.php");
! include("$header");
$browserid=false;
--- 26,31 ----
*
*/
! include_once("../config/globals.php");
! include_once("$header");
$browserid=false;
***************
*** 102,105 ****
</table><br><br>
<?php
! include("$footer");
?>
--- 102,105 ----
</table><br><br>
<?php
! include_once("$footer");
?>
|