MOD Petit refactoring #137
[cl7.git] / php / tx_photos.php
diff --git a/php/tx_photos.php b/php/tx_photos.php
deleted file mode 100644 (file)
index 939e7ad..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-#Petite galerie d'image à 2 balles , necessite GD2.
-##########CONFIG#########
-#Variables à repasser à la page (liens) :
-$vars_repasse = array('page');
-define('NOM_FICHIER', 'index.php');
-define('TAILLE_SECTION', '12');
-define('TAILLE_NOM_IMAGE', '11');
-define('TAILLE_VIGNETTE', '100');
-define('TAILLE_PHOTO_REDUITE', '400');
-define('NOMBRE_VIGNETTE_PAR_PAGE', '9');
-define('NOMBRE_COLONNE', '3');
-#######FIN CONFIG########
-
-include('class_galerie_photos.php');
-
-$ma_galerie = new galerie("images/galerie");
-
-if (!isset($_GET['__page_galerie'])) $_GET['__page_galerie'] = 'liste_sections';
-if (!isset($_GET['__page_section'])) $_GET['__page_section'] = 1;
-
-switch ($_GET['__page_galerie'])
-{
-       case 'liste_sections' :
-               foreach($ma_galerie->sections() as $section)
-                       echo '<div style="font-size : ',TAILLE_SECTION,'pt; font-weight : bold; "><a href="',NOM_FICHIER,'?',arguments_page(),'__section=',$section,
-                               '&amp;__page_galerie=section">', $section,'</a></div>Auteur : ',$ma_galerie->get_auteur($section),'<br/>Date : ',$ma_galerie->get_date($section),'<br/><br/>';
-               break;
-               
-       case 'section' :
-               $ma_galerie->set_section_courante($_GET['__section']);
-               $ma_galerie->afficher_vignettes($_GET['__page_section']);
-               break;
-               
-       case 'photo' :
-               $ma_galerie->set_section_courante($_GET['__section']);
-               $ma_galerie->afficher_photo($_GET['__photo']);
-               break;
-}
-
-?>
\ No newline at end of file