stoooooooooooooooop
you're commiting in the bad plugin directory !
_plugins_/_stable_/gestion_documents/
i think you made a hard copy from a subfolder and thus the hidden .svn is taken with, keeping the link of the folder with the original repository.
We've all allreday done once ....
Cedric
gaitan@gmail.com a écrit :
Author: gaitan@gmail.com
Date: Mon Jul 2 15:39:19 2007
New Revision: 13232Log:
actualizandooooAdded:
_plugins_/_stable_/gestion_documents/edicion_grupal.php
_plugins_/_stable_/gestion_documents/exec/edicion_masa.php
_plugins_/_stable_/gestion_documents/lang/edicion_es.phpAdded: _plugins_/_stable_/gestion_documents/edicion_grupal.php
--- _plugins_/_stable_/gestion_documents/edicion_grupal.php (added)
+++ _plugins_/_stable_/gestion_documents/edicion_grupal.php Mon Jul 2 15:39:19 2007
@@ -0,0 +1,70 @@
+<?php
+
+/*
+ * edicion grupal
+ *
+ * interfaz para la gestion masiva de articulos
+ *
+ * Auteur : Martin Gaitan gaitan@gmail.com
+ * © 2007 - codigo bajo licencia GNU/GPL
+ *
+ */
+
+if (!defined('_DIR_PLUGIN_GESTIONDOCUMENTS')){
+ $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
+ define('_DIR_PLUGIN_GESTIONDOCUMENTS',(_DIR_PLUGINS.end($p)));
+}
+
+ function EdicionGrupal_ajouterBoutons($boutons_admin) {
+ // si on est admin
+ if ($GLOBALS['connect_statut'] == "0minirezo" && $GLOBALS["connect_toutes_rubriques"]
+ AND $GLOBALS["options"]=="avancees" ) {
+
+ // on voit les bouton dans la barre "accueil"
+ $boutons_admin['naviguer']->sousmenu["edicion_masa"]= new Bouton(
+ "../"._DIR_PLUGIN_GESTIONDOCUMENTS."/img_pack/icono.png", // icone
+ _T("edicion:editar_masa") //titre
+ );
+ }
+ return $boutons_admin;
+ }
+
+ function EdicionGrupal_ajouterOnglets($flux) {
+ $rubrique = $flux['args'];
+ return $flux;
+ }
+
+ function EdicionGrupal_header_prive($flux){
+ $flux .= "<script type=\"text/javascript\">
+<!--
+function checkAll(form)
+{
+ for (i = 0, n = form.elements.length; i < n; i++) {
+ if(form.elements[i].type == \"checkbox\") {
+ if(form.elements[i].checked == true)
+ form.elements[i].checked = false;
+ else
+ form.elements[i].checked = true;
+ }
+ }
+}
+
+function getNumChecked(form)
+{
+ var num = 0;
+ for (i = 0, n = form.elements.length; i < n; i++) {
+ if(form.elements[i].type == \"checkbox\") {
+ if(form.elements[i].checked == true)
+ num++;
+ }
+ }
+ return num;
+}
+//-->
+</script>";
+ return $flux;
+ }
+
+?>Added: _plugins_/_stable_/gestion_documents/exec/edicion_masa.php
--- _plugins_/_stable_/gestion_documents/exec/edicion_masa.php (added)
+++ _plugins_/_stable_/gestion_documents/exec/edicion_masa.php Mon Jul 2 15:39:19 2007
@@ -0,0 +1,169 @@
+<?php
+
+/*
+ * gestion_documents
+ *
+ * interface de gestion des documents
+ *
+ * Auteur : cedric.morin@yterium.com
+ * © 2006 - Distribue sous licence GPL
+ *
+ */
+include_spip('inc/afficher_objets');
+
+if (!defined('_DIR_PLUGIN_GESTIONDOCUMENTS')){
+ $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
+ define('_DIR_PLUGIN_GESTIONDOCUMENTS',(_DIR_PLUGINS.end($p)));
+}
+
+// Fonction appelee dans une boucle, calculer les invariants au premier appel.
+
+// http://doc.spip.org/@inc_formater_article_dist
+function inc_formater_article($row){
+ global $options, $spip_lang_right, $spip_display;
+ static $pret = false;
+ static $chercher_logo, $img_admin, $formater_auteur, $nb, $langue_defaut, $afficher_langue;
+
+ if (!$pret) {
+ $chercher_logo = ($spip_display != 1 AND $spip_display != 4 AND $GLOBALS['meta']['image_process'] != "non");
+ if ($chercher_logo) + $chercher_logo = charger_fonction('chercher_logo', 'inc');
+ $formater_auteur = charger_fonction('formater_auteur', 'inc');
+ $img_admin = http_img_pack("admin-12.gif", "", " width='12' height='12'", _T('titre_image_admin_article'));
+
+ if (($GLOBALS['meta']['multi_rubriques'] == 'oui' AND (!isset($GLOBALS['id_rubrique']))) OR $GLOBALS['meta']['multi_articles'] == 'oui') {
+ $afficher_langue = true;
+ $langue_defaut = !isset($GLOBALS['langue_rubrique'])
+ ? $GLOBALS['meta']['langue_site']
+ : $GLOBALS['langue_rubrique'];
+ }
+ $pret = true;
+ }
+
+ $id_article = $row['id_article'];
+
+ if ($chercher_logo) {
+ if ($logo = $chercher_logo($id_article, 'id_article', 'on')) {
+ list($fid, $dir, $nom, $format) = $logo;
+ include_spip('inc/filtres_images');
+ $logo = image_reduire("<img src='$fid' alt='' />", 26, 20);
+ }
+ } else $logo ='';
+
+ $vals = array();
+
+ $titre = sinon($row['titre'], _T('ecrire:info_sans_titre'));
+ $id_rubrique = $row['id_rubrique'];
+ $date = $row['date'];
+ $statut = $row['statut'];
+ $descriptif = $row['descriptif'];
+ $lang_dir = lang_dir(($lang = $row['lang']) ? changer_typo($lang):'');
+
+ $vals= "<input type=\"checkbox\" name=\"lista_articulos\" value=\"".$id_article."\" />";
+
+ $vals= "<div>"
+ . "<a href='"
+ . generer_url_ecrire("articles","id_article=$id_article")
+ . "'"
+ . (!$descriptif ? '' : + (' title="'.attribut_html(typo($descriptif)).'"'))
+ . " dir='$lang_dir'>"
+ . (!$logo ? '' :
+ ("<span style='float: $spip_lang_right; margin-top: -2px; margin-bottom: -2px;'>" . $logo . "</span>"))
+ . (acces_restreint_rubrique($id_rubrique) ? $img_admin : '')
+ . typo($titre)
+ . (!($afficher_langue AND $lang != $GLOBALS['meta']['langue_site']) ? '' :
+ (" <span class='spip_xx-small' style='color: #666666' dir='$lang_dir'>(".traduire_nom_langue($lang).")</span>"))
+ . (!$row['petition'] ? '' :
+ ("</a> <a href='" . generer_url_ecrire('controle_petition', "id_article=$id_article") . "' class='spip_xx-small' style='color: red'>"._T('lien_petitions')))
+ . "</a>"
+ . "</div>";
+
+ $result = auteurs_article($id_article);
+ $les_auteurs = array();
+ while ($r = spip_fetch_array($result)) {
+ list($s, $mail, $nom, $w, $p) = $formater_auteur($r['id_auteur']);
+ $les_auteurs= "$mail $nom";
+ }
+ $vals = join('<br />', $les_auteurs);
+
+ $s = affdate_jourcourt($date);
+ $vals = $s ? $s : ' ';
+
+ $vals= afficher_numero_edit($id_article, 'id_article', 'article');
+
+ // Afficher le numero (JMB)
+ $largeurs = array(11, '', 80, 100, 50);
+ $styles = array('', 'arial2', 'arial1', 'arial1', 'arial1');
+
+ return ($spip_display != 4)
+ ? afficher_liste_display_neq4($largeurs, $vals, $styles)
+ : afficher_liste_display_eq4($largeurs, $vals, $styles);
+}
+
+function generer_query_string($conteneur,$id_type,$nb_aff,$filtre){
+ $query = ($conteneur?"conteneur=$conteneur&":"")
+ .($id_type?"id_type=$id_type&":"")
+ .(($nb_aff)?"nb_aff=$nb_aff&":"")
+ .(($filtre)?"filtre=$filtre&":"");
+
+ return $query;
+}
+
+charger_generer_url();
+
+function exec_edicion_masa(){
+ global $updatetable;
+ global $connect_statut, $connect_id_auteur;
+ //global $modif;
+
+ include_spip ("inc/presentation");
+ include_spip ("inc/documents");
+ include_spip('inc/indexation');
+ include_spip ("inc/logos");
+ include_spip ("inc/session");
+
+ //
+ // Recupere les donnees
+ //
+
+ debut_page(_T("edicion:tous_docs"), "documents", "documents");
+ debut_gauche();
+
+ //////////////////////////////////////////////////////
+ // Boite "voir en ligne"
+ //
+
+ debut_boite_info();
+
+ echo propre(_T('edicion:info_doc'));
+
+ fin_boite_info();
+
+ global $connect_statut;
+ if ($connect_statut != '0minirezo') {
+ echo "<strong>"._T('avis_acces_interdit')."</strong>";
+ fin_page();
+ exit;
+ }
+
+creer_colonne_droite();
+ echo pipeline('affiche_droite',array('args'=>array('exec'=>'articles_page'),'data'=>''));
+debut_droite();
+echo _request('filtro');
+echo "<form name=\"lista\" id=\"lista\" action=\"\" method=\"post\">";
+echo "<input type=\"checkbox\" onclick=\"checkAll(document.getElementById('lista'));\" />";
+echo afficher_objets('article',_T('Tu seleccion'),array("FROM" =>"spip_articles AS articles", 'ORDER BY' => "articles.date DESC"));
+echo "</form>";
+
+//echo pipeline('affiche_milieu',array('args'=>array('exec'=>'articles_page'),'data'=>''));
+
+}
+
+?>Added: _plugins_/_stable_/gestion_documents/lang/edicion_es.php
--- _plugins_/_stable_/gestion_documents/lang/edicion_es.php (added)
+++ _plugins_/_stable_/gestion_documents/lang/edicion_es.php Mon Jul 2 15:39:19 2007
@@ -0,0 +1,28 @@
+<?php
+
+$GLOBALS[$GLOBALS['idx_lang']] = array(
+ 'affichage' => 'Visualización:',
+ 'attr_alt' => 'No hay etiqueta alt ?? ',
+ 'conteneur' => 'Contenedor :',
+ 'fichier_introuvable' => 'Archivo no encontrado',
+ 'filtrer' => 'Filtrar :',
+ 'info_breve' => 'Breve ',
+ 'info_breves' => 'Breves',
+ 'info_doc' => 'Esta página permite modificar en masa el estado y algunos atributos de tus articulos, como la sección a la que pertenecen o la asociacion con una determinada palabra clave',
+ 'info_reparer' => 'Esta página reconstruye los enlaces entre documentos y artóculos en los cuales ha sido insertados mediante una etiqueta <code><imgxx> <docxx> o <embxx></code>',
+ 'info_rubrique' => 'Sección ',
+ 'lien_ajoute' => 'enlace añadido',
+ 'mis_jour_liens' => 'Enlaces actualizados',
+ 'mis_jour_tailles' => 'Actualizar los tamaños',
+ 'par' => 'En grupos de @numero@',
+ 'portfolio' => 'Portfolio',
+ 'reparer_liens' => 'Reparar los enlaces',
+ 'info_syndication' => 'Sindicación',
+ 'sans_titre_descriptif' => 'Sin título ni descripcición',
+ 'taille_erronee' => 'Tamaño incorrecto',
+ 'type' => 'Tipo: ',
+ 'tous' => 'Todos',
+ 'editar_masa' => 'Editar en masa'
+);
+?>_______________________________________________
Spip-zone-commit@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone-commit