|
|
|
|
|
|
|
|
|
|
|
|
|
|
$c = $this->data['private']['emailconfig']; |
|
|
$c = $this->data['private']['emailconfig']; |
|
|
|
|
|
|
|
|
$template = substr($this->path . $this->data['private']['template'],10); |
|
|
|
|
|
|
|
|
$template = substr($this->path,strlen($f3->get('CONTENT_BASE'))+2) . $this->data['private']['template']; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$f3->set('fields', $this->data['fields']); |
|
|
$f3->set('fields', $this->data['fields']); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ($success) { |
|
|
if ($success) { |
|
|
$f3->reroute("/email/success?email=".urlsafe_b64encode($email)); |
|
|
|
|
|
|
|
|
$f3->reroute("/email/success?email=".urlsafe_b64encode($email)."&lang="$f3->get('LANG')); |
|
|
} else { |
|
|
} else { |
|
|
#$f3->reroute("/email/error"); |
|
|
#$f3->reroute("/email/error"); |
|
|
echo \Template::instance()->render($template,'text/html'); |
|
|
echo \Template::instance()->render($template,'text/html'); |