($fUsername -> $fUsername)
"; } $result = db_query ("INSERT INTO mailbox (username,password,name,maildir,quota,domain,created,modified,active) VALUES ('$fUsername','$password','$fName','$maildir','$quota','$fDomain',NOW(),NOW(),'$fActive')"); if ($result['rows'] != 1) { $tDomain = $fDomain; $tMessage .= $PALANG['pCreate_mailbox_result_error'] . "
($fUsername)
"; } else { db_log ($CONF['admin_email'], $fDomain, "create mailbox", $fUsername); $tDomain = $fDomain; $tMessage = $PALANG['pCreate_mailbox_result_succes'] . "
($fUsername)
"; $tQuota = $CONF['maxquota']; if ($fMail == "on") { if (!mail ($fUsername, $PALANG['pSendmail_subject_text'], $PALANG['pSendmail_body_text'], "From: " . $CONF['admin_email'])) { $tMessage .= "
" . $PALANG['pSendmail_result_error'] . "
"; } else { $tMessage .= "
" . $PALANG['pSendmail_result_succes'] . "
"; } } } } include ("../templates/header.tpl"); include ("../templates/admin_menu.tpl"); include ("../templates/create-mailbox.tpl"); include ("../templates/footer.tpl"); } ?>