2
0
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:
Adam Zammit
2013-02-26 12:37:04 +11:00
parent ae5c2f8431
commit 618a1acead
2 changed files with 153 additions and 25 deletions

View File

@@ -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