| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -63,8 +63,8 @@ if (api_get_setting('profile', 'picture') == 'true') { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            )) { | 
					 | 
					 | 
					 | 
					            )) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                $table_user = Database::get_main_table(TABLE_MAIN_USER); | 
					 | 
					 | 
					 | 
					                $table_user = Database::get_main_table(TABLE_MAIN_USER); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                $sql = "UPDATE $table_user | 
					 | 
					 | 
					 | 
					                $sql = "UPDATE $table_user | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        SET  | 
					 | 
					 | 
					 | 
					                        SET | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            picture_uri = '$new_picture'  | 
					 | 
					 | 
					 | 
					                            picture_uri = '$new_picture' | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        WHERE user_id =  ".$user_id; | 
					 | 
					 | 
					 | 
					                        WHERE user_id =  ".$user_id; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                Database::query($sql); | 
					 | 
					 | 
					 | 
					                Database::query($sql); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -99,15 +99,6 @@ $social_group_block = SocialManager::getGroupBlock($user_id); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$friend_html = SocialManager::listMyFriendsBlock($user_id); | 
					 | 
					 | 
					 | 
					$friend_html = SocialManager::listMyFriendsBlock($user_id); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					// Block Social Sessions | 
					 | 
					 | 
					 | 
					// Block Social Sessions | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$social_session_block = null; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					//$user_info = api_get_user_info($user_id); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					//$sessionList = SessionManager::getSessionsFollowedByUser($user_id, $user_info['status']); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$sessionList = []; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					if (count($sessionList) > 0) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    $social_session_block = $sessionList; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$wallSocialAddPost = SocialManager::getWallForm(api_get_self()); | 
					 | 
					 | 
					 | 
					$wallSocialAddPost = SocialManager::getWallForm(api_get_self()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$socialAutoExtendLink = SocialManager::getAutoExtendLink($user_id, $countPost); | 
					 | 
					 | 
					 | 
					$socialAutoExtendLink = SocialManager::getAutoExtendLink($user_id, $countPost); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -145,6 +136,6 @@ $tpl->assign('social_friend_block', $friend_html); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$tpl->assign('social_search_block', $social_search_block); | 
					 | 
					 | 
					 | 
					$tpl->assign('social_search_block', $social_search_block); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$tpl->assign('social_skill_block', SocialManager::getSkillBlock($user_id, 'vertical')); | 
					 | 
					 | 
					 | 
					$tpl->assign('social_skill_block', SocialManager::getSkillBlock($user_id, 'vertical')); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$tpl->assign('social_group_block', $social_group_block); | 
					 | 
					 | 
					 | 
					$tpl->assign('social_group_block', $social_group_block); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$tpl->assign('session_list', $social_session_block); | 
					 | 
					 | 
					 | 
					$tpl->assign('session_list', null); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$social_layout = $tpl->get_template('social/home.tpl'); | 
					 | 
					 | 
					 | 
					$social_layout = $tpl->get_template('social/home.tpl'); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$tpl->display($social_layout); | 
					 | 
					 | 
					 | 
					$tpl->display($social_layout); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
  |