Maj for glpi 10.0.14 and php82

This commit is contained in:
Benoit LORAND committed 2024-03-28 18:20:48 +01:00
1 parent c2be36c3b1
commit 7185af5c2d
32 files changed
+270 -7725

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
NORMAL=''
RED=''
GREEN=''
msglog() {
case "${1}" in
green)
TEXT_COLOR="${GREEN}"
;;
red)
TEXT_COLOR="${RED}"
;;
normal)
TEXT_COLOR="${NORMAL}"
;;
esac
DATE=$(date '+%Y %b %d %H:%M:%S')
echo ${DATE} ${TEXT_COLOR}${2}${NORMAL}
}