Index: header.inc.php3 =================================================================== RCS file: /cvsroot/phpmyadmin/phpMyAdmin/header.inc.php3,v retrieving revision 1.10 diff -u -U6 -r1.10 header.inc.php3 --- header.inc.php3 2001/07/23 17:02:42 1.10 +++ header.inc.php3 2001/07/26 14:15:03 @@ -1,11 +1,14 @@
Index: main.php3 =================================================================== RCS file: /cvsroot/phpmyadmin/phpMyAdmin/main.php3,v retrieving revision 1.17 diff -u -U6 -r1.17 main.php3 --- main.php3 2001/07/24 17:25:52 1.17 +++ main.php3 2001/07/26 14:15:04 @@ -5,13 +5,14 @@ /** * Gets some core libraries and displays a top message if required * TODO: The included script aren't yet xhtml1.0 compliant */ require('./grab_globals.inc.php3'); -require('./header.inc.php3'); +if (!defined('__HEADER_INC__')) + require('./header.inc.php3'); if (isset($message)) { include('./lib.inc.php3'); show_message($message); } Index: sql.php3 =================================================================== RCS file: /cvsroot/phpmyadmin/phpMyAdmin/sql.php3,v retrieving revision 1.26 diff -u -U6 -r1.26 sql.php3 --- sql.php3 2001/07/23 14:33:49 1.26 +++ sql.php3 2001/07/26 14:15:04 @@ -39,13 +39,14 @@ // entities $stripped_sql_query = str_replace('&', '&', $stripped_sql_query); $stripped_sql_query = ereg_replace('(\\")|(")', '"', $stripped_sql_query); $stripped_sql_query = str_replace('<', '<', $stripped_sql_query); $stripped_sql_query = str_replace('>', '>', $stripped_sql_query); - include("./header.inc.php3"); + if (!defined('__HEADER_INC__')) + include("./header.inc.php3"); echo $strDoYouReally.$stripped_sql_query."?
"; ?> @@ -99,13 +100,14 @@ } } // end rows total count if(!$result) { $error = mysql_error(); - include("./header.inc.php3"); + if (!defined('__HEADER_INC__')) + include("./header.inc.php3"); mysql_die($error); } $num_rows = @mysql_num_rows($result); if($num_rows < 1) @@ -116,13 +118,14 @@ $message = $zero_rows; else $message = $strEmptyResultSet; $goto = preg_replace('/\.\.*/', '.', $goto); if ($goto != "main.php3") { - include("./header.inc.php3"); + if (!defined('__HEADER_INC__')) + include("./header.inc.php3"); } include('./' . $goto); } else { $message = $zero_rows; @@ -133,13 +136,14 @@ else { // Displays the headers if (isset($show_query)) { unset($show_query); } - include("./header.inc.php3"); + if (!defined('__HEADER_INC__')) + include("./header.inc.php3"); // Define the display mode if it wasn't passed by url if (!isset($display)) { $display = eregi('^((SHOW (VARIABLES|PROCESSLIST|STATUS|TABLE|GRANTS|CREATE|LOGS))|((CHECK|ANALYZE|REPAIR|OPTIMIZE) TABLE ))', $sql_query, $which); if (!empty($which[2]) && !empty($which[3])) { $display = 'simple'; } else if (!empty($which[4]) && !empty($which[5])) { Index: tbl_addfield.php3 =================================================================== RCS file: /cvsroot/phpmyadmin/phpMyAdmin/tbl_addfield.php3,v retrieving revision 1.6 diff -u -U6 -r1.6 tbl_addfield.php3 --- tbl_addfield.php3 2001/07/17 09:58:43 1.6 +++ tbl_addfield.php3 2001/07/26 14:15:04 @@ -1,13 +1,14 @@
\n";
 }
 else
 {
 	if (!isset($table)) $filename=$db;
 	else $filename=$table;
Index: tbl_printview.php3
===================================================================
RCS file: /cvsroot/phpmyadmin/phpMyAdmin/tbl_printview.php3,v
retrieving revision 1.7
diff -u -U6 -r1.7 tbl_printview.php3
--- tbl_printview.php3	2001/07/11 19:21:30	1.7
+++ tbl_printview.php3	2001/07/26 14:15:04
@@ -4,13 +4,14 @@
 
 require("./grab_globals.inc.php3");
  
 
 if(!isset($message))
 {
-    include("./header.inc.php3");
+    if (!defined('__HEADER_INC__'))
+      include("./header.inc.php3");
 }
 else
 {
     show_message($message);
 }
    
Index: tbl_properties.php3
===================================================================
RCS file: /cvsroot/phpmyadmin/phpMyAdmin/tbl_properties.php3,v
retrieving revision 1.44
diff -u -U6 -r1.44 tbl_properties.php3
--- tbl_properties.php3	2001/07/23 14:33:06	1.44
+++ tbl_properties.php3	2001/07/26 14:15:04
@@ -3,13 +3,14 @@
 
 /**
  * Gets the variables sent to this script and diplays headers
  */
 require('./grab_globals.inc.php3');
 if (!isset($message)) {
-    include('./header.inc.php3');
+    if (!defined('__HEADER_INC__'))
+      include('./header.inc.php3');
 } else {
     show_message($message);
 }
 unset($sql_query);
 
 
Index: tbl_qbe.php3
===================================================================
RCS file: /cvsroot/phpmyadmin/phpMyAdmin/tbl_qbe.php3,v
retrieving revision 1.3
diff -u -U6 -r1.3 tbl_qbe.php3
--- tbl_qbe.php3	2001/07/24 05:01:26	1.3
+++ tbl_qbe.php3	2001/07/26 14:15:04
@@ -1,14 +1,14 @@
 
Index: tbl_replace.php3
===================================================================
RCS file: /cvsroot/phpmyadmin/phpMyAdmin/tbl_replace.php3,v
retrieving revision 1.7
diff -u -U6 -r1.7 tbl_replace.php3
--- tbl_replace.php3	2001/07/20 10:32:21	1.7
+++ tbl_replace.php3	2001/07/26 14:15:04
@@ -92,17 +92,19 @@
 mysql_select_db($db);
 $sql_query = $query;
 $result = mysql_query($query);
 
 if(!$result) {
   $error = mysql_error();
-  include("./header.inc.php3");
+  if (!defined('__HEADER_INC__'))
+    include("./header.inc.php3");
   mysql_die($error);
 } else {
   if(file_exists("./$goto")) {
-    include("./header.inc.php3");
+    if (!defined('__HEADER_INC__'))
+      include("./header.inc.php3");
     $message = $strModifications;
     include('./' . preg_replace('/\.\.*/', '.', $goto));
   } else {
     Header("Location: $goto");
   }
   exit;
Index: tbl_select.php3
===================================================================
RCS file: /cvsroot/phpmyadmin/phpMyAdmin/tbl_select.php3,v
retrieving revision 1.6
diff -u -U6 -r1.6 tbl_select.php3
--- tbl_select.php3	2001/07/19 18:54:19	1.6
+++ tbl_select.php3	2001/07/26 14:15:04
@@ -3,13 +3,14 @@
 
 
 require("./grab_globals.inc.php3");
  
 
 if(!isset($param) || $param[0] == "") {
-  include("./header.inc.php3");
+  if (!defined('__HEADER_INC__'))
+    include("./header.inc.php3");
   $result = mysql_list_fields($db, $table);
   if (!$result) {
     mysql_die();
   }
   else {
     ?>
Index: user_details.php3
===================================================================
RCS file: /cvsroot/phpmyadmin/phpMyAdmin/user_details.php3,v
retrieving revision 1.16
diff -u -U6 -r1.16 user_details.php3
--- user_details.php3	2001/07/17 13:45:23	1.16
+++ user_details.php3	2001/07/26 14:15:04
@@ -796,13 +796,14 @@
 }
 
 # Main Program
 
 if(!isset($message))
 {
-    include("./header.inc.php3");
+    if (!defined('__HEADER_INC__'))
+        include("./header.inc.php3");
 }
 else
 {
     show_message($message);
 }