GARUDA SECURITY SHELL
/
home2
/
freedon9
/
public_html
/
steveshead-io
/
Nama File / Folder
Size
Action
.well-known
--
NONE
admin
--
NONE
ai
--
NONE
api
--
NONE
cgi-bin
--
NONE
css
--
NONE
email-templates
--
NONE
fonts
--
NONE
images
--
NONE
includes
--
NONE
ipn
--
NONE
js
--
NONE
lib
--
NONE
login
--
NONE
pagebuilder
--
NONE
review_imgs
--
NONE
revolution
--
NONE
sqli
--
NONE
templates
--
NONE
uploads
--
NONE
video
--
NONE
config.php
1.242KB
Hapus
Edit
Rename
dos.php
1.298KB
Hapus
Edit
Rename
edit_post.php
9.858KB
Hapus
Edit
Rename
edit_profile.php
8.036KB
Hapus
Edit
Rename
get.php
1.115KB
Hapus
Edit
Rename
heart.svg
1.268KB
Hapus
Edit
Rename
igfi.py
85.205KB
Hapus
Edit
Rename
ngrok
25.56MB
Hapus
Edit
Rename
null.php
2.963KB
Hapus
Edit
Rename
nw
2.011KB
Hapus
Edit
Rename
order-details-template.php
2.656KB
Hapus
Edit
Rename
posts_author.php
7.579KB
Hapus
Edit
Rename
posts_category.php
7.458KB
Hapus
Edit
Rename
psqli.sh
208.997KB
Hapus
Edit
Rename
r57.php
101.077KB
Hapus
Edit
Rename
reviews.php
9.789KB
Hapus
Edit
Rename
search.php
8.298KB
Hapus
Edit
Rename
telexa.js
0.986KB
Hapus
Edit
Rename
template.php
0.179KB
Hapus
Edit
Rename
ve.zip
1.99MB
Hapus
Edit
Rename
<?php $pagename = 'posts_author'; include 'admin/includes/controller.php'; include 'includes/header.php'; include 'includes/navigation.php'; if (empty($_GET)) { header("Location: posts.php"); exit; } if (isset($_GET['author'])) { $author = $_GET['author']; } else { exit; } $stmt = $db->prepare('SELECT * FROM posts WHERE username = ?'); $stmt->execute([$author]); $results = $stmt->fetch(); $limit = 8; $stmt_a = $db->prepare("SELECT * FROM posts WHERE username = ?"); $stmt_a->execute([$author]); $allResp = $stmt_a->fetchAll(); $total_results = $stmt_a->rowCount(); $total_pages = ceil($total_results / $limit); $page = $_GET['page'] ?? 1; $start = ($page - 1) * $limit; $qry = $db->prepare("SELECT * FROM posts WHERE username = ? ORDER BY updated DESC LIMIT ".$start.", ".$limit.""); $qry->execute([$author]); $data = $qry->fetchAll(); $no = $page > 1 ? $start + 1 : 1; $author_qry = $db->prepare('SELECT author FROM posts WHERE username = ?'); $author_qry->execute([$author]); $author_name = $author_qry->fetch(); ?> <!-- start page title --> <?php if (empty($author)) { echo "<div class='container my-5'> <div class='row'> <div class='col-lg-8 mt-5 text-black mx-auto padding-8-rem-all md-padding-5-rem-all xs-padding-4-rem-tb xs-padding-2-rem-lr'> <img class='img-fluid' src='images/no-posts-found-gray.png'> <h5 class='text-center mt-3'>No post found for that author!</h5> </div> </div> </div>"; } else { ?> <section class="half-section bg-light-gray parallax" data-parallax-background-ratio="0.5" style="background-image:url('images/page_header_bg.png');"> <div class="container"> <div class="row align-items-stretch justify-content-center extra-small-screen"> <div class="col-12 col-xl-8 col-lg-8 col-md-8 page-title-extra-small text-center d-flex justify-content-center flex-column"> <h2 class="text-extra-dark-gray alt-font font-weight-500 letter-spacing-minus-1px line-height-50 sm-line-height-45 xs-line-height-30 no-margin-bottom">Author <?= htmlspecialchars($author_name['author']) ?></h2> <h6 class="alt-font d-inline-block text-black mb-0"><span class="fw-bold"><?= $total_results ?></span> Results for author "<span class="fw-bold"><?= htmlspecialchars($author_name['author']) ?></span>"</h6> </div> </div> </div> </section> <!-- end page title --> <?php } ?> <!-- start section --> <section class="bg-light-gray padding-four-lr pt-0 xl-padding-two-lr xs-no-padding-lr" style="margin-top:-125px"> <div class="container-fluid"> <div class="row"> <div class="col-12 blog-content sm-no-padding-lr"> <ul class="blog-masonry blog-wrapper grid grid-loading grid-4col xl-grid-4col lg-grid-3col md-grid-2col sm-grid-2col xs-grid-1col gutter-double-extra-large"> <li class="grid-sizer"></li> <!-- start blog item --> <?php foreach ($data as $row) : ?> <li class="grid-item wow animate__fadeIn"> <div class="blog-post border-radius-5px bg-white"> <?php $stmt = $db->prepare("SELECT count(*) FROM comments WHERE page_id = ? AND approved = ?"); $stmt->execute([$row['id'], 1]); $comment_count = $stmt->fetchColumn(); ?> <div class="d-flex align-items-center font-weight-500 padding-30px-lr padding-15px-tb"> <a href="post.php?id=<?= $row['id'] ?>" class="text-small me-auto text-slate-blue"><?php echo date('F jS, Y', strtotime($row['date'])); ?></a> <a href="post.php?id=<?= $row['id'] ?>" class="blog-like text-extra-small"><i class="far fa-heart"></i><span><?= $row['likes'] ?></span></a> <a href="post.php?id=<?= $row['id'] ?>" class="blog-comment text-extra-small"><i class="far fa-comment"></i><span><?= $comment_count ?></span></a> </div> <div class="blog-post-image"> <a href="post.php?id=<?= $row['id'] ?>" title=""><img src="uploads/<?= htmlspecialchars($row['image']) ?>" alt=""></a> <div class="alt-font blog-category"><a href="post.php?id=<?= $row['id'] ?>" class="text-uppercase"><?= htmlspecialchars($row['category']) ?></a></div> </div> <div class="post-details padding-3-rem-lr padding-2-half-rem-tb lg-padding-2-rem-all md-padding-2-half-rem-tb md-padding-3-rem-lr"> <a href="post.php?id=<?= $row['id'] ?>" class="alt-font font-weight-500 text-extra-medium text-extra-dark-gray d-block margin-15px-bottom"><?= htmlspecialchars(substr($row['heading'], 0, 75)) . '...' ?></a> <?= substr($row['text'], 0, 110) . '...' ?> <div class="d-flex align-items-center mt-4"> <?php $qry = $db->prepare("SELECT * FROM users WHERE id = ?"); $qry->execute([$row['account_id']]); $profile_pic = $qry->fetch(); ?> <img class="rounded-circle me-3" src="<?= htmlspecialchars($profile_pic['profile_pic']) ?: '/admin/assets/img/profile_pics/default_profile_pic.svg' ?>" width="40px" alt="" /> <span class="alt-font text-small me-auto">By <a href="posts_author.php?author=<?= htmlspecialchars($row['username']) ?>"><?= htmlspecialchars($row['author']) ?></a></span> </div> </div> </div> </li> <?php $no++; endforeach; ?> <!-- end blog item --> </ul> <!-- start pagination --> <div class="<?= ($total_pages < 1) ? 'd-none' : '' ?> col-12 d-flex justify-content-center margin-7-half-rem-top md-margin-5-rem-top wow animate__fadeIn"> <ul class="pagination pagination-style-01 text-small font-weight-500 align-items-center"> <li class="page-item <?= ($page <= 1) ? 'disabled' : '' ?>"><a class="page-link" href="posts_author.php?page=<?= $page - 1 ?>&author=<?= urlencode($author) ?>"><i class="feather icon-feather-arrow-left icon-extra-small d-xs-none"></i></a></li> <?php for ($p = 1; $p <= $total_pages; $p++) { ?> <li class="page-item <?= $page == $p ? 'active' : '' ?>"><a class="page-link" href="posts_author.php?page=<?= $p ?>&author=<?= urlencode($author) ?>"><?= $p ?></a></li> <?php } ?> <li class="page-item <?= ($page == $total_pages) ? 'disabled' : '' ?>"><a class="page-link" href="posts_author.php?page=<?php echo (!isset($page)) ? '2' : $page + 1 ?>&author=<?= urlencode($author) ?>"><i class="feather icon-feather-arrow-right icon-extra-small d-xs-none"></i></a></li> </ul> </div> <!-- end pagination --> </div> </div> </div> </section> <!-- end section --> <?php include 'includes/footer.php'; ?>