0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
[
Home
]
File: listing-detail.php
<?php require 'db.php'; $location_name = ''; $get_ad_title = ''; $list_id = 0; if( isset( $_GET['ad_title'] ) && !empty($_GET['ad_title'])) { $get_ad_title = $_GET['ad_title']; $arr = explode("-", $get_ad_title, 0); $list_id = (int)$arr[0]; } if( isset( $_GET['location_name'] ) && !empty($_GET['location_name'])) { $location_name = trim($_GET['location_name']); $location_id = get_location_id($location_name); } $chkRec = "SELECT * FROM `lists` WHERE id = " . $list_id . " LIMIT 1" ; $chkResult = mysqli_query($conn, $chkRec); $count = mysqli_num_rows($chkResult); if ($count > 0){ $row = mysqli_fetch_assoc($chkResult); $page_title = "Listcrawler.app " . ucwords(str_replace('_', ' ', $location_name)) . " Female Escorts - " . $row["list_title"]; ?> <!DOCTYPE html> <html lang="en"> <head> <?php include_once 'includes/head.php'; ?> <link href="/css/lightbox.css" rel="stylesheet" /> </head> <body class="gradient-6" data-spy="scroll" data-target="#navbar-nav"> <!-- =========== Preloader End ============ --> <div class="main"> <?php include_once 'includes/header.php'; ?> <!-- =========== Start of Hero ============ --> <section class="mb-4 hero hero--dark hidden"> <?php /* Third Party Messaging*/ $chkMsg = "SELECT is_enabled, open_new_window FROM `messaging` WHERE slug = 'third_party_messaging' LIMIT 1" ; $chkMsgResult = mysqli_query($conn, $chkMsg); $countMSG = mysqli_num_rows($chkMsgResult); $buttonAttr = ' id="btn-mobile-number" '; ?> <div class="container" style="min-height: 30rem;"> <div class="row mt-5"> </div> <div class="row mb-1 mt-3"> <div class="col-12" id="button-message-popup"> <?php if ( $countMSG > 0 ) { $rowMsg = mysqli_fetch_assoc($chkMsgResult); $mesaging_enabled = $rowMsg['is_enabled']; $open_new_window = $rowMsg['open_new_window']; if ( $mesaging_enabled == 'Y' ) { $buttonAttr = ' id="button-302-redirect" rel="nofollow" '; } ?> <input type="hidden" value="<?php echo $open_new_window;?>" id="open_new_window" name="open_new_window"> <button class="text-center ml-0 ad-mobile-button" <?php echo $buttonAttr; ?> type="submit" ><img src="/img/chat-icon-grey.png" width="25px"></button> <?php } ?> <span class="ad-date-text" style="color: #343a40;"><?php echo date('m/d/y - l'); ?></span> </div> </div> <div class="row"> <div class="col-12 mt-3"> <h5 class="ad-title"><?php echo $row["list_title"];?></h5> </div> </div> <div class="row"> <div class="col-12 mt-4 ad-description"> <?php echo $row["list_desc"];?> </div> </div> <?php $chkPic = "SELECT * FROM `photos` WHERE `list_id` = " . $list_id . " ORDER BY `id` ASC LIMIT 3" ; $chkPicResult = mysqli_query($conn, $chkPic); $PicCount = mysqli_num_rows($chkPicResult); if ($PicCount > 0){ $chkFirstPic = "SELECT `photo_name` FROM `photos` WHERE `list_id` = " . $list_id . " ORDER BY `id` ASC LIMIT 1" ; $chkFirstPicResult = mysqli_query($conn, $chkFirstPic); $rowFirstPic = mysqli_fetch_assoc($chkFirstPicResult); $chkPicResult = mysqli_query($conn, $chkPic); $i = 1; ?> <div class="row mt-5"> <div class="cont text-left ml-2" style="width:250px;max-height:250px;border-radius: 15px;padding:0 0 0 20px"> <a href="/pics/<?php echo $rowFirstPic["photo_name"];?>" data-lightbox="lc-pics" id="link-mainpic"><img id="mainpic" src="/pics/<?php echo $rowFirstPic["photo_name"];?>" class="ad-main-pic"></a> </div> <div class="" style="padding-left:30px;width:100px;"> <?php while ($rowPic = mysqli_fetch_assoc($chkPicResult)){ ?> <div id="img<?php echo $i;?>" class="album-thumbnails ml-3 hvr <?php if ($i == 1 ) { ?>thumb-active<?php } else {?>thumb-inactive <?php } ?>"> <img id="aimg<?php echo $i;?>" src="/pics/<?php echo $rowPic["photo_name"];?>" class="portrait"> </div> <?php $i++; } ?> </div> </div> <?php } ?> <div class="row mt-4" style="padding-bottom:8rem;"> <div class="col"> <span id="mobile-number" ></span> </div> </div> <div class="row mt-4 mb-3 ad-id-bar" id="ad-id-bar"> <div class="col-6"> <span style="color: #6E4AC8;"></span> </div> <div class="col-6 text-right"> <span style="color:#b9b8c3;font-size: 0.9rem;padding-right: 20px;">ID #<?php echo mt_rand(); ?></span> </div> </div> <?php // get random sponsor ad $chkSponsorAd = "SELECT `id`, `ad_title`, `ad_url` from `sponsors` ORDER BY id " ; $chkSponsorAdResult = mysqli_query($conn, $chkSponsorAd); $count_sponsor_ad = mysqli_num_rows($chkSponsorAdResult); if ($count_sponsor_ad > 0) { while($rowSponsorAdResult = mysqli_fetch_assoc($chkSponsorAdResult)) { ?> <div class="row"> <div class="col-12 sponsor-bar" style="font-size: 1.1rem;"> <a href="/sponsors/<?php echo $rowSponsorAdResult['id']; ?>" rel="nofollow" target="_blank" style="color: #343a40;"> <?php echo $rowSponsorAdResult['ad_title']; ?></a> <span class="list-cityname"> <span class="sponsor-text"> Sponsored</span></span> <?php $chkPic = "SELECT * FROM `sponsor_photos` WHERE `sponsor_id` = " . $rowSponsorAdResult['id'] . " ORDER BY `id` ASC LIMIT 3" ; $chkPicResult = mysqli_query($conn, $chkPic); $PicCount = mysqli_num_rows($chkPicResult); if ($PicCount > 0){ $chkPicResult = mysqli_query($conn, $chkPic); $i = 1; while ($rowPic = mysqli_fetch_assoc($chkPicResult)){ ?> <img class="sponsor-photo" src="/sponsor_pics/<?php echo $rowPic["photo_name"];?>"> <?php $i++; } } ?> </div> </div> <?php } } ?> </div> <!-- end of hero svg shape --> </section> <!-- =========== End of Hero ============ --> </div> <?php include_once 'includes/message-modal.php'; include_once 'includes/confirmation-modal.php'; //include_once 'includes/modal.php'; include_once 'includes/footer.php'; ?> <script src="/js/lightbox.js"></script> </body> </html> <?php } ?>