| | |
| | | <td class="frmText11" width="280">{tmpl_var name='limit_dns_record_txt'}:</td> |
| | | <td class="frmText11" width="220"><input name="limit_dns_record" type="text" class="text" value="{tmpl_var name='limit_dns_record'}" size="10" maxlength="10"></td> |
| | | </tr> |
| | | <tmpl_if name='is_reseller' op='!=' value='1'> |
| | | <tr> |
| | | <td><h2>Clients</h2></td> |
| | | </tr> |
| | |
| | | <td class="frmText11" width="280">{tmpl_var name='limit_client_txt'}:</td> |
| | | <td class="frmText11" width="220"><input name="limit_client" type="text" class="text" value="{tmpl_var name='limit_client'}" size="10" maxlength="10"></td> |
| | | </tr> |
| | | </tmpl_if> |
| | | <tr> |
| | | <td class="frmText11"> </td> |
| | | <td class="frmText11"> </td> |
| | |
| | | <?php |
| | | |
| | | /* |
| | | Copyright (c) 2007, Till Brehm, projektfarm Gmbh |
| | | Copyright (c) 2008, Till Brehm, projektfarm Gmbh |
| | | All rights reserved. |
| | | |
| | | Redistribution and use in source and binary forms, with or without modification, |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | class web_module { |
| | | class client_module { |
| | | |
| | | var $module_name = 'client_module'; |
| | | var $class_name = 'client_module'; |
| | |
| | | global $app, $conf; |
| | | |
| | | // Create the maildir, if it does not exist |
| | | if(!is_dir($data['new']['maildir']) { |
| | | if(!is_dir($data['new']['maildir'])) { |
| | | mkdir($data['new']['maildir']); |
| | | exec('chown '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir'])); |
| | | $app->log('Created Maildir: '.$data['new']['maildir'],LOGLEVEL_DEBUG); |
| | |
| | | $mail_config = $app->getconf->get_server_config($conf["server_id"], 'mail'); |
| | | |
| | | // Create the maildir, if it does not exist |
| | | if(!is_dir($data['new']['maildir']) { |
| | | if(!is_dir($data['new']['maildir'])) { |
| | | mkdir($data['new']['maildir']); |
| | | exec('chown '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir'])); |
| | | $app->log('Created Maildir: '.$data['new']['maildir'],LOGLEVEL_DEBUG); |