Projet Master 1 Informatique PHPGathering
description
Transcript of Projet Master 1 Informatique PHPGathering
![Page 1: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/1.jpg)
Projet Master 1 Informatique PHPGathering
Réalisé par Djamel Ouali &
Frederic Degave
![Page 2: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/2.jpg)
Plan
Présentation de PHPGathering Le travail réalisé Les problèmes rencontrés Les fonctionnalités à venir Conclusion
![Page 3: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/3.jpg)
Présentation de PHPGathering
![Page 4: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/4.jpg)
Présentation de PHPGathering
PHPGathering ?- Site web permettant de partager des informations et medias entre utilisateurs.
- Version initiale 2001 (usage personnel).
- Développé avec les technologies du web comme HTML, PHP et java script associées à une base de donnée mySQL pour l’aspect dynamique.
![Page 5: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/5.jpg)
Présentation de PHPGathering
Accès au site par identification
2 types d’accès :- Accès administrateur ( gestion utilisateurs,
gestion des répertoires…).- Accès utilisateur (gestion options personnels,
visualisation photos, commentaires, changement de styles…).
![Page 6: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/6.jpg)
Présentation de PHPGathering
Pourquoi le projet ?
- utilisation personnelle :
administrateur = Philippe Dumont
utilisateurs = son entourage
But : le rendre distribuable et utilisable par le plus grand nombre.
![Page 7: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/7.jpg)
Le travail réalisé
![Page 8: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/8.jpg)
Le travail réalisé
1. Une procédure d’installation 2. Une page d'accueil personnalisée 3. La page d’introduction 4. Un système de vote 5. Un système de tri 6. Un système de description des répertoires 7. Mise en place de l'internationalisation 8 . Ajout d’une feuille de styles
![Page 9: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/9.jpg)
Le travail réalisé
1. Une procédure d’installation
Pourquoi?- Problème pour configurer un serveur et une
base de données.(non informaticien).- Facile et rapide à installer. - Disponible au plus grand nombre.
![Page 10: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/10.jpg)
Le travail réalisé
1. Une procédure d’installation
Comment? Un formulaire à remplir. (cf. : phpBB) - configuration de la base de données(nom du serveur, nom
de la base, administrateur de la base de données …).
- configuration du compte administrateur(email, chemin du script, nom du site, nom d’utilisateur, mot de passe).
![Page 11: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/11.jpg)
![Page 12: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/12.jpg)
Le travail réalisé
2. Une page d’accueil personnalisée
Pourquoi?
- site différent selon l’ administrateur
- accueil personnalisé permettant de décrire le site rapidement.
![Page 13: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/13.jpg)
Le travail réalisé
2. Une page d’accueil personnalisée Comment?
Pb : avant la phase d’identification
- Fichier texte enregistré sur le serveur protégé en écriture (chmod) modifiable uniquement par l’administrateur.
![Page 14: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/14.jpg)
![Page 15: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/15.jpg)
Le travail réalisé
3. La page d’introduction
Pourquoi?
- Système déjà présent dans la version initiale mais en « dur » dans le code.
il fallait changer le système pour éviter de réécrire dans le code.
![Page 16: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/16.jpg)
Le travail réalisé
3. La page d’introduction Comment?
- Création d’une table intro(ID,Titre, Date, Texte)
- Formulaire dans la page d’introduction uniquement visible par l’administrateur.
![Page 17: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/17.jpg)
![Page 18: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/18.jpg)
![Page 19: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/19.jpg)
Le travail réalisé
4. Un système de vote
Pourquoi?- Système de commentaire déjà en place.- Rendre le site encore plus interactif pour
l’ utilisateur.
![Page 20: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/20.jpg)
Le travail réalisé
4. Un système de vote
Comment? - Cookies ? (non)- Nouvelles Tables ? (oui) ajout de 2 nouvelles tables :
Table Vote : photos qui ont au moins 1 vote
Vote = (IdentifiantRepertoire,NomPhoto,NbreVote,Moyenne)
Table Votes : liste des votes (pour éviter de voter plusieurs fois)
Votes =(IdentifiantUtilisateur,IdentifiantRepertoire,NomPhoto)
![Page 21: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/21.jpg)
![Page 22: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/22.jpg)
Le travail réalisé
5. Un système de tri
Pourquoi?- Permettre une meilleur visualisation du
contenu.- Accès plus rapide aux photos intéressantes.
![Page 23: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/23.jpg)
Le travail réalisé
5. Un système de tri
Comment? - Utilisation de la fonction PHP array_multisort()
- Tri par Nom- Tri par Moyenne des votes- Tri par Nombre de commentaires- Tri par Type de médias
![Page 24: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/24.jpg)
![Page 25: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/25.jpg)
Le travail réalisé
6. Un système de description des répertoires
Pourquoi?- Nom associé au répertoire pas toujours
significatif .- Difficulté de connaître le contenu du
répertoire sans l’ouvrir
![Page 26: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/26.jpg)
Le travail réalisé
6. Un système de description des répertoires Comment?
- Modification de la table « rep »- Ajout des champs:
« Descrip » (texte contenant la description du répertoire)
« ImageDefault » (image représentant le répertoire)
![Page 27: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/27.jpg)
![Page 28: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/28.jpg)
Le travail réalisé
7. Mise en place de l’internationalisation
Pourquoi?- Utilisable par un maximum de personne- Utilisable par des non francophones (vision
internationale)
![Page 29: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/29.jpg)
Le travail réalisé
7. Mise en place de l’internationalisation
Comment? - Mise en place d un répertoire « language »
- 1 sous répertoire par langue( avec le nom de la langue)
et 1 fichier de même nom.- Le fichier contient 1 tableau $lg avec l’ensemble des
mots du site.- Modification du code en remplaçant les mots par le bon
$lg[…]
![Page 30: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/30.jpg)
![Page 31: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/31.jpg)
Le travail réalisé
8. Ajout d’une feuille de style (dream)
![Page 32: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/32.jpg)
Les problèmes rencontrés
![Page 33: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/33.jpg)
Les problèmes rencontrés
1. La compréhension du code source. 2. Les problèmes d'hébergement. 3. Les problèmes de navigateurs.
![Page 34: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/34.jpg)
Les problèmes rencontrés
1. La compréhension du code source.
Un projet déjà bien entamé
( ≈10 000 lignes de codes).
Le php, le css & le java-script: nouveaux langages...
![Page 35: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/35.jpg)
Les problèmes rencontrés
2. Les problèmes d'hébergement.
Problème avec les hébergeurs gratuits.- Problèmes avec les extensions de php.
- Problèmes spécifiques à chaque hébergeur.
Solution: EasyPhp ;)
![Page 36: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/36.jpg)
Les problèmes rencontrés
3. Les problèmes de navigateurs.
Plusieurs navigateurs, UN code source.- Mozilla, Internet Explorer, Opera ...
Les feuilles de styles:Des fonctions utilisables chez les uns mais pas chez les
autres:
Solution: Plusieurs feuilles de styles ou utiliser les fonctions communes à tous les navigateurs.
![Page 37: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/37.jpg)
Les fonctionnalités à venir
![Page 38: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/38.jpg)
Les fonctionnalités à venir
L'utilisation d'autres types de base de données. L'internationalisation. La gestion des droits utilisateurs. De nouvelles fonctionnalités…
Un système d avatar Un système de messages privés entre utilisateurs. Un système d'upload des médias. …
![Page 39: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/39.jpg)
Conclusion
![Page 40: Projet Master 1 Informatique PHPGathering](https://reader035.fdocument.pub/reader035/viewer/2022062501/56815e09550346895dcc6479/html5/thumbnails/40.jpg)
Conclusion
Valider nos connaissances sur les technologies du Web.
Difficulté reprendre un projet existant. Necessité du logiciel libre (phpBB) L'importance d'un code-source propre et
clair.