PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/outtheboxministry.org/api/phone/ |
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 |
Dir : /home/trave494/outtheboxministry.org/api/phone/get_group_data.php |
<?php // +------------------------------------------------------------------------+ // | @author Deen Doughouz (DoughouzForest) // | @author_url 1: http://www.wowonder.com // | @author_url 2: http://codecanyon.net/user/doughouzforest // | @author_email: wowondersocial@gmail.com // +------------------------------------------------------------------------+ // | WoWonder - The Ultimate Social Networking Platform // | Copyright (c) 2016 WoWonder. All rights reserved. // +------------------------------------------------------------------------+ $json_error_data = array(); $json_success_data = array(); if (empty($_GET['type']) || !isset($_GET['type'])) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '1', 'error_text' => 'Bad request, no type specified.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } $type = Wo_Secure($_GET['type'], 0); if ($type == 'get_group_data') { if (empty($_POST['user_id'])) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '3', 'error_text' => 'No user id sent.' ) ); } else if (empty($_POST['group_profile_id'])) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '5', 'error_text' => 'No page id sent.' ) ); } else if (empty($_POST['s'])) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '5', 'error_text' => 'No session sent.' ) ); } if (empty($json_error_data)) { $user_id = $_POST['user_id']; $s = Wo_Secure($_POST['s']); $user_login_data = Wo_UserData($user_id); $wo['lang'] = Wo_LangsFromDB($user_login_data['language']); if (empty($user_login_data)) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '6', 'error_text' => 'Username is not exists.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } else if ($wo['loggedin'] == false) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '6', 'error_text' => 'Session id is wrong.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } else { $group_profile_id = Wo_Secure($_POST['group_profile_id']); $group_profile_data = Wo_GroupData($group_profile_id); if (empty($group_profile_data)) { $json_error_data = array( 'api_status' => '400', 'api_text' => 'failed', 'api_version' => $api_version, 'errors' => array( 'error_id' => '6', 'error_text' => 'User profile is not exists.' ) ); header("Content-type: application/json"); echo json_encode($json_error_data, JSON_PRETTY_PRINT); exit(); } foreach ($non_allowed as $key => $value) { unset($group_profile_data[$value]); } $group_profile_data['post_count'] = Wo_CountGroupPosts($group_profile_data['group_id']); $group_profile_data['is_joined'] = Wo_IsGroupJoined($group_profile_data['group_id']); $group_profile_data['is_owner'] = Wo_IsGroupOnwer($group_profile_data['group_id']); $json_success_data = array( 'api_status' => '200', 'api_text' => 'success', 'api_version' => $api_version, 'group_data' => $group_profile_data ); header("Content-type: application/json"); echo json_encode($json_success_data, JSON_PRETTY_PRINT); exit(); } } else { header("Content-type: application/json"); echo json_encode($json_error_data); exit(); } } header("Content-type: application/json"); echo json_encode($json_success_data); exit(); ?>