Added username to error template, Rearranged error messages

This commit is contained in:
2021-08-13 12:13:19 +02:00
parent aa2f68ec95
commit 6bc5dbe70f
2 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ unset($_SESSION["error_code"]);
$smarty->assign("headline", $headline);
$smarty->assign("web_url", $web_url);
$smarty->assign("username", $_SESSION["username"]);
$smarty->assign("error_code", $error_code);
$smarty->display("error.tpl");

View File

@@ -13,6 +13,7 @@
</div>
</div>
<div id="error">
<strong>
{if $error_code == 1}
Domain can contain only english letters, dots, hyphens and digits.
{elseif $error_code == 2}
@@ -38,7 +39,8 @@
{else}
Unknown error.
{/if}
</div>
</strong>
<p>Hit "Back" in your browser to return to where you came from. This should normally preserve your changes.</p>
</div>
</body>
</html>