| .. | |||||
| assets | |||||
| page | |||||
| .htaccess | |||||
| getData.php | |||||
| getDataPMA.php | |||||
| getDataPMDN.php | |||||
| getPhoto.php | |||||
| getVideo.php | |||||
| index.php | |||||
| singel_post.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/promosi/ |
Upload File : |
<?php
if (isset($_SERVER['HTTP_REFERER']) && filter_var($_SERVER['HTTP_REFERER'], FILTER_VALIDATE_URL)) {
$refererHost = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
$currentHost = $_SERVER['HTTP_HOST'];
if (strpos($refererHost, $currentHost) === false) {
header("HTTP/1.1 403 Forbidden");
exit('Access Denied');
}
} else {
header("HTTP/1.1 403 Forbidden");
exit('Direct Access Not Allowed');
}
header('Content-Type: application/json');
$data=array();
if(isset($_REQUEST['tipe'])){
$dirname = "../home/assets/gallery/photo/GALLERY UMKM/";
}else{
$dirname = "../home/assets/gallery/photo/GALLERY KEGIATAN/";
}
$images = glob($dirname."*{jpeg,JPG,jpg}", GLOB_BRACE);
sort($images, create_function('$a,$b', 'return filemtime($a) - filemtime($b);'));
$x=0;
foreach($images as $image) {
$ext = pathinfo($image, PATHINFO_EXTENSION);
$nama = basename($image,".".$ext);
$data[$x]['src']=str_replace('..','https://dpmptsp.pekanbaru.go.id/home/',$image);
$data[$x]['thumb']=str_replace('..','https://dpmptsp.pekanbaru.go.id/home/',$image);
$data[$x]['subHtml']=$nama;
$x++;
}
echo json_encode($data);
exit;
?>
| .. | |||||
| assets | |||||
| page | |||||
| .htaccess | |||||
| getData.php | |||||
| getDataPMA.php | |||||
| getDataPMDN.php | |||||
| getPhoto.php | |||||
| getVideo.php | |||||
| index.php | |||||
| singel_post.php |