From 38edbb5851bd2addd36711a6fcea2dea68a170e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Fri, 27 Aug 2010 22:26:00 +0200 Subject: [PATCH] Suppression des fichiers de sauvegarde *~ . --- .../modules/articles/articles-article.php~ | 53 ------------ .../code/modules/articles/articles-index.php~ | 83 ------------------- __cms__/code/modules/articles/include.php~ | 5 -- __cms__/donnees/articles/__prop__description~ | 1 - __cms__/donnees/articles/__prop__titre~ | 1 - __cms__/donnees/articles/__prop__type~ | 1 - 6 files changed, 144 deletions(-) delete mode 100644 __cms__/code/modules/articles/articles-article.php~ delete mode 100644 __cms__/code/modules/articles/articles-index.php~ delete mode 100644 __cms__/code/modules/articles/include.php~ delete mode 100644 __cms__/donnees/articles/__prop__description~ delete mode 100644 __cms__/donnees/articles/__prop__titre~ delete mode 100644 __cms__/donnees/articles/__prop__type~ diff --git a/__cms__/code/modules/articles/articles-article.php~ b/__cms__/code/modules/articles/articles-article.php~ deleted file mode 100644 index 765b3ff..0000000 --- a/__cms__/code/modules/articles/articles-article.php~ +++ /dev/null @@ -1,53 +0,0 @@ -parent(), '', "redirect"); - } else { - if (isset($paramètres["contenu"])) { - Stockage::set_prop($chemin, "contenu", $paramètres["contenu"]); - } - - // titre après les autres paramètres car il peut générer un redirect. - if (isset($paramètres["titre"]) && Stockage::prop_diff($chemin, "titre", $paramètres["titre"])) { - Stockage::set_prop($chemin, "titre", $paramètres["titre"]); - Stockage::renomer($chemin, $paramètres["titre"]); - $chemin = $chemin->renomer($paramètres["titre"]); - // TODO : transmettre le paramètre "vue" - return new Page($chemin, '', "redirect"); - } - - return new Page($chemin->parent(), '', "redirect"); - } - } - - public static function vue($chemin, $vue = "normal") { - if ($vue == "normal") { - $ret = ''; - - if (Permissions::vérifier_permission($chemin, "set_prop", Authentification::get_utilisateur())) { - $ret .= '
'; - $ret .= '

'; - $ret .= formulaire_édition_texte_enrichi(Stockage::get_prop($chemin, "contenu"), "contenu"); - $ret .= '

'; - $ret .= '
'; - } else { - $ret .= '

' . Stockage::get_prop($chemin, "titre") . '

'; - $ret .= affichage_texte_enrichi(Stockage::get_prop($chemin, "contenu")); - } - if (Permissions::vérifier_permission($chemin, "supprimer", Authentification::get_utilisateur())) { - // TODO : afficher le bouton "Supprimer". - } - - return new Page($ret, Stockage::get_prop($chemin, "titre")); - } - } -} - -Modules::enregister_module("ArticlesArticle", "articles-article", "vue", "titre contenu"); - -?> \ No newline at end of file diff --git a/__cms__/code/modules/articles/articles-index.php~ b/__cms__/code/modules/articles/articles-index.php~ deleted file mode 100644 index dac0b3b..0000000 --- a/__cms__/code/modules/articles/articles-index.php~ +++ /dev/null @@ -1,83 +0,0 @@ -get_url() . '">'; - $ret .= '

'; - $ret .= formulaire_édition_texte_enrichi(Stockage::get_prop($chemin, "description"), "description"); - $ret .= '

'; - $ret .= ''; - } else { - $ret .= '

' . Stockage::get_prop($chemin, "titre") . '

'; - $ret .= '

' . Stockage::get_prop($chemin, "description") . '

'; - } - - $ret .= '
'; - $ret .= ''; - - return new Page($ret, Stockage::get_prop($chemin, "titre")); - } - } -} - -Modules::enregister_module("ArticlesIndex", "articles-index", "vue", "titre description"); - -?> diff --git a/__cms__/code/modules/articles/include.php~ b/__cms__/code/modules/articles/include.php~ deleted file mode 100644 index eef384d..0000000 --- a/__cms__/code/modules/articles/include.php~ +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/__cms__/donnees/articles/__prop__description~ b/__cms__/donnees/articles/__prop__description~ deleted file mode 100644 index cda64c6..0000000 --- a/__cms__/donnees/articles/__prop__description~ +++ /dev/null @@ -1 +0,0 @@ -Description des articles. diff --git a/__cms__/donnees/articles/__prop__titre~ b/__cms__/donnees/articles/__prop__titre~ deleted file mode 100644 index 27c6bd8..0000000 --- a/__cms__/donnees/articles/__prop__titre~ +++ /dev/null @@ -1 +0,0 @@ -Articles diff --git a/__cms__/donnees/articles/__prop__type~ b/__cms__/donnees/articles/__prop__type~ deleted file mode 100644 index 15e8b05..0000000 --- a/__cms__/donnees/articles/__prop__type~ +++ /dev/null @@ -1 +0,0 @@ -articles-index