summaryrefslogtreecommitdiff
path: root/account
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-09 01:51:38 +0500
committerilotterytea <iltsu@alright.party>2025-12-09 01:51:38 +0500
commit64a9bfae4a659f38f33320e59004a1d1dd259a40 (patch)
tree037ada7511f50fa78dff1c6645b984b327f77ce2 /account
parent29477e67ede12347b153e2255325327374e1b073 (diff)
upd: replaced <?php echo with <?=
Diffstat (limited to 'account')
-rw-r--r--account/index.php8
-rw-r--r--account/login/index.php6
-rw-r--r--account/register.php6
3 files changed, 10 insertions, 10 deletions
diff --git a/account/index.php b/account/index.php
index bb4bff6..86bf659 100644
--- a/account/index.php
+++ b/account/index.php
@@ -104,7 +104,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
<html>
<head>
- <title>Account management - <?php echo CONFIG['instance']['name'] ?></title>
+ <title>Account management - <?= CONFIG['instance']['name'] ?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
</head>
@@ -186,7 +186,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
</div>
<h3>Username</h3>
- <input type="text" name="username" id="username" value="<?php echo $_SESSION["user_name"] ?>">
+ <input type="text" name="username" id="username" value="<?= $_SESSION["user_name"] ?>">
<button type="submit">Save</button>
</form>
@@ -293,9 +293,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
let validUsername = "";
username.addEventListener("input", (e) => {
- const regex = <?php echo CONFIG['account']['regex'] ?>;
+ const regex = <?= CONFIG['account']['regex'] ?>;
- if (regex.test(e.target.value) && e.target.value.length <= <?php echo CONFIG['account']['maxusernamelength'] ?>) {
+ if (regex.test(e.target.value) && e.target.value.length <= <?= CONFIG['account']['maxusernamelength'] ?>) {
validUsername = e.target.value;
} else {
e.target.value = validUsername;
diff --git a/account/login/index.php b/account/login/index.php
index b4223f2..14f7c4e 100644
--- a/account/login/index.php
+++ b/account/login/index.php
@@ -44,7 +44,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<html>
<head>
- <title>Login - <?php echo CONFIG['instance']['name'] ?></title>
+ <title>Login - <?= CONFIG['instance']['name'] ?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
</head>
@@ -57,7 +57,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<?php display_alert() ?>
<section class="box">
<div class="box navtab">
- <p>Log in to <?php echo CONFIG['instance']['name'] ?></p>
+ <p>Log in to <?= CONFIG['instance']['name'] ?></p>
</div>
<div class="box content">
<form action="/account/login/" method="post">
@@ -87,7 +87,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<section class="box column">
<a href="/account/login/twitch.php" class="button purple big">Login with Twitch</a>
<p style="font-size: 12px;">Logging in via Twitch gives you the ability to use
- <?php echo CONFIG['instance']['name'] ?> emotes in your Twitch chat.
+ <?= CONFIG['instance']['name'] ?> emotes in your Twitch chat.
</p>
</section>
<?php endif; ?>
diff --git a/account/register.php b/account/register.php
index 59ea886..292684d 100644
--- a/account/register.php
+++ b/account/register.php
@@ -67,7 +67,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<html>
<head>
- <title>Register an account - <?php echo CONFIG['instance']['name'] ?></title>
+ <title>Register an account - <?= CONFIG['instance']['name'] ?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
</head>
@@ -81,7 +81,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<?php display_alert() ?>
<section class="box">
<div class="box navtab">
- <p>Register an account in <?php echo CONFIG['instance']['name'] ?></p>
+ <p>Register an account in <?= CONFIG['instance']['name'] ?></p>
</div>
<div class="box content">
<form action="/account/register.php" method="post">
@@ -98,7 +98,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
</div>
</form>
<p style="font-size: 12px;">
- Since <?php echo CONFIG['instance']['name'] ?> doesn't require email and password reset via
+ Since <?= CONFIG['instance']['name'] ?> doesn't require email and password reset via
email is
not supported, please remember your passwords!
</p>