added "edit" button if logged in

This commit is contained in:
saintly2k 2021-11-01 14:24:02 +01:00 committed by GitHub
parent fffa7ee9ec
commit 85510f96f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ if ($chapterResult->num_rows > 0) {
</style>
<div class="row">
<div class="col-10">
<h3><?php echo $mTITLE; ?> - Chapter <?php echo $chapterNumber; ?>: <?php echo $chapterTitle; ?></h3>
<h3><?php echo $mTITLE; ?> - Chapter <?php echo $chapterNumber; ?>: <?php echo $chapterTitle; ?> <?php if(isset($_SESSION["username"])) { echo " - <a href='?page=view&chapter=".$chID."&action=edit'><i class='bi bi-pencil-fill'></i> Edit</a>"; } ?></h3>
<?php include("views/pages/reader/images.php"); ?>
</div>
<div class="col-2" id="chapter-select"
@ -96,4 +96,4 @@ if ($chapterResult->num_rows > 0) {
<title><?php echo $mTITLE; ?> - Chapter <?php echo $chapterNumber; ?>: <?php echo $chapterTitle; ?> .::.
<?php echo $config["name"]; ?></title>
</div>
</div>