@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
proc
/
self
/
cwd
/
api
/
Path :
Upload File :
New :
File
Dir
//proc/self/cwd/api/info.php
<?php $connect = mysqli_connect("localhost", "admin", "63144f7f62ffb6a71e9bbc8aa5e59a7e046b64d7ed9899f8", "yeni"); $sql = "select DISTINCT wp_c745ascy1l_posts.id, wp_c745ascy1l_posts.post_title, wp_c745ascy1l_posts.post_content, wp_c745ascy1l_posts.post_type, featured_image.guid as post_image, wp_c745ascy1l_posts.post_modified, wp_c745ascy1l_users.display_name from wp_c745ascy1l_posts inner join wp_c745ascy1l_postmeta on wp_c745ascy1l_posts.id = wp_c745ascy1l_postmeta.post_id and wp_c745ascy1l_postmeta.meta_key = '_thumbnail_id' inner join wp_c745ascy1l_posts as featured_image on featured_image.id = wp_c745ascy1l_postmeta.meta_value inner join wp_c745ascy1l_users on wp_c745ascy1l_users.id = wp_c745ascy1l_posts.post_author where wp_c745ascy1l_posts.post_type = 'estate_agent' AND (wp_c745ascy1l_posts.post_status = 'publish' OR wp_c745ascy1l_posts.post_status = 'expired' OR wp_c745ascy1l_posts.post_status = 'private') order by wp_c745ascy1l_posts.post_title asc"; $result = mysqli_query($connect, $sql); $json_array = array(); while($row = mysqli_fetch_assoc($result)) { $json_contact = array(); $sqlcontact = "SELECT * FROM wp_c745ascy1l_postmeta WHERE post_id=(".$row["id"].") ORDER BY meta_id ASC"; $resultcontact = mysqli_query($connect, $sqlcontact); while($rowcpntact = mysqli_fetch_assoc($resultcontact)) { if($rowcpntact["meta_key"]=="first_name"){ $json_contact["first_name"]=$rowcpntact["meta_value"]; } if($rowcpntact["meta_key"]=="last_name"){ $json_contact["last_name"]=$rowcpntact["meta_value"]; } if($rowcpntact["meta_key"]=="agent_email"){ $json_contact["agent_email"]=$rowcpntact["meta_value"]; } if($rowcpntact["meta_key"]=="agent_phone"){ $json_contact["agent_phone"]=$rowcpntact["meta_value"]; } if($rowcpntact["meta_key"]=="agent_mobile"){ $json_contact["agent_mobile"]=$rowcpntact["meta_value"]; } if($rowcpntact["meta_key"]=="agent_skype"){ $json_contact["agent_skype"]=$rowcpntact["meta_value"]; } } $row["contacts"]=$json_contact; $json_array[] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_action_category') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["types"][$row["slug"]] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_category') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["category"][$row["slug"]] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_area') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["area"][$row["slug"]] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_status') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["status"][$row["slug"]] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_features') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["features"][$row["slug"]] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_county_state') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["county"][$row["slug"]] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_city') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["city"][$row["slug"]] = $row; } $sql = "SELECT t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('estate_property') ORDER BY t.name ASC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["info"]["estate_property"][$row["slug"]] = $row; } $sql = "SELECT * FROM wp_c745ascy1l_posts WHERE wp_c745ascy1l_posts.post_type = 'estate_property' AND wp_c745ascy1l_posts.post_status = 'publish' OR wp_c745ascy1l_posts.post_status = 'expired' OR wp_c745ascy1l_posts.post_status = 'private' order by ID DESC"; $result = mysqli_query($connect, $sql); while($row = mysqli_fetch_assoc($result)) { $json_array["property"]["all"][$row["ID"]] = $row; $info = array(); } /*echo '<pre>'; print_r(json_encode($json_array)); echo '</pre>';*/ echo json_encode($json_array); ?>