3 require_once 'Pman.php';
5 class Pman_Core_MailTemplateList extends Pman
9 $au = $this->getAuthUser();
11 die("NOT authenticated");
13 $this->authUser = $au;
19 $fopts = HTML_FlexyFramework::get()->HTML_Template_Flexy;
21 $templateDir = explode(PATH_SEPARATOR, $fopts['templateDir']);
23 foreach ($templateDir as $dir){
25 if(!file_exists($dir . '/mail')){
29 if ($handle = opendir($dir . '/')) {
30 while (false !== ($entry = readdir($handle))) {
31 if ($entry == "." || $entry == "..") {
43 $this->jdata(array(array('name' => 'aa', 'body'=> 'test')));
45 print_r(array_unique($fopts->templateDir));