return $this->_head;
} else {
$head = $this->_head;
- $head = str_replace('<cher>', $sexe ? 'Chère' : 'Cher', $head);
+ $head = str_replace('<cher>', $sexe ? 'Chère' : 'Cher', $head);
$head = str_replace('<prenom>', $prenom, $head);
$head = str_replace('<nom>', $nom, $head);
return format_text($head, $type, 2, 64);
return true;
} else {
$css = file_get_contents(dirname(__FILE__) . '/../htdocs/css/' . $this->_css);
- return preg_replace('@/\*.*?\*/@s', '', $css);
+ return preg_replace('@/\*.*?\*/@us', '', $css);
}
}
protected function getAllRecipients()
{
- return "SELECT u.user_id, a.alias,
+ global $globals;
+ return "SELECT u.user_id, CONCAT(a.alias, '@{$globals->mail->domain}'),
u.prenom, IF(u.nom_usage='', u.nom, u.nom_usage),
FIND_IN_SET('femme', u.flags),
q.core_mail_fmt AS pref, 0 AS hash
XDB::execute("UPDATE {$this->subscriptionTable()}
SET last = {?}
WHERE " . implode(' OR ', $sent), $this->_id);
+
sleep(60);
}
}
// }}}
-// vim:set et sw=4 sts=4 sws=4:
+// vim:set et sw=4 sts=4 sws=4 enc=utf-8:
?>