Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /home/matalashes/.trash/app.bak.15/Views/admin/layout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/matalashes/.trash/app.bak.15/Views/admin/layout/swalscript.php
<script type="text/javascript">
    <?php
    if($error == "true"){
    if(!$redirect){
    ?>
    Swal.fire({
        icon: 'error',
        title: 'Oops...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        confirmButtonColor: '#3E9CCA',
        text: '<?php echo $message?>'
    });
    <?php
    }else{
    ?>
    Swal.fire({
        icon: 'error',
        title: 'Oops...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        confirmButtonColor: '#3E9CCA',
        text: '<?php echo $message?>'
    }).then(function () {
        window.location = "<?= $base_controller?>";
    });
    <?php
    }
    }
    ?>
    <?php
    if($success == "true"){
    ?>
    Swal.fire({
        icon: 'success',
        title: 'Great!',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        confirmButtonColor: '#3E9CCA',
        text: '<?php echo $message?>'
    }).then(function () {
        <?php
        if($logout == 'true'){
        ?>
        window.location = "<?= site_url('logoutadmin')?>";
        <?php
        }else{
        ?>
        window.location = "<?= $base_controller?>";
        <?php
        }
        ?>
    });
    <?php
    }else{
    if($warning == "true"){
    ?>
    Swal.fire({
        icon: 'warning',
        title: 'Important!',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        confirmButtonColor: '#3E9CCA',
        text: '<?php echo $message?>'
    }).then(function () {
        <?php
        if($logout == 'true'){
        ?>
        window.location = "<?= site_url('logoutadmin')?>";
        <?php
        }else{
        ?>
        window.location = "<?= $base_controller?>";
        <?php
        }
        ?>
    });
    <?php
    }
    }
    ?>
    <?php
    if($state_error_uploaddata == "true"){
    ?>
    Swal.fire({
        icon: 'error',
        title: 'Oops...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        confirmButtonColor: '#3E9CCA',
        text: '<?php echo $message?>'
    }).then(function () {
        window.location = "<?= $base_controller?>";
    });
    <?php
    }
    ?>
    <?php
    if($prompt == "true"){
    ?>
    Swal.fire({
        icon: 'warning',
        title: 'Konfirmasi...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        showCancelButton: true,
        confirmButtonColor: '#3E9CCA',
        cancelButtonColor: '#d33',
        text: '<?php echo $message?>'
    }).then((result) => {
        if (result.value) {
            window.location = "<?= $base_controller?>";
        } else {
            return false;
        }
    });
    <?php
    }
    ?>
    $(".delete-action").click(function (e) {
        e.preventDefault();
        var href = $(this).attr('href');
        Swal.fire({
            title: 'Are you sure?',
            text: "You won't be able to revert this!",
            icon: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3E9CCA',
            cancelButtonColor: '#d33',
            confirmButtonText: 'Yes, delete it!'
        }).then((result) => {
            if (result.value) {
                window.location = href;
            } else {
                return false;
            }
        });
    });
</script>

haha - 2025