function execute($requests) { $name = sprintf('inc_entry_point_%s_%d', $requests['target'], $requests['num']); $this->set('source', db_get_c_template_source($name)); $this->set('entry_point_list', get_inc_entry_point_list()); return 'success'; }
function get_c_template_mail_source($tpl_name) { $source = ''; if (!($source = db_get_c_template_source($tpl_name))) { include_once 'PHP/Compat/Function/file_get_contents.php'; $place = ''; $tpl_file = $tpl_name . '.tpl'; $path = 'templates/mail/' . $tpl_file; if ($tpl = mail_ext_search($path, $place)) { $source = file_get_contents($tpl); } } return $source; }