| .. | |||||
| .htaccess | |||||
| contact.php | |||||
| fetch_pages.php | |||||
| foot.php | |||||
| getDataStat.php | |||||
| head.php | |||||
| importJS.php | |||||
| index.html | |||||
| nav.php | |||||
| sidebar.php | |||||
| simple_html_dom.php | |||||
| visitor_log.php |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.108 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/home/part/ |
Upload File : |
<?php
if((!isset($_POST["page"])) or (!isset($_POST["tipe"]))){
header('location:'.PATH.'404/');
exit;
}else{
include("../admin/part/db.php");
include("simple_html_dom.php");
$page_number = filter_var($_POST["page"], FILTER_SANITIZE_NUMBER_INT, FILTER_FLAG_STRIP_HIGH);
if(!is_numeric($page_number)){
header('location:'.PATH.'404/');
exit;
}
$item_per_page=5;
$position = (($page_number-1) * $item_per_page);
$hasilCari=getCari($_POST['cari'],$_POST['tipe'],$position, $item_per_page);
foreach($hasilCari as $b){
$tgl=explode(' ',$b['post_date']);
$dom = new domDocument;
$dom->loadHTML($b['post_content']);
$dom->preserveWhiteSpace = false;
$p = $dom->getElementsByTagName('p');
$nar=array();
foreach($p as $n){ $nar[] = $n->nodeValue;}
if(!empty($nar)){
$narasi=ambilNarasi($nar[0],300);
}else{$narasi='';}
?>
<div class="col col_12_of_12">
<!-- Layout post 1 -->
<div class="layout_post_2 clearfix">
<div class="item_thumb">
<div class="thumb_icon">
<a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>" jQuery><i class="fa fa-copy"></i></a>
</div>
<div class="thumb_hover">
<a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>"><img src="<?php echo PATH.'assets/post/'.$b['post_image']; ?>" onerror="this.onerror=null;this.src='<?php echo PATH.'assets/post/no_image_available.jpeg'; ?>.';" class="visible animated"></a>
</div>
<div class="thumb_meta">
<span class="category" jQuery><a href="#"><?php echo $b['post_type']; ?></a></span>
<span class="comments"><a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>"><?php echo tglIndo($tgl[0]); ?></span>
</div>
</div>
<div class="item_content">
<h4><a href="<?php echo buatLink($b['post_type'],$b['post_ID'],$b['post_title']); ?>"><?php echo $b['post_title']; ?></a></h4>
<p style="text-align:justify"><?php echo $narasi; ?></p>
</div>
</div><!-- End Layout post 1 -->
<hr>
</div>
<?php
}
}
?>| .. | |||||
| .htaccess | |||||
| contact.php | |||||
| fetch_pages.php | |||||
| foot.php | |||||
| getDataStat.php | |||||
| head.php | |||||
| importJS.php | |||||
| index.html | |||||
| nav.php | |||||
| sidebar.php | |||||
| simple_html_dom.php | |||||
| visitor_log.php |