diff --git a/__cms__/code/cms/cms.php b/__cms__/code/cms/cms.php index 2f761be..eebfaa8 100644 --- a/__cms__/code/cms/cms.php +++ b/__cms__/code/cms/cms.php @@ -11,8 +11,6 @@ if (get_magic_quotes_runtime()) set_magic_quotes_runtime(false); class CMS { public static function page($chemin_str) { - // TODO : appeller Modules::action($chemin, $action, $paramètres); - $chemin = new Chemin($chemin_str); $module = Modules::get_module($chemin); diff --git a/__cms__/code/modules/galerie/galerie-photo.php b/__cms__/code/modules/galerie/galerie-photo.php index 951274d..f9189b1 100644 --- a/__cms__/code/modules/galerie/galerie-photo.php +++ b/__cms__/code/modules/galerie/galerie-photo.php @@ -8,7 +8,7 @@ class GaleriePhoto { Stockage::supprimer($chemin, true); // TODO ! gérer correctement le récursif return new Page($chemin->parent(), '', "redirect"); } else { - if (isset($paramètres["fichier_image"])) { + if (isset($paramètres["fichier_image"]) && ($paramètres["fichier_image"]["tmp_name"] != "")) { $fichier_image = $paramètres["fichier_image"]["tmp_name"]; $fichier_image_mini = self::creer_miniature($fichier_image, 64, 64); Stockage::set_prop_fichier($chemin, "image_mini", $fichier_image_mini); diff --git a/__cms__/code/stockage/stockage.php b/__cms__/code/stockage/stockage.php index 30327b0..4c64ba5 100644 --- a/__cms__/code/stockage/stockage.php +++ b/__cms__/code/stockage/stockage.php @@ -90,7 +90,7 @@ class Stockage { public static function prop_diff($chemin, $prop, $valeur) { // Renvoie true si la valeur actuelle de $prop est différente de $valeur. - return self::get_prop($chemin, $prop) != $valeur; + return (self::get_prop($chemin, $prop) != $valeur); } // TODO : la suppression non récursive d'une page implique de supprimer diff --git a/__cms__/donnees/galerie/periode 1/__prop__description b/__cms__/donnees/galerie/periode 1/__prop__description new file mode 100644 index 0000000..f1b20a6 --- /dev/null +++ b/__cms__/donnees/galerie/periode 1/__prop__description @@ -0,0 +1 @@ +Période d'hiver 2010. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 1/__prop__titre b/__cms__/donnees/galerie/periode 1/__prop__titre index 595456b..28e4377 100644 --- a/__cms__/donnees/galerie/periode 1/__prop__titre +++ b/__cms__/donnees/galerie/periode 1/__prop__titre @@ -1 +1 @@ -periode 1 +periode 1 \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 1/evenement a/__prop__description b/__cms__/donnees/galerie/periode 1/evenement a/__prop__description new file mode 100644 index 0000000..1463123 --- /dev/null +++ b/__cms__/donnees/galerie/periode 1/evenement a/__prop__description @@ -0,0 +1 @@ +Un évènement important pour le club ! \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 1/evenement a/__prop__titre b/__cms__/donnees/galerie/periode 1/evenement a/__prop__titre index 59ed253..289f010 100644 --- a/__cms__/donnees/galerie/periode 1/evenement a/__prop__titre +++ b/__cms__/donnees/galerie/periode 1/evenement a/__prop__titre @@ -1 +1 @@ -evenement a +evenement a \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 1/evenement a/photo a/__prop__description b/__cms__/donnees/galerie/periode 1/evenement a/photo a/__prop__description new file mode 100644 index 0000000..80d3f57 --- /dev/null +++ b/__cms__/donnees/galerie/periode 1/evenement a/photo a/__prop__description @@ -0,0 +1 @@ +Une image... énigmatique. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 1/evenement a/photo b/__prop__description b/__cms__/donnees/galerie/periode 1/evenement a/photo b/__prop__description new file mode 100644 index 0000000..8c30164 --- /dev/null +++ b/__cms__/donnees/galerie/periode 1/evenement a/photo b/__prop__description @@ -0,0 +1 @@ +Bla bla bla \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 1/evenement a/photo c/__prop__description b/__cms__/donnees/galerie/periode 1/evenement a/photo c/__prop__description new file mode 100644 index 0000000..eaa714d --- /dev/null +++ b/__cms__/donnees/galerie/periode 1/evenement a/photo c/__prop__description @@ -0,0 +1 @@ +Y'a un truc sur cette photo. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement machin/__prop__description b/__cms__/donnees/galerie/periode 2/evenement machin/__prop__description new file mode 100644 index 0000000..af5124d --- /dev/null +++ b/__cms__/donnees/galerie/periode 2/evenement machin/__prop__description @@ -0,0 +1 @@ +Machin, truc, chose... Que des évènements fantastiques ! \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement machin/__prop__titre b/__cms__/donnees/galerie/periode 2/evenement machin/__prop__titre index 195c97a..804549a 100644 --- a/__cms__/donnees/galerie/periode 2/evenement machin/__prop__titre +++ b/__cms__/donnees/galerie/periode 2/evenement machin/__prop__titre @@ -1 +1 @@ -evenement machin +evenement machin \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement machin/photo a/__prop__description b/__cms__/donnees/galerie/periode 2/evenement machin/photo a/__prop__description new file mode 100644 index 0000000..0c1a26f --- /dev/null +++ b/__cms__/donnees/galerie/periode 2/evenement machin/photo a/__prop__description @@ -0,0 +1 @@ +Période 2. Évènement Machin. Photo A. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement machin/photo b/__prop__description b/__cms__/donnees/galerie/periode 2/evenement machin/photo b/__prop__description new file mode 100644 index 0000000..615690c --- /dev/null +++ b/__cms__/donnees/galerie/periode 2/evenement machin/photo b/__prop__description @@ -0,0 +1 @@ +Soyons abstraits. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement machin/photo c/__prop__description b/__cms__/donnees/galerie/periode 2/evenement machin/photo c/__prop__description new file mode 100644 index 0000000..3978f41 --- /dev/null +++ b/__cms__/donnees/galerie/periode 2/evenement machin/photo c/__prop__description @@ -0,0 +1 @@ +E = mc². Ou 2mc = E. Je sais plus. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement truc/photo a/__prop__description b/__cms__/donnees/galerie/periode 2/evenement truc/photo a/__prop__description new file mode 100644 index 0000000..1e42c02 --- /dev/null +++ b/__cms__/donnees/galerie/periode 2/evenement truc/photo a/__prop__description @@ -0,0 +1 @@ +Bla bla. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement truc/photo b/__prop__description b/__cms__/donnees/galerie/periode 2/evenement truc/photo b/__prop__description new file mode 100644 index 0000000..0103f35 --- /dev/null +++ b/__cms__/donnees/galerie/periode 2/evenement truc/photo b/__prop__description @@ -0,0 +1 @@ +Lorem ipsum dolor sit amet... Lorem ipsum dolor sit amet. \ No newline at end of file diff --git a/__cms__/donnees/galerie/periode 2/evenement truc/photo c/__prop__description b/__cms__/donnees/galerie/periode 2/evenement truc/photo c/__prop__description new file mode 100644 index 0000000..dc8bc07 --- /dev/null +++ b/__cms__/donnees/galerie/periode 2/evenement truc/photo c/__prop__description @@ -0,0 +1 @@ +Lorem ipsum dolor sit amet... Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet... Lorem ipsum dolor sit amet. \ No newline at end of file