diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-09 01:51:38 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-09 01:51:38 +0500 |
| commit | 64a9bfae4a659f38f33320e59004a1d1dd259a40 (patch) | |
| tree | 037ada7511f50fa78dff1c6645b984b327f77ce2 /report | |
| parent | 29477e67ede12347b153e2255325327374e1b073 (diff) | |
upd: replaced <?php echo with <?=
Diffstat (limited to 'report')
| -rw-r--r-- | report/index.php | 14 | ||||
| -rw-r--r-- | report/list.php | 2 |
2 files changed, 8 insertions, 8 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 diff --git a/report/list.php b/report/list.php index 94154fe..ed7a14d 100644 --- a/report/list.php +++ b/report/list.php @@ -30,7 +30,7 @@ $reports = $stmt->fetchAll(PDO::FETCH_ASSOC); <html> <head> - <title>Report list - <?php echo CONFIG['instance']['name'] ?></title> + <title>Report list - <?= CONFIG['instance']['name'] ?></title> <link rel="stylesheet" href="/static/style.css"> <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"> </head> |
