[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.php
<?php include("header.php");$show=new Oops($db); ?> <!-- // Header include --> <!-- Banner BOOSTREP Slider --> <div id="myCarousel" class="carousel slide" data-ride="carousel" style="margin: 0;"> <!-- Indicators --> <ol class="carousel-indicators"> <?php $count=0; $stmt=$show->readAll('banner'); while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ ?> <li data-target="#myCarousel" data-slide-to="<?=$count?>" class=""></li> <?php ++$count;} ?> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <?php $stmt=$show->readAll('banner'); while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ ?> <div class="item <?=$row['active']?>"> <a href="<?=$row['url']?>"><img src="<?=$pic_img?>/<?=$row['banner']?>" style="width: 100%; height: auto;" alt="e-commerce Banner" class="mob-view-r"/></a> </div> <?php } ?> </div> </div> </div> <!-- // Banner BOOSTREP Slider --> <!-- product BanneR --> <div class="product-bann"> <?php $stmt=$show->readAll('custom_banner'); while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $img1=$row['custom_image1']; $img2=$row['custom_image2']; $url1=$row['url1']; $url2=$row['url2']; $main_title=$row['main_title']; $first_title=$row['first_title']; $second_title=$row['second_title']; } ?> <h3><?=$main_title?></h3> <div class="container"> <div class="row"> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="img-bl"> <img src="<?=$pic_img?>/<?=$img1?>" alt="Notebook" style="width:100%;"> <div class="img-top"> <a href="<?=$url1?>" title="All Product"> <h4><?=$first_title?></h4> </a> </div> </div> </div> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="img-bl"> <img src="<?=$pic_img?>/<?=$img2?>" alt="Notebook" style="width:100%;"> <div class="img-top"> <a href="<?=$url2?>" title="All Product"> <h4><?=$second_title?></h4> </a> </div> </div> </div> </div> </div> </div> <!-- //product --> <!-- Head product --> <div class="product-head"> <div class="row"> <div id="video2-demo" class="owl-carousel"> <?php $stmt1=$show->readwithdata('home_slider','category','FIRST'); while($row1 = $stmt1->fetch(PDO::FETCH_ASSOC)){ ?> <div class="item"> <div class="hea-prod"> <a href="<?=$row1['url']?>"><img src="<?=$pic_img?>/<?=$row1['image']?>" alt="" /></a> </div> </div> <?php } ?> </div> </div> </div> <!-- // Head product --> <?php $stmt1 ="select show_home,main_category from main_category where show_home='YES'"; $st1=$con->prepare($stmt1); $st1->execute(); $num1 = $st1->rowCount(); while ($row = $st1->fetch(PDO::FETCH_ASSOC)){ $main[]=$row['main_category']; } ?> <!-- product 2 --> <div class="product-on"> <!-- <img src="images/download.png" class="img-head" alt=""> --> <div class="spec" data-aos="fade-down" style="transition:all 1100ms ease-in-out"> <h3><?=$main[0]?> </h3> <div class="ser-t"> <b></b> <span><i></i></span> <b class="line"></b> </div> </div> <div class="row"> <div id="video3-demo" class="owl-carousel"> <?php $count=1; $sr='product'; $st="select * from product inner join product_img on product.product_id=product_img.product_id where product.main_category='".$main[0]."' group by product.product_id order by product.product_id desc "; $stmt=$con->prepare($st); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $a=$row['size']; $size=array(); if($a==1){ $read1=$show->readwithdata('product_size','product_id',$row['product_id']); while($row_read=$read1->fetch(PDO::FETCH_ASSOC)){ $size[]=$row_read['size']; } $avl_size=implode(',',$size); }else{ $avl_size=''; } ?> <form method="post" class="cart_single" action="index.php?product_id=<?=$row['product_id'];?>&action=add&code=<?=$row['product_id']?>&price=<?=$row['discounted_price']?>"> <div class="item"> <div class="hover14 column"> <div class="agile_top_brand_left_grid"> <div class="agile_top_brand_left_grid1"> <figure> <div class="snipcart-item block"> <h6 class="off"><?=$row['discount']?>% off</h6> <div class="snipcart-thumb"> <a href="single.php?product_id=<?=$row['product_id']?>&price=<?=$row['price']?>"> <img src="<?=$pic_img?>/<?=$row['image']?>" width="100%" height="200"/> </a> <p><?=$row['name']?></p> <h4><?=$row['category']?></h4> <h4>Rs :<?=$row['discounted_price']?> <span>Rs : <?=$row['price']?></span></h4> <?php if($a==1){?> <h5>Size :<?=$avl_size?></h5><?php } ?> </div> <div class="snipcart-details top_brand_home_details"> <fieldset> <input type="hidden" name="img" value="<?=$row['image']?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="product_name" value="<?=$row['name']?>"> <input type="hidden" name="price" value="<?=$row['discounted_price']?>"> <input type="hidden" name="code" value="<?=$row['product_id']?>"> <a href="single.php?product_id=<?=$row['product_id']?>&price=<?=$row['price']?>"class="button">Buy Now</a> </fieldset> </div> </div> </figure> </div> </div> </div> </div> </form> <?php } }?> </div> </div> </div> <!-- //product 2 --> <!-- Head product ABOUT --> <div class="product-about"> <div class="row"> <?php $stmt11=$show->readAll('under_mens'); while($row = $stmt11->fetch(PDO::FETCH_ASSOC)){ $img1=$row['custom_image1']; $img2=$row['custom_image2']; $url1=$row['url1']; $url2=$row['url2']; } ?> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="about-im" data-aos="flip-left" style="transition:all 1500ms ease-in-out"> <a href="<?=$url1?>"><img src="<?=$pic_img?>/<?=$img1?>" class="about-s" alt=""></a> </div> </div> <div class="col-md-6 col-sm-6 col-xs-12" style="padding: 0;"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="about-imm" data-aos="fade-left" style="transition:all 1500ms ease-in-out"> <a href="<?=$url2?>"> <img src="<?=$pic_img?>/<?=$img2?>" class="about-ssss" alt=""></a> <div class="about-us" data-aos="fade-right" data-aos-offset="300" data-aos-easing="ease-in-sine"> <h4>Grow your Business width </h4> <p>Our Unfild Platform</p> </div> </div> </div> <div class="col-md-12 col-sm-12 col-xs-12"> <div id="video4-demo" class="owl-carousel"> <?php $stmt12=$show->readwithdata('home_slider','category','SECOND'); while($row11 = $stmt12->fetch(PDO::FETCH_ASSOC)){ ?> <div class="item"> <div class="about-imm"> <a href="<?=$row11['url']?>"><img src="<?=$pic_img?>/<?=$row11['image']?>" class="about-s" alt=""></a> </div> </div> <?php } ?> </div> </div> </div> </div> </div> <!-- // Head product ABOUT --> <!-- product 3 --> <div class="product-on"> <!-- <img src="images/download.png" class="img-head" alt=""> --> <div class="spec" data-aos="fade-down" style="transition:all 1100ms ease-in-out"> <h3><?=$main[1]?> </h3> <div class="ser-t"> <b></b> <span><i></i></span> <b class="line"></b> </div> </div> <div class="row"> <div id="video5-demo" class="owl-carousel"> <?php $count=1; $sr='product'; $st="select * from product inner join product_img on product.product_id=product_img.product_id where product.main_category='".$main[1]."' group by product.product_id order by product.product_id desc "; $stmt=$con->prepare($st); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); ?> <form method="post" class="cart_single" action="index.php?product_id=<?=$row['product_id'];?>&action=add&code=<?=$row['product_id']?>&price=<?=$row['price']?>"> <div class="item"> <div class="hover14 column"> <div class="agile_top_brand_left_grid"> <div class="agile_top_brand_left_grid1"> <figure> <div class="snipcart-item block"> <h6 class="off"><?=$row['discount']?>% off</h6> <div class="snipcart-thumb"> <a href="single.php?product_id=<?=$row['product_id']?>&price=<?=$row['price']?>"> <img src="<?=$pic_img?>/<?=$row['image']?>" width="100%" height="200"/> </a> <p><?=$row['name']?></p> <h4><?=$row['category']?></h4> <h4>Rs :<?=$row['discounted_price']?> <span>Rs : <?=$row['price']?></span></h4> <h5>Size :<??></h5> </div> <div class="snipcart-details top_brand_home_details"> <fieldset> <input type="hidden" name="img" value="<?=$row['image']?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="product_name" value="<?=$row['name']?>"> <input type="hidden" name="price" value="<?=$row['discounted_price']?>"> <input type="hidden" name="code" value="<?=$row['product_id']?>"> <a href="single.php?product_id=<?=$row['product_id']?>&price=<?=$row['price']?>"class="button">Buy Now</a> </fieldset> </div> </div> </figure> </div> </div> </div> </div> </form> <?php } }?> </div> </div> </div> <!-- //product 3 --> <!-- tending product --> <div class="product-single-tinding"> <div class="row"> <div class="spec aos-init aos-animate" data-aos="fade-down" style="transition:all 1100ms ease-in-out"> <h3>Trending Products </h3> <div class="ser-t"> <b></b> <span><i></i></span> <b class="line"></b> </div> </div> <div id="single-tinding" class="owl-carousel"> <?php $count=1; $sr='product'; $st="select * from product inner join product_img on product.product_id=product_img.product_id where product.trending='Yes' group by product.product_id order by product.product_id desc "; $stmt=$con->prepare($st); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); ?> <form method="post" class="cart_single" action="index.php?product_id=<?=$row['product_id'];?>&action=add&code=<?=$row['product_id']?>&price=<?=$row['price']?>"> <div class="item"> <div class="hover14 column"> <div class="agile_top_brand_left_grid"> <div class="agile_top_brand_left_grid1"> <figure> <div class="snipcart-item block"> <h6 class="off"><?=$row['discount']?>% off</h6> <div class="snipcart-thumb"> <a href="single.php?product_id=<?=$row['product_id']?>&price=<?=$row['price']?>"> <img src="<?=$pic_img?>/<?=$row['image']?>" width="100%" height="200"/> </a> <p><?=$row['name']?></p> <h4><?=$row['category']?></h4> <h4>Rs :<?=$row['discounted_price']?> <span>Rs : <?=$row['price']?></span></h4> <h5>Size :<??></h5> </div> <div class="snipcart-details top_brand_home_details"> <fieldset> <input type="hidden" name="img" value="<?=$row['image']?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="product_name" value="<?=$row['name']?>"> <input type="hidden" name="price" value="<?=$row['discounted_price']?>"> <input type="hidden" name="code" value="<?=$row['product_id']?>"> <a href="single.php?product_id=<?=$row['product_id']?>&price=<?=$row['price']?>"class="button">Buy Now</a> </fieldset> </div> </div> </figure> </div> </div> </div> </div> </form> <?php } }?> </div> </div> </div> <!-- // tending product --> <!-- Header include --> <?php include("footer.php"); ?> <!-- // Header include -->
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.97 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619