CodingTeam dans votre langue
frFrançais enEnglish
Ajouter votre projet 

Ubuntu Réunion - Présentation

Voici le code source (écrit en PHP et utilisant MySQL) du site Ubuntu Réunion.

Ubuntu Réunion est une LoCoTeam (communauté d'utilisateurs locale) visant à promouvoir la distribution Ubuntu sur l'île de la Réunion.

Spécifications techniques
- PHP (>4.4.4)
- MySQL (>4.1.21)
(je reprends les spécifications de mon hébergeur, tout tourne parfaitement sur ma machine PHP 5 et MySQL 5)
- Valide XHTML 1.0 Strict & CSS
(il y a plusieurs Warning à cause du Javascript)

Tables pour MySQL
Voici la requête SQL qui vous permettra de créer les tables nécessaires au site :

CREATE DATABASE `ubunture` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE ubunture;

CREATE TABLE `admins` (
  `id` int(11) NOT NULL auto_increment,
  `pseudo` text NOT NULL,
  `passe` text NOT NULL,
  `nom` text NOT NULL,
  `prenom` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

INSERT INTO `admins` VALUES (1, 'pseudo', 'pass_md5', 'nom_famille', 'prenom');

CREATE TABLE `articles` (
  `id` int(11) NOT NULL auto_increment,
  `date` text NOT NULL,
  `heure` text NOT NULL,
  `auteur` text NOT NULL,
  `photo` text NOT NULL,
  `titre` text NOT NULL,
  `texte_fr` text NOT NULL,
  `texte_cr` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;


CREATE TABLE `photos_evenement` (
  `id` int(11) NOT NULL auto_increment,
  `titre` text NOT NULL,
  `lieu` text NOT NULL,
  `date` text NOT NULL,
  `description` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE `photos_image` (
  `id` int(11) NOT NULL auto_increment,
  `evenement` int(11) NOT NULL default '0',
  `titre` text NOT NULL,
  `photo` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

 

Visiter CodingTeam via l'accès sécurisé (SSL)