[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tep-commits
Subject:    [TEP-COMMIT] CVS: catalog/catalog/includes application_top.php,1.237,1.238 header.php,1.32,1.33
From:       David Garcia Watkins <dgw_ () users ! sourceforge ! net>
Date:       2002-07-11 17:20:09
[Download RAW message or body]

Update of /cvsroot/tep/catalog/catalog/includes
In directory usw-pr-cvs1:/tmp/cvs-serv6650/includes

Modified Files:
	application_top.php header.php 
Log Message:

Moved warnings from application_top.php to header.php so they dont get in the way of \
the headers.




Index: application_top.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/application_top.php,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -d -r1.237 -r1.238
--- application_top.php	27 Jun 2002 14:58:23 -0000	1.237
+++ application_top.php	11 Jul 2002 17:20:07 -0000	1.238
@@ -418,35 +418,4 @@
   define('WARN_CONFIG_WRITEABLE', 'true');
   define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');
   define('WARN_SESSION_AUTO_START', 'true');
-
-// check if the 'install' directory exists, and warn of its existence
-  if (WARN_INSTALL_EXISTENCE == 'true') {
-    if (is_dir(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
-      tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);
-    }
-  }
-
-// check if the configure.php file is writeable
-  if (WARN_CONFIG_WRITEABLE == 'true') {
-    if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . \
'/includes/configure.php')) && \
(is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . \
                '/includes/configure.php')) ) {
-      tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);
-    }
-  }
-
-// check if the configure.php file is writeable
-  if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
-    if (STORE_SESSIONS == '') {
-      if (!is_dir(tep_session_save_path())) {
-        tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
-      } elseif (!is_writeable(tep_session_save_path())) {
-        tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
-      }
-    }
-  }
-
-  if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
-    if (ini_get('session.auto_start') == '1') {
-      tep_output_warning(WARNING_SESSION_AUTO_START);
-    }
-  }
 ?>

Index: header.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/header.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- header.php	5 Jun 2002 21:03:46 -0000	1.32
+++ header.php	11 Jul 2002 17:20:07 -0000	1.33
@@ -9,6 +9,38 @@
 
   Released under the GNU General Public License
 */
+
+// check if the 'install' directory exists, and warn of its existence
+  if (WARN_INSTALL_EXISTENCE == 'true') {
+    if (is_dir(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
+      tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);
+    }
+  }
+
+// check if the configure.php file is writeable
+  if (WARN_CONFIG_WRITEABLE == 'true') {
+    if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . \
'/includes/configure.php')) && \
(is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . \
'/includes/configure.php')) ) { +      \
tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE); +    }
+  }
+
+// check if the session folder is writeable
+  if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
+    if (STORE_SESSIONS == '') {
+      if (!is_dir(tep_session_save_path())) {
+        tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
+      } elseif (!is_writeable(tep_session_save_path())) {
+        tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
+      }
+    }
+  }
+
+// check session.auto_start is disabled
+  if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
+    if (ini_get('session.auto_start') == '1') {
+      tep_output_warning(WARNING_SESSION_AUTO_START);
+    }
+  }
 ?>
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
   <tr class="header">



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
Tep-commits mailing list
Tep-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tep-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic