View Single Post
  #9  
Old 28th January 2013, 18:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,268 Times in 4,130 Posts
Default

I'am sorry, I missed the post.

The code looks fine, just the following if section seems to be wrong:

if ($global_config['mail']['mailbox_show_custom_rules_tab'] === 'y') {
if($_SESSION["s"]["user"]["typ"] == 'admin') {

I guess it should be:

if($_SESSION["s"]["user"]["typ"] == 'admin' || $global_config['mail']['mailbox_show_custom_rules_tab'] === 'y') {

Quote:
1. I've tried setting the checkbox to checked by default, but it doesn't appear to work.
The defaults for these fields get applied during installation and are stored in the file install/tpl/system.ini

Quote:
2. I'd like to commit the code. What's the best way to do that?
Do you have a svn account for the ispconfig svn server? If not, please send a email to dev [at] ispconfig [dot] org with your forum username and if available your sourceforge.net username and request a svn login.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote