403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /laragon/www/ayongundang/app/Views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /laragon/www/ayongundang/app/Views/admin/pengguna.php

<!-- Container Fluid-->
<div class="container-fluid" id="container-wrapper">
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800"><?= $title; ?></h1>
    </div>

    <div class="row mb-3">


        <!-- Invoice Example -->
        <div class="col-lg-12">
              <div class="card mb-4">
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between bg-primary">
                  <h6 class="m-0 font-weight-bold text-light">Data Pengguna</h6>
                </div>
                <div class="table-responsive p-3">
                  <table class="table align-items-center table-flush" id="dataTable">
                    <thead class="thead-light">
                      <tr>
                        <th>Email</th>
                        <th>Domain</th>
                        <th>Exp</th>
                        <th>Status</th>
                        <th>Aksi</th>
                      </tr>
                    </thead>
                    
                    <tbody>
                    <?php 
                    foreach($join as $row){ 
                    ?>
                      <tr>
                        <td><?= $row->email ?></td>
                        <td><?= $row->domain ?></td>

                        <!-- status Exp -->
                        <?php if($row->statusPembayaran != 2){ ?>

                          <?php 
                    
                          $durasi = '+3 days';
                          $tglDaftar = $row->created_at;
                          $tglExp = strtotime($durasi, strtotime($tglDaftar));
                          $tglExpFormated = date("d-m-Y H:i A",$tglExp);

                          ?>

                          <td><?= $tglExpFormated ?></td>

                        <?php }else{ ?>
                          <td>-</td>
                        <?php } ?>
                        
                        <?php if($row->statusWeb == '1'){ ?>    
                        <td><span class="badge badge-success">Aktif</span></td>
                        <?php }else{ ?>    
                        <td><span class="badge badge-danger">Tidak Aktif</span></td>
                        <?php } ?>

                        <td>
                            <form method="post" action="<?php echo base_url('admin/edit_pengguna/mempelai'); ?>">
                            <input type="hidden" value="<?= $row->id_user ?>" name="id">
                            <button 
                            class="btn btn-sm btn-primary" type="submit">Edit</button>
                            </form>
                            <button 
                            data-id="<?= $row->id_user?>"
                            data-kunci="<?= $row->kunci?>"
                            class="btn btn-sm btn-danger hapus" data-toggle="modal" data-target="#modalHapus">Hapus</button>
                        </td>
                      </tr>

                    <?php } ?>
                      
                    </tbody>
                  </table>
                </div>
              </div>
        </div>
        <!-- Message From Customer-->
       
    </div>
    <!--Row-->
</div>
<!---Container Fluid-->

<!-- Modal -->
<div class="modal fade" id="modalHapus" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Peringatan</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        Apakah kamu yakin ingin menghapus pengguna ini ?<br>
        <strong>SEMUA DATA PENGGUNA TERMASUK WEBSITE AKAN TERHAPUS!!</strong>
        <input type="hidden" id="iduser" value=""/>
        <input type="hidden" id="kunci" value=""/>
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-sm text-danger" id="hapusBtn">Hapus</button>
        <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Tutup</button>
      </div>
    </div>
  </div>
</div>

<script>
  

    $('.hapus').on('click', function (event) {
        var iduser = $(this).data('id');
        var kunci = $(this).data('kunci');
        $(".modal-body #iduser").val( iduser );
        $(".modal-body #kunci").val( kunci );
        
    });

    $('#hapusBtn').on('click', function(event) {

        var id = $('#iduser').val();
        var kunci = $('#kunci').val();
    
    
        $.ajax({
            url : "<?= base_url('admin/hapus_user') ?>",
            method : "POST",
            data : {id: id, kunci:kunci},
            async : true,
            dataType : 'html',
            success: function($hasil){
               if($hasil == 'sukses'){
                location.reload();
               }
            }
        });
    });

</script>

Youez - 2016 - github.com/yon3zu
LinuXploit