Beispiel #1
0
<?php

require_once '../php_include/db_connection.php';
require_once '../classes/AllClasses.php';
$option = new Options();
$opt = $option->getReligionOption();
$success = '1';
$msg = 'success';
echo json_encode(array('success' => $success, 'msg' => $msg, 'options' => $opt));
Beispiel #2
0
 	
 	//fetching images of user based on fbid		
 	$albums=Users::getPhotosJson($fb_token,$album_id);
 	
 	//saving images fetched in album
 	$albums_saved= Users::AddPhotos($uid,$albums,$fb_token);
 	}*/
 $data = Users::fbsignin($fbid);
 $user_id = $data['user_id'];
 $friend_count = GeneralFunctions::getAllFriendsCount($user_id);
 $partner_pref = Users::getPartnerPref($user_id);
 $success = "1";
 $msg = "Login Successful";
 $login_parameter = '2';
 //all category based options
 $religion = $option->getReligionOption();
 $relation = $option->getRelationOption();
 $education = $option->getEducationOption();
 $profession = $option->getProfessionOption();
 $dating_pref = $option->getDatingPref();
 $food_pref = $option->getFoodPref();
 $sexual_pref = $option->getSexualPref();
 $smoking = $option->getSmokingOption();
 $drinking = $option->getDrinkingOption();
 $gender = $option->getGender();
 $height = $option->getHeight();
 $age = $option->getAge();
 $city = $option->getCity();
 $preference_listing['religion'] = $religion;
 $preference_listing['relation'] = $relation;
 $preference_listing['education'] = $education;