Пример #1
0
//include(SITEDIR.'/libraries/addresses/nearby.php');
$uid = '';
$uid = !empty($_GET['uid']) ? $_GET['uid'] : (!empty($_SESSION['user']['id']) ? $_SESSION['user']['id'] : '');
if (empty($uid)) {
    check_login();
}
currentActivity('horo_page', $_SERVER['REQUEST_URI'], null, 'User has browsed the Horo Match page.');
$Models_Googleauth = new Models_Googleauth();
$userDetails = $Models_Googleauth->getUser($uid);
$userSql = $Models_Googleauth->sql;
//matching naks
$Kundali = new Library_Kundali();
$horo = new Models_Horo();
$userHoroInfo = findHoroInfo($userDetails);
if (!empty($userHoroInfo)) {
    $points = $Kundali->points();
    $specific_points = $points[$userHoroInfo[9]];
    arsort($specific_points);
    $matchingNaks = array();
    foreach ($specific_points as $k => $v) {
        $matchingNaks[$k]['number'] = $k;
        $matchingNaks[$k]['nakshatra'] = $Kundali->getnaksfromnumber($k);
        $matchingNaks[$k]['points'] = $v;
    }
}
//matching naks ends
$horo_cities = array();
if (!empty($userDetails['horo_cities'])) {
    $horo_cities = json_decode($userDetails['horo_cities'], 1);
}
$pageTitle = 'Horo Match Making';