first commit
This commit is contained in:
12
functions/xajax-newsletter.php
Normal file
12
functions/xajax-newsletter.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
global $xajax;
|
||||
$xajax -> register( XAJAX_FUNCTION, 'newsletterSign' );
|
||||
|
||||
function newsletterSign( $type, $email )
|
||||
{
|
||||
\newsletter\FNewsletter::signEmail( $type, $email );
|
||||
|
||||
$ajax = new xajaxResponse;
|
||||
$ajax -> script( 'document.location.href="./";' );
|
||||
return $ajax;
|
||||
}
|
||||
Reference in New Issue
Block a user