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.2/Views/admin/layout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/matalashes/.trash/app.bak.2/Views/admin/layout/admin.php
<!DOCTYPE html>
<html lang="en">
<!--begin::Head-->
<head>
    <base href="<?= base_url() ?>">
    <title><?= $page_title . ' - ' . $core_profile->asp_name ?></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta property="og:locale" content="en_US"/>
    <link rel="shortcut icon" href="assets/theme/admin/images/favicon.ico"/>
    <!--begin::Fonts-->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
    <!--end::Fonts-->
    <!--begin::Global Stylesheets Bundle(used by all pages)-->
    <link href="assets/theme/admin/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css"/>
    <link href="assets/theme/admin/dashboard/css/style.bundle.css" rel="stylesheet" type="text/css"/>
    <link href="assets/theme/admin/dashboard/css/generale.css" rel="stylesheet" type="text/css"/>
    <!--end::Global Stylesheets Bundle-->

</head>
<!--end::Head-->
<!--begin::Body-->
<body id="kt_body"
      class="header-fixed header-tablet-and-mobile-fixed toolbar-enabled toolbar-fixed aside-enabled aside-fixed"
      style="--kt-toolbar-height:55px;--kt-toolbar-height-tablet-and-mobile:55px" data-kt-aside-minimize="on">
<!--begin::Main-->
<!--begin::Root-->
<div class="d-flex flex-column flex-root">
    <!--begin::Page-->
    <div class="page d-flex flex-row flex-column-fluid">
        <?= $this->include('admin/pages/common/left_sidebar') ?>
        <!--begin::Wrapper-->
        <div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
            <?= $this->include('admin/pages/common/top_navigation') ?>
            <?= $this->renderSection('content') ?>
            <?= $this->include('admin/pages/common/footer') ?>
        </div>
        <!--end::Wrapper-->
    </div>
    <!--end::Page-->
    <!--begin::Scrolltop-->
    <div id="kt_scrolltop" class="scrolltop" data-kt-scrolltop="true">
        <!--begin::Svg Icon | path: icons/duotune/arrows/arr066.svg-->
        <span class="svg-icon">
				<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
					<rect opacity="0.5" x="13" y="6" width="13" height="2" rx="1" transform="rotate(90 13 6)"
                          fill="currentColor"/>
					<path d="M12.5657 8.56569L16.75 12.75C17.1642 13.1642 17.8358 13.1642 18.25 12.75C18.6642 12.3358 18.6642 11.6642 18.25 11.25L12.7071 5.70711C12.3166 5.31658 11.6834 5.31658 11.2929 5.70711L5.75 11.25C5.33579 11.6642 5.33579 12.3358 5.75 12.75C6.16421 13.1642 6.83579 13.1642 7.25 12.75L11.4343 8.56569C11.7467 8.25327 12.2533 8.25327 12.5657 8.56569Z"
                          fill="currentColor"/>
				</svg>
			</span>
        <!--end::Svg Icon-->
    </div>
    <!--end::Scrolltop-->
    <!--begin::Global Javascript Bundle(used by all pages)-->
    <script src="assets/theme/admin/plugins/global/plugins.bundle.js"></script>
    <script src="assets/theme/admin/dashboard/js/scripts.bundle.js"></script>
    <!--end::Global Javascript Bundle-->
</div>
<script type="text/javascript">
    <?php
    if($error == "true"){
    if(!$redirect){
    ?>
    Swal.fire({
        type: 'error',
        title: 'Oops...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        text: '<?php echo $message?>'
    });
    <?php
    }else{
    ?>
    Swal.fire({
        type: 'error',
        title: 'Oops...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        text: '<?php echo $message?>'
    }).then(function () {
        window.location = "<?= $base_controller?>";
    });
    <?php
    }
    }
    ?>
    <?php
    if($success == "true"){
    ?>
    Swal.fire({
        type: 'success',
        title: 'Great!',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        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({
        type: 'warning',
        title: 'Important!',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        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({
        type: 'error',
        title: 'Oops...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        text: '<?php echo $message?>'
    }).then(function () {
        window.location = "<?= $base_controller?>";
    });
    <?php
    }
    ?>
    <?php
    if($prompt == "true"){
    ?>
    Swal.fire({
        type: 'warning',
        title: 'Konfirmasi...',
        allowEnterKey: true,
        allowEscapeKey: true,
        focusConfirm: true,
        showCancelButton: true,
        confirmButtonColor: '#3085d6',
        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!",
            type: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: 'Yes, delete it!'
        }).then((result) => {
            if (result.value) {
                window.location = href;
            } else {
                return false;
            }
        });
    });
    $('#sort-control').change(function () {
        var sort = $(this);
        var order = $("#order-control").val();
        window.location = '<?= site_url(\Config\Services::session()->get('current_uri') . '/sort/')?>' + (sort.val()) + '/' + order;
    });
    $('#order-control').change(function () {
        var order = $(this);
        var sort = $("#sort-control").val();
        window.location = '<?= site_url(\Config\Services::session()->get('current_uri') . '/sort/')?>' + sort + '/' + order.val();
    });

    function setAksesMenu() {
        var uri = '<?= \Config\Services::session()->get('current_uri') ?>';
        var access_menu = '<?= $access_menu ?>';
        var arr = access_menu.split("~");
        var i, j;
        var data;
        var akses = [];
        for (i = 0; i < arr.length; i++) {
            akses = [];
            data = arr[i].split("-");
            for (j = 2; j < data.length; j++) {
                akses.push(parseInt(data[j]));
            }
            var trimmed = data[0].replace(/\s/g, "")
            if (trimmed == uri) {
                console.log(akses);
                if (!akses.includes(1)) {//ADD
                    // console.log('button add hidden');
                    $(".button-add").addClass("hidden");
                }
                if (!akses.includes(2)) {//UPDATE
                    // console.log('button update hidden');
                    $(".button-edit").addClass("hidden");
                }
                if (!akses.includes(3)) {//DELETE
                    // console.log('button delete&trash hidden');
                    $(".button-delete").addClass("hidden");
                    $(".button-trash").addClass("hidden");
                }
                if (!akses.includes(4)) {//EXPORT
                    // console.log('button excel hidden');
                    $(".buttons-excel").addClass("hidden");
                }
                if (!akses.includes(5)) {//PRINT PDF
                    console.log('button pdf hidden');
                    $(".buttons-pdf").addClass("hidden");
                }
                if (!akses.includes(6)) {//READ
                    // console.log('button view hidden');
                    $(".button-view").addClass("hidden");
                }
                break;
            }
        }
    }

    // run code only on desktop
    if ($(window).width() > 768) { 
        var height = $('.box-subs').height();
        var newHeight = height + 45;
        $('#kt_content').css('padding-top', newHeight);
    }
    
    // define top space of box notif
    if($('.box-subs').length > 0){
        $('.box-subs').css({
            'top': '120px',
            'left': '265px',
            'right' : '0'
        });
    }

    // adding padding into each text notif
    var divCount = $('.subs-info').length;
    if (divCount > 1) {
        $('.subs-info').each(function() {
            $(this).addClass('mb-2');
        });
    }

    // clear notification list
    $('#notification-list .notif-action .action-step').click(function() {
        $('.notification-list').empty();
        setTimeout(function() {
            $('#notification-list').removeClass('show');
        }, 2000);
    });
</script>
<!--Alert -->
</body>

</html>

haha - 2025