PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/outtheboxministry.org/xhr/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/outtheboxministry.org/xhr/nearby_shops.php

<?php
if ($f == 'nearby_shops') {
    if ($s == 'load') {
        $name       = (isset($_GET['name'])) ? $_GET['name'] : false;
        $offset     = (isset($_GET['offset'])) ? $_GET['offset'] : false;
        $distance   = (isset($_GET['distance'])) ? $_GET['distance'] : false;
        $data       = array(
            'status' => 404
        );
        $html       = '';
        $filter     = array(
            'name' => $name,
            'distance' => $distance,
            'offset' => $offset
        );
        $users      = Wo_GetNearbyShops($filter);
        $users_info = array();
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $user_info['name'] = $wo['UsersList']['page_data']['name'];
                $user_info['lng']  = $wo['UsersList']['product']['lng'];
                $user_info['lat']  = $wo['UsersList']['product']['lat'];
                $users_info[]      = $user_info;
                $wo['result']      = $wo['UsersList']['page_data'];
                $html .= Wo_LoadPage('nearby_shops/list');
            }
            $data['status']     = 200;
            $data['html']       = $html;
            $data['users_info'] = $users_info;
        }
    }
    if ($s == 'load_jobs') {
        $name       = (isset($_GET['name'])) ? $_GET['name'] : false;
        $offset     = (isset($_GET['offset'])) ? $_GET['offset'] : false;
        $distance   = (isset($_GET['distance'])) ? $_GET['distance'] : false;
        $data       = array(
            'status' => 404
        );
        $html       = '';
        $filter     = array(
            'name' => $name,
            'distance' => $distance,
            'offset' => $offset
        );
        $users      = Wo_GetNearbyBusiness($filter);
        $users_info = array();
        if ($users && count($users) > 0) {
            foreach ($users as $wo['UsersList']) {
                $user_info['name'] = $wo['UsersList']['page_data']['name'];
                $user_info['lng']  = $wo['UsersList']['job']['lng'];
                $user_info['lat']  = $wo['UsersList']['job']['lat'];
                $users_info[]      = $user_info;
                $wo['result']      = $wo['UsersList']['page_data'];
                $html .= Wo_LoadPage('nearby_business/list');
            }
            $data['status']     = 200;
            $data['html']       = $html;
            $data['users_info'] = $users_info;
        }
    }
    header("Content-type: application/json");
    echo json_encode($data);
    exit();
}