Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/thread-self/root/home/rizant5/www/admin/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/thread-self/root/home/rizant5/www/admin/blog-comment.php

<?php 
require_once("../config.php");
require_once("function-file.php");
require_once("function-menu.php");
cookiecheck();
if((!empty($_GET['action']))&&($_GET['action']=='delete')){
	$commentid=$_GET['commentid'];
	$conn->exec("delete from blog_comment where commentid='$commentid'");
	header("location:blog-comment.php");
}
if((!empty($_GET['action']))&&($_GET['action']=='approve')){
	$commentid=$_GET['commentid'];
	$conn->exec("Update blog_comment set status='1' where commentid='$commentid'");
	header("location:blog-comment.php");
}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Blog Comments</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php  cssfile();?>
    <style>iframe{width: 100% !Important;}.timeline>li>.timeline-item{margin-left:0px;margin-right:0;}</style>
  </head>
  <body class="hold-transition skin-blue layout-top-nav">
    <!-- Site wrapper -->
    <div class="wrapper">
<?php headermenu();?>
      <!-- =============================================== -->
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <!-- Main content -->
        <section class="content">
          <!-- Default box -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">Blog Comments</h3>
            </div>
          </div><!-- /.box -->
          <ul class="timeline">
           <?php $db=$conn->prepare("select * from blog_comment a left join blogs b on a.blog_id=b.blog_id where a.status='0' order by postdate DESC");
				$db->execute();$results=$db->fetchall();
				foreach($results as $rows){?>
                <!-- timeline item -->
                <li>
                  <i class="fa fa-envelope bg-blue"></i>
                  <div class="timeline-item">
                    <span class="time "><?php echo date('d M. Y',strtotime($rows['postdate']));?> - <i class="fa fa-clock-o"></i>  <?php echo date('h:i A',strtotime($rows['postdate']));?></span>
                    <h3 class="timeline-header"><?php echo $rows['name']." -($rows[email])";?></h3>
                    <div class="timeline-body">
                      <?php echo $rows['message'];?>
                    </div>
                    <div class="timeline-footer">
                  <a href='blog-comment.php?action=approve&commentid=<?php echo $rows['commentid'];?>' onclick="return confirm('Are you sure you want to Approve?')" class="btn btn-warning btn-xs">Approve?</a>&nbsp;&nbsp;
                      <a href='blog-comment.php?action=delete&commentid=<?php echo $rows['commentid'];?>' onclick="return confirm('Are you sure you want to delete?')" class="btn btn-danger btn-xs">Delete</a>&nbsp;&nbsp;
                      <a href="blog-read.php?blog_id=<?php echo $rows['blog_id'];?>&commentid=<?php echo $rows['commentid'];?>#answer" class="btn btn-primary btn-xs">Read more & Answer</a
                    </div>
                  </div>
               </li>
               <?php }?>
        </ul>          
        </section><!-- /.content -->
      </div></div><!-- /.content-wrapper -->
      <?php footer();?>
    </div><!-- ./wrapper -->
   <?php jsfile();ratenum();?>
  </body>
</html>

Zerion Mini Shell 1.0