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 :  D:/laragon/www/sop2/application/views/approve/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/laragon/www/sop2/application/views/approve/scaner.php
<!-- Begin Page Content -->
<script src="<?= base_url('assets/'); ?>vendor/qrcode/html5-qrcode.min.js"></script>
<style>
  .result{
    background-color: green;
    color:#fff;
    padding:20px;
  }
  .row{
    display:flex;
  }
</style>

<div class="container-fluid">

    <!-- Page Heading -->
    <h1 class="h3 mb-4 text-gray-800"><?= $title; ?></h1>

    <!-- Page Heading 2-->
    
    <h5 class="mb-4 text-gray-800 mt-1"><span class="badge badge-info">For : <?= $user['name']; ?></span></h5>
    <form method="" action="<?php  echo base_url(); ?>approve/index">
         <button id="submit" type="submit" class="btn btn-success mb-2​​​​​ mt-2"><i class="fa fa-home" ></i> Back</button>
    </form>
    <hr>
    <?php 
    $stepsop_ori = $sop['stepsop'];
    $stepsop = $sop['stepsop']-1; 
    ?>  
    <div class="card">
      <div class="card-header">Jobdesk : <?= $stepsop_ori; ?></div>
      <div class="card-body"><b><?= $sop['job_name']; ?></b><br><?= $sop['kegiatan'];?></div>
    </div>
    <hr>

    <?= form_error('action', '<div class="alert alert-danger" role="alert">', '</div>'); ?>

    <?= $this->session->flashdata('message'); ?>

    <div id="page-wrapper">
      <div class="row">
          <div class="col-lg-12">
          </div>
      </div>

      <center>
      <div class="row">
          <div class="col-lg-12">
            <div class="col">
              <div style="width:500px;" id="reader"></div>
            </div>
            <div class="col" style="padding:30px;">
              <h4>SCAN RESULT</h4>
              <div id="result" class="mt-3">.</div>
              <div id="description" class="mt-3"></div>
              <div id="status" class="mt-3"></div>
            </div>
          </div>
      </div>
      </center>
    </div>   
            

</div>
</div>

<script type="text/javascript">
function onScanSuccess(qrCodeMessage) {
    document.getElementById('result').innerHTML = '<span class="result">'+qrCodeMessage+'</span>';
    var $res = qrCodeMessage;
    let text = qrCodeMessage;
    const myArray = text.split("-");
    let text2 = myArray[0];
    let myArray2 = text2.replaceAll("0","");
    document.getElementById("description").innerHTML = myArray2; 
    
    var $hasil_scan = myArray2;
    
    let msg = "You want to procces?\nEither OK or Cancel.";
    if (confirm(msg) == true) {
      window.location.href = "<?= site_url('approve/cek_scan/'); ?>"+$hasil_scan
      //document.getElementById("status").innerHTML = "SUCCESS"; 
    }
    
}

function onScanError(errorMessage) {
  //handle scan error
}

var html5QrcodeScanner = new Html5QrcodeScanner(
    "reader", { fps: 10, qrbox: 250 });
html5QrcodeScanner.render(onScanSuccess, onScanError);

</script>

<script type="text/javascript">
  function readQR() {
    var selectQR = document.getElementById('result').value;
    alert(selectQR);
  }  
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit