Remove hard-coded '.cyb' assumptions

This commit is contained in:
Al Beano 2017-08-12 09:56:05 +01:00
parent d87964893f
commit e91816381d
3 changed files with 9 additions and 9 deletions

View File

@ -5,13 +5,13 @@
<% IF params.new %> <% IF params.new %>
<div class="msgBox"> <div class="msgBox">
The domain '<% params.new | html_entity %>.cyb' was registered successfully! The domain '<% params.new | html_entity %>.<% vars.config.tld %>' was registered successfully!
</div> </div>
<br /><br /> <br /><br />
<% END %> <% END %>
<% IF params.removed %> <% IF params.removed %>
<div class="msgBox"> <div class="msgBox">
The domain '<% params.removed | html_entity %>.cyb' was removed successfully. The domain '<% params.removed | html_entity %>.<% vars.config.tld %>' was removed successfully.
</div> </div>
<br /><br /> <br /><br />
<% END %> <% END %>
@ -46,7 +46,7 @@
<% FOREACH d IN domains %> <% FOREACH d IN domains %>
<tr> <tr>
<td> <td>
<% d.name | html_entity %>.cyb <% d.name | html_entity %>.<% vars.config.tld %>
</td> </td>
<td> <td>
[&nbsp;<a class="bracketButton" href="domains/<% d.name %>/records">edit</a>&nbsp;] [&nbsp;<a class="bracketButton" href="domains/<% d.name %>/records">edit</a>&nbsp;]

View File

@ -11,10 +11,10 @@
You did not specify a domain to register. You did not specify a domain to register.
<% END %> <% END %>
<% IF e_exists %> <% IF e_exists %>
The domain '<% params.name | html_entity %>.cyb' has already been registered. Please choose a different domain name. The domain '<% params.name | html_entity %>.<% vars.config.tld %>' has already been registered. Please choose a different domain name.
<% END %> <% END %>
<% IF e_chars %> <% IF e_chars %>
The domain '<% params.name | html_entity %>.cyb' contains invalid characters. Domains must match the regular expression `^[a-z0-9]([a-z0-9\-_]*[a-z0-9])?$`. The domain '<% params.name | html_entity %>.<% vars.config.tld %>' contains invalid characters.
<% END %> <% END %>
</div> </div>
<br /><br /> <br /><br />
@ -26,7 +26,7 @@
<br /><br /> <br /><br />
<form method="POST" class="login"> <form method="POST" class="login">
<input type="text" name="name" id="name" onkeyup="checkAvailability()">.cyb <input type="text" name="name" id="name" onkeyup="checkAvailability()">.<% vars.config.tld %>
<br /><br /> <br /><br />
[&nbsp;<button action="submit" class="textButton">register&nbsp;domain</button>&nbsp;] [&nbsp;<button action="submit" class="textButton">register&nbsp;domain</button>&nbsp;]
[&nbsp;<a href="../domains" class="bracketButton">go&nbsp;back</a>&nbsp;] [&nbsp;<a href="../domains" class="bracketButton">go&nbsp;back</a>&nbsp;]

View File

@ -1,16 +1,16 @@
<% IF domain %> <% IF domain %>
<center> <center>
<br /> <br />
<h1>Removal of <% domain.name %>.cyb</h1> <h1>Removal of <% domain.name %>.<% vars.config.tld %></h1>
<br /> <br />
</center> </center>
<div class="body"> <div class="body">
<p> <p>
You are about to permanently remove <% domain.name %>.cyb and all its records. You are about to permanently remove <% domain.name %>.<% vars.config.tld %> and all its records.
</p> </p>
<p style="font-size:1.6em"> <p style="font-size:1.6em">
YOU ARE ABOUT TO PERMANENTLY REMOVE <% domain.name %>.cyb AND ALL ITS RECORDS! YOU ARE ABOUT TO PERMANENTLY REMOVE <% domain.name %>.<% vars.config.tld %> AND ALL ITS RECORDS!
</p> </p>
<p> <p>
There is <strong>no</strong> guarantee that you will be able to re-register this domain at a later date. There is <strong>no</strong> guarantee that you will be able to re-register this domain at a later date.