mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Can now send email invitation
Need to fix completion via link (template not working) also call outcome setting is causing problem when not ending call
This commit is contained in:
@@ -42,6 +42,30 @@ include_once(dirname(__FILE__).'/../config.inc.php');
|
||||
*/
|
||||
include_once(dirname(__FILE__).'/../db.inc.php');
|
||||
|
||||
|
||||
/**
|
||||
* Strip comments from email taken from limesurvey common functions
|
||||
*
|
||||
* @param mixed $comment
|
||||
* @param mixed $email
|
||||
* @param resource $replace Optional, defaults to ''.
|
||||
*
|
||||
* @return TODO
|
||||
* @author Adam Zammit <adam.zammit@acspri.org.au>
|
||||
* @since 2013-02-26
|
||||
*/
|
||||
function strip_comments($comment, $email, $replace=''){
|
||||
|
||||
while (1){
|
||||
$new = preg_replace("!$comment!", $replace, $email);
|
||||
if (strlen($new) == strlen($email)){
|
||||
return $email;
|
||||
}
|
||||
$email = $new;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*function validate_email($email)
|
||||
{
|
||||
// Create the syntactical validation regular expression
|
||||
|
||||
Reference in New Issue
Block a user