[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);
+}
?>
- [Noalyss-commit] [noalyss] branch master updated (70e0a4e -> 0aa186b), Dany De Bontridder, 2017/03/25
- [Noalyss-commit] [noalyss] 01/08: Task #0001421: Détail fiche : recherche poste comptable, Dany De Bontridder, 2017/03/25
- [Noalyss-commit] [noalyss] 08/08: Task #1419: Déconnexion dans le popup Add a close window button for the ajax disconnect Fix bug, Dany De Bontridder, 2017/03/25
- [Noalyss-commit] [noalyss] 07/08: Security : improve a potential weakness, Dany De Bontridder, 2017/03/25
- [Noalyss-commit] [noalyss] 02/08: task #1420: Fonction error_log manquante,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 06/08: task #0001422: Installation : améliorer la page, Dany De Bontridder, 2017/03/25
- [Noalyss-commit] [noalyss] 05/08: 1418: Affichage Balance - soldes et sous-totaux, Dany De Bontridder, 2017/03/25
- [Noalyss-commit] [noalyss] 03/08: Task #1420: Fonction error_log manquante Generalisation de la fonction, Dany De Bontridder, 2017/03/25
- [Noalyss-commit] [noalyss] 04/08: Update translation, Dany De Bontridder, 2017/03/25