Server: | Microsoft-IIS/10.0 |
System: | Windows NT BH-PLESK-WEB3 10.0 build 20348 (Windows Server 2022) AMD64 |
User: | IWPD_8556(lensai) ( 0 ) |
PHP Version: | 8.3.21 |
Python Version: | Python is not available |
Disabled Functions: | , Cron, Curl, Ftp, GCC, Mail, Mysql, PKEXEC, Perl, Python, SendMail, Ssh, Wget, exec, passthru, shell_exec, system |
<?php include_once 'header.php'; ?> <div class="banner"> <div class="wrap"> <!--<h2>Blog</h2><div class="clear"></div>--> </div> </div> <div class="main"> <div class="project-wrapper"> <div class="project"> <div class="blog-left"> <?php $table="blog"; $sql = "SELECT COUNT(*) FROM $table ORDER BY id DESC"; $result = mysqli_query($con, $sql); $r = mysqli_fetch_array($result); $numrows = $r[0]; // number of rows to show per page $rowsperpage = 4; // find out total pages $totalpages = ceil($numrows / $rowsperpage); // get the current page or set a default if (isset($_GET['currentpage']) && is_numeric($_GET['currentpage'])) { // cast var as int $currentpage = (int) $_GET['currentpage']; } else { // default page num $currentpage = 1; } // end if // if current page is greater than total pages... if ($currentpage > $totalpages) { // set current page to last page $currentpage = $totalpages; } // end if // if current page is less than first page... if ($currentpage < 1) { // set current page to first page $currentpage = 1; } // end if // the offset of the list, based on current page $offset = ($currentpage - 1) * $rowsperpage; // get the info from the db $sql = "SELECT * FROM $table ORDER BY id DESC LIMIT $offset, $rowsperpage"; $result = mysqli_query($con, $sql); ?> <?php while ($list = mysqli_fetch_array($result)) { ?> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="blog-img"> <img src="images/blog/<?php echo $list['img'];?>" alt=""/> <div class="blog-desc"> <a href="blogs.php?id=<?php echo $list['id'];?>"><h5><?php echo $list ['title']; ?></h5></a> <p><i class="fa fa-user"></i> <a href="">admin </a> <i class="fa fa-calendar"></i> <a style="color:#957053;"><?php echo date('M-d-Y', strtotime($list['date'])); ?></a></p> <hr style="border:1px solid #ccc;"> <div class="blog-description"><?php echo substr($list['description'], 0, 180) .((strlen($list['description']) > 180) ? '...' : ''); ?></div> <div class="clear"></div> <br/> <a class="btn-primary" href="blogs.php?id=<?php echo $list['id'];?>">Read More</a> </div> </div> </div> <?php } ?> </div> <div class="clear"></div> <ul class="dc_pagination dc_paginationA dc_paginationA06"> <?php $range = 3; ?> <?php // Preview Page if ($currentpage > 1) { // show << link to go back to page 1 echo " <li><a href='{$_SERVER['PHP_SELF']}?currentpage=1'>Previous</a></li> "; } ?> <?php //Pagination for ($x = ($currentpage - $range); $x < (($currentpage + $range) + 1); $x++) { // if it's a valid page number... if (($x > 0) && ($x <= $totalpages)) { // if we're on current page... if ($x == $currentpage) { // 'highlight' it but don't make a link echo " <li><a class='current'>$x</a></li> "; // if not current page... } else { // make it a link echo " <li><a href='{$_SERVER['PHP_SELF']}?currentpage=$x'>$x</a></li> "; } } else{ echo""; } } ?> <?php //Next Page if ($currentpage != $totalpages) { // get next page $nextpage = $currentpage + 1; // echo forward link for next page echo " <li><a href='{$_SERVER['PHP_SELF']}?currentpage=$nextpage'>Next</a></li> "; } ?> </ul> </div> <div class="clear"></div> </div> <?php include_once 'footer.php'; ?>
Name | Size | Type | Permissions | Options |
---|---|---|---|---|
admin | DIR | Directory | drwxrwxrwx | |
B | DIR | Directory | drwxrwxrwx | |
Brochure | DIR | Directory | drwxrwxrwx | |
brochuresfile | DIR | Directory | drwxrwxrwx | |
clamdscan20_11_2018 | DIR | Directory | drwxrwxrwx | |
css | DIR | Directory | drwxrwxrwx | |
Data | DIR | Directory | drwxrwxrwx | |
fonts | DIR | Directory | drwxrwxrwx | |
images | DIR | Directory | drwxrwxrwx | |
js | DIR | Directory | drwxrwxrwx | |
new | DIR | Directory | drwxrwxrwx | |
s | DIR | Directory | drwxrwxrwx | |
wordpress | DIR | Directory | drwxrwxrwx | |
.htaccess | 0.118 KB | File | -rw-rw-rw- | |
.user.ini | 0.127 KB | File | -rw-rw-rw- | |
active.js | 0.514 KB | File | -rw-rw-rw- | |
admin.php | 0.043 KB | File | -rw-rw-rw- | |
blog.php | 3.531 KB | File | -rw-rw-rw- | |
blogs.php | 1.546 KB | File | -rw-rw-rw- | |
brochures.php | 1.764 KB | File | -rw-rw-rw- | |
brochures1.php | 7.628 KB | File | -rw-rw-rw- | |
clamdscanReport10_4_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_10_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_11_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_12_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_1_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_2_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_4_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_5_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_5_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_6_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_6_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_7_2017.log | 0.327 KB | File | -rw-rw-rw- | |
clamdscanReport12_7_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_8_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_8_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport12_9_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport15_3_2017.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport20_11_2018.log | 0.325 KB | File | -rw-rw-rw- | |
clamdscanReport25_4_2017.log | 0.325 KB | File | -rw-rw-rw- | |
contact.php | 3.646 KB | File | -rw-rw-rw- | |
controller.php | 2.763 KB | File | -rw-rw-rw- | |
counter.txt | 0.003 KB | File | -rw-rw-rw- | |
demo.php | 19.660 KB | File | -rw-rw-rw- | |
error_log | 266.786 KB | File | -rw-rw-rw- | |
footer.php | 1.407 KB | File | -rw-rw-rw- | |
header.php | 5.114 KB | File | -rw-rw-rw- | |
header1.php | 5.216 KB | File | -rw-rw-rw- | |
img.php | 6.316 KB | File | -rw-rw-rw- | |
index.php | 4.470 KB | File | -rw-rw-rw- | |
info.php | 0.021 KB | File | -rw-rw-rw- | |
mail.php | 1.813 KB | File | -rw-rw-rw- | |
paper.php | 2.691 KB | File | -rw-rw-rw- | |
product.php | 1.248 KB | File | -rw-rw-rw- | |
product1.php | 13.077 KB | File | -rw-rw-rw- | |
product_s.php | 13.210 KB | File | -rw-rw-rw- | |
producticon.php | 5.438 KB | File | -rw-rw-rw- | |
project - Copy.php | 1.305 KB | File | -rw-rw-rw- | |
project.php | 2.915 KB | File | -rw-rw-rw- | |
project1.php | 1.020 KB | File | -rw-rw-rw- | |
temp.php | 2.407 KB | File | -rw-rw-rw- | |
video.php | 3.145 KB | File | -rw-rw-rw- | |
web.config | 0.249 KB | File | -rw-rw-rw- | |
web.config_bak | 1.730 KB | File | -rw-rw-rw- |