Author: booz@rezo.net
Date: Sun May 28 17:25:20 2006
New Revision: 3399
Log:
menage
Removed:
_plugins_/_email_/spip_listes/patron-texte.html
_plugins_/_email_/spip_listes/patron-texte.php3
_plugins_/_email_/spip_listes/patron.php3
Modified:
_plugins_/_email_/spip_listes/exec/config.php
_plugins_/_email_/spip_listes/exec/spip_listes.php
Modified: _plugins_/_email_/spip_listes/exec/config.php
--- _plugins_/_email_/spip_listes/exec/config.php (original)
+++ _plugins_/_email_/spip_listes/exec/config.php Sun May 28 17:25:20 2006
@@ -23,7 +23,7 @@
if (!defined("_ECRIRE_INC_VERSION")) return;
include_spip('inc/presentation');
-
+include_spip('inc/distant');
function exec_config()
{
@@ -31,8 +31,9 @@
global $connect_statut;
global $connect_toutes_rubriques;
global $connect_id_auteur;
-global $type;
-global $new;
+global $statut_abo,$reinitialiser_config, $Valider_reinit,$changer_config;
+global $_POST;
+
include_ecrire ("inc_config.php3");
@@ -116,7 +117,7 @@
-echo "<form action='?exec=spiplistes&mode=config' method='post'>";
+echo "<form action='".generer_url_ecrire('config')."' method='post'>";
echo "<input type='hidden' name='changer_config' value='oui'>";
debut_cadre_relief("redacteurs-24.gif", false, "", _T('spiplistes:mode_inscription'));
@@ -155,7 +156,7 @@
debut_cadre_relief("redacteurs-24.gif", false, "", _T('spiplistes:tableau_bord'));
//print_r($extra);
-echo "<form action='?exec=spiplistes&mode=config' method='post'>";
+echo "<form action='".generer_url_ecrire('config')."' method='post'>";
echo "<input type='hidden' name='reinitialiser_config' value='oui'>";
echo "<br />"._T('spiplistes:lock').$extra['locked'] ;
@@ -194,8 +195,8 @@
echo "<tr><td bgcolor='#FFFFFF' background='img_pack/rien.gif' >";
- echo "<form action='spip_listes.php3' METHOD='get'>";
- echo "<input type='hidden' name='mode' value='config' />\n";
+ echo "<form action='".generer_url_ecrire('config')."' METHOD='post'>";
+
echo "<div>";
echo "<div style='float:right;width:200px'>";
@@ -247,14 +248,18 @@
echo "</FORM>";
// doit on visualiser un squelette ?
- if (isset($_GET['patron'])) {
- $patron = $_GET['patron'];
+ if (isset($_POST['patron'])) {
+ $patron = $_POST['patron'];
echo "<br /><strong>$patron</strong><br /><br />\n";
echo _T('spiplistes:date_ref').": $date\n";
- echo "<h3>HTML</h3><a href=\"../patron.php3?patron=$patron&date=$date\">(Plein écran)</a><br /><br />\n";
- echo "<iframe width=\"100%\" height=\"500\" src=\"../patron.php3?patron=$patron&date=$date\"></iframe>\n";
- echo "<h3>"._T('spiplistes:val_texte')."</h3><a href=\"../patron.php3?patron=$patron&date=$date&format=texte\">(Plein écran)</a><br /><br />\n";
- echo "<iframe width=\"100%\" height=\"500\" src=\"../patron.php3?patron=$patron&date=$date&format=texte\"></iframe>\n";
+ echo "<h3>HTML</h3><a href=\"".generer_url_public('patron_switch',"patron=".$patron."&date=".$date)."\">(Plein écran)</a><br /><br />\n";
+ echo "<iframe width=\"100%\" height=\"500\" src=\"".generer_url_public('patron_switch',"patron=".$patron."&date=".$date)."\"></iframe>\n";
+ echo "<h3>"._T('spiplistes:val_texte')."</h3><a href=\"".generer_url_public('patron_switch',"patron=".$patron."&date=".$date."&format=texte")."\">(Plein écran)</a><br /><br />\n";
+
+ echo generer_url_public('patron_switch',"patron=$patron&date=$date") ;
+$texte_patron = recuperer_page(generer_url_public('patron_switch',"patron=$patron",true)) ;
+echo $texte_patron.version_texte($texte_patron) ;
+
}
// doit on visualiser un squelette ? - fin
Modified: _plugins_/_email_/spip_listes/exec/spip_listes.php
--- _plugins_/_email_/spip_listes/exec/spip_listes.php (original)
+++ _plugins_/_email_/spip_listes/exec/spip_listes.php Sun May 28 17:25:20 2006
@@ -178,7 +178,7 @@
$date_dernier = $extra['majnouv'] ;
$date_dernier = date(_T('spiplistes:format_date'),$date_dernier) ;
- echo "<td><a href='spip.php?patron=".$extra['squelette']."&date=".$date_dernier."'> ".$extra['squelette']."</a><br />"._T('spiplistes:Tous_les')." ".$extra['periode']." "._T('spiplistes:jours')."</td><td><a href='?exec=gerer_liste&id_article=$id_article'>$titre</a><br />" ;
+ echo "<td><a href='".generer_url_public('patron_switch',"patron=".$extra['squelette']."&date=".$date_dernier)."'> ".$extra['squelette']."</a><br />"._T('spiplistes:Tous_les')." ".$extra['periode']." "._T('spiplistes:jours')."</td><td><a href='?exec=gerer_liste&id_article=$id_article'>$titre</a><br />" ;
echo "</td>" ;
echo "<td>";
if($proch != 0) echo "dans <b>$proch</b> "._T('spiplistes:jours')."</td>";
Removed: _plugins_/_email_/spip_listes/patron-texte.html
--- _plugins_/_email_/spip_listes/patron-texte.html (original)
+++ _plugins_/_email_/spip_listes/patron-texte.html (removed)
@@ -1,20 +0,0 @@
-<?php
-
-$nomsite=lire_meta("nom_site");
- $urlsite = lire_meta("adresse_site");
- $url_patron = $urlsite."/patron.php3?patron=$patron" ;
- if($date) $url_patron=$urlsite."/patron.php3?patron=$patron&date=$date" ;
- $titre_patron = "La lettre d'information du site ".$nomsite;
- if(!function_exists('file_get_contents')) {
- function file_get_contents($file) {
- $file = file($file);
- return !$file ? false : implode('', $file);
- }
- }
-
- $texte_patron = file_get_contents($url_patron);
-
- echo "<pre>";
- echo version_texte($texte_patron) ;
- echo "</pre>";
-?>
Removed: _plugins_/_email_/spip_listes/patron-texte.php3
--- _plugins_/_email_/spip_listes/patron-texte.php3 (original)
+++ _plugins_/_email_/spip_listes/patron-texte.php3 (removed)
@@ -1,13 +0,0 @@
-<?php
-if (!isset($patron)) {
- if (isset($_GET["patron"])) $patron = $_GET["patron"];
- else $patron = "patron_simple";
-}
-$fond = "patron-texte";
-$delais = 1;
-$flag_preserver=true ;
-
-include ("inc-public.php3");
-
-
-?>
Removed: _plugins_/_email_/spip_listes/patron.php3
--- _plugins_/_email_/spip_listes/patron.php3 (original)
+++ _plugins_/_email_/spip_listes/patron.php3 (removed)
@@ -1,25 +0,0 @@
-<?php
-if (!isset($patron)) { // appel simple (hors include), simple consultation page
- if (isset($_GET["patron"])) $patron = $_GET["patron"];
- else $patron = "patron_simple"; // on essaie de charger le patron par défaut
-}
-
-if (!isset($date)) {
- if (isset($_GET["date"])) $date = $_GET["date"];
- else $date = date("Y/m/d"); // maintenant
-}
-
-if (isset($_GET['format'])) $format = $_GET['format'];
- else $format = "HTML";
-
-$contexte_inclus['date']= $date ;
-
-if($format == "texte") {header("Location: patron-texte.php3?patron=$patron&date=$date");exit();}
-$fond = "patrons/$patron";
-$delais = 1;
-$flag_preserver=true ;
-
-include ("inc-public.php3");
-
-
-?>