30 require_once(
"../class/config.php");
31 if (!$admin->enabled) {
32 __(
"This page is restricted to authorized staff");
36 include_once(
"head.php");
39 "name" => array (
"request",
"string",
""),
40 "description" => array (
"request",
"string",
""),
41 "target" => array (
"request",
"string",
""),
42 "entry" => array (
"request",
"string",
""),
43 "compatibility" => array (
"request",
"string",
""),
44 "enable" => array (
"request",
"string",
""),
45 "only_dns" => array (
"request",
"boolean",
""),
46 "need_dns" => array (
"request",
"boolean",
""),
47 "advanced" => array (
"request",
"boolean",
""),
48 "create_tmpdir" => array (
"request",
"boolean",
""),
49 "create_targetdir" => array (
"request",
"boolean",
""),
54 if (!
$d=
$dom->domains_type_get($name)) {
60 <h3><?php
__(
"Edit a domain type"); ?> </h3>
64 if (
isset($error_edit) && $error_edit) {
65 echo
"<p class=\"alert alert-danger\">$error_edit</p>";
70 <form action=
"adm_domstypedoedit.php" method=
"post" name=
"main" id=
"main">
71 <input type=
"hidden" name=
"name" value=
"<?php echo $d['name']; ?>" />
74 <th><?php
__(
"Name");?></th>
75 <td><b><?php echo
$d[
"name"]; ?></b></td>
78 <th><?php
__(
"Description");?></th>
79 <td><input name=
"description" type=
"text" size=
"30" value=
"<?php echo $d['description']; ?>" /></td>
82 <th><?php
__(
"Target type");?></th>
84 <select name=
"target">
85 <?php
foreach (
$dom->domains_type_target_values() as $k) { ?>
86 <option value=
"<?php echo $k ?>" <?php echo ($d[
'target']==$k)?
"selected":
"";?> ><?php echo $k;?></option>
92 <th><?php
__(
"Entry");?></th>
93 <td><input name=
"entry" type=
"text" size=
"30" value=
"<?php echo $d['entry']; ?>" /></td>
96 <th><?php
__(
"Compatibility");?><br /><small><?php
__(
"Enter comma-separated name of other types"); ?></small></th>
97 <td><input name=
"compatibility" type=
"text" size=
"15" value=
"<?php echo $d['compatibility']; ?>" /></td>
100 <th><?php
__(
"Enabled");?></th>
102 <select name=
"enable">
103 <?php
foreach (
$dom->domains_type_enable_values() as $k) { ?>
104 <option value=
"<?php echo $k ?>" <?php echo ($d[
'enable']==$k)?
"selected":
"";?> ><?php
__($k);?></option>
110 <th><?php
__(
"Do only a DNS entry");?></th>
111 <td><input name=
"only_dns" type=
"checkbox" value=
"1" <?php
cbox($d[
'only_dns']); ?> /></td>
114 <th><?php
__(
"Domain must have our DNS");?></th>
115 <td><input name=
"need_dns" type=
"checkbox" value=
"1" <?php
cbox($d[
'need_dns']); ?> /></td>
118 <th><?php
__(
"Is it an advanced option?");?></th>
119 <td><input name=
"advanced" type=
"checkbox" value=
"1" <?php
cbox($d[
'advanced']); ?> /></td>
123 <th><?php
__(
"Create tmp directory ?");?></th>
124 <td><input name=
"create_tmpdir" type=
"checkbox" value=
"1" <?php
cbox($d[
'create_tmpdir']); ?> /></td>
128 <th><?php
__(
"Create target directory ?");?></th>
129 <td><input name=
"create_targetdir" type=
"checkbox" value=
"1" <?php
cbox($d[
'create_targetdir']); ?> /></td>
133 <input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Change
this domain type
"); ?>" />
134 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='adm_domstype.php'"/>
142 <?php include_once(
"foot.php"); ?>