includes/common.php
changeset 711 f70d764aab33
parent 702 15cd41fd8a05
child 719 f82da241eaf8
--- a/includes/common.php	Tue Sep 16 08:22:47 2008 -0400
+++ b/includes/common.php	Sun Sep 21 09:01:27 2008 -0400
@@ -170,6 +170,10 @@
 global $timezone;
 $timezone = 0;
 
+// DST settings
+global $dst_params;
+$dst_params = array(0, 0, 0, 0, 60);
+
 // Divert to CLI loader if running from CLI
 if ( isset($argc) && isset($argv) )
 {
@@ -390,7 +394,7 @@
   // One quick security check...
   if ( !is_valid_ip($_SERVER['REMOTE_ADDR']) )
   {
-    die('SECURITY: spoofed IP address');
+    die('SECURITY: spoofed IP address: ' . htmlspecialchars($_SERVER['REMOTE_ADDR']));
   }
 
   // All checks passed! Start the main components up.