<?php

$page = "user_userconnection_contacts_3degree";
include "header.php";
// $third_degree_contacts_id VALUE OF THIS VARIABLE IS ALREADY ASSIGNED IN HEADER_USERCONNNECTION.PHP
$third_degree_contacts_users_information = userconnection_users_information($third_degree_contacts_id);
$smarty->assign('third_degree_contacts_users_information', $third_degree_contacts_users_information);
include "footer.php";
Ejemplo n.º 2
0
$userconnection_setting = userconnection_get_site_settings();
$userconnection_depth = 0;
//print_r($owner); die;
if (!empty($user->user_exists)) {
    if ($page == "profile" || $page == "user_home" || $page == "user_userconnection_contacts_2degree" || $page == "user_userconnection_contacts_3degree") {
        // CHECKING USER VISITING OTHERS PROFILE OR NOT
        //START: CODE FOR PROFILE PAGE ONLY
        if ($page == "profile" && $userconnection_setting[profile_page]) {
            if ($owner->user_info['user_username'] != $user->user_info['user_username']) {
                if ($owner->user_info['user_enabled'] == 1 && $owner->user_info['user_search'] == 1 && $owner->user_info['user_verified'] == 1 && $owner->usersetting_info['usersetting_userconnection'] == 0) {
                    $userconnection_combind_path_contacts_array = user_connection_path($user->user_info['user_id'], $owner->user_info['user_id']);
                    $path_array = $userconnection_combind_path_contacts_array['0'];
                    $count_path_array = count($path_array);
                }
                if (!empty($count_path_array)) {
                    $path_information = userconnection_users_information($path_array);
                    $frnd_relationship = userconnection_frnd_relationship($path_array);
                    $userconnection_depth = $count_path_array - 1;
                    if ($userconnection_depth == 1) {
                        $userconnection_depth_extension = "st";
                    } elseif ($userconnection_depth == 2) {
                        $userconnection_depth_extension = "nd";
                    } elseif ($userconnection_depth == 3) {
                        $userconnection_depth_extension = "rd";
                    } else {
                        $userconnection_depth_extension = "th";
                    }
                }
                if (!empty($count_path_array) || $userconnection_setting['is_message']) {
                    if ($userconnection_setting['userconnection_position'] == 1) {
                        $plugin_vars['menu_profile_tab'] = array('file' => 'profile_userconnection.tpl', 'title' => 650002002);