Source for file subscribe.php
Documentation is available at subscribe.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
include_once('../config/define.php');
include_once('../languages/'. U_L. 'lang_newsletter.utf-8.php');
if(!isset ($_GET['call'])) {
//////////// Check Droits utilisateur ////////////
if(!isset ($_REQUEST['newsletteremail'])) exit;
else $email= $_REQUEST['newsletteremail'];
include_once('../class/class.newsletter.php');
if(!isset ($_REQUEST['del_action']) || isset ($_REQUEST['restore']) ) {
$msg= $newsletter_object->AddEmail($email, $GLOBALS['sql_object']);
$msg= $newsletter_object->DeleteEmail($email, $GLOBALS['sql_object']);
echo json_encode(array('status'=> $msg['code'],'msg'=> $msg['string'], 'el'=> "#email-". $id, 'action' => $action));
|