2022-08-11 14:38:45 +00:00
< p >
2023-01-23 00:14:59 +00:00
< ? = sprintf ( _ ( 'This domain name registry allows to register domains ending with <code>%1$s</code>, for instance <code><em>domain</em>%1$s</code>.' ), '.' . key ( CONF [ 'reg' ][ 'suffixes' ])) ?>
2022-08-11 14:38:45 +00:00
</ p >
2022-09-14 11:30:45 +00:00
< ? php displayIndex (); ?>
2022-10-09 21:35:24 +00:00
2023-01-21 00:27:52 +00:00
< h2 >< ? = _ ( 'Currently registered domains' ) ?> </h2>
2022-10-09 21:35:24 +00:00
< ? php
2022-11-30 22:12:42 +00:00
$domains = query ( 'select' , 'registry' , [ 'username' => $_SESSION [ 'id' ] ? ? '' ], 'domain' );
2022-10-09 21:35:24 +00:00
if ( $domains === [])
2023-01-21 00:27:52 +00:00
echo '<p>∅</p>' . LF ;
2022-10-09 21:35:24 +00:00
else {
2022-11-20 14:11:54 +00:00
echo '<ul>' . LF ;
2022-10-09 21:35:24 +00:00
foreach ( $domains as $domain )
2022-11-20 14:11:54 +00:00
echo ' <code><li>' . $domain . '</li></code>' . LF ;
echo '</ul>' . LF ;
2022-10-09 21:35:24 +00:00
}
2023-05-02 17:30:53 +00:00
?>
< section >
< h2 > Current subdomain registration policy </ h2 >
< dl >
< dt >< ? = _ ( 'Both <span aria-hidden="true">⏳ </span><em>testing</em> and <span aria-hidden="true">👤 </span><em>approved</em> accounts can register a domain under these suffixes:' ) ?> </dt>
< dd >
< ul >
< ? php
foreach ( CONF [ 'reg' ][ 'suffixes' ] as $suffix => $condition )
if ( $condition === 'all' )
echo '<li><code>' . $suffix . ' </code></li>' ;
?>
</ ul >
</ dd >
< dt >< ? = _ ( 'Only <span aria-hidden="true">👤 </span><em>approved</em> accounts can register a domain under these suffixes:' ) ?> </dt>
< dd >
< ul >
< ? php
foreach ( CONF [ 'reg' ][ 'suffixes' ] as $suffix => $condition )
if ( $condition === 'approved' )
echo '<li><code>' . $suffix . ' </code></li>' ;
?>
</ ul >
</ dd >
< dt >< ? = _ ( 'Nobody can register a domain under these suffixes:' ) ?> </dt>
< dd >
< ul >
< ? php
foreach ( CONF [ 'reg' ][ 'suffixes' ] as $suffix => $condition )
if ( $condition === 'none' )
echo '<li><code>' . $suffix . ' </code></li>' ;
?>
</ ul >
</ dd >
</ dl >
</ section >