Cylul007 Webshell
Uname
:
Linux server.vianetmedia.com 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
PHP
:
7.4.33
on
fpm-fcgi
Time
:
03 Jun 2024 00:40:42
Path :
/
home
/
bhaktidarshanin
/
public_html
/
manage_panel
/
File Upload :
New File
New Folder
Current File : /home/bhaktidarshanin/public_html/manage_panel/text.php
Download
HOME
<?php include("manage_panel/lib/connect.php"); //include("social_counter.php"); $tableName="text_table"; $targetpage = "text.php"; $limit = 32; $query = "SELECT COUNT(*) as num FROM $tableName WHERE `del_status` = '1' AND `status` = '1'"; $total_pages = mysqli_fetch_array(mysqli_query($link,$query)); $total_pages = $total_pages[num]; $stages = 3; $page = mysqli_escape_string($link,$_GET['page']); if($page){ $start = ($page - 1) * $limit; }else{ $start = 0; } // Get page data $query1 = "SELECT id,cat_id,title,thumb FROM $tableName WHERE `del_status` = '1' AND `status` = '1' ORDER BY `id` DESC LIMIT $start, $limit"; $result = mysqli_query($link,$query1); // Initial page num setup if ($page == 0){$page = 1;} $prev = $page - 1; $next = $page + 1; $lastpage = ceil($total_pages/$limit); $LastPagem1 = $lastpage - 1; $paginate = ''; if($lastpage > 1) { $paginate .= "<div class='paginate'>"; // Previous if ($page > 1){ $paginate.= "<a href='$targetpage?page=$prev'>previous</a>"; }else{ $paginate.= "<span class='disabled'>previous</span>"; } // Pages if ($lastpage < 7 + ($stages * 2)) // Not enough pages to breaking it up { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } } elseif($lastpage > 5 + ($stages * 2)) // Enough pages to hide a few? { // Beginning only hide later pages if($page < 1 + ($stages * 2)) { for ($counter = 1; $counter < 4 + ($stages * 2); $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } $paginate.= "..."; $paginate.= "<a href='$targetpage?page=$LastPagem1'>$LastPagem1</a>"; $paginate.= "<a href='$targetpage?page=$lastpage'>$lastpage</a>"; } // Middle hide some front and some back elseif($lastpage - ($stages * 2) > $page && $page > ($stages * 2)) { $paginate.= "<a href='$targetpage?page=1'>1</a>"; $paginate.= "<a href='$targetpage?page=2'>2</a>"; $paginate.= "..."; for ($counter = $page - $stages; $counter <= $page + $stages; $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } $paginate.= "..."; $paginate.= "<a href='$targetpage?page=$LastPagem1'>$LastPagem1</a>"; $paginate.= "<a href='$targetpage?page=$lastpage'>$lastpage</a>"; } // End only hide early pages else { $paginate.= "<a href='$targetpage?page=1'>1</a>"; $paginate.= "<a href='$targetpage?page=2'>2</a>"; $paginate.= "..."; for ($counter = $lastpage - (2 + ($stages * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } } } // Next if ($page < $counter - 1){ $paginate.= "<a href='$targetpage?page=$next'>next</a>"; }else{ $paginate.= "<span class='disabled'>next</span>"; } $paginate.= "</div>"; } ?> <!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bhakti Darshan - Text</title> <meta name="description" content="Read the story behind the text content of most people had to say “BILLI RASTA KATE TO”, “MATA VAISHNO DEVI KI KATHA” & much more to find the spiritual story here."> <link rel="shortcut icon" type="image/png" href="images/favicon.ico"/> <link rel="stylesheet" href="<?=$base_url;?>css/app.css"> <link rel="stylesheet" href="<?=$base_url;?>css/theme.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="<?=$base_url;?>css/responsive.css"> <!-- ********************** For Tab ************************ --> <link rel="stylesheet" href="<?=$base_url;?>css/jquery-ui.css"> <!-- ********************** For Tab end ******************** --> <!-- ******************** Pagination Script Start Here ************************************--> <style> .paginate { font-family:Arial, Helvetica, sans-serif; padding: 3px; margin: 3px; } .paginate a { padding:2px 5px 2px 5px; margin:2px; border:1px solid #e96969; text-decoration:none; color: #e96969; } .paginate a:hover, .paginate a:active { border: 1px solid #e96969; color: #000; } .paginate span.current { margin: 2px; padding: 2px 5px 2px 5px; border: 1px solid #e96969; font-weight: bold; background-color: #e96969; color: #FFF; } .paginate span.disabled { padding:2px 5px 2px 5px; margin:2px; border:1px solid #eee; color:#DDD; } </style> <!-- ****************************** Pagination Script End Here *************************************************--> <style type="text/css"> figure { width: 110%; text-align: center; font-style: italic; font-size: smaller; text-indent: 0; border: thin silver solid; margin: 0.5em; padding: 0.5em; height:50%; } </style> <script> setTimeout(function(){ document.getElementById('div1').style.visibility = "visible"; } ,2000); </script> <?php include("headads.php"); ?> </head> <body> <div class="off-canvas-wrapper" id="div1" style="visibility:hidden;"> <div class="off-canvas-wrapper-inner" data-off-canvas-wrapper> <!--header--> <?php include("header.php"); ?> <!-- End Header --> <!--breadcrumbs start--> <?php include('breadumps.php');?> <!-- End breadcrumbs--> <!-- main content --> <section class="content content-with-sidebar borderBottom"> <div class="row secBg"> <div class="large-8 columns"> <div class="main-heading"> </div> <div class="row secBg" id="category"> <!-- Find Guru --> <div class="large-12 columns"> <div class="column row"> <div class="heading category-heading clearfix"> <div class="cat-head pull-left"> <i class="fa fa-folder-open"> </i> <h4>Text </h4> </div> </div> </div> <!-- category carousel --> <div class="tabs-content" data-tabs-content="newVideos"> <div class="tabs-panel is-active" id="new-all"> <div class="row"> <?php $result = mysqli_query($link,$query1); while($row_text = mysqli_fetch_array( $result)){ $sl++; ?> <div class="item large-3 medium-4 small-6 columns grid-default"> <div class="post thumb-border"> <figure> <div class="post-thumb"> <img src="<?=$base_url;?>manage_panel/<?=$row_text['thumb'];?>" alt="<?=$row_text['title'];?>"> <a href="footer_text_prev.php?text_cat=<?= $row_text[cat_id]; ?>&id=<?=$row_text['id'];?>" class="hover-posts"> <span> <i class="fa fa-book"> </i>More about <?=$row_text['title'];?> </span> </a> </div> </figurecaption> <div class="post-des" style="margin-bottom: -1px;line-height:1.5em;height:1.5em;overflow:hidden;"> <h6> <a href="footer_text_prev.php?text_cat=<?= $row_text[cat_id]; ?>&id=<?=$row_text['id'];?>"> <?=$row_text['title'];?> </a> </h6> </div> </figurecaption> </figure> </div> </div> <?php } ?> </div> <div align="center"> <?php echo $paginate?> </div> </div> </div> </div> <!-- End Find Guru --> <!-- Find Dham --> <!-- End Find Dham --> <!-- End Find Singer --> </div> </div> <!--**************************************** Right column Start ********************************--> <?php include("right_side_bar.php"); ?> <!-- end sidebar --> </div> </section> <!-- End ad Section --> <!-- Footer Section --> <?php include("footer.php"); ?> <!-- End Footer Section --> </div> <!--end off canvas content--> </div> <!--end off canvas wrapper inner--> </div> <!--end off canvas wrapper--> <!-- script files --> <script src="<?=$base_url;?>bower_components/jquery/dist/jquery.js"> </script> <script src="<?=$base_url;?>bower_components/foundation-sites/dist/foundation.js"> </script> <script src="<?=$base_url;?>js/app.js"> </script> <!-- ********************** For Tab ******************** --> <script src="https://code.jquery.com/jquery-1.10.2.js"> </script> <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"> </script> <script> $(function() { $( "#tabs" ).tabs(); } ); $(function() { $( "#tabs_right1" ).tabs(); } ); $(function() { $( "#tabs_right2" ).tabs(); } ); $(function() { $( "#tabs_right3" ).tabs(); } ); </script> <!-- ********************** For Tab end ******************** --> <link rel="stylesheet" href="<?=$base_url;?>css/pace.css"> <script src="<?=$base_url;?>js/pace.min.js"> </script> </body> </html>
Copyright © 2018 - Powered By CytoXploit