noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/08: task #1420: Fonction error_log manquan


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/08: task #1420: Fonction error_log manquante
Date: Sat, 25 Mar 2017 08:29:39 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 9e7e7f51e99b8629889a4190b18c56ace103ef4b
Author: Dany De Bontridder <address@hidden>
Date:   Fri Mar 24 23:51:22 2017 +0100

    task #1420: Fonction error_log manquante
---
 include/lib/ac_common.php | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index c5db73b..e4fbd33 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -761,7 +761,7 @@ function smaller_date($p_date)
  * @brief format the date, when taken from the database the format
  * is MM-DD-YYYY
  * @param $p_date format
- * @param
+ * address@hidden
  * @return date in the format DD.MM.YYYY
  */
 function format_date($p_date, $p_from_format = 
'YYYY-MM-DD',$p_to_format='DD.MM.YYYY')
@@ -1274,4 +1274,15 @@ function is_msie()
         $is_msie=0;
     return $is_msie;
 }
+/**
+ * Record an error message into the log file of the server.
+ * Record also the GET and POST data
+ * @param string $p_message
+ */
+function record_log($p_message)
+{
+    error_log("noalyss".$p_message,0);
+    error_log("noalyss GET [".var_export($_GET, true)."]",0);
+    error_log( "noalyss POST [".var_export($_POST, true)."]",0);
+}
 ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]