Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 433 → Rev 434

/trunk/client/integrateur_wikini/configuration/adwi_configuration.inc.php
New file
0,0 → 1,77
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU Lesser General Public |
// | License as published by the Free Software Foundation; either |
// | version 2.1 of the License, or (at your option) any later version. |
// | |
// | This library is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | Lesser General Public License for more details. |
// | |
// | You should have received a copy of the GNU Lesser General Public |
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: adwi_configuration.inc.php,v 1.1 2005-08-25 08:59:12 ddelon Exp $
/**
* Fichier de configuration général de l'application Administration des wikini
*
* Permet de définir certains paramètres valables pour toutes l'application
* Administrateur des Wikni
*
*@package Admin_Wikini
*@subpackage Configuration
//Auteur original :
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@author David Delon <david.delon@clapas.net>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Constante stockant la valeur de la langue par défaut pour l'appli ADAP.*/
define('ADWI_I18N_DEFAUT', GEN_I18N_ID_DEFAUT);
 
// Chemin des fichiers à inclure.
/** Chemin vers la bibliothèque PEAR.*/
define('ADWI_CHEMIN_BIBLIOTHEQUE_PEAR', '');
/** Chemin vers la bibliothèque API.*/
define('ADWI_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
/** Chemin vers la bibliothèque de Papyrus.*/
define('ADWI_CHEMIN_BIBLIOTHEQUE_GEN', GEN_CHEMIN_BIBLIO);
 
// Chemin vers les dossiers de l'application
/** Chemin vers l'application Admin Auth de Papyrus.*/
define('ADWI_CHEMIN_APPLICATION', GEN_CHEMIN_CLIENT.'integrateur_wikini/');
/** Chemin vers la bibliothèque de l'application Admin Auth de Papyrus.*/
define('ADWI_CHEMIN_BIBLIOTHEQUE', ADWI_CHEMIN_APPLICATION.'bibliotheque/');
/** Chemin vers les fichiers de traduction de l'application Admin Auth de Papyrus.*/
define('ADWI_CHEMIN_LANGUE', ADWI_CHEMIN_APPLICATION.'langues/');
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2004/12/13 18:07:33 alex
* version initiale
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/client/integrateur_wikini/configuration/iw_config.inc.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: iw_config.inc.php,v 1.1 2005-08-18 10:19:55 ddelon Exp $
// CVS : $Id: iw_config.inc.php,v 1.2 2005-08-25 08:59:12 ddelon Exp $
/**
* Configuration de l'intégrateur de page Wikini
*
34,7 → 34,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2005-08-18 10:19:55 $
*@version $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $
// +------------------------------------------------------------------------------------------------------+
*/
 
92,7 → 92,8
/** Constantes de connexion aux bases de données MySQL*/
global $wikini_config_defaut;
$wikini_config_defaut = array(
'wakka_version' => '',
"wakka_version" => "0.1.1",
"wikini_version" => "0.4.3",
'debug' => 'yes',
'mysql_host' => HOTE,
'mysql_database' => BD_WIKINI,
101,14 → 102,13
'table_prefix' => $GLOBALS['_GEN_commun']['info_application']->table_prefix,
'root_page' => $GLOBALS['_GEN_commun']['info_application']->page,
'wakka_name' => $GLOBALS['_GEN_commun']['info_application']->wikini_nom,
'base_url' => $GLOBALS['_GEN_commun']['url']->getUrl().'&amp;wiki=',
'base_url' => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
'rewrite_mode' => '0',
'meta_keywords' => '',
'meta_description' => '',
'action_path' => IW_CHEMIN_BIBLIO_WIKINI.'actions',
'handler_path' => IW_CHEMIN_BIBLIO_WIKINI.'handlers',
'formatters_path' => IW_CHEMIN_BIBLIO_WIKINI.'formatters',
'interwiki_path' => IW_CHEMIN_BIBLIO_WIKINI,
'action_path' => '/home/david/workspace/papyrus/wikini/wikini_01/actions',
'handler_path' => '/home/david/workspace/papyrus/wikini/wikini_01/handlers',
'formatters_path' => '/home/david/workspace/papyrus/wikini/wikini_01/formatters',
'header_action' => 'header',
'footer_action' => 'footer',
'navigation_links' => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
118,7 → 118,7
'default_read_acl' => '*',
'default_comment_acl' => '*',
'preview_before_save' => '0');
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/trunk/client/integrateur_wikini/admin_wikini.php
New file
0,0 → 1,193
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU Lesser General Public |
// | License as published by the Free Software Foundation; either |
// | version 2.1 of the License, or (at your option) any later version. |
// | |
// | This library is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | Lesser General Public License for more details. |
// | |
// | You should have received a copy of the GNU Lesser General Public |
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: admin_wikini.php,v 1.1 2005-08-25 08:59:12 ddelon Exp $
/**
* Application gérant les Wikini associe à Papyrus
*
* Cette application permet de gérer les parametre des wikini associés à l'ensemble d'un papyrus
* TODO : afficher les utilisations par les menus.
* TODO : synchronisation FTP ? ....
* TODO : chemin vers le wikini ... (non, calcul en fonction du code alpha) , mais controles ? Pas dans un
* premier temps ...
* TODO : installation des wikini (tables présentes etc, et gestion ... (suppression ...)
*
*@package Admin_Wikini
//Auteur original :
*@author David Delon <david.delon@clapas.net>
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion du fichier de configuration de cette application.*/
require_once 'client/integrateur_wikini/configuration/adwi_configuration.inc.php';
 
//Utilisation de la bibliothèque PEAR NET_URL
 
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
require_once ADWI_CHEMIN_BIBLIOTHEQUE_PEAR.'HTML/QuickForm.php';
require_once ADWI_CHEMIN_BIBLIOTHEQUE_PEAR.'HTML/QuickForm/select.php';
 
/** Inclusion de l'API de fonctions gérant les erreurs sql.*/
require_once ADWI_CHEMIN_BIBLIOTHEQUE_API.'debogage/BOG_sql.fonct.php';
 
/** Inclusion des fonctions de manipulation du sql.
* Permet la récupération d'un nouvel identifiant d'une table.*/
require_once ADWI_CHEMIN_BIBLIOTHEQUE_API.'sql/SQL_manipulation.fonct.php';
 
require_once ADWI_CHEMIN_BIBLIOTHEQUE_API.'html/HTML_TableFragmenteur.php' ;
 
require_once ADWI_CHEMIN_BIBLIOTHEQUE.'adwi_wikini.fonct.php';
 
require_once ADWI_CHEMIN_BIBLIOTHEQUE.'adwi_HTML_formulaireWikini.class.php' ;
 
 
// Inclusion des fichiers de traduction de l'appli ADME dePapyrus
if (file_exists(ADWI_CHEMIN_LANGUE.'adwi_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php')) {
/** Inclusion du fichier de traduction suite à la transaction avec le navigateur.*/
require_once ADWI_CHEMIN_LANGUE.'adwi_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php';
} else {
/** Inclusion du fichier de traduction par défaut.*/
require_once ADWI_CHEMIN_LANGUE.'adwi_langue_'.ADWI_I18N_DEFAUT.'.inc.php';
}
 
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
function afficherContenuCorps()
{
 
/* Gestion de Deux "écrans" et des actions associées : liste des Wikini en base de donnees et ajout-modification
* d'un Wikini
*/
$db = &$GLOBALS['_GEN_commun']['pear_db'] ;
$url = $GLOBALS['_GEN_commun']['url'] ;
$auth = &$GLOBALS['_GEN_commun']['pear_auth'] ;
isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas
if (!$auth->getAuth()) {
return 'Identifiez-vous' ;
}
// Le lien pour une nouvelle entrée
$res = '<a href="'.$url->getURL().'&amp;action=nouveau">'.ADWI_AJOUTER.'</a>'."\n<br />" ;
// traitement de la suppression
if (isset ($GLOBALS['action']) && $GLOBALS['action'] == 'supprimer') adwi_supprimer_wikini($GLOBALS['id_wikini'], $db) ;
// traitement de l'ajout et de la modification de la ligne selectionnée
if (isset ($GLOBALS['action']) || isset ($GLOBALS['id_wikini'])) {
$formulaire = new HTML_formulaireWikini('formulaire_wikini', '', str_replace ('&amp;', '&', $url->getURL())) ;
$formulaire->construitFormulaire($url) ;
// C'est une demande d'ajout : Affichage du masque de saisie et ajout d'un champs caché avec action=nouveau_v
if ($GLOBALS['action'] == 'nouveau') {
$formulaire->addElement ('hidden', 'action', 'nouveau_v') ;
return $formulaire->toHTML() ;
}
// C'est une demande de modification : Affichage du masque de saisie et ajout d'un champs caché avec action=modifier_v
if (isset ($GLOBALS['id_wikini']) && $GLOBALS['action'] != 'modifier_v' && $GLOBALS['action'] != 'supprimer') {
$formulaire->addElement ('hidden', 'action', 'modifier_v') ;
$formulaire->addElement ('hidden', 'id_wikini', $GLOBALS['id_wikini']) ;
$formulaire->setDefaults(adwi_valeurs_par_defaut($GLOBALS['id_wikini'], $db)) ;
return $formulaire->toHTML() ;
}
// Enregistrement de la modification
if ($GLOBALS['action'] == 'modifier_v') {
if ($formulaire->validate()) {
mise_a_jour ($formulaire->getSubmitValues(), $db) ;
}
}
// Enregistrement de l'ajout
if ($GLOBALS['action'] == 'nouveau_v') {
if ($formulaire->validate()) {
insertion ($formulaire->getSubmitValues(), $db) ;
}
}
}
// Comportement par défaut
// requete sur la table gen_wikini pour affichage de la liste des Wikini
$requete = "select gewi_id_wikini, gewi_code_alpha_wikini from gen_wikini" ;
$resultat = $db->query ($requete) ;
if (DB::isError ($resultat)) {
$GLOBALS['_GEN_commun']['debogage_erreur']->gererErreur(E_USER_WARNING, "Echec de la requete : $requete<br />".$resultat->getMessage(),
__FILE__, __LINE__, 'admin_wikini') ;
return ;
}
$liste = new HTML_TableFragmenteur () ;
$liste->construireEntete(array (ADWI_NOM_WIKINI, ADWI_MODIFIER, ADWI_SUPPRIMER)) ;
$tableau_wikini = array() ;
while ($ligne = $resultat->fetchRow()) {
$url->addQueryString ('id_wikini', $ligne[0]) ;
array_push ($tableau_wikini, array ($ligne[1]."\n", // Première colonne, le nom de l'application
'<a href="'.$url->getURL().'">'.ADWI_MODIFIER.'</a>'."\n",
'<a href="'.$url->getURL().'&amp;action=supprimer" onclick="javascript:return confirm (\''.ADWI_SUPPRIMER.' ?\');">'.ADWI_SUPPRIMER.'</a>'."\n"
));
}
$liste->construireListe($tableau_wikini) ;
$res .= $liste->toHTML();
return $res ;
}// Fin de la fonction afficherContenuCorps()
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.4 2005/03/09 10:46:17 jpm
* Changement d'un nom de fichier.
*
* Revision 1.3 2005/03/09 10:40:26 alex
* version initiale
*
* Revision 1.2 2005/02/28 10:32:59 jpm
* Changement de nom de dossier.
*
* Revision 1.1 2004/12/13 18:07:19 alex
* version initiale
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/client/integrateur_wikini/wakka.config.php
New file
0,0 → 1,31
<?php
// wakka.config.php cr&eacute;&eacute;e Thu Apr 7 19:23:34 2005
// ne changez pas la wikini_version manuellement!
 
$wakkaConfig = array(
"wakka_version" => "0.1.1",
"wikini_version" => "0.4.3",
"debug" => "no",
"mysql_host" => "localhost",
"mysql_database" => "wikini",
"mysql_user" => "root",
"mysql_password" => "",
"table_prefix" => "wiki043_",
"root_page" => "PagePrincipale",
"wakka_name" => "MonSiteWikiNi",
"base_url" => "http://localhost/~david/papyrus/wikini/wikini_01/wakka.php?wiki=",
"rewrite_mode" => "0",
"meta_keywords" => "",
"meta_description" => "",
"action_path" => "actions",
"handler_path" => "handlers",
"header_action" => "header",
"footer_action" => "footer",
"navigation_links" => "DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur",
"referrers_purge_time" => "24",
"pages_purge_time" => "90",
"default_write_acl" => "*",
"default_read_acl" => "*",
"default_comment_acl" => "*",
"preview_before_save" => "0");
?>
/trunk/client/integrateur_wikini/integrateur_wikini.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: integrateur_wikini.php,v 1.1 2005-08-18 10:20:07 ddelon Exp $
// CVS : $Id: integrateur_wikini.php,v 1.2 2005-08-25 08:59:12 ddelon Exp $
/**
* Integrateur de page Wikini
*
33,11 → 33,9
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2005-08-18 10:20:07 $
*@version $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $
*
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion de la classe PEAR de gestion des URL. */
50,9 → 48,71
/** Inclusion du fichier permettant d'inclure les données dans du XHTML.*/
require_once IW_CHEMIN_BIBLIO.'iw_affichage_xhtml.fonct.php';
 
/** Inclusion du fichier permettant l'utilisation de la classe wiki.*/
require_once IW_CHEMIN_BIBLIO_WIKINI.'wakka.php';
global $wiki;
global $wiki_p;
 
if ( ! isset( $_REQUEST['wiki'] ) ) {
$_REQUEST['wiki'] = $GLOBALS['_GEN_commun']['info_application']->page;
}
 
$server=$_SERVER['PHP_SELF'];
$_SERVER['PHP_SELF']="wakka.php";
 
// Utilise le wakkaconfig de la racine ...
// TODO : generer un wakkaconfig en fonction des parametres, dans un temp et l'ecrire
// juste avant ... : bof (car conflits possibles).
// Ou alors : on utilise un wakkaconfig generique à minima ...
// Dans tous les cas, il faut gerer le WakaConfig Generique !
// Prevoir de revoir la contrib menu ... qui doit être switchable, ou plutot,
// Customiser son menu avec papyrus ...
 
ob_start();
include_once '/home/david/workspace/papyrus/wikini/wikini_01/wakka.php';
ob_end_clean();
 
$_SERVER['PHP_SELF']=$server;
 
 
// On surcharge la classe Wiki pour en faire ce qu'on en veut
Class Wiki_Papyrus extends Wiki {
function Format($text, $formatter = "wakka") {
return $this->IncludeBuffered("/home/david/workspace/papyrus/wikini/wikini_01/formatters/".$formatter.".php", "<i>Impossible de trouver le formateur \"$formatter\"</i>", compact("text"));
}
function Header() {
$sortie='';
$sortie.='<h1 class="wiki_name">';
// Todo : Initialiser : wakka_nom
$sortie.= $this->config["wakka_name"];
$sortie.='</h1>';
$sortie.='<h1 class="page_name">';
$sortie.='<a href="';
$sortie.=$this->config["base_url"];
$sortie.='RechercheTexte&amp;phrase=';
$sortie.=htmlentities($this->GetPageTag());
$sortie.='">';
$sortie.=htmlentities($this->GetPageTag());
$sortie.='</a>';
$sortie.='</h1>';
 
$sortie.='<div class="header">';
$sortie.= $this->ComposeLinkToPage($this->config["root_page"]).'::';
$sortie.= $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: \n" : "";
$sortie.='Vous &ecirc;tes ';
$sortie.= $this->Format($this->GetUserName());
if ($user = $this->GetUser()) {
$sortie.="(<a href=\"".$this->config["base_url"]."ParametresUtilisateur&amp;action=logout\">D&eacute;connexion</a>)\n";
}
$sortie.='</div>';
return $sortie;
}
function Footer() {
return;
}
}
 
 
// Appel du fichier de traduction des textes de l'application Integrateur Wikini
if (file_exists(IW_CHEMIN_LANGUES.'iw_langue_'.IW_I18N.'.inc.php')) {
/** Inclusion du fichier de traduction de l'application Integrateur Wikini. */
61,6 → 121,8
/** Inclusion du fichier de traduction fr par défaut. */
include_once IW_CHEMIN_LANGUES.'iw_langue_fr.inc.php';
}
 
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
72,47 → 134,56
*/
function afficherContenuCorps()
{
global $wiki;
$sortie='';
$wakkaConfig = $GLOBALS['wikini_config_defaut'];
// Démarrage de session php
//session_start();
// Récupération du nom de la page wikini recherchée
if ( ! isset( $_REQUEST['wiki'] ) ) {
$GLOBALS['wiki'] = $GLOBALS['_GEN_commun']['info_application']->page;
} else {
$GLOBALS['wiki'] = $_REQUEST['wiki'];
}
// Gestion de la variable de session "linktracking"
$wiki = new Wiki_Papyrus($wakkaConfig);
 
// Gestion de la variable de session "linktracking"
if ( ! isset( $_SESSION['linktracking'] ) ) {
$_SESSION['linktracking'] = 1;
}
 
// Suppression des slash.
$wiki = preg_replace("/^\//", '', $GLOBALS['wiki']);
$_REQUEST['wiki'] = preg_replace("/^\//", '', $_REQUEST['wiki']);
 
// split into page/method
if ( preg_match( "#^(.+?)/(.*)$#", $GLOBALS['wiki'], $matches ) ) {
if ( preg_match( "#^(.+?)/(.*)$#", $_REQUEST['wiki'], $matches ) ) {
list(, $page, $method) = $matches;
} else if ( preg_match( "#^(.*)$#", $GLOBALS['wiki'], $matches ) ) {
} else if ( preg_match( "#^(.*)$#", $_REQUEST['wiki'], $matches ) ) {
list(, $page) = $matches;
}
// Création de l'objet Wiki
$GLOBALS['wiki'] = new Wiki( $GLOBALS['wikini_config_defaut'] );
// Vérification de la méthode d'affichage employée!
if ( ! isset( $method ) ) {
$method = '';
}
//Récupération du contenu de la page Wikini
$sortie = remplacerEntiteHTLM('<div id="wikini_page">'."\n".$GLOBALS['wiki']->Run($page, $method).'</div>'."\n");
return $sortie;
ob_start();
$server=$_SERVER['PHP_SELF'];
$_SERVER['PHP_SELF']="wakka.php";
$wiki->Run($page, $method);
$_SERVER['PHP_SELF']=$server;
$sortie.= ob_get_contents();
ob_end_clean();
 
 
 
return remplacerEntiteHTLM("<div id=\"wikini_page\" ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n");
}
 
 
// TODO : qu'affiche-t-on en pied ?
/** Fonction afficherContenuPied() - Fonction appelé par le gestionnaire Papyrus.
*
* Elle retourne le pied de l'application.
123,26 → 194,4
{
return inclusion_html('pied_page');
}
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.3 2005/05/19 15:22:46 jpm
* Ajout du remplacement des & par des &amp;
*
* Revision 1.2 2005/05/19 13:17:02 jpm
* Ajout d'une balise div pour encadre le contenu du wikini.
*
* Revision 1.1 2005/03/02 17:47:05 jpm
* Ajout des fichiers necessaires à l'intégrateur de wikini.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/client/integrateur_wikini/bibliotheque/wikini/interwiki.conf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/client/integrateur_wikini/bibliotheque/wikini/README
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/recentcomments.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/header.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/listpages.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/listusers.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/footer.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/usersettings.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/recentchangesrss.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/interwikilist.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/backlinks.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/wantedpages.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/pageindex.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/resetpassword.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/mypages.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/recentchanges.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/textsearch.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/findpage.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/mychanges.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/test.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/orphanedpages.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/recentlycommented.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/referrers_sites.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/diff.orig.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/diff.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/code_bota_wikini.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/raw.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/addcomment.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/wakka.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/deletepage.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/referrers.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/show.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/xml.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/revisions.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/acls.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/claim.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/handlers/page/edit.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/LICENSE
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/client/integrateur_wikini/bibliotheque/wikini/wakka.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/php.php
File deleted
\ No newline at end of file
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/raw.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/code.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/action.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/wikini/formatters/wakka.php
File deleted
/trunk/client/integrateur_wikini/bibliotheque/iw_affichage_xhtml.fonct.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: iw_affichage_xhtml.fonct.php,v 1.1 2005-08-18 10:20:08 ddelon Exp $
// CVS : $Id: iw_affichage_xhtml.fonct.php,v 1.2 2005-08-25 08:59:12 ddelon Exp $
/**
* Fichier permettant d'inclure les données dans du XHTML.
*
34,7 → 34,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-08-18 10:20:08 $
*@version $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $
// +------------------------------------------------------------------------------------------------------+
*/
 
66,11 → 66,6
// +------------------------------------------------------------------------------------------------------+
// LES PIEDS DE PAGES
case "pied_page" :
$html_renvoyer =
'<p class="eflore_pied_page">'.
'Si vous constatez des problèmes ou des insuffisances en utilisant cette application, veuillez contacter :'.
'<a href="mailto:jpm@tela-botanica.org">Jean-Pascal MILCENT</a>'.
'</p>';
break;
}//fin du switch
80,7 → 75,10
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/08/18 10:20:08 ddelon
* Integrateur Wikini et Acces PEAR
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/client/integrateur_wikini/bibliotheque/adwi_wikini.fonct.php
New file
0,0 → 1,167
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Papyrus. |
// | |
// | Foobar is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | Foobar is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: adwi_wikini.fonct.php,v 1.1 2005-08-25 08:59:12 ddelon Exp $
/**
* Contient les fonctions de l'application gestion des Wikini
*
*
*
*
*@package Admin_Wikini
*@subpackage Fonctions
//Auteur original :
*@author David Delon <david.delon@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | LISTE de FONCTIONS |
// +------------------------------------------------------------------------------------------------------+
 
/* CRUD */
 
/**
*
* D du CRUD
* @return
*/
 
function adwi_supprimer_wikini($id_wikini, &$db) {
$requete = "delete from gen_wikini where gewi_id_wikini =$id_wikini" ;
$resultat = $db->query ($requete) ;
}
 
/**
*
*
* @return
*/
 
function adwi_valeurs_par_defaut($id_wikini, &$db) {
// requete sur gen_wikin
$requete = "select * from gen_wikini where gewi_id_wikini=$id_wikini" ;
$resultat = $db->query ($requete) ;
if (DB::isError ($resultat)) {
trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(), E_USER_WARNING) ;
return ;
}
$tableau_retour = array () ;
$ligne = $resultat->fetchRow (DB_FETCHMODE_OBJECT) ;
$tableau_retour['code_alpha_wikini'] = $ligne->gewi_code_alpha_wikini;
$tableau_retour['bdd_hote'] = $ligne->gewi_bdd_hote ;
$tableau_retour['bdd_nom'] = $ligne->gewi_bdd_nom;
$tableau_retour['bdd_utilisateur'] = $ligne->gewi_bdd_utilisateur;
$tableau_retour['bdd_mdp'] = $ligne->gewi_bdd_mdp;
$tableau_retour['table_prefix'] = $ligne->gewi_table_prefix ;
$tableau_retour['page'] = $ligne->gewi_page;
$tableau_retour['description'] = $ligne->gewi_description ;
unset ($requete, $resultat);
return $tableau_retour ;
}
 
/**
*
* C du CRUD
* @return
*/
 
 
function insertion ($valeur, &$db) {
// Calcul dernier identifiant
$id_wikini_bdd = SQL_obtenirNouveauId ($db, 'gen_wikini', 'gewi_id_wikini') ;
$requete = "insert into gen_wikini set gewi_id_wikini ="
.$id_wikini_bdd.","
.requete_gewi_wikini($valeur) ;
$resultat = $db->query ($requete) ;
if (DB::isError ($resultat)) {
trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(),E_USER_WARNING) ;
}
}
 
/**
*
* U du CRUD
* @return
*/
 
 
function mise_a_jour ($valeur, &$db) {
$requete = "update gen_wikini set ".requete_gewi_wikini($valeur)
.' where gewi_id_wikini ='.$GLOBALS['id_wikini'] ;
$resultat = $db->query ($requete) ;
if (DB::isError ($resultat)) {
trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(),E_USER_WARNING) ;
}
}
 
/**
*
* Formate code sql pour insertion à partir des valeurs entrees dans le formulaire
*
* @return string un morceau de code SQL
*/
 
function requete_gewi_wikini (&$valeur) {
return 'gewi_code_alpha_wikini ="'.$valeur['code_alpha_wikini'].'", '
.'gewi_bdd_hote ="'.$valeur['bdd_hote'].'", '
.'gewi_bdd_nom="'.$valeur['bdd_nom'].'", '
.'gewi_bdd_utilisateur ="'.$valeur['bdd_utilisateur'].'", '
.'gewi_bdd_mdp="'.$valeur['bdd_mdp'].'", '
.'gewi_table_prefix="'.$valeur['table_prefix'].'", '
.'gewi_description="'.$valeur['description'].'", '
.'gewi_page="'.$valeur['page'].'"';
}
 
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/03/09 10:44:04 jpm
* Mise au norme du nom du fichier.
*
* Revision 1.2 2005/03/09 10:40:33 alex
* version initiale
*
* Revision 1.1 2004/12/13 18:07:28 alex
* version initiale
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/client/integrateur_wikini/bibliotheque/adwi_HTML_formulaireWikini.class.php
New file
0,0 → 1,119
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU General Public |
// | License as published by the Free Software Foundation; either |
// | version 2.1 of the License, or (at your option) any later version. |
// | |
// | This library is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public |
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: adwi_HTML_formulaireWikini.class.php,v 1.1 2005-08-25 08:59:12 ddelon Exp $
/**
*
* Admin Wikini
*
* Classe affichage gestion des Wikini de Papyrus
*
*@package projet
//Auteur original :
*@author David Delon <david.delon@clapas.net>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $
// +------------------------------------------------------------------------------------------------------+
*/
 
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
/** Inclure le fichier de langue pour utiliser cette classe de façon autonome. */
 
require_once 'HTML/QuickForm.php' ;
require_once 'HTML/QuickForm/checkbox.php' ;
require_once 'HTML/QuickForm/select.php' ;
 
// +------------------------------------------------------------------------------------------------------+
// | LISTE des constantes |
// +------------------------------------------------------------------------------------------------------+
 
 
/**
* class HTML_formulaireProjet
* Cette classe représente un formulaire pour saisir un wikini ou le modifier
*/
class HTML_formulaireWikini extends HTML_QuickForm
{
/**
* Constructeur
*
* @param string formName Le nom du formulaire.
* @param string method Soit get soit post, voir le protocole HTTP
* @param string action L'action du formulaire.
* @param string target La cible du formulaire.
* @param Array attributes Des attributs supplémentaires pour la balise <form>
* @param bool trackSubmit Pour repérer si la formulaire a été soumis.
* @return void
* @access public
*/
function HTML_formulaireWikini( $formName = "", $method = "post", $action = "", $target = "_self", $attributes = "", $trackSubmit = false )
{
HTML_QuickForm::HTML_QuickForm($formName, $method, $action, $target, $attributes, $trackSubmit) ;
} // end of member function HTML_formulaireProjet
 
/**
* Renvoie le code HTML du formulaire.
*
* @return string
* @access public
*/
function toHTML( )
{
$res = HTML_QuickForm::toHTML() ;
return $res ;
} // end of member function toHTML
 
/**
* Ajoute les champs nécessaire au formulaire.
*
* @return void
* @access public
*/
function construitFormulaire($url_retour)
{
$this->addElement ('text', 'code_alpha_wikini', ADWI_NOM_WIKINI, array ('size' => 60)) ;
$this->addRule ('code_alpha_wikini', ADWI_NOM_WIKINI_ALERTE, 'required', '', 'client') ;
$this->addElement ('text', 'bdd_hote', ADWI_BDD_HOTE, array ('size' => 60)) ;
$this->addElement ('text', 'bdd_nom', ADWI_BDD_NOM, array ('size' => 60)) ;
$this->addElement ('text', 'bdd_utilisateur', ADWI_BDD_UTILISATEUR, array ('size' => 60)) ;
$this->addElement ('text', 'bdd_mdp', ADWI_BDD_MDP, array ('size' => 60)) ;
$this->addElement ('text', 'table_prefix', ADWI_TABLE_PREFIX, array ('size' => 60)) ;
$this->addElement ('text', 'page', ADWI_PAGE, array ('size' => 60)) ;
$this->addElement ('textarea', 'description', ADWI_DESCRIPTION, array ('cols' => 50, 'rows' => 5)) ;
 
$this->setRequiredNote('<span style="color: #ff0000">*</span>'.ADWI_CHAMPS_REQUIS) ;
// on fait un groupe avec les boutons pour les mettres sur la même ligne
$buttons[] = &HTML_QuickForm::createElement('button', 'annuler', ADWI_ANNULER, array ("onclick" => "javascript:document.location.href='".str_replace ('&amp;', '&', $url_retour->getURL())."'"));
$buttons[] = &HTML_QuickForm::createElement('submit', 'valider', ADWI_VALIDER);
$this->addGroup($buttons, null, null, '&nbsp;');
} // end of member function _construitFormulaire
} // end of HTML_formulaireProjet
?>
/trunk/client/integrateur_wikini/langues/adwi_langue_fr.inc.php
New file
0,0 → 1,79
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Papyrus. |
// | |
// | Foobar is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | Foobar is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: adwi_langue_fr.inc.php,v 1.1 2005-08-25 08:59:12 ddelon Exp $
/**
* Gestion des langues de l'application ADWI : administration des Wikini
*
* Contient les constantes pour la langue française de l'application ADWI
*
*@package Admin_Wikini
*@subpackage Langues
//Auteur original :
*@author David Delon <david.delon@clapas.net>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | LISTE des CONSTANTES |
// +------------------------------------------------------------------------------------------------------+
define ("ADWI_NOM_WIKINI", "Nom Wikini") ;
define ("ADWI_BDD_HOTE", "Serveur base de donnee") ;
define ("ADWI_BDD_NOM", "Base de donnée") ;
define ("ADWI_BDD_UTILISATEUR", "Utilisateur") ;
define ("ADWI_BDD_MDP", "Mot de Passe") ;
define ("ADWI_TABLE_PREFIX", "Préfixe des tables") ;
define ("ADWI_PAGE", "Page de démarrage") ;
define ("ADWI_DESCRIPTION", "Description") ;
 
define ("ADWI_MODIFIER", "Modifier") ;
define ("ADWI_SUPPRIMER", "Supprimer") ;
define ("ADWI_AJOUTER", "Ajouter un Wikini") ;
 
 
define ("ADWI_NOM_WIKINI_ALERTE", "Vous devez spécifier un nom") ;
define ("ADWI_CHAMPS_REQUIS", "Indique les champs requis") ;
 
define ("ADWI_CHEMIN", "Chemin vers le Wikini") ;
define ("ADWI_CHEMIN_REQUIS", "Le chemin vers le Wikini est requis") ;
define ("ADWI_ANNULER", "Annuler") ;
define ("ADWI_VALIDER", "Valider") ;
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2005/03/09 10:40:37 alex
* version initiale
*
* Revision 1.1 2004/12/13 18:07:38 alex
* version initiale
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/papyrus/applications/afficheur/configuration/affi_configuration.inc.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: affi_configuration.inc.php,v 1.11 2005-08-18 10:20:04 ddelon Exp $
// CVS : $Id: affi_configuration.inc.php,v 1.12 2005-08-25 08:59:12 ddelon Exp $
/**
* Application réalisant l'affichage du contenu stocké dans Papyrus.
*
34,7 → 34,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.11 $ $Date: 2005-08-18 10:20:04 $
*@version $Revision: 1.12 $ $Date: 2005-08-25 08:59:12 $
// +------------------------------------------------------------------------------------------------------+
*/
 
72,7 → 72,8
$base_url=parse_url(PAP_URL);
$dirname_base_url=dirname($base_url['path']);
$GLOBALS['_AFFI_']['fckeditor']['CustomConfigurationsPath'] =$dirname_base_url.GEN_SEP.AFFI_CHEMIN_APPLICATION."configuration".GEN_SEP."affi_fckconfig.js";
// Suppression double slash pour site interdisant ce type d'url (a confirmer ...)
// Suppression double slash pour site interdisant ce type d'url (a confirmer ...)
// Probleme également avec des sous-domaines (~ree05/papyrus etc.) ....
$GLOBALS['_AFFI_']['fckeditor']['CustomConfigurationsPath'] = str_replace("//", "/", $GLOBALS['_AFFI_']['fckeditor']['CustomConfigurationsPath']);
 
// L'objet PEAR::DB à utiliser pour l'afficheur :
105,6 → 106,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.11 2005/08/18 10:20:04 ddelon
* Integrateur Wikini et Acces PEAR
*
* Revision 1.10 2005/07/21 18:11:43 ddelon
* configuration barre outil fcke
*
/trunk/wakka.config.php
New file
0,0 → 1,13
<?php
// wakka.config.php cr&eacute;&eacute;e Thu Apr 7 19:23:34 2005
// ne changez pas la wikini_version manuellement!
$wakkaConfig = array(
"wakka_version" => "0.1.1",
"wikini_version" => "0.4.3",
"mysql_host" => PAP_BDD_SERVEUR,
"mysql_database" => PAP_BDD_NOM,
"mysql_user" => PAP_BDD_UTILISATEUR,
"mysql_password" => PAP_BDD_MOT_DE_PASSE,
"table_prefix" => "gen_dummy_wikini_",
);
?>