2
0
forked from Wavyzz/dolibarr

Qual: Suppression de warning en mode error=E_ALL

This commit is contained in:
Laurent Destailleur
2005-10-22 13:45:24 +00:00
parent 3294d22453
commit 0745c647fc
36 changed files with 173 additions and 157 deletions

View File

@@ -164,33 +164,33 @@ foreach ($orders as $key => $value)
}
$const_name = $objMod->const_name;
$const_value = $objMod->const_config;
$var=!$var;
$var=!$var;
print "<tr $bc[$var]>\n";
print "<tr $bc[$var]>\n";
print '<td valign="top" width="14" align="center">';
print $objMod->picto?img_object('',$objMod->picto):img_object('','generic');
print '</td><td valign="top">'.$files[$key];
print "</td>\n <td valign=\"top\">";
print $objMod->getDesc();
print "</td>\n <td valign=\"top\" align=\"center\">";
print $objMod->getVersion();
print "</td>\n <td valign=\"top\" align=\"center\">";
print '<td valign="top" width="14" align="center">';
print $objMod->picto?img_object('',$objMod->picto):img_object('','generic');
print '</td><td valign="top">'.$files[$key];
print "</td>\n <td valign=\"top\">";
print $objMod->getDesc();
print "</td>\n <td valign=\"top\" align=\"center\">";
print $objMod->getVersion();
print "</td>\n <td valign=\"top\" align=\"center\">";
$const_value=1;
// \todo Activation trigger
$statut_trigger=1;
if ($const_value == 1)
{
print img_tick();
}
else
{
print "&nbsp;";
}
if ($statut_trigger == 1)
{
print img_tick();
}
else
{
print "&nbsp;";
}
print "</td>\n";
print "</td>\n";
/*
print "<td valign=\"top\" align=\"center\">";
@@ -205,8 +205,8 @@ foreach ($orders as $key => $value)
print "<a href=\"modules.php?id=".$objMod->numero."&amp;action=set&amp;value=" . $modName . "&amp;spe=" . $_GET["spe"] . "\">" . $langs->trans("Activate") . "</a></td>\n";
}
*/
print "<td>&nbsp;</td>\n";
print "</tr>\n";
print "<td>&nbsp;</td>\n";
print "</tr>\n";
}
print "</table>\n";

View File

@@ -21,7 +21,6 @@
*
* $Id$
* $Source$
*
*/
/**
@@ -64,6 +63,7 @@ class DolibarrModules
function _init($array_sql)
{
global $langs;
$err='';
// Ins<6E>re une entr<74>e dans llx_dolibarr_modules
$err+=$this->_dbactive();

View File

@@ -57,8 +57,7 @@ class modAdherent extends DolibarrModules
$this->name = "Adh<EFBFBD>rents";
$this->description = "Gestion des adh<64>rents d'une association";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_ADHERENT";
$this->const_config = MAIN_MODULE_ADHERENT;
$this->const_name = 'MAIN_MODULE_ADHERENT';
$this->special = 1;
$this->picto='user';

View File

@@ -54,11 +54,10 @@ class modBanque extends DolibarrModules
$this->name = "Banque";
$this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_BANQUE";
$this->const_config = MAIN_MODULE_BANQUE;
$this->const_name = 'MAIN_MODULE_BANQUE';
$this->picto='account';
// D<>pendances
@@ -79,25 +78,28 @@ class modBanque extends DolibarrModules
// Permissions
$this->rights = array();
$this->rights_class = 'banque';
$r=0;
$this->rights[1][0] = 111; // id de la permission
$this->rights[1][1] = 'Lire les comptes bancaires'; // libelle de la permission
$this->rights[1][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[1][3] = 1; // La permission est-elle une permission par d<>faut
$this->rights[1][4] = 'lire';
$r++;
$this->rights[$r][0] = 111; // id de la permission
$this->rights[$r][1] = 'Lire les comptes bancaires'; // libelle de la permission
$this->rights[$r][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[$r][3] = 1; // La permission est-elle une permission par d<>faut
$this->rights[$r][4] = 'lire';
$this->rights[2][0] = 112; // id de la permission
$this->rights[2][1] = 'Cr<43>er modifier rapprocher transactions'; // libelle de la permission
$this->rights[2][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[2][3] = 0; // La permission est-elle une permission par d<>faut
$this->rights[2][4] = 'modifier';
$this->rights[3][0] = 113; // id de la permission
$this->rights[3][1] = 'Configurer les comptes bancaires (cr<63>er, g<>rer cat<61>gories)'; // libelle de la permission
$this->rights[3][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[3][3] = 0; // La permission est-elle une permission par d<>faut
$this->rights[3][4] = 'configurer';
$r++;
$this->rights[$r][0] = 112; // id de la permission
$this->rights[$r][1] = 'Cr<EFBFBD>er modifier rapprocher transactions'; // libelle de la permission
$this->rights[$r][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par d<>faut
$this->rights[$r][4] = 'modifier';
$r++;
$this->rights[$r][0] = 113; // id de la permission
$this->rights[$r][1] = 'Configurer les comptes bancaires (cr<63>er, g<>rer cat<61>gories)'; // libelle de la permission
$this->rights[$r][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par d<>faut
$this->rights[$r][4] = 'configurer';
}
@@ -105,19 +107,20 @@ class modBanque extends DolibarrModules
* \brief Fonction appel<65>e lors de l'activation du module. Ins<6E>re en base les constantes, boites, permissions du module.
* D<>finit <20>galement les r<>pertoires de donn<6E>es <20> cr<63>er pour ce module.
*/
function init()
{
// Permissions
$this->remove();
function init()
{
global $conf;
$sql = array();
// Permissions
$this->remove();
$this->dirs[0] = DOL_DATA_ROOT.'/graph/';
$this->dirs[1] = DOL_DATA_ROOT.'/graph/banque/';
$sql = array();
$this->dirs[0] = DOL_DATA_ROOT.'/graph/';
$this->dirs[1] = DOL_DATA_ROOT.'/graph/banque/';
return $this->_init($sql);
}
return $this->_init($sql);
}
/**
* \brief Fonction appel<65>e lors de la d<>sactivation d'un module.

View File

@@ -56,12 +56,11 @@ class modBarcode extends DolibarrModules
$this->name = "Codes barres";
$this->description = "Gestion des codes barres des produits";
//$this->revision = explode(" ","$Revision$");
//$this->revision = explode(' ','$Revision$');
//$this->version = $this->revision[1];
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_BARCODE";
$this->const_config = MAIN_MODULE_BARCODE;
$this->const_name = 'MAIN_MODULE_BARCODE';
$this->special = 0;
$this->picto='barcode';

View File

@@ -53,11 +53,10 @@ class modBookmark extends DolibarrModules
$this->family = "technic";
$this->name = "Bookmarks";
$this->description = "Gestion des Bookmarks";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_BOOKMARK";
$this->const_config = MAIN_MODULE_BOOKMARK;
$this->const_name = 'MAIN_MODULE_BOOKMARK';
$this->special = 1;
$this->picto='bookmark';

View File

@@ -55,8 +55,7 @@ class modBookmark4u extends DolibarrModules
$this->name = "Bookmark4u";
$this->description = "Ajoute fonction pour g<>n<EFBFBD>rer un compte Bookmark4u depuis un compte Dolibarr";
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_BOOKMARK4U";
$this->const_config = MAIN_MODULE_BOOKMARK4U;
$this->const_name = 'MAIN_MODULE_BOOKMARK4U';
$this->special = 1;
$this->picto='user';

View File

@@ -55,8 +55,7 @@ class modBoutique extends DolibarrModules
$this->name = "Boutique";
$this->description = "Gestion des boutiques";
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_BOUTIQUE";
$this->const_config = MAIN_MODULE_BOUTIQUE;
$this->const_name = 'MAIN_MODULE_BOUTIQUE';
$this->special = 1;
// Dir

View File

@@ -51,8 +51,7 @@ class modCategorie extends DolibarrModules
$this->name = "Cat<EFBFBD>gorie";
$this->description = "Gestion des cat<61>gories";
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_CATEGORIE";
$this->const_config = MAIN_MODULE_CATEGORIE;
$this->const_name = 'MAIN_MODULE_CATEGORIE';
$this->special = 0;
$this->picto = '';

View File

@@ -55,11 +55,10 @@ class modClickToDial extends DolibarrModules
$this->name = "ClickToDial";
$this->description = "Gestion du Click To Dial";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_CLICKTODIAL";
$this->const_config = MAIN_MODULE_CLICKTODIAL;
$this->const_name = 'MAIN_MODULE_CLICKTODIAL';
$this->special = 1;
$this->picto='phoning';

View File

@@ -57,8 +57,7 @@ class modCommande extends DolibarrModules
$this->description = "Gestion des commandes clients";
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_COMMANDE";
$this->const_config = MAIN_MODULE_COMMANDE;
$this->const_name = 'MAIN_MODULE_COMMANDE';
$this->special = 0;
$this->picto='order';

View File

@@ -55,11 +55,10 @@ class modCommercial extends DolibarrModules
$this->name = "Commercial";
$this->description = "Gestion commercial";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_COMMERCIAL";
$this->const_config = MAIN_MODULE_COMMERCIAL;
$this->const_name = 'MAIN_MODULE_COMMERCIAL';
$this->special = 0;
$this->picto='commercial';

View File

@@ -60,8 +60,7 @@ class modComptabilite extends DolibarrModules
$this->revision = explode(" ","$Revision$");
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_COMPTABILITE";
$this->const_config = MAIN_MODULE_COMPTABILITE;
$this->const_name = 'MAIN_MODULE_COMPTABILITE';
// Config pages
$this->config_page_url = "compta.php";

View File

@@ -58,12 +58,11 @@ class modComptabiliteExpert extends DolibarrModules
$this->name = "ComptabiliteExpert";
$this->description = "Gestion expert de comptabilit<69> (doubles parties)";
// $this->revision = explode(" ","$Revision$");
// $this->revision = explode(' ','$Revision$');
// $this->version = $this->revision[1];
$this->version = "development";
$this->const_name = "MAIN_MODULE_COMPTABILITE_EXPERT";
$this->const_config = MAIN_MODULE_COMPTABILITE_EXPERT;
$this->const_name = 'MAIN_MODULE_COMPTABILITE_EXPERT';
// Config pages
$this->config_page_url = "comptaexpert.php";

View File

@@ -56,11 +56,10 @@ class modContrat extends DolibarrModules
$this->name = "Contrats";
$this->description = "Gestion des contrats de services";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_CONTRAT";
$this->const_config = MAIN_MODULE_CONTRAT;
$this->const_name = 'MAIN_MODULE_CONTRAT';
$this->special = 0;
$this->picto='contract';

View File

@@ -54,11 +54,10 @@ class modDeplacement extends DolibarrModules
$this->name = "D<EFBFBD>placement"; // Si traduction Module75Name non trouv<75>e
$this->description = "Gestion des d<>placements"; // Si traduction Module75Desc non trouv<75>e
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_DEPLACEMENT";
$this->const_config = MAIN_MODULE_DEPLACEMENT;
$this->const_name = 'MAIN_MODULE_DEPLACEMENT';
$this->special = 0;
$this->picto = "trip";

View File

@@ -55,8 +55,7 @@ class modDon extends DolibarrModules
$this->name = "Don";
$this->description = "Gestion des dons";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_DON";
$this->const_config = MAIN_MODULE_DON;
$this->const_name = 'MAIN_MODULE_DON';
$this->special = 1;
// Dir

View File

@@ -54,11 +54,10 @@ class modEnergie extends DolibarrModules
$this->name = "Energie";
$this->description = "Suivi de la consommation des energies";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_ENERGIE";
$this->const_config = MAIN_MODULE_ENERGIE;
$this->const_name = 'MAIN_MODULE_ENERGIE';
$this->special = 1;
$this->picto='energie';

View File

@@ -55,8 +55,7 @@ class modExpedition extends DolibarrModules
$this->description = "Gestion des exp<78>ditions";
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_EXPEDITION";
$this->const_config = MAIN_MODULE_EXPEDITION;
$this->const_name = 'MAIN_MODULE_EXPEDITION';
$this->special = 0;
$this->picto = "sending";

View File

@@ -53,8 +53,7 @@ class modExternalRss extends DolibarrModules
$this->name = "Syndication RSS";
$this->description = "Ajout de files d'informations RSS dans les <20>crans Dolibarr";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_EXTERNALRSS";
$this->const_config = MAIN_MODULE_EXTERNALRSS;
$this->const_name = 'MAIN_MODULE_EXTERNALRSS';
$this->special = 0;
$this->picto='rss';

View File

@@ -56,11 +56,10 @@ class modFacture extends DolibarrModules
$this->name = "Factures";
$this->description = "Gestion des factures";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_FACTURE";
$this->const_config = MAIN_MODULE_FACTURE;
$this->const_name = 'MAIN_MODULE_FACTURE';
$this->special = 0;
$this->picto='bill';

View File

@@ -60,8 +60,7 @@ class modFicheinter extends DolibarrModules
$this->revision = explode(" ","$Revision$");
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_FICHEINTER";
$this->const_config = MAIN_MODULE_FICHEINTER;
$this->const_name = 'MAIN_MODULE_FICHEINTER';
$this->special = 0;
$this->picto = "intervention";

View File

@@ -57,8 +57,7 @@ class modFournisseur extends DolibarrModules
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_FOURNISSEUR";
$this->const_config = MAIN_MODULE_FOURNISSEUR;
$this->const_name = 'MAIN_MODULE_FOURNISSEUR';
$this->special = 0;
$this->picto='company';

View File

@@ -53,8 +53,7 @@ class modLdap extends DolibarrModules
$this->family = "technic";
$this->description = "Synchronisation Ldap";
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_LDAP";
$this->const_config = MAIN_MODULE_LDAP;
$this->const_name = 'MAIN_MODULE_LDAP';
$this->special = 1;
// Dir

View File

@@ -55,8 +55,7 @@ class modMailing extends DolibarrModules
$this->name = "Mailings";
$this->description = "Gestion des Mailings";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_MAILING";
$this->const_config = MAIN_MODULE_MAILING;
$this->const_name = 'MAIN_MODULE_MAILING';
$this->special = 1;
$this->picto='email';

View File

@@ -53,8 +53,7 @@ class modPostnuke extends DolibarrModules
$this->name = "Postnuke";
$this->description = "Gestion de l'outil PostNuke";
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_POSTNUKE";
$this->const_config = MAIN_MODULE_POSTNUKE;
$this->const_name = 'MAIN_MODULE_POSTNUKE';
$this->special = 1;
// Dir

View File

@@ -60,8 +60,7 @@ class modPrelevement extends DolibarrModules
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_PRELEVEMENT";
$this->const_config = MAIN_MODULE_PRELEVEMENT;
$this->const_name = 'MAIN_MODULE_PRELEVEMENT';
$this->special = 0;
// Dir

View File

@@ -59,8 +59,7 @@ class modProduit extends DolibarrModules
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_PRODUIT";
$this->const_config = MAIN_MODULE_PRODUIT;
$this->const_name = 'MAIN_MODULE_PRODUIT';
$this->special = 0;
$this->picto='product';

View File

@@ -57,8 +57,7 @@ class modProjet extends DolibarrModules
$this->revision = explode(" ","$Revision$");
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_PROJET";
$this->const_config = MAIN_MODULE_PROJET;
$this->const_name = 'MAIN_MODULE_PROJET';
// D<>pendances
$this->depends = array();

View File

@@ -58,8 +58,7 @@ class modPropale extends DolibarrModules
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_PROPALE";
$this->const_config = MAIN_MODULE_PROPALE;
$this->const_name = 'MAIN_MODULE_PROPALE';
$this->special = 0;
$this->picto='propal';

View File

@@ -59,8 +59,7 @@ class modService extends DolibarrModules
$this->revision = explode(" ","$Revision$");
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_SERVICE";
$this->const_config = MAIN_MODULE_SERVICE;
$this->const_name = 'MAIN_MODULE_SERVICE';
$this->picto='service';
// D<>pendances

View File

@@ -57,11 +57,10 @@ class modSociete extends DolibarrModules
$this->name = "Module societe";
$this->description = "Gestion des soci<63>t<EFBFBD>s et contacts";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_SOCIETE";
$this->const_config = MAIN_MODULE_SOCIETE;
$this->const_name = 'MAIN_MODULE_SOCIETE';
$this->special = 0;
$this->config_page_url = "societe.php";
$this->picto='company';

View File

@@ -58,8 +58,7 @@ class modStock extends DolibarrModules
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_STOCK";
$this->const_config = MAIN_MODULE_STOCK;
$this->const_name = 'MAIN_MODULE_STOCK';
$this->special = 0;
$this->picto='stock';

View File

@@ -54,9 +54,8 @@ class modSyslog extends DolibarrModules
$this->family = "technic";
$this->name = "Syslog";
$this->description = "Activation des traces debug (syslog)";
$this->version = '2.0.0'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_SYSLOG";
$this->const_config = MAIN_MODULE_SYSLOG;
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_SYSLOG';
$this->special = 0;
//$this->picto='phoning';

View File

@@ -54,16 +54,18 @@ class modUser extends DolibarrModules
$this->name = "User";
$this->description = "Gestion des utilisateurs (requis)";
$this->revision = explode(" ","$Revision$");
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_USER";
$this->const_config = MAIN_MODULE_USER;
$this->const_name = 'MAIN_MODULE_USER';
$this->picto='group';
// Dir
$this->dirs = array();
// Config pages
$this->config_page_url = "/user/admin/index.php";
// D<>pendances
$this->depends = array();
$this->requiredby = array();
@@ -75,32 +77,75 @@ class modUser extends DolibarrModules
$this->boxes = array();
// Permissions
$this->rights = array();
$this->rights = array(); // L'admin b<>n<EFBFBD>ficie toujours des droits de ce module, actif ou non
$this->rights_class = 'user';
$r=0;
$r++;
$this->rights[$r][0] = 251;
$this->rights[$r][1] = 'Consulter les autres utilisateurs, leurs groupes et permissions';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'user';
$this->rights[$r][5] = 'lire';
$r++;
$this->rights[$r][0] = 252;
$this->rights[$r][1] = 'Cr<43>er/modifier les autres utilisateurs, leurs groupes et permissions';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'user';
$this->rights[$r][5] = 'creer';
$r++;
$this->rights[$r][0] = 253;
$this->rights[$r][1] = 'Modifier mot de passe des autres utilisateurs';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'user';
$this->rights[$r][5] = 'password';
$r++;
$this->rights[$r][0] = 254;
$this->rights[$r][1] = 'Supprimer ou d<>sactiver les autres utilisateurs';
$this->rights[$r][2] = 'd';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'user';
$this->rights[$r][5] = 'supprimer';
$r++;
$this->rights[$r][0] = 255;
$this->rights[$r][1] = 'Cr<43>er/modifier ses propres infos utilisateur';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'self';
$this->rights[$r][5] = 'supprimer';
$r++;
$this->rights[$r][0] = 256;
$this->rights[$r][1] = 'Modifier son propre mot de passe';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'self';
$this->rights[$r][5] = 'password';
}
/**
* \brief Fonction appel<65>e lors de l'activation du module. Ins<6E>re en base les constantes, boites, permissions du module.
* D<>finit <20>galement les r<>pertoires de donn<6E>es <20> cr<63>er pour ce module.
*/
function init()
{
global $conf;
function init()
{
global $conf;
// Permissions
$this->remove();
$r = 1;
// Permissions
$this->remove();
$this->rights[$r][0] = 251;
$this->rights[$r][1] = 'Consulter les utilisateurs';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'user';
$this->rights[$r][5] = 'lire';
$r++;
$sql = array();
return $this->_init($sql);
}
return $this->_init($sql);
}
/**
\brief Fonction appel<65>e lors de la d<>sactivation d'un module.

View File

@@ -54,8 +54,7 @@ class modWebcalendar extends DolibarrModules
$this->name = "Webcalendar";
$this->description = "Interfa<EFBFBD>age avec le calendrier Webcalendar";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = "MAIN_MODULE_WEBCALENDAR";
$this->const_config = MAIN_MODULE_WEBCALENDAR;
$this->const_name = 'MAIN_MODULE_WEBCALENDAR';
$this->special = 0;
$this->picto='calendar';