Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
P
pima2018_25
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de conteneurs
Registre de modèles
Opération
Environnements
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Clément VEYSSIÈRE
pima2018_25
Validations
203c2117
Valider
203c2117
rédigé
Il y a 6 ans
par
Kevin XU
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Intégration graphes pour Youtube
parent
5bba20da
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
page_profile/profil.php
+92
-4
92 ajouts, 4 suppressions
page_profile/profil.php
page_welcome/register.php
+1
-0
1 ajout, 0 suppression
page_welcome/register.php
youtube-api/userInfos.php
+3
-1
3 ajouts, 1 suppression
youtube-api/userInfos.php
avec
96 ajouts
et
5 suppressions
page_profile/profil.php
+
92
−
4
Voir le fichier @
203c2117
...
@@ -130,6 +130,8 @@ $youtube_fav = $_SESSION['youtube'];
...
@@ -130,6 +130,8 @@ $youtube_fav = $_SESSION['youtube'];
}
}
?>
?>
<br/>
<h5></h5>
</div>
<br/>
<h5></h5>
</div>
</br><br/>
</div>
</div>
</div>
</div>
</div>
...
@@ -143,8 +145,13 @@ $youtube_fav = $_SESSION['youtube'];
...
@@ -143,8 +145,13 @@ $youtube_fav = $_SESSION['youtube'];
echo
"<a href='#b'> Evolution of Tweets Retweets</a>"
;
echo
"<a href='#b'> Evolution of Tweets Retweets</a>"
;
}
}
elseif
(
$socialNetwork
===
"Youtube"
)
{
elseif
(
$socialNetwork
===
"Youtube"
)
{
echo
"<a href='#a'> Evolution of Views</a>"
;
echo
"<a href='#a'> Evolution of Views of recent videos</a>"
;
echo
"</div>"
;
echo
"<div>"
;
echo
"<a href='#b'> Evolution of Likes of recent videos</a>"
;
echo
"</div>"
;
echo
"</div>"
;
echo
"<div>"
;
echo
"<a href='#c'> Evolution of Dislikes of recent videos</a>"
;
}
}
?>
?>
</div>
</div>
...
@@ -157,7 +164,7 @@ $youtube_fav = $_SESSION['youtube'];
...
@@ -157,7 +164,7 @@ $youtube_fav = $_SESSION['youtube'];
echo
"Evolution of Tweets Likes"
;
echo
"Evolution of Tweets Likes"
;
}
}
elseif
(
$socialNetwork
===
"Youtube"
)
{
elseif
(
$socialNetwork
===
"Youtube"
)
{
echo
"Evolution of Views"
;
echo
"Evolution of Views
of recent videos
"
;
}
}
?>
?>
</span><br/><br/>
</span><br/><br/>
...
@@ -176,7 +183,16 @@ $youtube_fav = $_SESSION['youtube'];
...
@@ -176,7 +183,16 @@ $youtube_fav = $_SESSION['youtube'];
lineGraphMean
(
$chartName
,
$caption
,
$xAxisName
,
$yAxisName
,
$likes
,
700
,
400
);
lineGraphMean
(
$chartName
,
$caption
,
$xAxisName
,
$yAxisName
,
$likes
,
700
,
400
);
}
}
elseif
(
$socialNetwork
===
"Youtube"
)
{
elseif
(
$socialNetwork
===
"Youtube"
)
{
echo
""
;
$count
=
10
;
$chartName
=
"chart3"
;
$caption
=
"Evolution of views : Last "
.
$count
.
" videos"
;
$xAxisName
=
"Video (from most recent to oldest)"
;
$yAxisName
=
"Number of Views"
;
$views
=
getviewCountOfRecentVideo
(
$id
,
$count
);
lineGraphMean
(
$chartName
,
$caption
,
$xAxisName
,
$yAxisName
,
$views
,
700
,
400
);
}
}
?>
?>
</br><br/>
</br><br/>
...
@@ -187,7 +203,7 @@ $youtube_fav = $_SESSION['youtube'];
...
@@ -187,7 +203,7 @@ $youtube_fav = $_SESSION['youtube'];
echo
"Evolution of Tweets Retweets"
;
echo
"Evolution of Tweets Retweets"
;
}
}
elseif
(
$socialNetwork
===
"Youtube"
)
{
elseif
(
$socialNetwork
===
"Youtube"
)
{
echo
""
;
echo
"
Evolution of Likes of recent videos
"
;
}
}
?>
?>
</span><br/><br/>
</span><br/><br/>
...
@@ -206,11 +222,83 @@ $youtube_fav = $_SESSION['youtube'];
...
@@ -206,11 +222,83 @@ $youtube_fav = $_SESSION['youtube'];
lineGraphMean
(
$chartName
,
$caption
,
$xAxisName
,
$yAxisName
,
$retweets
,
700
,
400
);
lineGraphMean
(
$chartName
,
$caption
,
$xAxisName
,
$yAxisName
,
$retweets
,
700
,
400
);
}
}
elseif
(
$socialNetwork
===
"Youtube"
)
{
elseif
(
$socialNetwork
===
"Youtube"
)
{
$count
=
10
;
$chartName
=
"chart4"
;
$caption
=
"Evolution of likes : Last "
.
$count
.
" videos"
;
$xAxisName
=
"Video (from most recent to oldest)"
;
$yAxisName
=
"Number of Likes"
;
$likes
=
getLikeCountOfRecentVideo
(
$id
,
$count
);
lineGraphMean
(
$chartName
,
$caption
,
$xAxisName
,
$yAxisName
,
$likes
,
700
,
400
);
}
?>
</br><br/>
</div>
<div
id=
'c'
><br/><br/><span
class=
"title_graphs"
>
<?php
if
(
$socialNetwork
===
"Twitter"
)
{
echo
""
;
}
elseif
(
$socialNetwork
===
"Youtube"
)
{
echo
"Evolution of Dislikes of recent videos"
;
}
?>
</span><br/><br/>
<?php
if
(
$socialNetwork
===
"Twitter"
)
{
echo
""
;
echo
""
;
}
}
elseif
(
$socialNetwork
===
"Youtube"
)
{
$count
=
10
;
$chartName
=
"chart5"
;
$caption
=
"Evolution of dislikes : Last "
.
$count
.
" videos"
;
$xAxisName
=
"Video (from most recent to oldest)"
;
$yAxisName
=
"Number of Dislikes"
;
$dislikes
=
getDislikeCountOfRecentVideo
(
$id
,
$count
);
lineGraphMean
(
$chartName
,
$caption
,
$xAxisName
,
$yAxisName
,
$dislikes
,
700
,
400
);
}
?>
?>
</br><br/>
</br><br/>
</div>
</div>
<!-- <div id='d'><br/><br/><span class="title_graphs">
<?php
// if ($socialNetwork === "Twitter") {
// echo "";
// }
// elseif ($socialNetwork === "Youtube") {
// echo "Evolution of views of most popular videos";
// }
?>
</span><br/><br/>
<?php
// if ($socialNetwork === "Twitter") {
// echo "";
// }
// elseif ($socialNetwork === "Youtube") {
// $count = 10;
// $chartName = "chart6";
// $caption = "Evolution of views : ".$count." most popular videos";
// $xAxisName = "Video (from most recent to oldest)";
// $yAxisName = "Number of Views";
// $videosID = getCountTopVideos($id, $count);
// $views = [];
// for ($i = 0; $i < $count; $i++) {
// $views[] = getVideoViewCountById($videosID[$i]);
// }
// lineGraphMean($chartName, $caption, $xAxisName, $yAxisName, $views, 700, 400);
// }
?>
</br><br/>
</div> -->
</div>
</div>
</div>
</div>
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
page_welcome/register.php
+
1
−
0
Voir le fichier @
203c2117
...
@@ -47,6 +47,7 @@ if (isset($_POST['register'])) {
...
@@ -47,6 +47,7 @@ if (isset($_POST['register'])) {
}
}
$empty_array
=
array
();
$empty_array
=
array
();
// Finally, register user if there are no errors in the form
// Finally, register user if there are no errors in the form
echo
$errors
[
0
];
if
(
count
(
$errors
)
==
0
)
{
if
(
count
(
$errors
)
==
0
)
{
$password
=
md5
(
$password_1
);
//encrypt the password before saving in the database
$password
=
md5
(
$password_1
);
//encrypt the password before saving in the database
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
youtube-api/userInfos.php
+
3
−
1
Voir le fichier @
203c2117
...
@@ -109,7 +109,7 @@ function getVideoViewCountById($id){
...
@@ -109,7 +109,7 @@ function getVideoViewCountById($id){
/**
/**
* Search Get the most popular
e
count videos's id in a channel by channelID
* Search Get the most popular count videos's id in a channel by channelID
* @param $channelId
* @param $channelId
* @param $count
* @param $count
* @return an array including the id of the most populare count videos
* @return an array including the id of the most populare count videos
...
@@ -189,5 +189,7 @@ function getLikeCountOfRecentVideo($channelId,$count)
...
@@ -189,5 +189,7 @@ function getLikeCountOfRecentVideo($channelId,$count)
}
}
//print_r(getCountTopVideos("UCWeg2Pkate69NFdBeuRFTAw", 10));
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter