diff options
author | Minteck <contact@minteck.org> | 2022-12-26 11:01:24 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-12-26 11:01:24 +0100 |
commit | fff87a11d819a7275e4640ccaa894c1300f6228a (patch) | |
tree | ec078affe59dc325cd814758389c4274a6ab2e99 /_edit | |
parent | a70a7a3983f08847bfd897c673e8fc00f7b00198 (diff) | |
download | delta-fff87a11d819a7275e4640ccaa894c1300f6228a.tar.gz delta-fff87a11d819a7275e4640ccaa894c1300f6228a.tar.bz2 delta-fff87a11d819a7275e4640ccaa894c1300f6228a.zip |
Update - This is an automated commit
Diffstat (limited to '_edit')
-rw-r--r-- | _edit/index.php | 2 | ||||
-rw-r--r-- | _edit/save/index.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/_edit/index.php b/_edit/index.php index 5dde57d..2ac2911 100644 --- a/_edit/index.php +++ b/_edit/index.php @@ -55,7 +55,7 @@ if (!isset($_PROFILE["requests"][$id])): <span><?= file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/people/" . $id . ".json") ? $data["first_name"] . " " . $data["last_name"] : $data["title"] ?></span> <span style="float: right;"><input id="form-btn" type="button" value="<?= l("lang_edit_save") ?>" class="btn btn-outline-primary" <?= $_PROFILE["blocked"] >= 2 ? "disabled" : "" ?>> <a href="/<?= file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/people/" . $id . ".json") ? "people" : "articles" ?>/<?= $id ?>" class="btn btn-outline-dark"><?= l("lang_edit_cancel") ?></a></span> <?php else: ?> - <span><?= $data["nick_name"] ?? $data["first_name"] . " " . $data["last_name"] ?><?php if (isset($data["nick_name"]) && trim($data["nick_name"]) !== ""): ?> <small><small><small>(<?= $data["first_name"] . " " . $data["last_name"] ?>)</small></small></small><?php endif; ?><?php if ($data["plus"]): ?> <small><small><small><small><small><small><span class="badge badge-plus rounded-pill" style="vertical-align: middle; margin-top: -5px;">PLUS</span></small></small></small></small></small></small><?php endif; ?></span> + <span><?= $data["nick_name"] ?? $data["first_name"] . " " . $data["last_name"] ?><?php if (isset($data["nick_name"]) && trim($data["nick_name"]) !== ""): ?> <small><small><small>(<?= $data["first_name"] . " " . $data["last_name"] ?>)</small></small></small><?php endif; ?><?php if ($data["plus"] && !$data["ultra"]): ?> <small><small><small><small><small><small><span class="badge badge-plus rounded-pill" style="vertical-align: middle; margin-top: -5px;">PLUS</span></small></small></small></small></small></small><?php elseif ($data["plus"] && $data["ultra"]): ?> <small><small><small><small><small><small><span class="badge badge-ultra rounded-pill" style="vertical-align: middle; margin-top: -5px;">ULTRA</span></small></small></small></small></small></small><?php endif; ?></span> <span style="float: right;"><input id="form-btn" type="button" value="<?= l($id === $_USER ? "lang_profile_save" : "lang_edit_save") ?>" class="btn btn-outline-primary" <?= $_PROFILE["blocked"] >= 1 ? "disabled" : "" ?>> <a href="/<?= file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/people/" . $id . ".json") ? "people" : (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/articles/" . $id . ".json") ? "articles" : (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gallery/" . $id . ".json") ? "gallery" : "profile")) ?>/<?= $id ?>" class="btn btn-outline-dark"><?= l("lang_edit_cancel") ?></a></span> <?php endif; ?> </span> diff --git a/_edit/save/index.php b/_edit/save/index.php index c01de84..856efd8 100644 --- a/_edit/save/index.php +++ b/_edit/save/index.php @@ -66,6 +66,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/people/" . $id . ".j if ($_PROFILE["blocked"] >= $blockLevel) die(); $_PROFILE["contents"] = $_POST["contents"]; + $_PROFILE["update"] = date('c'); } if ($id === $_USER) { |