);
}
- function handler_emails(&$page, $action = null, $email = null)
+ function handler_emails($page, $action = null, $email = null)
{
global $globals;
require_once 'emails.inc.php';
$page->assign('melix', $res->fetchOneCell());
}
- function handler_alias(&$page, $action = null, $value = null)
+ function handler_alias($page, $action = null, $value = null)
{
global $globals;
$page->assign('mail_public', $visibility);
}
- function handler_redirect(&$page, $action = null, $email = null)
+ function handler_redirect($page, $action = null, $email = null)
{
global $globals;
fill_email_combobox($page);
}
- function handler_antispam(&$page, $statut_filtre = null)
+ function handler_antispam($page, $statut_filtre = null)
{
require_once 'emails.inc.php';
$wp = new PlWikiPage('Xorg.Antispam');
$page->assign('filtre', $bogo->level());
}
- function handler_submit(&$page)
+ function handler_submit($page)
{
$wp = new PlWikiPage('Xorg.Mails');
$wp->buildCache();
}
}
- function handler_send(&$page)
+ function handler_send($page)
{
$page->changeTpl('emails/send.tpl');
unset($_POST['save']);
if (trim(preg_replace('/-- .*/', '', Post::v('contenu'))) != "") {
- $_POST['to_contacts'] = explode(';', @$_POST['to_contacts']);
- $_POST['cc_contacts'] = explode(';', @$_POST['cc_contacts']);
+ Post::set('to_contacts', explode(';', Post::s('to_contacts')));
+ Post::set('cc_contacts', explode(';', Post::s('cc_contacts')));
$data = serialize($_POST);
XDB::execute('INSERT INTO email_send_save (uid, data)
VALUES ({?}, {?})
$page->assign('user', S::user());
}
- function handler_test(&$page, $hruid = null)
+ function handler_test($page, $hruid = null)
{
require_once 'emails.inc.php';
exit;
}
- function handler_rewrite_in(&$page, $mail, $hash)
+ function handler_rewrite_in($page, $mail, $hash)
{
$page->changeTpl('emails/rewrite.tpl');
$page->assign('option', 'in');
return PL_NOT_FOUND;
}
- function handler_rewrite_out(&$page, $mail, $hash)
+ function handler_rewrite_out($page, $mail, $hash)
{
$page->changeTpl('emails/rewrite.tpl');
$page->assign('option', 'out');
return PL_NOT_FOUND;
}
- function handler_imap_in(&$page, $hash = null, $login = null)
+ function handler_imap_in($page, $hash = null, $login = null)
{
$page->changeTpl('emails/imap_register.tpl');
$user = null;
}
}
- function handler_broken(&$page, $warn = null, $email = null)
+ function handler_broken($page, $warn = null, $email = null)
{
require_once 'emails.inc.php';
$wp = new PlWikiPage('Xorg.PatteCassée');
}
}
- function handler_duplicated(&$page, $action = 'list', $email = null)
+ function handler_duplicated($page, $action = 'list', $email = null)
{
$page->changeTpl('emails/duplicated.tpl');
}
}
- function handler_lost(&$page, $action = 'list', $email = null)
+ function handler_lost($page, $action = 'list', $email = null)
{
$page->changeTpl('emails/lost.tpl');
ORDER BY pd.promo, a.hruid'));
}
- function handler_broken_addr(&$page)
+ function handler_broken_addr($page)
{
require_once 'emails.inc.php';
$page->changeTpl('emails/broken_addr.tpl');
// Output the list of users with recently broken addresses,
// along with the count of valid redirections.
require_once 'notifs.inc.php';
- pl_content_headers("text/x-csv");
+ pl_cached_content_headers('text/x-csv', 1);
$csv = fopen('php://output', 'w');
fputcsv($csv, array('nom', 'promo', 'alias', 'bounce', 'nbmails', 'url', 'corps', 'job', 'networking'), ';');