summaryrefslogtreecommitdiff
path: root/report/index.php
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 /report/index.php
parent29477e67ede12347b153e2255325327374e1b073 (diff)
upd: replaced <?php echo with <?=
Diffstat (limited to 'report/index.php')
-rw-r--r--report/index.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/report/index.php b/report/index.php
index fe83855..f60e38c 100644
--- a/report/index.php
+++ b/report/index.php
@@ -59,7 +59,7 @@ if ($contents == "") {
<head>
<title>
- <?php echo ($report == null ? "Send a message to MODS" : "A message to MODS") . ' - ' . CONFIG['instance']['name'] ?>
+ <?= ($report == null ? "Send a message to MODS" : "A message to MODS") . ' - ' . CONFIG['instance']['name'] ?>
</title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
@@ -74,14 +74,14 @@ if ($contents == "") {
<?php display_alert() ?>
<section class="box">
<div class="box navtab">
- <?php echo $report == null ? "Send a message to MODS" : "A message to MODS" ?>
+ <?= $report == null ? "Send a message to MODS" : "A message to MODS" ?>
</div>
<?php if ($report == null) {
echo '' ?>
<div class="box content">
<form action="/report/send.php" method="POST">
<textarea name="contents" style="resize: none;height:250px;" autofocus
- required><?php echo $contents; ?></textarea>
+ required><?= $contents; ?></textarea>
<button type="submit">Send</button>
</form>
</div> <?php ;
@@ -89,13 +89,13 @@ if ($contents == "") {
echo '' ?>
<div class="box content">
<textarea name="contents" style="resize: none;height:250px;"
- disabled><?php echo $report["contents"]; ?></textarea>
+ disabled><?= $report["contents"]; ?></textarea>
</div>
</section>
<section class="box">
- <p>Reported <?php echo format_timestamp(time() - strtotime($report["sent_at"])) ?> ago</p>
+ <p>Reported <?= format_timestamp(time() - strtotime($report["sent_at"])) ?> ago</p>
<p>Status:
- <?php echo $report["resolved_by"] == null ? "<b style='color:red;'>Unresolved</b>" : "<b style='color:green;'>Resolved</b>" ?>
+ <?= $report["resolved_by"] == null ? "<b style='color:red;'>Unresolved</b>" : "<b style='color:green;'>Resolved</b>" ?>
</p>
</section>
<?php
@@ -107,7 +107,7 @@ if ($contents == "") {
</div>
<div class="box content">
<textarea name="contents" style="resize: none;height:250px;"
- disabled><?php echo $report["response_message"]; ?></textarea>
+ disabled><?= $report["response_message"]; ?></textarea>
</div>
</section>
<?php