Fix: Pb sous Plesk

This commit is contained in:
Laurent Destailleur 2008-01-20 21:53:43 +00:00
parent 5b6d323609
commit 3113bb241a
11 changed files with 77 additions and 70 deletions

View File

@ -15,17 +15,21 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/ */
/** /**
\file htdocs/ajaxbox.php \file htdocs/ajaxbox.php
\brief Fichier de reponse sur evenement Ajax deplacement boxes \brief Fichier de reponse sur evenement Ajax deplacement boxes
\version $Revision$ \version $Id$
*/ */
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require('master.inc.php'); require('master.inc.php');
require_once(DOL_DOCUMENT_ROOT."/boxes.php"); require_once(DOL_DOCUMENT_ROOT."/boxes.php");

View File

@ -17,21 +17,15 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/ * or see http://www.gnu.org/
*
* $Id$
*/ */
/** /**
\file htdocs/document.php \file htdocs/document.php
\brief Wrapper permettant le téléchargement de fichier de données Dolibarr \brief Wrapper to allow download of data files
\version $Id$
\remarks L'appel est document.php?file=pathrelatifdufichier&modulepart=repfichierconcerne \remarks L'appel est document.php?file=pathrelatifdufichier&modulepart=repfichierconcerne
\version $Revision$
*/ */
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
$original_file = urldecode($_GET["file"]); $original_file = urldecode($_GET["file"]);
$modulepart = urldecode($_GET["modulepart"]); $modulepart = urldecode($_GET["modulepart"]);
$type = isset($_GET["type"]) ? urldecode($_GET["type"]) : ''; $type = isset($_GET["type"]) ? urldecode($_GET["type"]) : '';
@ -40,6 +34,9 @@ $type = isset($_GET["type"]) ? urldecode($_GET["type"]) : '';
$needmasteronly=false; $needmasteronly=false;
if ($modulepart == 'webcal') $needmasteronly=true; if ($modulepart == 'webcal') $needmasteronly=true;
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
// Load master or main // Load master or main
if ($needmasteronly) if ($needmasteronly)
{ {
@ -48,6 +45,10 @@ if ($needmasteronly)
} }
else else
{ {
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
// Pour autre que companylogo, on charge environnement + info issus de logon comme le user // Pour autre que companylogo, on charge environnement + info issus de logon comme le user
require("./main.inc.php"); require("./main.inc.php");
// master.inc.php is included in main.inc.php // master.inc.php is included in main.inc.php
@ -62,7 +63,7 @@ $action = $_GET["action"];
$original_file = urldecode($_GET["file"]); $original_file = urldecode($_GET["file"]);
$modulepart = urldecode($_GET["modulepart"]); $modulepart = urldecode($_GET["modulepart"]);
$urlsource = urldecode($_GET["urlsource"]); $urlsource = urldecode($_GET["urlsource"]);
// Défini type (attachment=1 pour forcer popup 'enregistrer sous') // D<EFBFBD>fini type (attachment=1 pour forcer popup 'enregistrer sous')
$type = urldecode($_GET["type"]); $type = urldecode($_GET["type"]);
$attachment = true; $attachment = true;
if (eregi('\.sql$',$original_file)) { $type='text/plain'; $attachment = true; } if (eregi('\.sql$',$original_file)) { $type='text/plain'; $attachment = true; }
@ -76,7 +77,7 @@ if (eregi('\.tiff$',$original_file)) { $type='image/tiff'; $attachment = true;
if (eregi('\.vcs$',$original_file)) { $type='text/calendar'; $attachment = true; } if (eregi('\.vcs$',$original_file)) { $type='text/calendar'; $attachment = true; }
if (eregi('\.ics$',$original_file)) { $type='text/calendar'; $attachment = true; } if (eregi('\.ics$',$original_file)) { $type='text/calendar'; $attachment = true; }
// Suppression de la chaine de caractère ../ dans $original_file // Suppression de la chaine de caract<EFBFBD>re ../ dans $original_file
$original_file = str_replace("../","/", "$original_file"); $original_file = str_replace("../","/", "$original_file");
// find the subdirectory name as the reference // find the subdirectory name as the reference
$refname=basename(dirname($original_file)."/"); $refname=basename(dirname($original_file)."/");
@ -85,7 +86,7 @@ $accessallowed=0;
$sqlprotectagainstexternals=''; $sqlprotectagainstexternals='';
if ($modulepart) if ($modulepart)
{ {
// On fait une vérification des droits et on définit le répertoire concern // On fait une v<EFBFBD>rification des droits et on d<>finit le r<>pertoire concern
// Wrapping pour les factures // Wrapping pour les factures
if ($modulepart == 'facture') if ($modulepart == 'facture')
@ -319,17 +320,17 @@ if ($modulepart)
if ($modulepart == 'export') if ($modulepart == 'export')
{ {
// Aucun test necessaire car on force le rep de doanwload sur // Aucun test necessaire car on force le rep de doanwload sur
// le rep export qui est propre à l'utilisateur // le rep export qui est propre <EFBFBD> l'utilisateur
$accessallowed=1; $accessallowed=1;
$original_file=$conf->export->dir_temp.'/'.$user->id.'/'.$original_file; $original_file=$conf->export->dir_temp.'/'.$user->id.'/'.$original_file;
$sqlprotectagainstexternals = ''; $sqlprotectagainstexternals = '';
} }
// Wrapping pour l'éditeur wysiwyg // Wrapping pour l'<EFBFBD>diteur wysiwyg
if ($modulepart == 'editor') if ($modulepart == 'editor')
{ {
// Aucun test necessaire car on force le rep de download sur // Aucun test necessaire car on force le rep de download sur
// le rep export qui est propre à l'utilisateur // le rep export qui est propre <EFBFBD> l'utilisateur
$accessallowed=1; $accessallowed=1;
$original_file=$conf->fckeditor->dir_output.'/'.$original_file; $original_file=$conf->fckeditor->dir_output.'/'.$original_file;
$sqlprotectagainstexternals = ''; $sqlprotectagainstexternals = '';
@ -371,14 +372,14 @@ if ($user->societe_id > 0)
} }
// Security: // Security:
// Limite accès si droits non corrects // Limite acc<EFBFBD>s si droits non corrects
if (! $accessallowed) if (! $accessallowed)
{ {
accessforbidden(); accessforbidden();
} }
// Security: // Security:
// On interdit les remontées de repertoire ainsi que les pipe dans // On interdit les remont<EFBFBD>es de repertoire ainsi que les pipe dans
// les noms de fichiers. // les noms de fichiers.
if (eregi('\.\.',$original_file) || eregi('[<>|]',$original_file)) if (eregi('\.\.',$original_file) || eregi('[<>|]',$original_file))
{ {
@ -430,12 +431,12 @@ else
} }
// Les drois sont ok et fichier trouvé, on l'envoie // Les drois sont ok et fichier trouv<EFBFBD>, on l'envoie
if ($type) header('Content-type: '.$type); if ($type) header('Content-type: '.$type);
if ($attachment) header('Content-Disposition: attachment; filename="'.$filename.'"'); if ($attachment) header('Content-Disposition: attachment; filename="'.$filename.'"');
// Ajout directives pour résoudre bug IE // Ajout directives pour r<EFBFBD>soudre bug IE
header('Cache-Control: Public, must-revalidate'); header('Cache-Control: Public, must-revalidate');
header('Pragma: public'); header('Pragma: public');

View File

@ -15,23 +15,22 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/ * or see http://www.gnu.org/
*
* $Id$
*/ */
/** /**
\file htdocs/lib/antispamimage.php \file htdocs/lib/antispamimage.php
\brief Return antispam image \brief Return antispam image
\version $Revision$ \version $Id$
*/ */
if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1');
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1');
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require_once("../master.inc.php"); require_once("../master.inc.php");
require_once DOL_DOCUMENT_ROOT.'/../external-libs/Artichow/Artichow.cfg.php'; require_once DOL_DOCUMENT_ROOT.'/../external-libs/Artichow/Artichow.cfg.php';
require_once ARTICHOW."/AntiSpam.class.php"; require_once ARTICHOW."/AntiSpam.class.php";

View File

@ -19,23 +19,22 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/lib/datepicker.php \file htdocs/lib/datepicker.php
\brief Fichier de gestion de la popup de selection de date eldy \brief Fichier de gestion de la popup de selection de date eldy
\version $Revision$ \version $Id$
*/ */
if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1');
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language //if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled cause need to do translations //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled cause need to do translations
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require_once("../master.inc.php"); require_once("../master.inc.php");

View File

@ -1,7 +1,7 @@
<?php <?php
/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com> * Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org> * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
@ -19,14 +19,13 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/main.inc.php \file htdocs/main.inc.php
\brief Fichier de formatage generique des ecrans Dolibarr \ingroup core
\version $Revision$ \brief Fichier de formatage generique des ecrans Dolibarr
\version $Id$
*/ */
// Pour le tuning optionnel. Activer si la variable d'environnement DOL_TUNING est positionnee. // Pour le tuning optionnel. Activer si la variable d'environnement DOL_TUNING est positionnee.
@ -38,6 +37,7 @@ if (! empty($_SERVER['DOL_TUNING']))
$micro_start_time=((float)$usec + (float)$sec); $micro_start_time=((float)$usec + (float)$sec);
} }
// Forcage du parametrage PHP magic_quotes_gpc et nettoyage des parametres // Forcage du parametrage PHP magic_quotes_gpc et nettoyage des parametres
// (Sinon il faudrait a chaque POST, conditionner // (Sinon il faudrait a chaque POST, conditionner
// la lecture de variable par stripslashes selon etat de get_magic_quotes). // la lecture de variable par stripslashes selon etat de get_magic_quotes).
@ -84,6 +84,9 @@ foreach ($_POST as $key => $val)
// Fin filtre des GET et POST // Fin filtre des GET et POST
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require_once("master.inc.php"); require_once("master.inc.php");
// Chargement des includes complementaire de presentation // Chargement des includes complementaire de presentation

View File

@ -21,14 +21,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/master.inc.php \file htdocs/master.inc.php
\brief Fichier de preparation de l'environnement Dolibarr \brief Prepare Dolibarr environment
\version $Revision$ \version $Id$
*/ */
define('DOL_VERSION','2.4-dev'); define('DOL_VERSION','2.4-dev');

View File

@ -14,16 +14,17 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/user/passwordforgotten.php \file htdocs/user/passwordforgotten.php
\brief Page demande nouveau mot de passe \brief Page demande nouveau mot de passe
\version $Revision$ \version $Id$
*/ */
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require("../master.inc.php"); require("../master.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/ldap.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/ldap.class.php");

View File

@ -17,21 +17,15 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/ * or see http://www.gnu.org/
*
* $Id$
*/ */
/** /**
\file htdocs/viewimage.php \file htdocs/viewimage.php
\brief Wrapper permettant l'affichage de fichiers images Dolibarr \brief Wrapper permettant l'affichage de fichiers images Dolibarr
\remarks L'appel est viewimage.php?file=pathrelatifdufichier&modulepart=repfichierconcerne \remarks L'appel est viewimage.php?file=pathrelatifdufichier&modulepart=repfichierconcerne
\version $Revision$ \version $Id$
*/ */
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
$original_file = urldecode($_GET["file"]); $original_file = urldecode($_GET["file"]);
$modulepart = urldecode($_GET["modulepart"]); $modulepart = urldecode($_GET["modulepart"]);
$type = isset($_GET["type"]) ? urldecode($_GET["type"]) : ''; $type = isset($_GET["type"]) ? urldecode($_GET["type"]) : '';
@ -40,6 +34,9 @@ $type = isset($_GET["type"]) ? urldecode($_GET["type"]) : '';
$needmasteronly=false; $needmasteronly=false;
if ($modulepart == 'companylogo') $needmasteronly=true; if ($modulepart == 'companylogo') $needmasteronly=true;
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
// Load master or main // Load master or main
if ($needmasteronly) if ($needmasteronly)
{ {
@ -48,6 +45,10 @@ if ($needmasteronly)
} }
else else
{ {
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
// Pour autre que companylogo, on charge environnement + info issus de logon comme le user // Pour autre que companylogo, on charge environnement + info issus de logon comme le user
require("./main.inc.php"); require("./main.inc.php");
// master.inc.php is included in main.inc.php // master.inc.php is included in main.inc.php
@ -67,7 +68,7 @@ $original_file = eregi_replace('\.\.','',$original_file);
$accessallowed=0; $accessallowed=0;
if ($modulepart) if ($modulepart)
{ {
// On fait une vérification des droits et on définit le répertoire concerné // On fait une v<EFBFBD>rification des droits et on d<>finit le r<>pertoire concern<72>
// Wrapping pour les photo utilisateurs // Wrapping pour les photo utilisateurs
if ($modulepart == 'companylogo') if ($modulepart == 'companylogo')
@ -279,14 +280,14 @@ if ($modulepart)
} }
// Security: // Security:
// Limite accès si droits non corrects // Limite acc<EFBFBD>s si droits non corrects
if (! $accessallowed) if (! $accessallowed)
{ {
accessforbidden(); accessforbidden();
} }
// Security: // Security:
// On interdit les remontées de repertoire ainsi que les pipe dans // On interdit les remont<EFBFBD>es de repertoire ainsi que les pipe dans
// les noms de fichiers. // les noms de fichiers.
if (eregi('\.\.',$original_file) || eregi('[<>|]',$original_file)) if (eregi('\.\.',$original_file) || eregi('[<>|]',$original_file))
{ {
@ -335,7 +336,7 @@ else
exit; exit;
} }
// Les drois sont ok et fichier trouvé // Les drois sont ok et fichier trouv<EFBFBD>
if ($type) if ($type)
{ {
header('Content-type: '.$type); header('Content-type: '.$type);

View File

@ -14,16 +14,17 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** \file htdocs/webcal/webcalexport.php /** \file htdocs/webcal/webcalexport.php
\ingroup webcalendar \ingroup webcalendar
\brief Page export webcalendar \brief Page export webcalendar
\version $Revision$ \version $Id$
*/ */
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require("../master.inc.php"); require("../master.inc.php");
require_once(DOL_DOCUMENT_ROOT.'/webcal/webcal.class.php'); require_once(DOL_DOCUMENT_ROOT.'/webcal/webcal.class.php');

View File

@ -14,17 +14,17 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/ */
/** /**
\file htdocs/webservices/client.php \file htdocs/webservices/client.php
\brief Page demo client appel WebServices Dolibarr \brief Page demo client appel WebServices Dolibarr
\version $Revision$ \version $Id$
*/ */
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require_once("../master.inc.php"); require_once("../master.inc.php");
require_once(NUSOAP_PATH.'/nusoap.php'); // Include SOAP require_once(NUSOAP_PATH.'/nusoap.php'); // Include SOAP

View File

@ -14,17 +14,17 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/ */
/** /**
\file htdocs/webservices/server.php \file htdocs/webservices/server.php
\brief Fichier point entrée des WebServices Dolibarr \brief Fichier point entree des WebServices Dolibarr
\version $Revision$ \version $Id$
*/ */
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require_once("../master.inc.php"); require_once("../master.inc.php");
require_once(NUSOAP_PATH.'/nusoap.php'); // Include SOAP require_once(NUSOAP_PATH.'/nusoap.php'); // Include SOAP
@ -42,13 +42,13 @@ $server->wsdl->schemaTargetNamespace=$ns;
// Register methods available for clients // Register methods available for clients
/* /*
$server->register('getVersions', $server->register('getVersions',
array(), // Tableau parametres entrée array(), // Tableau parametres entr<EFBFBD>e
array('result' => 'xsd:array'), // Tableau parametres sortie array('result' => 'xsd:array'), // Tableau parametres sortie
$ns); $ns);
*/ */
$server->register('getVersions', $server->register('getVersions',
// Tableau parametres entrée // Tableau parametres entr<EFBFBD>e
array(), array(),
// Tableau parametres sortie // Tableau parametres sortie
array('dolibarr'=>'xsd:string','mysql'=>'xsd:string','apache'=>'xsd:string'), array('dolibarr'=>'xsd:string','mysql'=>'xsd:string','apache'=>'xsd:string'),