/trunk/papyrus/pap_initialise_info.inc.php |
---|
21,7 → 21,7 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// | | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: pap_initialise_info.inc.php,v 1.20 2005-06-24 10:48:35 jpm Exp $ |
// CVS : $Id: pap_initialise_info.inc.php,v 1.21 2005-08-31 17:34:52 ddelon Exp $ |
/** |
*Initialisation de Papyrus : vérification et récupération de paramètres généraux. |
* |
41,7 → 41,7 |
*@author Alexandre GRANIER <alex@tela-botanica.org> |
*@author Laurent COUDOUNEAU <laurent.coudouneau@ema.fr> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.20 $ $Date: 2005-06-24 10:48:35 $ |
*@version $Revision: 1.21 $ $Date: 2005-08-31 17:34:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
63,7 → 63,6 |
// +------------------------------------------------------------------------------------------------------+ |
// Gestion des sites : disponiblent sur le serveur courant. |
// Liste des catégories de site à prendre en compte : |
$site_liste_id = '102, 103';// 102 = site "principal" et 103 = site "externe" |
if ( (! isset($_GET[GEN_URL_CLE_SITE]) || empty($_GET[GEN_URL_CLE_SITE])) && (! isset($_GET[GEN_URL_CLE_MENU]) || empty($_GET[GEN_URL_CLE_MENU])) ) { |
102,9 → 101,8 |
} |
} else if ( (! isset($_GET[GEN_URL_CLE_SITE]) || empty($_GET[GEN_URL_CLE_SITE])) && (isset($_GET[GEN_URL_CLE_MENU]) || !empty($_GET[GEN_URL_CLE_MENU])) ) { |
// Le code du menu est présent dans l'url mais pas celui du site |
// Nous récupérons les infos du menu et du sites dans la variable globale de Papyrus. |
// Nou$s récupérons les infos du menu et du sites dans la variable globale de Papyrus. |
$_GEN_commun['url_menu'] = $_GET[GEN_URL_CLE_MENU]; |
// Récupération des informations sur le menu demandé |
$requete = 'SELECT * '. |
'FROM gen_menu '. |
112,11 → 110,11 |
$requete .= (GEN_URL_ID_TYPE_MENU == 'int') |
? 'gm_code_num = '.$_GEN_commun['url_menu'] |
: 'gm_code_alpha = "'.$_GEN_commun['url_menu'].'"'; |
$resultat = $db->query($requete); |
(DB::isError($resultat)) |
? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) |
: ''; |
: ''; |
$_GEN_commun['info_menu'] = $resultat->fetchRow(DB_FETCHMODE_OBJECT); |
$resultat->free(); |
499,6 → 497,9 |
/* +--Fin du code ---------------------------------------------------------------------------------------+ |
* $Log: not supported by cvs2svn $ |
* Revision 1.20 2005/06/24 10:48:35 jpm |
* Modification des chemins des fichiers pour fonctionnement avec API Pear locale. |
* |
* Revision 1.19 2005/04/14 13:52:37 jpm |
* Utilisation de la classe Pap_URL. |
* |
/trunk/papyrus/applications/afficheur/configuration/affi_fckconfig.js |
---|
125,7 → 125,8 |
// Perl // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/perl/connector.cgi' ; |
// PHP // |
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ; |
// PHP - mcpuk // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ; |
// PHP - mcpuk |
//FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ; |
FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70% |
FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70% |
136,7 → 137,8 |
// Perl // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/perl/connector.cgi' ; |
// PHP // |
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ; |
// PHP - mcpuk // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ; |
// PHP - mcpuk |
//FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ; |
FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ; |
FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ; |
147,7 → 149,8 |
// Perl // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/perl/connector.cgi' ; |
// PHP // |
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php' ; |
// PHP - mcpuk // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' ; |
// PHP - mcpuk |
// FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' ; |
FCKConfig.FlashBrowserWindowWidth = screen.width * 0.7 ; //70% ; |
FCKConfig.FlashBrowserWindowHeight = screen.height * 0.7 ; //70% ; |
/trunk/papyrus/configuration/pap_config_avancee.inc.php |
---|
22,7 → 22,7 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// | | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: pap_config_avancee.inc.php,v 1.15 2005-04-21 16:46:51 jpm Exp $ |
// CVS : $Id: pap_config_avancee.inc.php,v 1.16 2005-08-31 17:34:52 ddelon Exp $ |
/** |
* Page de configuration avancée de Papyrus |
* |
36,7 → 36,7 |
*@author Alexandre GRANIER <alex@tela-botanica.org> |
*@author Laurent COUDOUNEAU <laurent.coudouneau@ema.fr> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.15 $ $Date: 2005-04-21 16:46:51 $ |
*@version $Revision: 1.16 $ $Date: 2005-08-31 17:34:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
126,6 → 126,8 |
define('GEN_CHEMIN_CLIENT', 'client'.GEN_SEP); |
/** Chemin relatif par rapport au fichier papyrus.php vers le dossier contenant les fichiers des sites.*/ |
define('GEN_CHEMIN_SITES', 'sites'.GEN_SEP); |
/** Chemin relatif par rapport au fichier papyrus.php vers le dossier contenant les fichiers des wikini*/ |
define('GEN_CHEMIN_WIKINI', 'wikini'.GEN_SEP); |
/** Chemin relatif par rapport au fichier papyrus.php vers le dossier contenant les fichiers de configuration de Papyrus.*/ |
define('GEN_CHEMIN_CONFIG', GEN_CHEMIN_PAP.'configuration'.GEN_SEP); |
/** Chemin relatif par rapport au fichier papyrus.php vers le dossier contenant les fichiers sql d'installation de Papyrus.*/ |
195,6 → 197,9 |
); |
/* +--Fin du code ---------------------------------------------------------------------------------------+ |
* $Log: not supported by cvs2svn $ |
* Revision 1.15 2005/04/21 16:46:51 jpm |
* Gestion via Papyrus du XHTML de Text_Wiki_Papyrus. |
* |
* Revision 1.14 2005/04/18 16:40:39 jpm |
* Ajout de constantes pour contrôler les permaliens. |
* |
/trunk/api/fckeditor/editor/filemanager/browser/default/connectors/php/config.php |
---|
22,7 → 22,10 |
$Config['Enabled'] = true; |
// Path to user files relative to the document root. |
$Config['UserFilesPath'] = '/UserFiles/' ; |
// Without end slash |
$Config['UserFilesPath'] = '/UserFiles'; |
$Config['BaseDir'] = '/home/david/workspace/papyrus'; |
$Config['UrlPrefix'] = '/~david/papyrus'; |
$Config['AllowedExtensions']['File'] = array() ; |
$Config['DeniedExtensions']['File'] = array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ; |
/trunk/api/fckeditor/editor/filemanager/browser/default/connectors/php/io.php |
---|
19,11 → 19,12 |
function GetUrlFromPath( $resourceType, $folderPath ) |
{ |
if ( $resourceType == '' ) |
return RemoveFromEnd( $GLOBALS["UserFilesPath"], '/' ) . $folderPath ; |
return RemoveFromEnd( $GLOBALS['UrlPrefix'].$GLOBALS["UserFilesPath"], '/' ) . $folderPath ; |
else |
return $GLOBALS["UserFilesPath"] . $resourceType . $folderPath ; |
return $GLOBALS['UrlPrefix'].$GLOBALS["UserFilesPath"] . $resourceType . $folderPath ; |
} |
function RemoveExtension( $fileName ) |
{ |
return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ; |
/trunk/api/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php |
---|
38,10 → 38,29 |
if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) ) |
$GLOBALS["UserFilesPath"] .= '/' ; |
$GLOBALS["BaseDir"] = ''; |
if ( isset( $Config['BaseDir'] ) ) |
$GLOBALS["BaseDir"] = $Config['BaseDir'] ; |
else if ( isset( $_GET['BaseDir'] ) ) |
$GLOBALS["BaseDir"] = $_GET['BaseDir'] ; |
else |
$GLOBALS["BaseDir"] = '' ; |
$GLOBALS["UrlPrefix"] = ''; |
if ( isset( $Config['UrlPrefix'] ) ) |
$GLOBALS["UrlPrefix"] = $Config['UrlPrefix'] ; |
else if ( isset( $_GET['UrlPrefix'] ) ) |
$GLOBALS["UrlPrefix"] = $_GET['UrlPrefix'] ; |
else |
$GLOBALS["UrlPrefix"] = '' ; |
// Map the "UserFiles" path to a local directory. |
//$GLOBALS["UserFilesDirectory"] = GetRootPath() . str_replace( '/', '\\', $GLOBALS["UserFilesPath"] ) ; |
$GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ; |
//$GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ; |
$GLOBALS['UserFilesDirectory'] = $GLOBALS['BaseDir'].$GLOBALS['UserFilesPath'] ; |
DoResponse() ; |
function DoResponse() |
/trunk/api/fckeditor/editor/filemanager/upload/php/upload.php |
---|
63,10 → 63,8 |
$iCounter = 0 ; |
// The the target directory. |
$sServerDir = GetRootPath() . $Config["UserFilesPath"] ; |
print "|"; |
print $sServerDir; |
print "|"; |
//$sServerDir = GetRootPath() . $Config["UserFilesPath"] ; |
$sServerDir = $Config['BaseDir'].$Config["UserFilesPath"].'/'; |
while ( true ) |
{ |
91,8 → 89,8 |
umask( $oldumask ) ; |
} |
$sFileUrl = $Config["UserFilesPath"] . $sFileName ; |
$sFileUrl = $Config["UrlPrefix"].$Config["UserFilesPath"]."/". $sFileName ; |
break ; |
} |
} |
/trunk/api/fckeditor/editor/filemanager/upload/php/config.php |
---|
22,8 → 22,13 |
$Config['Enabled'] = true ; |
// Path to uploaded files relative to the document root. |
$Config['UserFilesPath'] = '/UserFiles/' ; |
//$Config['UserFilesPath'] = '/UserFiles/' ; |
$Config['UserFilesPath'] = '/UserFiles'; |
$Config['BaseDir'] = '/home/david/workspace/papyrus'; |
$Config['UrlPrefix'] = '/~david/papyrus'; |
$Config['AllowedExtensions']['File'] = array() ; |
$Config['DeniedExtensions']['File'] = array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ; |
/trunk/api/fckeditor/editor/filemanager/upload/php/util.php |
---|
28,9 → 28,8 |
$sSelfPath = $_SERVER['PHP_SELF'] ; |
$sSelfPath = substr( $sSelfPath, 0, strrpos( $sSelfPath, '/' ) ) ; |
//return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ; |
return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ; |
return "/home/david/workspace/papyrus"; |
} |
/trunk/papyrus.php |
---|
33,7 → 33,7 |
// pris connaissance de la licence CeCILL, et que vous en avez accepté les |
// termes. |
// ---- |
// CVS : $Id: papyrus.php,v 1.15 2005-08-18 10:20:05 ddelon Exp $ |
// CVS : $Id: papyrus.php,v 1.16 2005-08-31 17:34:52 ddelon Exp $ |
/** |
* Papyrus : Programme principal appelant différent fichier à inclure dans un ordre précis. |
49,7 → 49,7 |
*@author Alexandre GRANIER <alex@tela-botanica.org> |
*@author Laurent COUDOUNEAU <laurent.coudouneau@ema.fr> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.15 $ $Date: 2005-08-18 10:20:05 $ |
*@version $Revision: 1.16 $ $Date: 2005-08-31 17:34:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// +------------------------------------------------------------------------------------------------------+ |
89,7 → 89,6 |
/** Inclusion API débogage : Gestionnaire d'erreurs sql |
* Ajout de la bibliothèque de fonctions de débogage d'erreurs SQL.*/ |
require_once GEN_CHEMIN_API.'debogage/BOG_sql.fonct.php'; |
// +------------------------------------------------------------------------------------------------------+ |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
193,6 → 192,9 |
/* +--Fin du code ---------------------------------------------------------------------------------------+ |
* $Log: not supported by cvs2svn $ |
* Revision 1.15 2005/08/18 10:20:05 ddelon |
* Integrateur Wikini et Acces PEAR |
* |
* Revision 1.14 2005/07/11 15:41:50 ddelon |
* test message information |
* |
/trunk/client/integrateur_wikini/wakka.config.php |
---|
File deleted |
/trunk/client/integrateur_wikini/bibliotheque/adwi_wikini.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: adwi_wikini.fonct.php,v 1.1 2005-08-25 08:59:12 ddelon Exp $ |
// CVS : $Id: adwi_wikini.fonct.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
/** |
* Contient les fonctions de l'application gestion des Wikini |
* |
35,7 → 35,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
54,6 → 54,7 |
function adwi_supprimer_wikini($id_wikini, &$db) { |
$requete = "delete from gen_wikini where gewi_id_wikini =$id_wikini" ; |
$resultat = $db->query ($requete) ; |
} |
/** |
62,6 → 63,24 |
* @return |
*/ |
function adwi_valeurs_par_code_alpha($code_alpha_wikini, &$db) { |
$requete = "select * from gen_wikini where gewi_code_alpha_wikini='". $code_alpha_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 ; |
} |
$ligne = $resultat->fetchRow (DB_FETCHMODE_OBJECT) ; |
$resultat->free(); |
unset ($requete, $resultat); |
return adwi_valeurs_par_defaut($ligne->gewi_id_wikini,$db); |
} |
function adwi_valeurs_par_defaut($id_wikini, &$db) { |
// requete sur gen_wikin |
102,7 → 121,7 |
$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) ; |
.requete_wikini($valeur) ; |
$resultat = $db->query ($requete) ; |
if (DB::isError ($resultat)) { |
trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(),E_USER_WARNING) ; |
117,7 → 136,7 |
function mise_a_jour ($valeur, &$db) { |
$requete = "update gen_wikini set ".requete_gewi_wikini($valeur) |
$requete = "update gen_wikini set ".requete_wikini($valeur) |
.' where gewi_id_wikini ='.$GLOBALS['id_wikini'] ; |
$resultat = $db->query ($requete) ; |
if (DB::isError ($resultat)) { |
132,7 → 151,7 |
* @return string un morceau de code SQL |
*/ |
function requete_gewi_wikini (&$valeur) { |
function requete_wikini (&$valeur) { |
return 'gewi_code_alpha_wikini ="'.$valeur['code_alpha_wikini'].'", ' |
.'gewi_bdd_hote ="'.$valeur['bdd_hote'].'", ' |
.'gewi_bdd_nom="'.$valeur['bdd_nom'].'", ' |
152,6 → 171,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.1 2005/03/09 10:44:04 jpm |
* Mise au norme du nom du fichier. |
* |
/trunk/client/integrateur_wikini/bibliotheque/adwi_HTML_formulaireWikini.class.php |
---|
19,7 → 19,7 |
// | 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 $ |
// CVS : $Id: adwi_HTML_formulaireWikini.class.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
/** |
* |
* Admin Wikini |
32,7 → 32,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
100,11 → 100,16 |
$this->addRule ('code_alpha_wikini', ADWI_NOM_WIKINI_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'bdd_hote', ADWI_BDD_HOTE, array ('size' => 60)) ; |
$this->addRule ('bdd_hote', ADWI_BDD_HOTE_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'bdd_nom', ADWI_BDD_NOM, array ('size' => 60)) ; |
$this->addRule ('bdd_nom', ADWI_BDD_NOM_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'bdd_utilisateur', ADWI_BDD_UTILISATEUR, array ('size' => 60)) ; |
$this->addRule ('bdd_utilisateur', ADWI_BDD_UTILISATEUR_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'bdd_mdp', ADWI_BDD_MDP, array ('size' => 60)) ; |
$this->addElement ('text', 'table_prefix', ADWI_TABLE_PREFIX, array ('size' => 60)) ; |
$this->addRule ('table_prefix', ADWI_TABLE_PREFIX_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'page', ADWI_PAGE, array ('size' => 60)) ; |
$this->addRule ('page', ADWI_PAGE_ALERTE, 'required', '', 'client') ; |
$this->addElement ('textarea', 'description', ADWI_DESCRIPTION, array ('cols' => 50, 'rows' => 5)) ; |
$this->setRequiredNote('<span style="color: #ff0000">*</span>'.ADWI_CHAMPS_REQUIS) ; |
/trunk/client/integrateur_wikini/langues/adwi_langue_fr.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: adwi_langue_fr.inc.php,v 1.1 2005-08-25 08:59:12 ddelon Exp $ |
// CVS : $Id: adwi_langue_fr.inc.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
/** |
* Gestion des langues de l'application ADWI : administration des Wikini |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
56,6 → 56,12 |
define ("ADWI_NOM_WIKINI_ALERTE", "Vous devez spécifier un nom") ; |
define ("ADWI_BDD_HOTE_ALERTE", "Vous devez spécifier un nom d'hote") ; |
define ("ADWI_BDD_NOM_ALERTE", "Vous devez spécifier une base de donnée") ; |
define ("ADWI_BDD_UTILISATEUR_ALERTE", "Vous devez spécifier un utilsateur") ; |
define ("ADWI_TABLE_PREFIX_ALERTE", "Vous devez spécifier un préfixe") ; |
define ("ADWI_PAGE_ALERTE", "Vous devez spécifier une page par défaut") ; |
define ("ADWI_CHAMPS_REQUIS", "Indique les champs requis") ; |
define ("ADWI_CHEMIN", "Chemin vers le Wikini") ; |
67,6 → 73,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.2 2005/03/09 10:40:37 alex |
* version initiale |
* |
/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.2 2005-08-25 08:59:12 ddelon Exp $ |
// CVS : $Id: iw_config.inc.php,v 1.3 2005-08-31 17:34:52 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.2 $ $Date: 2005-08-25 08:59:12 $ |
*@version $Revision: 1.3 $ $Date: 2005-08-31 17:34:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
42,6 → 42,7 |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
// +------------------------------------------------------------------------------------------------------+ |
// Définition de la langue |
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/ |
57,58 → 58,41 |
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP); |
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/ |
define('IW_CHEMIN_BIBLIO_WIKINI', IW_CHEMIN_BIBLIO.'wikini'.GEN_SEP); |
/** Constante stockant le chemin du dossier contenant les sites Wikini.*/ |
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI); |
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_hote)) { |
$GLOBALS['_GEN_commun']['info_application']->bdd_hote = 'localhost'; |
// TODO : un wiki par défaut pour chaque papyrus |
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) { |
$GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut'; |
} |
/** Constante stockant le nom de l'hôte MySQL*/ |
define('HOTE', $GLOBALS['_GEN_commun']['info_application']->bdd_hote); |
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur)) { |
$GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur = ''; |
} |
/** Constante stockant le nom de l'utilisateur MySQL*/ |
define('UTILISATEUR', $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur); |
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_mdp)) { |
$GLOBALS['_GEN_commun']['info_application']->bdd_mdp = ''; |
} |
/** Constante stockant le mot de passe de l'utilisateur MySQL*/ |
define('MDP', $GLOBALS['_GEN_commun']['info_application']->bdd_mdp); |
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_nom)) { |
$GLOBALS['_GEN_commun']['info_application']->bdd_nom = ''; |
} |
/** Constante stockant le nom de la base de données MySQL pour le wikini*/ |
define('BD_WIKINI', $GLOBALS['_GEN_commun']['info_application']->bdd_nom); |
/** Constante stockant le nom de la base de données MySQL générale*/ |
define('BD_GENERALE', PAP_BDD_NOM);//Nom de la base des tables de la carto (et éventuellement de chorologie) |
if (!isset($GLOBALS['_GEN_commun']['info_application']->page)) { |
$GLOBALS['_GEN_commun']['info_application']->page = 'AccueiL'; |
} |
if (!isset($GLOBALS['_GEN_commun']['info_application']->table_prefix)) { |
$GLOBALS['_GEN_commun']['info_application']->table_prefix = 'wikini_'; |
} |
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini_nom)) { |
$GLOBALS['_GEN_commun']['info_application']->wikini_nom = ''; |
} |
/** Constantes de connexion aux bases de données MySQL*/ |
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] ); |
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */ |
define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP); |
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */ |
define('IW_CHEMIN_WIKINI_COURANT_FORMATTER', IW_CHEMIN_WIKINI_COURANT.'formatters'.GEN_SEP); |
global $wikini_config_defaut; |
$wikini_config_defaut = array( |
"wakka_version" => "0.1.1", |
"wikini_version" => "0.4.3", |
'debug' => 'yes', |
'mysql_host' => HOTE, |
'mysql_database' => BD_WIKINI, |
'mysql_user' => UTILISATEUR, |
'mysql_password' => MDP, |
'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, |
'mysql_host' => $config_wikini['bdd_hote'], |
'mysql_database' => $config_wikini['bdd_nom'], |
'mysql_user' => $config_wikini['bdd_utilisateur'], |
'mysql_password' => $config_wikini['bdd_mdp'], |
'table_prefix' => $config_wikini['table_prefix'], |
'root_page' => $config_wikini['page'], |
'wakka_name' => $config_wikini['code_alpha_wikini'], |
'base_url' => str_replace('&', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=', |
'rewrite_mode' => '0', |
'meta_keywords' => '', |
'meta_description' => '', |
'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', |
'action_path' => IW_CHEMIN_WIKINI_COURANT.'actions', |
'handler_path' => IW_CHEMIN_WIKINI_COURANT.'handlers', |
'header_action' => 'header', |
'footer_action' => 'footer', |
'navigation_links' => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur', |
128,6 → 112,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.1 2005/03/02 17:47:05 jpm |
* Ajout des fichiers necessaires à l'intégrateur de wikini. |
* |
/trunk/client/integrateur_wikini/admin_wikini.php |
---|
19,7 → 19,7 |
// | 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 $ |
// CVS : $Id: admin_wikini.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
/** |
* Application gérant les Wikini associe à Papyrus |
* |
29,12 → 29,13 |
* 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 ...) |
* TODO : un wiki par défaut pour chaque papyrus, ce wiki sert de modèle |
* |
*@package Admin_Wikini |
//Auteur original : |
*@author David Delon <david.delon@clapas.net> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
80,7 → 81,6 |
function afficherContenuCorps() |
{ |
/* Gestion de Deux "écrans" et des actions associées : liste des Wikini en base de donnees et ajout-modification |
* d'un Wikini |
*/ |
175,6 → 175,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.4 2005/03/09 10:46:17 jpm |
* Changement d'un nom de fichier. |
* |
/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.2 2005-08-25 08:59:12 ddelon Exp $ |
// CVS : $Id: integrateur_wikini.php,v 1.3 2005-08-31 17:34:52 ddelon Exp $ |
/** |
* Integrateur de page Wikini |
* |
33,13 → 33,22 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $ |
*@version $Revision: 1.3 $ $Date: 2005-08-31 17:34:52 $ |
* |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/** Inclusion de la classe PEAR de gestion des URL. */ |
require_once 'Net/URL.php'; |
// TODO : un seul fichier de configuration ? |
/** Inclusion du fichier de configuration de cette application.*/ |
require_once 'client/integrateur_wikini/configuration/adwi_configuration.inc.php'; |
require_once ADWI_CHEMIN_BIBLIOTHEQUE.'adwi_wikini.fonct.php'; |
/** Inclusion du fichier de configuration général de IntegrateurWikini.*/ |
require_once 'client'.GEN_SEP.'integrateur_wikini'.GEN_SEP.'configuration'.GEN_SEP.'iw_config.inc.php'; |
48,11 → 57,15 |
/** Inclusion du fichier permettant d'inclure les données dans du XHTML.*/ |
require_once IW_CHEMIN_BIBLIO.'iw_affichage_xhtml.fonct.php'; |
global $wikini_config_defaut; |
global $wiki; |
global $wiki_p; |
// $_REQUEST['wiki'] est obligatoire, car wakka.php envoie un redirect si non detecté, avec perte de tout l'environnement ! |
if ( ! isset( $_REQUEST['wiki'] ) ) { |
$_REQUEST['wiki'] = $GLOBALS['_GEN_commun']['info_application']->page; |
$_REQUEST['wiki'] = $wikini_config_defaut['root_page']; |
} |
$server=$_SERVER['PHP_SELF']; |
67,9 → 80,8 |
// Customiser son menu avec papyrus ... |
ob_start(); |
include_once '/home/david/workspace/papyrus/wikini/wikini_01/wakka.php'; |
include_once IW_CHEMIN_WIKINI_COURANT.'wakka.php'; |
ob_end_clean(); |
$_SERVER['PHP_SELF']=$server; |
76,7 → 88,7 |
// 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")); |
return $this->IncludeBuffered(IW_CHEMIN_WIKINI_COURANT_FORMATTER.$formatter.".php", "<i>Impossible de trouver le formateur \"$formatter\"</i>", compact("text")); |
} |
function Header() { |
134,10 → 146,10 |
*/ |
function afficherContenuCorps() |
{ |
global $wiki; |
global $wikini_config_defaut; |
$sortie=''; |
$wakkaConfig = $GLOBALS['wikini_config_defaut']; |
$wiki = new Wiki_Papyrus($wakkaConfig); |
176,7 → 188,6 |
ob_end_clean(); |
return remplacerEntiteHTLM("<div id=\"wikini_page\" ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n"); |
192,6 → 203,7 |
*/ |
function afficherContenuPied() |
{ |
return; |
return inclusion_html('pied_page'); |
} |
?> |