| version 1.69, 2007/09/16 16:27:37 |
version 1.70, 2007/09/16 20:34:24 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.68 2007-09-16 15:23:59 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.69 2007-09-16 16:27:37 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 755 function ezin_message_process($full, $me |
|
| Line 755 function ezin_message_process($full, $me |
|
| |
|
| function ezin_core_send_notify_email($data, $type = 'feedback') /* {{{ */ |
function ezin_core_send_notify_email($data, $type = 'feedback') /* {{{ */ |
| { |
{ |
| global $ezin_sys, $ezin_cfg; |
global $ezin_sys, $ezin_cfg, $ezin_tmpl_key; |
| $from = ''; |
$from = ''; |
| $to = ''; |
$to = ''; |
| $subject = ''; |
$subject = ''; |
| $encoding = ''; |
$encoding = ''; |
| $message = ''; |
$message = ''; |
| $tmpl = ezin_load_template($ezin_sys['tmpl']['e-mail'][$type], 1); |
// TODO: the problem here is, that $ezin_tmpl_key not initialized yet |
| |
// thus customized feedback form e-mails are not possible this way |
| |
$template = $ezin_sys['tmpl']['e-mail'][$type].$ezin_tmpl_key; |
| |
$tmpl = ezin_load_template($template, 1); |
| if ($tmpl != false) { |
if ($tmpl != false) { |
| $tmpl = new HTML_Template_Platon($ezin_sys['tmpl']['e-mail'][$type]); |
$tmpl = new HTML_Template_Platon($template); |
| } |
} |
| if ($tmpl == false || $tmpl->isVar('content')) { |
if ($tmpl == false || $tmpl->isVar('content')) { |
| if ($type == 'feedback') { |
if ($type == 'feedback') { |