Пример #1
0
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';
if (!empty($userDetails['fullname'])) {
    $pageTitle .= ' :: ' . $userDetails['fullname'];
}
if (!empty($userDetails) && !empty($uid) && !empty($_GET['city_id']) && !empty($_GET['from_date']) && !empty($_GET['no_days'])) {
    //$horo = new Models_Horo();
    $city = findCity($_GET['city_id']);