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,7 +164,6 @@ foreach ($orders as $key => $value)
} }
$const_name = $objMod->const_name; $const_name = $objMod->const_name;
$const_value = $objMod->const_config;
$var=!$var; $var=!$var;
@@ -179,9 +178,10 @@ foreach ($orders as $key => $value)
print $objMod->getVersion(); print $objMod->getVersion();
print "</td>\n <td valign=\"top\" align=\"center\">"; print "</td>\n <td valign=\"top\" align=\"center\">";
$const_value=1; // \todo Activation trigger
$statut_trigger=1;
if ($const_value == 1) if ($statut_trigger == 1)
{ {
print img_tick(); print img_tick();
} }

View File

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

View File

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

View File

@@ -54,11 +54,10 @@ class modBanque extends DolibarrModules
$this->name = "Banque"; $this->name = "Banque";
$this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux"; $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->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_BANQUE"; $this->const_name = 'MAIN_MODULE_BANQUE';
$this->const_config = MAIN_MODULE_BANQUE;
$this->picto='account'; $this->picto='account';
// D<>pendances // D<>pendances
@@ -79,25 +78,28 @@ class modBanque extends DolibarrModules
// Permissions // Permissions
$this->rights = array(); $this->rights = array();
$this->rights_class = 'banque'; $this->rights_class = 'banque';
$r=0;
$this->rights[1][0] = 111; // id de la permission $r++;
$this->rights[1][1] = 'Lire les comptes bancaires'; // libelle de la permission $this->rights[$r][0] = 111; // id de la permission
$this->rights[1][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour) $this->rights[$r][1] = 'Lire les comptes bancaires'; // libelle de la permission
$this->rights[1][3] = 1; // La permission est-elle une permission par d<>faut $this->rights[$r][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[1][4] = 'lire'; $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 $r++;
$this->rights[2][1] = 'Cr<43>er modifier rapprocher transactions'; // libelle de la permission $this->rights[$r][0] = 112; // id de la permission
$this->rights[2][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour) $this->rights[$r][1] = 'Cr<EFBFBD>er modifier rapprocher transactions'; // libelle de la permission
$this->rights[2][3] = 0; // La permission est-elle une permission par d<>faut $this->rights[$r][2] = 'a'; // type de la permission (d<>pr<70>ci<63> <20> ce jour)
$this->rights[2][4] = 'modifier'; $this->rights[$r][3] = 0; // La permission est-elle une permission par d<>faut
$this->rights[$r][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] = 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';
} }
@@ -107,6 +109,8 @@ class modBanque extends DolibarrModules
*/ */
function init() function init()
{ {
global $conf;
// Permissions // Permissions
$this->remove(); $this->remove();
@@ -115,7 +119,6 @@ class modBanque extends DolibarrModules
$this->dirs[0] = DOL_DATA_ROOT.'/graph/'; $this->dirs[0] = DOL_DATA_ROOT.'/graph/';
$this->dirs[1] = DOL_DATA_ROOT.'/graph/banque/'; $this->dirs[1] = DOL_DATA_ROOT.'/graph/banque/';
return $this->_init($sql); return $this->_init($sql);
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -54,16 +54,18 @@ class modUser extends DolibarrModules
$this->name = "User"; $this->name = "User";
$this->description = "Gestion des utilisateurs (requis)"; $this->description = "Gestion des utilisateurs (requis)";
$this->revision = explode(" ","$Revision$"); $this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1]; $this->version = $this->revision[1];
$this->const_name = "MAIN_MODULE_USER"; $this->const_name = 'MAIN_MODULE_USER';
$this->const_config = MAIN_MODULE_USER;
$this->picto='group'; $this->picto='group';
// Dir // Dir
$this->dirs = array(); $this->dirs = array();
// Config pages
$this->config_page_url = "/user/admin/index.php";
// D<>pendances // D<>pendances
$this->depends = array(); $this->depends = array();
$this->requiredby = array(); $this->requiredby = array();
@@ -75,10 +77,60 @@ class modUser extends DolibarrModules
$this->boxes = array(); $this->boxes = array();
// Permissions // 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'; $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. * \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. * D<>finit <20>galement les r<>pertoires de donn<6E>es <20> cr<63>er pour ce module.
@@ -89,15 +141,8 @@ class modUser extends DolibarrModules
// Permissions // Permissions
$this->remove(); $this->remove();
$r = 1;
$this->rights[$r][0] = 251; $sql = array();
$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++;
return $this->_init($sql); return $this->_init($sql);
} }

View File

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