Re: [Postfixadmin-devel] Postfix admin and smarty
Brought to you by:
christian_boltz,
gingerdog
From: Johan H. <Jo...@do...> - 2009-11-06 17:18:03
|
>> >> Hello all >> >> I did a test of my postfixadmin wuith the latest svn of postfixadmin. >> I get the following error. >> >> >> >> debugging = true; $smarty->template_dir = >> $incpath.'/'.$smarty->template_dir; $smarty->compile_dir = >> $incpath.'/'.$smarty->compile_dir; $smarty->config_dir = >> $incpath.'/'.$smarty->config_dir; $CONF['theme_css'] = >> $CONF['postfix_admin_url'].'/'.htmlentities($CONF['theme_css']); >> $CONF['theme_logo'] = >> $CONF['postfix_admin_url'].'/'.htmlentities($CONF['theme_logo']); >> $smarty->assign ('CONF', $CONF); $smarty->assign ('PALANG', $PALANG); >> //*** footer.tpl $smarty->assign ('version', $version); //*** menu.tpl >> $smarty->assign ('boolconf_alias_domain', boolconf('alias_domain')); >> $smarty->assign ('authentication_has_role', array ('global_admin' => >> authentication_has_role ('global-admin'), 'admin' => >> authentication_has_role ('admin'), 'user' => authentication_has_role >> ('user'))); if (authentication_has_role('global-admin')) { $motd_file >> = "motd-admin.txt"; } else { $motd_file = "motd.txt"; } if >> (file_exists ($CONF ['postfix_admin_path'].'/templates/'.$motd_file)) >> $smarty->assign ('motd_file', $motd_file); ?> '.$val.''; } return >> $ret_val; } function eval_size ($aSize) { if ($aSize == 0) {$ret_val = >> $GLOBALS ['PALANG']['pOverview_unlimited']; } elseif ($aSize < 0) >> {$ret_val = $GLOBALS ['PALANG']['pOverview_disabled']; } else >> {$ret_val = $aSize; } return $ret_val; } ?> >> >> Do I need to install something on my server(like smarty) >> >> Regards, >> Johan Hendriks >> >> ------------------------------------------------------------------------ >Hi Johan, > >no special needs, all libraries are included. It seems that your web >server doesn't do the PHP part. Which file is causing the problem? Is >the server running on windows? That could be an explanation. > >Regards, >Sebastian No it is an FreeBSD server. If I place back the old postfixadmin dir all is working fine again. This is what I have in my http-error log file [Fri Nov 06 18:16:39 2009] [error] [client 192.168.50.201] PHP Notice: Undefined variable: smarty in /usr/local/www/postfixadmin/login.php on line 39 [Fri Nov 06 18:16:39 2009] [error] [client 192.168.50.201] PHP Fatal error: Call to a member function assign() on a non-object in /usr/local/www/postfixadmin/login.php on line 39 Im am out of the offe till Monday now. regards, Johan Hendriks No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.425 / Virus Database: 270.14.52/2483 - Release Date: 11/05/09 19:52:00 |