2022-12-20 21:17:03 +01:00
< p >
2023-06-05 00:18:10 +02:00
< ? = _ ( 'Register a new domain on your account.' ) ?>
</ p >
< p >
< ? = sprintf ( _ ( 'The subdomain can only contain %1$s, %2$s and %3$s, and must be between 4 and 63 characters. It can\'t have an hyphen (%3$s) in first, last or both third and fourth position.' ), '<abbr title="abcdefghijklmnopqrstuvwxyz"><code>a</code>-<code>z</code></abbr>' , '<abbr title="0123456789"><code>0</code>-<code>9</code></abbr>' , '<code>-</code>' ) ?>
2022-12-20 21:17:03 +01:00
</ p >
< form method = " post " >
2023-01-23 01:14:59 +01:00
< fieldset >
< legend >< ? = _ ( 'Domain' ) ?> </legend>
< div >
< label for = " subdomain " >< ? = _ ( 'Subdomain' ) ?> </label>
< br >
2023-03-19 22:22:34 +01:00
< input id = " subdomain " pattern = " <?= SUBDOMAIN_REGEX ?> " required = " " placeholder = " servnest " name = " subdomain " type = " text " value = " <?= $data['domain'] ?? '' ?> " >
2023-01-23 01:14:59 +01:00
</ div >
< div >
< label for = " suffix " >< ? = _ ( 'Suffix' ) ?> </label>
< br >
< select required = " " name = " suffix " id = " suffix " >
< ? php
foreach ( CONF [ 'reg' ][ 'suffixes' ] as $suffix => $availability ) {
if ( $availability === 'none' )
continue ;
echo ' <option' . (( $availability === 'approved' AND ( $_SESSION [ 'type' ] ? ? '' ) !== 'approved' ) ? ' disabled=""' : '' ) . ' value="' . $suffix . '">.' . $suffix . '</option>' . LF ;
}
?>
</ select >
</ div >
</ fieldset >
2023-03-19 22:22:34 +01:00
< button type = " submit " name = " action " value = " check " > 👁️ < ? = _ ( 'Check availability' ) ?> </button>
2023-03-25 16:26:05 +01:00
< br >
2023-03-19 22:22:34 +01:00
< button type = " submit " name = " action " value = " register " > 🔗 < ? = _ ( 'Register' ) ?> </button>
2022-12-20 21:17:03 +01:00
</ form >
2023-03-25 16:26:05 +01:00
< section >
< ? = $data [ 'message' ] ? ? '' ?>
</ section >