fix the pdf code with a twisted way to do that.
[platal.git] / include / platal.inc.php
index 701dfbf..3cdd140 100644 (file)
@@ -26,6 +26,8 @@ function microtime_float()
 }
 $TIME_BEGIN = microtime_float();
 
+date_default_timezone_set('Europe/Paris');
+
 define('AUTH_PUBLIC', 0);
 define('AUTH_COOKIE', 1);
 define('AUTH_MDP',    2);
@@ -78,7 +80,7 @@ function pl_dump_env()
     echo "\nSESSION: "; var_export($_SESSION);
     echo "\nPOST:    "; var_export($_POST);
     echo "\nGET:     "; var_export($_GET);
-    echo "\nCOOKIES: "; var_export($_COOKIES);
+    echo "\nCOOKIE:  "; var_export($_COOKIE);
     echo "</pre></div>";
 }
 
@@ -89,7 +91,7 @@ function pl_print_errors()
 
 set_error_handler('pl_error_handler', E_ALL | E_STRICT);
 register_shutdown_function('pl_print_errors');
-register_shutdown_function('pl_dump_env');
+// register_shutdown_function('pl_dump_env');
 
 function pl_url($path, $query = null, $fragment = null)
 {