Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adullact
Theme-WordPress-Adullact-org
Commits
0ac9d58d
Commit
0ac9d58d
authored
Jan 31, 2020
by
N. Peraldi
Browse files
feat: now we use define() for constants
parent
6bbf6cb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
config-site.inc.php
View file @
0ac9d58d
<?php
/*
/*
*
* Adresse mail cible de l'Adullact.
* Lorsqu'on envoie un mail informatif à l'Adullact, à qui l'envoie-t-on ?
*/
$mail_cible_adullact
=
"nathan.peraldi@adullact.org"
;
\ No newline at end of file
define
(
"MAIL_CIBLE_ADULLACT"
,
"nathan.peraldi@adullact.org"
);
/**
* Le chemin d'accès aux logs du formulaire d'adhésion
*/
$theme_path
=
get_stylesheet_directory
();
$membership_logs_path
=
$theme_path
.
"/logs/adhesion/logs.log"
;
define
(
"MEMBERSHIP_LOGS_DIRECTORY"
,
$membership_logs_path
);
\ No newline at end of file
formulaire-adhesion/traitement-adhesion.php
View file @
0ac9d58d
...
...
@@ -166,12 +166,12 @@ function sendAdhesionMail($tab)
function
writeInLog
(
$intitule
,
$text
)
{
//fonction qui écrit dans les logs.
global
$theme_path_for_server
,
$debug_mode_traitement
;
global
$debug_mode_traitement
;
date_default_timezone_set
(
'Europe/Paris'
);
$date
=
date
(
"d-m-Y"
);
$hour
=
date
(
"H:i:s"
);
$filePath
=
$theme_path_for_server
.
"/logs/adhesion/logs.log"
;
$filePath
=
constant
(
"MEMBERSHIP_LOGS_DIRECTORY"
)
;
$beforeMessage
=
"
\n
--------------
\n
Le "
.
$date
.
", à "
.
$hour
.
",
\n
"
.
$intitule
.
" :
\n
"
;
$finalMessage
=
$beforeMessage
.
$text
;
$fichier
=
fopen
(
$filePath
,
"a"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment