WP File Manager
Current Path:
/
home
/
argothem
/
www
/
organecyberpresse
/
plugins
/
auto
/
mailshot
/
v4.0.1
/
action
/
Name
Action
..
api_mailshot_webhook.php
Edit
mailshot_acquiter_alerte_fail.php
Edit
mailshot_archiver.php
Edit
mailshot_boost_send.php
Edit
Editing: mailshot_boost_send.php
<?php /** * Plugin MailShot * (c) 2012 Cedric Morin * Licence GNU/GPL */ if (!defined('_ECRIRE_INC_VERSION')) return; function action_mailshot_boost_send($arg=null){ if (is_null($arg)){ $securiser_action = charger_fonction("securiser_action","inc"); $arg = $securiser_action(); } include_spip('inc/headers'); http_response_code(204); // No Content header("Connection: close"); flush(); ob_flush(); ob_end_flush(); spip_log("BOOST $arg","mailshot"); list($id_mailshot,$nb,$offset) = explode("-",$arg); $next = sql_fetsel("id_mailshot","spip_mailshots","statut=".sql_quote('processing'),'','id_mailshot','0,1'); if ($next['id_mailshot']==$id_mailshot){ include_spip("inc/mailshot"); mailshot_envoyer_lot($nb,$offset); } exit; }