From 790cb82aec13a648117303d3b30852b0f79d91fc Mon Sep 17 00:00:00 2001
From: Kevin XU <kevin-xu@hotmail.fr>
Date: Wed, 28 Nov 2018 22:08:50 +0100
Subject: [PATCH] =?UTF-8?q?Ajout=20Youtube=20:=20nombre=20de=20vid=C3=A9os?=
 =?UTF-8?q?=20et=20nombre=20total=20views?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 page_profile/profil.php | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/page_profile/profil.php b/page_profile/profil.php
index 1439acb..f8627e8 100644
--- a/page_profile/profil.php
+++ b/page_profile/profil.php
@@ -1,5 +1,6 @@
 <?php
 require_once('../API_Twitter/userInfosFunctions.php');
+require_once('../API_Twitter/tweetInfosFunctions.php');
 require_once('../youtube-api/userInfos.php');
 require_once('../facto.php');
 session_start();
@@ -87,8 +88,17 @@ else {
 					?>
 					</h5><br/>
 				</div>
-				<div>           <br/> <h5></h5> </div>
-				<div>           <br/>  <h5></h5></div>
+				<div>
+					<?php
+						if ($socialNetwork === "Twitter") {
+							echo "Number of Tweets <br/> <h5>".number_format(getNbTweetsByScreenName(getUserScreenName($id)), 0, ".", " ");
+						}
+						elseif ($socialNetwork === "Youtube") {
+							echo "Number of videos <br/> <h5>".number_format(getChannelVideoCount($id), 0, ".", " ").'<br/> <h5></h5> </div>';
+							echo "<div>Number of total views <br/> <h5>".number_format(getChannelViewCount($id), 0, ".", " ");
+						}
+					?>           
+					<br/> <h5></h5> </div>
 			</div>
 	</div>
 
-- 
GitLab