Skip to content
Extraits de code Groupes Projets
Valider a42ea5f5 rédigé par Fil's avatar Fil
Parcourir les fichiers

quelques logs, pour voir

parent 5db5eb34
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -340,8 +340,10 @@ if (tester_mail()) {
$adresse_neuf=lire_meta("adresse_neuf");
$jours_neuf=lire_meta("jours_neuf");
if ($envoi_now)
spip_query("DELETE FROM spip_meta WHERE nom='majnouv'");
if ($envoi_now) {
effacer_meta('majnouv');
ecrire_metas();
}
echo "<TR><TD>&nbsp;</TD></TR>";
echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND='img_pack/rien.gif'><B><FONT FACE='Verdana,Arial,Helvetica,sans-serif' SIZE=3>Annonce des nouveaut&eacute;s</FONT></B></TD></TR>";
......
......@@ -13,7 +13,7 @@ define("_ECRIRE_INC_VERSION", "1");
$table_prefix = "spip";
// faut-il loger les infos de debug dans data/spip.log ?
$debug = false;
$debug = false;
///////////////////////////////////////////////////////
......
......@@ -34,6 +34,7 @@ function inclure_fichier($fond, $delais, $contexte_inclus = "") {
if ($GLOBALS['flag_apc']) {
apc_rm($chemin_cache);
}
spip_log("calcul: $chemin_cache");
$f = fopen($chemin_cache, "wb");
fwrite($f, $page);
fclose($f);
......@@ -116,6 +117,7 @@ if (!$use_cache) {
if ($GLOBALS['flag_apc']) {
apc_rm($chemin_cache);
}
spip_log("redirection: $url");
$file = fopen($chemin_cache, "wb");
fwrite($file, $texte);
fclose($file);
......@@ -129,6 +131,7 @@ if (!$use_cache) {
if ($GLOBALS['flag_apc']) {
apc_rm($chemin_cache);
}
spip_log("calcul: $chemin_cache");
$file = fopen($chemin_cache, "wb");
fwrite($file, $page);
fclose($file);
......@@ -405,6 +408,8 @@ if ((lire_meta('quoi_de_neuf')=='oui') AND ($jours_neuf=lire_meta('jours_neuf'))
$nom_site = lire_meta('nom_site');
spip_log("envoi mail nouveautes");
envoyer_mail($adresse_neuf, "[$nom_site] Les nouveautes", $mail_nouveautes);
} else {
spip_log("envoi mail nouveautes : pas de nouveautes");
}
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter