[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: single-room-mate.php
<?php include("header.php"); $tenantp=$_REQUEST['pre']; ?> <!-- // Header include --> <!-- Inner-banner --> <!-- <div class="inner-banner"> <img src="images/inner-banner-3.png"> <div class="container"> <h1>Looking for Flatmate</h1> </div> </div> --> <?php $pref=explode(":",$tenantp); $stmt1=$show->readwithdata('apartment','apartment_id',$_REQUEST['apt_id']); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ $amn=explode(':',$row['amenities']); $near=explode(':',$row['nearby_amenity']); $tenant_profile=explode(':',$row['tenant_profile']); $flatment_profile=explode(':',$row['flatment_profile']); $result = array_intersect($flatment_profile, $pref); //print_r($result); $co=count($result);//echo $co; ?> <!-- Single Property Block --> <div class="single-property"> <div class="container"> <div class="single-property-box"> <div class="single-property-profile"> <div id="profile-slider" class="owl-carousel"> <?php if($row['image1']!=""){?> <div class="item"> <div class="gallery-box"> <a href="<?=$pic_img?>/<?=$row['image1']?>" data-lightbox="example-set" data-title=""> <img src="<?=$pic_img?>/<?=$row['image1']?>" class="pho-gall"/> </a> </div> </div> <?php } ?> <?php if($row['image2']!=""){?> <div class="item"> <div class="gallery-box"> <a href="<?=$pic_img?>/<?=$row['image2']?>" data-lightbox="example-set" data-title=""> <img src="<?=$pic_img?>/<?=$row['image2']?>" class="pho-gall"/> </a> </div> </div> <?php } ?> <?php if($row['image3']!=""){?> <div class="item"> <div class="gallery-box"> <a href="<?=$pic_img?>/<?=$row['image3']?>" data-lightbox="example-set" data-title=""> <img src="<?=$pic_img?>/<?=$row['image3']?>" class="pho-gall"/> </a> </div> </div> <?php } ?> <?php if($row['image4']!=""){?> <div class="item"> <div class="gallery-box"> <a href="<?=$pic_img?>/<?=$row['image4']?>" data-lightbox="example-set" data-title=""> <img src="<?=$pic_img?>/<?=$row['image4']?>" class="pho-gall"/> </a> </div> </div> <?php } ?> <?php if($row['image5']!=""){?> <div class="item"> <div class="gallery-box"> <a href="<?=$pic_img?>/<?=$row['image5']?>" data-lightbox="example-set" data-title=""> <img src="<?=$pic_img?>/<?=$row['image5']?>" class="pho-gall"/> </a> </div> </div> <?php } ?> </div> </div> <div class="avater-profile-block"> <div class="single-property-avatar"> <img src="images/single-page-profile-2.png"> </div> <div class="single-property-avatar-name"> <?php if($co==1){ ?> <h5>Compatibility Score : <span>20 %</span></h5> <?php }else if($co==2){?> <h5>Compatibility Score : <span>40 %</span></h5> <?php }else if($co==3){?> <h5>Compatibility Score : <span>60 %</span></h5> <?php }else if($co==4){?> <h5>Compatibility Score : <span>80 %</span></h5> <?php }else{ ?> <h5>Compatibility Score : <span>100 %</span></h5> <?php } ?> <div class="avatar-details"> <ul> <li><b><?=$row['name']?></b></li> <li class="ajay-type"><i class="fa-solid fa-mars"></i><?=$row['gender']?></li> <li><i class="fa-solid fa-phone"></i><a href="tel:<?=$row['phone']?>"><u><?=$row['phone']?></u></a></li> </ul> </div> <ul> <li><a href="chat.php?id=<?=$row['apartment_id']?>&chat_id1=<?=$_SESSION['user_id']?>"><i class="fa-solid fa-message"></i>Message Now</a></li> </ul> </div> </div> <div class="avatar-preferences-up"> <h4>Matched Preferences</h4> <ul> <?php $sr1='flatmate_category'; $stmt1 =$show->readAll_clause($sr1,'order by id asc'); $num1 = $stmt1->rowCount(); $count=1; while ($row1 = $stmt1->fetch(PDO::FETCH_ASSOC)){ extract($row1); if (in_array($row1['amenity'], $result)) { //echo "ok"; ?> <li><img src="<?=$pic_img?>/<?=$row1['image']?>"><?=$row1['amenity']?></li> <?php } } ?> </ul> </div> <div class="properties-description"> <h4>Properties Description </h4> <?=htmlspecialchars_decode($row['description'])?> </div> <div class="apartment-details"> <h4>Property Details</h4> <ul> <li><span>Property Type</span><i class="fa-solid fa-building"></i> <?=$row['property_type']?></li> <li><span>Approx Rent</span><b>₹</b> <?=$row['rent']?></li> <li><span>Furnishing</span><?=$row['furnishing']?></li> <li><span>Looking For</span><i class="fa-solid fa-person"></i>Flatmate</li> <li><span>Bedrooms</span><i class="fa-solid fa-bed"></i><?=$row['total_bedroom']?></li> <li><span>Bathrooms</span><i class="fa-solid fa-bath"></i><?=$row['total_bathroom']?></li> </ul> </div> <div class="avatar-preferences"> <h4>Amenities</h4> <ul> <?php $sr1='amenities'; $amen=array(); $st=$show->readwithdata_clause('apartment_amenity','apart_id',$_REQUEST['apt_id'],'order by id asc'); while ($row1 = $st->fetch(PDO::FETCH_ASSOC)){ ?> <li><img src="<?=$pic_img?>/<?=$row1['img']?>"> <?=$row1['amenity']?></li> <?php } ?> </ul> </div> <div class="avatar-preferences"> <h4>Nearby Amenities</h4> <ul> <?php $st=$show->readwithdata_clause('apartment_nearby','apart_id',$_REQUEST['apt_id'],'order by id asc'); while ($row1 = $st->fetch(PDO::FETCH_ASSOC)){ ?> <li><img src="<?=$pic_img?>/<?=$row1['img']?>"> <?=$row1['amenity']?></li> <?php } ?> </ul> </div> <div class="avatar-preferences"> <h4>Preferred Flatmate Preferences</h4> <ul> <?php $st=$show->readwithdata_clause('apartment_flatmate','apart_id',$_REQUEST['apt_id'],'order by id asc'); while ($row1 = $st->fetch(PDO::FETCH_ASSOC)){ ?> <li><img src="<?=$pic_img?>/<?=$row1['img']?>"> <?=$row1['amenity']?></li> <?php } ?> </ul> </div> </div> </div> </div> <?php } }?> <style> .flex-control-thumbs li { width: 25%; float: left; margin: 0 auto; text-align: center; border: 1px solid #cccccc4f; } .flex-control-thumbs img { width: 100%; display: block; opacity: .7; cursor: pointer; margin: 0 auto; } img.img-responsive_1{ width: 100%; height: 300px;} </style> <!-- Footer include --> <?php include("footer.php"); ?> <!-- // Footer 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.7 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