File: admin_create-domain.php

package info (click to toggle)
postfixadmin 2.3.5-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,200 kB
  • sloc: php: 25,767; xml: 14,485; perl: 964; sh: 664; python: 169; makefile: 84
file content (78 lines) | stat: -rw-r--r-- 3,409 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
<div id="edit_form">
<form name="create_domain" method="post">
<table>
   <tr>
      <td colspan="3"><h3><?php print $PALANG['pAdminCreate_domain_welcome']; ?></h3></td>
   </tr>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_domain'] . ":"; ?></td>
      <td><input class="flat" type="text" name="fDomain" value="<?php print htmlentities($tDomain); ?>" /></td>
      <td><?php print $pAdminCreate_domain_domain_text; ?></td>
   </tr>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_description'] . ":"; ?></td>
      <td><input class="flat" type="text" name="fDescription" value="<?php print htmlentities($tDescription); ?>" /></td>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_aliases'] . ":"; ?></td>
      <td><input class="flat" type="text" name="fAliases" value="<?php print $tAliases; ?>" /></td>
      <td><?php print $PALANG['pAdminCreate_domain_aliases_text']; ?></td>
   </tr>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_mailboxes'] . ":"; ?></td>
      <td><input class="flat" type="text" name="fMailboxes" value="<?php print $tMailboxes; ?>" /></td>
      <td><?php print $PALANG['pAdminCreate_domain_mailboxes_text']; ?></td>
   </tr>
   <?php if ($CONF['quota'] == 'YES') { ?>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_maxquota'] . ":"; ?></td>
      <td><input class="flat" type="text" name="fMaxquota" value="<?php print $tMaxquota; ?>" /></td>
      <td><?php print $PALANG['pAdminCreate_domain_maxquota_text']; ?></td>
   </tr>
   <?php } if ($CONF['transport'] == 'YES') { ?>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_transport'] . ":"; ?></td>
      <td><select class="flat" name="fTransport">
      <?php
      for ($i = 0; $i < sizeof ($CONF['transport_options']); $i++)
      {
         if ($CONF['transport_options'][$i] == $tTransport)
         {
            print "<option value=\"" . $CONF['transport_options'][$i] . "\" selected>" . $CONF['transport_options'][$i] . "</option>\n";
         }
         else
         {
            print "<option value=\"" . $CONF['transport_options'][$i] . "\">" . $CONF['transport_options'][$i] . "</option>\n";
         }
      }
      ?>
      </select>
      </td>
      <td><?php print $PALANG['pAdminCreate_domain_transport_text']; ?></td>
   </tr>
   <?php } ?>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_defaultaliases'] . ":"; ?></td>
      <td><?php $checked = ($tDefaultaliases == 'on') ? 'checked=checked' : ''; ?>
      <input class="flat" type="checkbox" value='on' name="fDefaultaliases" <?php print $checked; ?> />
      </td>
      <td><?php print $PALANG['pAdminCreate_domain_defaultaliases_text']; ?></td>
   </tr>
   <tr>
      <td><?php print $PALANG['pAdminCreate_domain_backupmx'] . ":"; ?></td>
      <td><?php $checked = ($tBackupmx == 'on') ? 'checked="checked"' : ''; ?>
      <input class="flat" type="checkbox" value='on' name="fBackupmx" <?php print $checked; ?> />
      </td>
      <td>&nbsp;</td>
   </tr>
   <tr>
      <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pAdminCreate_domain_button']; ?>" /></td>
   </tr>
   <tr>
      <td colspan="3" class="standout"><?php print $tMessage; ?></td>
   </tr>
</table>
</form>
</div>