Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin 2009-10-21 13:09:42 +00:00
parent 1f62e32005
commit d9dadd9671
83 changed files with 153 additions and 153 deletions

View File

@ -91,7 +91,7 @@ class EcmDirectory // extends CommonObject
$parent->fetch($this->fk_parent); $parent->fetch($this->fk_parent);
$relativepath=$parent->getRelativePath().$relativepath; $relativepath=$parent->getRelativePath().$relativepath;
} }
$relativepath=eregi_replace('[\/]+','/',$relativepath); // Avoid duplicate / or \ $relativepath=preg_replace('/([\/])+/i','/',$relativepath); // Avoid duplicate / or \
//print $relativepath.'<br>'; //print $relativepath.'<br>';
$cat = new ECMDirectory($this->db); $cat = new ECMDirectory($this->db);
@ -99,7 +99,7 @@ class EcmDirectory // extends CommonObject
$pathfound=0; $pathfound=0;
foreach ($cate_arbo as $key => $categ) foreach ($cate_arbo as $key => $categ)
{ {
$path=eregi_replace('[ -><\/]+','/',$categ['fulllabel']); $path=preg_replace('/([\s-><\/])+/i','/',$categ['fulllabel']);
//print $path.'<br>'; //print $path.'<br>';
if ($path == $relativepath) if ($path == $relativepath)
{ {
@ -385,7 +385,7 @@ class EcmDirectory // extends CommonObject
//$picto=DOL_URL_ROOT.'/theme/common/treemenu/folder.gif'; //$picto=DOL_URL_ROOT.'/theme/common/treemenu/folder.gif';
$picto='dir'; $picto='dir';
$newref=eregi_replace('_',' ',$this->ref); $newref=str_replace('_',' ',$this->ref);
$newlabel=$langs->trans("ShowECMSection").': '.$newref; $newlabel=$langs->trans("ShowECMSection").': '.$newref;
if ($withpicto) $result.=($lien.img_object($newlabel,$picto,'',1).$lienfin); if ($withpicto) $result.=($lien.img_object($newlabel,$picto,'',1).$lienfin);
@ -588,7 +588,7 @@ class EcmDirectory // extends CommonObject
$this->cats[$id_categ]['fulllabel']=$this->cats[$id_categ]['label']; $this->cats[$id_categ]['fulllabel']=$this->cats[$id_categ]['label'];
} }
// We count number of _ to have level // We count number of _ to have level
$this->cats[$id_categ]['level']=strlen(eregi_replace('[^_]','',$this->cats[$id_categ]['fullpath'])); $this->cats[$id_categ]['level']=strlen(preg_replace('/([^_])/i','',$this->cats[$id_categ]['fullpath']));
// Traite ces enfants // Traite ces enfants
$protection++; $protection++;

View File

@ -460,7 +460,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
$val['cachenbofdoc']=$result; $val['cachenbofdoc']=$result;
} }
//$fullpathparent=eregi_replace('_[^_]+$','',$val['fullpath']); //$fullpathparent=preg_replace('/(_[^_]+)$/i','',$val['fullpath']);
// Define showline // Define showline
$showline=0; $showline=0;
@ -501,7 +501,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
else $ref=img_picto('',DOL_URL_ROOT.'/theme/common/treemenu/minustop'.$n.'.gif','',1); else $ref=img_picto('',DOL_URL_ROOT.'/theme/common/treemenu/minustop'.$n.'.gif','',1);
if ($option == 'indexexpanded') $lien = '<a href="'.$_SERVER["PHP_SELF"].'?section='.$val['id'].'&amp;sectionexpand=false">'; if ($option == 'indexexpanded') $lien = '<a href="'.$_SERVER["PHP_SELF"].'?section='.$val['id'].'&amp;sectionexpand=false">';
if ($option == 'indexnotexpanded') $lien = '<a href="'.$_SERVER["PHP_SELF"].'?section='.$val['id'].'&amp;sectionexpand=true">'; if ($option == 'indexnotexpanded') $lien = '<a href="'.$_SERVER["PHP_SELF"].'?section='.$val['id'].'&amp;sectionexpand=true">';
$newref=eregi_replace('_',' ',$ref); $newref=str_replace('_',' ',$ref);
$lienfin='</a>'; $lienfin='</a>';
print $lien.$newref.$lienfin; print $lien.$newref.$lienfin;
if (! in_array($val['id'],$expandedsectionarray)) print img_picto($ecmdirstatic->ref,DOL_URL_ROOT.'/theme/common/treemenu/folder.gif','',1); if (! in_array($val['id'],$expandedsectionarray)) print img_picto($ecmdirstatic->ref,DOL_URL_ROOT.'/theme/common/treemenu/folder.gif','',1);

View File

@ -84,13 +84,13 @@ class Export
$i=0; $i=0;
while (($file = readdir($handle))!==false) while (($file = readdir($handle))!==false)
{ {
if (eregi("^(mod.*)\.class\.php$",$file,$reg)) if (preg_match("/^(mod.*)\.class\.php$/i",$file,$reg))
{ {
$modulename=$reg[1]; $modulename=$reg[1];
// Defined if module is enabled // Defined if module is enabled
$enabled=true; $enabled=true;
$part=strtolower(eregi_replace('^mod','',$modulename)); $part=strtolower(preg_replace('/^mod/i','',$modulename));
if (empty($conf->$part->enabled)) $enabled=false; if (empty($conf->$part->enabled)) $enabled=false;
if ($enabled) if ($enabled)

View File

@ -798,11 +798,11 @@ llxFooter('$Date$ - $Revision$');
function getablenamefromfield($code,$sqlmaxforexport) function getablenamefromfield($code,$sqlmaxforexport)
{ {
$newsql=$sqlmaxforexport; $newsql=$sqlmaxforexport;
$newsql=eregi_replace('^.* FROM ','',$newsql); $newsql=preg_replace('/^(.*) FROM /i','',$newsql);
$newsql=eregi_replace(' WHERE .*$','',$newsql); $newsql=preg_replace('/ WHERE (.*)$/i','',$newsql);
$alias=eregi_replace('\..*$','',$code); $alias=preg_replace('/\.(.*)$/i','',$code);
//print $newsql.' '.$alias; //print $newsql.' '.$alias;
if (eregi('([a-zA-Z_]+) as '.$alias.'[, \)]',$newsql,$reg)) if (preg_match('/([a-zA-Z_]+) as /i'.$alias.'[, \)]',$newsql,$reg))
{ {
return $reg[1]; return $reg[1];
} }

View File

@ -76,13 +76,13 @@ class Import
$i=0; $i=0;
while (($file = readdir($handle))!==false) while (($file = readdir($handle))!==false)
{ {
if (eregi("^(mod.*)\.class\.php",$file,$reg)) if (preg_match("/^(mod.*)\.class\.php/i",$file,$reg))
{ {
$modulename=$reg[1]; $modulename=$reg[1];
// Defined if module is enabled // Defined if module is enabled
$enabled=true; $enabled=true;
$part=strtolower(eregi_replace('^mod','',$modulename)); $part=strtolower(preg_replace('/^mod/i','',$modulename));
if (empty($conf->$part->enabled)) $enabled=false; if (empty($conf->$part->enabled)) $enabled=false;
if ($enabled) if ($enabled)

View File

@ -834,14 +834,14 @@ if ($step == 4 && $datatoimport)
$i++; $i++;
$entity=$objimport->array_import_entities[0][$code]; $entity=$objimport->array_import_entities[0][$code];
$tablealias=eregi_replace('\..*$','',$code); $tablealias=preg_replace('/(\..*)$/i','',$code);
$tablename=$objimport->array_import_tables[0][$tablealias]; $tablename=$objimport->array_import_tables[0][$tablealias];
$entityicon=$entitytoicon[$entity]?$entitytoicon[$entity]:$entity; $entityicon=$entitytoicon[$entity]?$entitytoicon[$entity]:$entity;
$entitylang=$entitytolang[$entity]?$entitytolang[$entity]:$entity; $entitylang=$entitytolang[$entity]?$entitytolang[$entity]:$entity;
print '<td nowrap="nowrap" style="font-weight: normal">=>'.img_object('',$entityicon).' '.$langs->trans($entitylang).'</td>'; print '<td nowrap="nowrap" style="font-weight: normal">=>'.img_object('',$entityicon).' '.$langs->trans($entitylang).'</td>';
print '<td style="font-weight: normal">'; print '<td style="font-weight: normal">';
$newlabel=eregi_replace('\*$','',$label); $newlabel=preg_replace('/\*$/i','',$label);
$text=$langs->trans($newlabel); $text=$langs->trans($newlabel);
$more=''; $more='';
if (eregi('\*$',$label)) if (eregi('\*$',$label))
@ -1182,7 +1182,7 @@ if ($step == 5 && $datatoimport)
//var_dump($fieldssource); //var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue; if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label; //print $code.'-'.$label;
$alias=eregi_replace('\..*$','',$label); $alias=preg_replace('/(\..*)$/i','',$label);
$listtables[$alias]=$objimport->array_import_tables[0][$alias]; $listtables[$alias]=$objimport->array_import_tables[0][$alias];
} }
if (sizeof($listtables)) if (sizeof($listtables))
@ -1225,7 +1225,7 @@ if ($step == 5 && $datatoimport)
//var_dump($fieldssource); //var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue; if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label; //print $code.'-'.$label;
$alias=eregi_replace('\..*$','',$label); $alias=preg_replace('/(\..*)$/i','',$label);
$listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label; $listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label;
} }
print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error"); print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error");
@ -1400,7 +1400,7 @@ if ($step == 6 && $datatoimport)
//var_dump($fieldssource); //var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue; if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label; //print $code.'-'.$label;
$alias=eregi_replace('\..*$','',$label); $alias=preg_replace('/(\..*)$/i','',$label);
$listtables[$alias]=$objimport->array_import_tables[0][$alias]; $listtables[$alias]=$objimport->array_import_tables[0][$alias];
} }
if (sizeof($listtables)) if (sizeof($listtables))
@ -1441,7 +1441,7 @@ if ($step == 6 && $datatoimport)
//var_dump($fieldssource); //var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue; if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label; //print $code.'-'.$label;
$alias=eregi_replace('\..*$','',$label); $alias=preg_replace('/(\..*)$/i','',$label);
$listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label; $listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label;
} }
print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error"); print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error");
@ -1729,7 +1729,7 @@ if ($step == 7 && $datatoimport)
//var_dump($fieldssource); //var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue; if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label; //print $code.'-'.$label;
$alias=eregi_replace('\..*$','',$label); $alias=preg_replace('/(\..*)$/i','',$label);
$listtables[$alias]=$objimport->array_import_tables[0][$alias]; $listtables[$alias]=$objimport->array_import_tables[0][$alias];
} }
if (sizeof($listtables)) if (sizeof($listtables))
@ -1770,7 +1770,7 @@ if ($step == 7 && $datatoimport)
//var_dump($fieldssource); //var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue; if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label; //print $code.'-'.$label;
$alias=eregi_replace('\..*$','',$label); $alias=preg_replace('/(\..*)$/i','',$label);
$listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label; $listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label;
} }
print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error"); print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error");

View File

@ -106,7 +106,7 @@ class box_prospect extends ModeleBoxes {
'text' => dol_print_date($datem, "day")); 'text' => dol_print_date($datem, "day"));
$this->info_box_contents[$i][3] = array('td' => 'align="right" width="18"', $this->info_box_contents[$i][3] = array('td' => 'align="right" width="18"',
'text' => eregi_replace('img ','img height="14" ',$prospectstatic->LibStatut($objp->fk_stcomm,3))); 'text' => str_replace('img ','img height="14" ',$prospectstatic->LibStatut($objp->fk_stcomm,3)));
$i++; $i++;
} }

View File

@ -178,9 +178,9 @@ class ModeleBoxes
if (empty($contents[$i][$j]['text'])) $contents[$i][$j]['text']=""; if (empty($contents[$i][$j]['text'])) $contents[$i][$j]['text']="";
$texte=isset($contents[$i][$j]['text'])?$contents[$i][$j]['text']:''; $texte=isset($contents[$i][$j]['text'])?$contents[$i][$j]['text']:'';
$textewithnotags=eregi_replace('<[^>]+>','',$texte); $textewithnotags=preg_replace('/<([^>]+)>/i','',$texte);
$texte2=isset($contents[$i][$j]['text2'])?$contents[$i][$j]['text2']:''; $texte2=isset($contents[$i][$j]['text2'])?$contents[$i][$j]['text2']:'';
$texte2withnotags=eregi_replace('<[^>]+>','',$texte2); $texte2withnotags=preg_replace('/<([^>]+)>/i','',$texte2);
//print "xxx $textewithnotags y"; //print "xxx $textewithnotags y";
print '<td'.$tdparam.'>'; print '<td'.$tdparam.'>';
@ -196,7 +196,7 @@ class ModeleBoxes
// Logo // Logo
if (! empty($contents[$i][$j]['logo'])) if (! empty($contents[$i][$j]['logo']))
{ {
$logo=eregi_replace("^object_","",$contents[$i][$j]['logo']); $logo=preg_replace("/^object_/i","",$contents[$i][$j]['logo']);
print img_object($langs->trans("Show"),$logo); print img_object($langs->trans("Show"),$logo);
} }
@ -204,13 +204,13 @@ class ModeleBoxes
if (! empty($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength']; if (! empty($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength'];
if ($maxlength) $textewithnotags=dol_trunc($textewithnotags,$maxlength); if ($maxlength) $textewithnotags=dol_trunc($textewithnotags,$maxlength);
if (eregi('^<img',$texte)) print $texte; // show text with no html cleaning if (preg_match('/^<img/i',$texte)) print $texte; // show text with no html cleaning
else print $textewithnotags; // show text with html cleaning else print $textewithnotags; // show text with html cleaning
// End Url // End Url
if (! empty($contents[$i][$j]['url'])) print '</a>'; if (! empty($contents[$i][$j]['url'])) print '</a>';
if (eregi('^<img',$texte2)) print $texte2; // show text with no html cleaning if (preg_match('/^<img/i',$texte2)) print $texte2; // show text with no html cleaning
else print $texte2withnotags; // show text with html cleaning else print $texte2withnotags; // show text with html cleaning
print "</td>"; print "</td>";

View File

@ -65,7 +65,7 @@ define('NOTOKENRENEWAL',1); // Disables token renewal
// is a security hole if anybody can access without // is a security hole if anybody can access without
// being an authenticated user. // being an authenticated user.
require_once("../../../../../../main.inc.php"); require_once("../../../../../../main.inc.php");
$uri=eregi_replace('^http(s?)://','',$dolibarr_main_url_root); $uri=preg_replace('/^http(s?):\/\//i','',$dolibarr_main_url_root);
$pos = strstr ($uri, '/'); // $pos contient alors url sans nom domaine $pos = strstr ($uri, '/'); // $pos contient alors url sans nom domaine
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a '' if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
define('DOL_URL_ROOT', $pos); define('DOL_URL_ROOT', $pos);

View File

@ -31,7 +31,7 @@ define('NOTOKENRENEWAL',1); // Disables token renewal
// is a security hole if anybody can access without // is a security hole if anybody can access without
// being an authenticated user. // being an authenticated user.
require_once("../../../../../../main.inc.php"); require_once("../../../../../../main.inc.php");
$uri=eregi_replace('^http(s?)://','',$dolibarr_main_url_root); $uri=preg_replace('/^http(s?):\/\//i','',$dolibarr_main_url_root);
$pos = strstr ($uri, '/'); // $pos contient alors url sans nom domaine $pos = strstr ($uri, '/'); // $pos contient alors url sans nom domaine
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a '' if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
define('DOL_URL_ROOT', $pos); define('DOL_URL_ROOT', $pos);

View File

@ -2319,7 +2319,7 @@ function _enddoc()
} }
if (eregi("font-size",$attr['style'])){ if (eregi("font-size",$attr['style'])){
$headsize = substr($attr['style'],11); $headsize = substr($attr['style'],11);
$headsize = eregi_replace('[;-]','',$headsize); $headsize = preg_replace('/[;-]/','',$headsize);
//print 'headsize1: '.$headsize.'<br>'; //print 'headsize1: '.$headsize.'<br>';
//print 'recupheadsize: '.$this->$headsize.'<br>'; //print 'recupheadsize: '.$this->$headsize.'<br>';
$headsize = intval($this->$headsize); $headsize = intval($this->$headsize);

View File

@ -969,7 +969,7 @@ class DolibarrModules
{ {
//print 'xxx'.$this->menu[$key]['fk_menu'];exit; //print 'xxx'.$this->menu[$key]['fk_menu'];exit;
$numparent=$this->menu[$key]['fk_menu']; $numparent=$this->menu[$key]['fk_menu'];
$numparent=eregi_replace('r=','',$numparent); $numparent=str_replace('r=','',$numparent);
if (isset($this->menu[$numparent]['rowid'])) if (isset($this->menu[$numparent]['rowid']))
{ {
$menu->fk_menu=$this->menu[$numparent]['rowid']; $menu->fk_menu=$this->menu[$numparent]['rowid'];

View File

@ -570,7 +570,7 @@ class pdf_einstein extends ModelePDFCommandes
$tvacompl=''; $tvacompl='';
if (eregi('\*',$tvakey)) if (eregi('\*',$tvakey))
{ {
$tvakey=eregi_replace('\*','',$tvakey); $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
} }
$totalvat =$outputlangs->transnoentities("TotalVAT").' '; $totalvat =$outputlangs->transnoentities("TotalVAT").' ';

View File

@ -126,22 +126,22 @@ class html_cerfafr extends ModeleDon
// Defini contenu // Defini contenu
$donmodel=DOL_DOCUMENT_ROOT ."/includes/modules/dons/html_cerfafr.html"; $donmodel=DOL_DOCUMENT_ROOT ."/includes/modules/dons/html_cerfafr.html";
$html = implode('', file($donmodel)); $html = implode('', file($donmodel));
$html = eregi_replace('__REF__',$id,$html); $html = str_replace('__REF__',$id,$html);
$html = eregi_replace('__DATE__',dol_print_date($don->date,'day',false,$outputlangs),$html); $html = str_replace('__DATE__',dol_print_date($don->date,'day',false,$outputlangs),$html);
$html = eregi_replace('__IP__',$user->ip,$html); $html = str_replace('__IP__',$user->ip,$html);
$html = eregi_replace('__AMOUNT__',$don->amount,$html); $html = str_replace('__AMOUNT__',$don->amount,$html);
$html = eregi_replace('__CURRENCY__',$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie),$html); $html = str_replace('__CURRENCY__',$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie),$html);
$html = eregi_replace('__CURRENCYCODE__',$conf->monnaie,$html); $html = str_replace('__CURRENCYCODE__',$conf->monnaie,$html);
$html = eregi_replace('__MAIN_INFO_SOCIETE_NOM__',$mysoc->nom,$html); $html = str_replace('__MAIN_INFO_SOCIETE_NOM__',$mysoc->nom,$html);
$html = eregi_replace('__MAIN_INFO_SOCIETE_ADRESSE__',$mysoc->adresse,$html); $html = str_replace('__MAIN_INFO_SOCIETE_ADRESSE__',$mysoc->adresse,$html);
$html = eregi_replace('__MAIN_INFO_SOCIETE_CP__',$mysoc->cp,$html); $html = str_replace('__MAIN_INFO_SOCIETE_CP__',$mysoc->cp,$html);
$html = eregi_replace('__MAIN_INFO_SOCIETE_VILLE__',$mysoc->ville,$html); $html = str_replace('__MAIN_INFO_SOCIETE_VILLE__',$mysoc->ville,$html);
$html = eregi_replace('__DONATOR_NAME__',$don->nom,$html); $html = str_replace('__DONATOR_NAME__',$don->nom,$html);
$html = eregi_replace('__DONATOR_ADDRESS__',$don->adresse,$html); $html = str_replace('__DONATOR_ADDRESS__',$don->adresse,$html);
$html = eregi_replace('__DONATOR_ZIP__',$don->cp,$html); $html = str_replace('__DONATOR_ZIP__',$don->cp,$html);
$html = eregi_replace('__DONATOR_TOWN__',$don->ville,$html); $html = str_replace('__DONATOR_TOWN__',$don->ville,$html);
$html = eregi_replace('__PAYMENTMODE_LIB__ ',$don->modepaiement,$html); $html = str_replace('__PAYMENTMODE_LIB__ ',$don->modepaiement,$html);
$html = eregi_replace('__NOW__',dol_print_date($now,'',false,$outputlangs),$html); $html = str_replace('__NOW__',dol_print_date($now,'',false,$outputlangs),$html);
// Sauve fichier sur disque // Sauve fichier sur disque
dol_syslog("html_cerfafr::write_file $file"); dol_syslog("html_cerfafr::write_file $file");

View File

@ -718,7 +718,7 @@ class pdf_crabe extends ModelePDFFactures
$tvacompl=''; $tvacompl='';
if (eregi('\*',$tvakey)) if (eregi('\*',$tvakey))
{ {
$tvakey=eregi_replace('\*','',$tvakey); $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
} }
$totalvat =$outputlangs->transnoentities("TotalVAT").' '; $totalvat =$outputlangs->transnoentities("TotalVAT").' ';

View File

@ -641,7 +641,7 @@ class pdf_oursin extends ModelePDFFactures
$tvacompl=''; $tvacompl='';
if (eregi('\*',$tvakey)) if (eregi('\*',$tvakey))
{ {
$tvakey=eregi_replace('\*','',$tvakey); $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
} }
$totalvat =$outputlangs->transnoentities("TotalVAT").' '; $totalvat =$outputlangs->transnoentities("TotalVAT").' ';

View File

@ -312,7 +312,7 @@ class ImportCsv extends ModeleImports
if ($key <= $maxfields) if ($key <= $maxfields)
{ {
if ($listfields) { $listfields.=', '; $listvalues.=', '; } if ($listfields) { $listfields.=', '; $listvalues.=', '; }
$listfields.=eregi_replace('^.*\.','',$val); $listfields.=preg_replace('/^.*\./i','',$val);
$newval=''; $newval='';
if ($arrayrecord[($key-1)]['type'] < 0) if ($arrayrecord[($key-1)]['type'] < 0)
{ {

View File

@ -53,7 +53,7 @@ class modAccounting extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion complete de comptabilite (doubles parties)"; $this->description = "Gestion complete de comptabilite (doubles parties)";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -52,7 +52,7 @@ class modAdherent extends DolibarrModules
$this->family = "hr"; $this->family = "hr";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des adherents d'une association"; $this->description = "Gestion des adherents d'une association";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -52,7 +52,7 @@ class modAgenda extends DolibarrModules
$this->family = "projects"; $this->family = "projects";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion de l'agenda et des actions"; $this->description = "Gestion de l'agenda et des actions";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase) // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)

View File

@ -21,7 +21,7 @@
*/ */
/** \defgroup banque Module bank /** \defgroup banque Module bank
* \brief Module pour gérer la tenue d'un compte bancaire et rapprochements * \brief Module pour g<EFBFBD>rer la tenue d'un compte bancaire et rapprochements
* \version $Id$ * \version $Id$
*/ */
@ -43,7 +43,7 @@ class modBanque extends DolibarrModules
/** /**
* \brief Constructeur. Definit les noms, constantes et boites * \brief Constructeur. Definit les noms, constantes et boites
* \param DB handler d'accès base * \param DB handler d'acc<EFBFBD>s base
*/ */
function modBanque($DB) function modBanque($DB)
{ {
@ -54,7 +54,7 @@ class modBanque extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux"; $this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
@ -92,50 +92,50 @@ class modBanque extends DolibarrModules
$r++; $r++;
$this->rights[$r][0] = 111; // id de la permission $this->rights[$r][0] = 111; // id de la permission
$this->rights[$r][1] = 'Lire les comptes bancaires'; // libelle de la permission $this->rights[$r][1] = 'Lire les comptes bancaires'; // libelle de la permission
$this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'r'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 1; // La permission est-elle une permission par défaut $this->rights[$r][3] = 1; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'lire'; $this->rights[$r][4] = 'lire';
$r++; $r++;
$this->rights[$r][0] = 112; // id de la permission $this->rights[$r][0] = 112; // id de la permission
$this->rights[$r][1] = 'Creer/modifier montant/supprimer ecriture bancaire'; // libelle de la permission $this->rights[$r][1] = 'Creer/modifier montant/supprimer ecriture bancaire'; // libelle de la permission
$this->rights[$r][2] = 'w'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'w'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'modifier'; $this->rights[$r][4] = 'modifier';
$r++; $r++;
$this->rights[$r][0] = 113; // id de la permission $this->rights[$r][0] = 113; // id de la permission
$this->rights[$r][1] = 'Configurer les comptes bancaires (creer, gerer categories)'; // libelle de la permission $this->rights[$r][1] = 'Configurer les comptes bancaires (creer, gerer categories)'; // libelle de la permission
$this->rights[$r][2] = 'a'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'a'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'configurer'; $this->rights[$r][4] = 'configurer';
$r++; $r++;
$this->rights[$r][0] = 114; // id de la permission $this->rights[$r][0] = 114; // id de la permission
$this->rights[$r][1] = 'Rapprocher les ecritures bancaires'; // libelle de la permission $this->rights[$r][1] = 'Rapprocher les ecritures bancaires'; // libelle de la permission
$this->rights[$r][2] = 'w'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'w'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'consolidate'; $this->rights[$r][4] = 'consolidate';
$r++; $r++;
$this->rights[$r][0] = 115; // id de la permission $this->rights[$r][0] = 115; // id de la permission
$this->rights[$r][1] = 'Exporter transactions et releves'; // libelle de la permission $this->rights[$r][1] = 'Exporter transactions et releves'; // libelle de la permission
$this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'r'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'export'; $this->rights[$r][4] = 'export';
$r++; $r++;
$this->rights[$r][0] = 116; // id de la permission $this->rights[$r][0] = 116; // id de la permission
$this->rights[$r][1] = 'Virements entre comptes'; // libelle de la permission $this->rights[$r][1] = 'Virements entre comptes'; // libelle de la permission
$this->rights[$r][2] = 'w'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'w'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'transfer'; $this->rights[$r][4] = 'transfer';
$r++; $r++;
$this->rights[$r][0] = 117; // id de la permission $this->rights[$r][0] = 117; // id de la permission
$this->rights[$r][1] = 'Gerer les envois de cheques'; // libelle de la permission $this->rights[$r][1] = 'Gerer les envois de cheques'; // libelle de la permission
$this->rights[$r][2] = 'w'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'w'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'cheque'; $this->rights[$r][4] = 'cheque';
@ -146,7 +146,7 @@ class modBanque extends DolibarrModules
$r++; $r++;
$this->export_code[$r]=$this->rights_class.'_'.$r; $this->export_code[$r]=$this->rights_class.'_'.$r;
$this->export_label[$r]='Ecritures bancaires et relevés'; $this->export_label[$r]='Ecritures bancaires et relev<EFBFBD>s';
$this->export_permission[$r]=array(array("banque","export")); $this->export_permission[$r]=array(array("banque","export"));
$this->export_fields_array[$r]=array('b.rowid'=>'IdTransaction','ba.ref'=>'AccountRef','ba.label'=>'AccountLabel','b.datev'=>'DateValue','b.dateo'=>'DateOperation','b.label'=>'Label','b.num_chq'=>'ChequeOrTransferNumber','-b.amount'=>'Debit','b.amount'=>'Credit','b.num_releve'=>'AccountStatement','b.datec'=>"DateCreation","bu.url_id"=>"IdThirdParty","s.nom"=>"ThirdParty","s.code_compta"=>"CustomerAccountancyCode","s.code_compta_fournisseur"=>"SupplierAccountancyCode"); $this->export_fields_array[$r]=array('b.rowid'=>'IdTransaction','ba.ref'=>'AccountRef','ba.label'=>'AccountLabel','b.datev'=>'DateValue','b.dateo'=>'DateOperation','b.label'=>'Label','b.num_chq'=>'ChequeOrTransferNumber','-b.amount'=>'Debit','b.amount'=>'Credit','b.num_releve'=>'AccountStatement','b.datec'=>"DateCreation","bu.url_id"=>"IdThirdParty","s.nom"=>"ThirdParty","s.code_compta"=>"CustomerAccountancyCode","s.code_compta_fournisseur"=>"SupplierAccountancyCode");
$this->export_entities_array[$r]=array('b.rowid'=>'account','ba.ref'=>'account','ba.label'=>'account','b.datev'=>'account','b.dateo'=>'account','b.label'=>'account','b.num_chq'=>'account','-b.amount'=>'account','b.amount'=>'account','b.num_releve'=>'account','b.datec'=>"account","bu.url_id"=>"company","s.nom"=>"company","s.code_compta"=>"company","s.code_compta_fournisseur"=>"company"); $this->export_entities_array[$r]=array('b.rowid'=>'account','ba.ref'=>'account','ba.label'=>'account','b.datev'=>'account','b.dateo'=>'account','b.label'=>'account','b.num_chq'=>'account','-b.amount'=>'account','b.amount'=>'account','b.num_releve'=>'account','b.datec'=>"account","bu.url_id"=>"company","s.nom"=>"company","s.code_compta"=>"company","s.code_compta_fournisseur"=>"company");
@ -164,8 +164,8 @@ class modBanque extends DolibarrModules
/** /**
* \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. * \brief Fonction appel<EFBFBD>e lors de l'activation du module. Ins<EFBFBD>re en base les constantes, boites, permissions du module.
* Définit également les répertoires de données à créer pour ce module. * D<EFBFBD>finit <EFBFBD>galement les r<EFBFBD>pertoires de donn<EFBFBD>es <EFBFBD> cr<EFBFBD>er pour ce module.
*/ */
function init() function init()
{ {
@ -180,7 +180,7 @@ class modBanque extends DolibarrModules
} }
/** /**
* \brief Fonction appelée lors de la désactivation d'un module. * \brief Fonction appel<EFBFBD>e lors de la d<EFBFBD>sactivation d'un module.
* Supprime de la base les constantes, boites et permissions du module. * Supprime de la base les constantes, boites et permissions du module.
*/ */
function remove() function remove()

View File

@ -51,7 +51,7 @@ class modBarcode extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des codes barres"; $this->description = "Gestion des codes barres";
$this->version = 'dolibarr'; // 'development' or 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -51,7 +51,7 @@ class modBookmark extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des Bookmarks"; $this->description = "Gestion des Bookmarks";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -52,7 +52,7 @@ class modBoutique extends DolibarrModules
$this->family = "products"; $this->family = "products";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Interface de visualisation d'une boutique OSCommerce ou OSCSS"; $this->description = "Interface de visualisation d'une boutique OSCommerce ou OSCSS";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -52,7 +52,7 @@ class modCashDesk extends DolibarrModules
$this->family = "products"; $this->family = "products";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "CashDesk module"; $this->description = "CashDesk module";
$this->revision = explode(' ','$Revision$'); $this->revision = explode(' ','$Revision$');

View File

@ -19,7 +19,7 @@
/** /**
\defgroup category Module categories \defgroup category Module categories
\brief Module pour gérer les catégories \brief Module pour g<EFBFBD>rer les cat<EFBFBD>gories
\version $Id$ \version $Id$
*/ */
@ -38,8 +38,8 @@ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
class modCategorie extends DolibarrModules class modCategorie extends DolibarrModules
{ {
/** /**
* \brief Constructeur. définit les noms, constantes et boîtes * \brief Constructeur. d<EFBFBD>finit les noms, constantes et bo<EFBFBD>tes
* \param DB handler d'accès base * \param DB handler d'acc<EFBFBD>s base
*/ */
function modCategorie ($DB) function modCategorie ($DB)
{ {
@ -48,8 +48,8 @@ class modCategorie extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des catégories (produits, clients, fournisseurs...)"; $this->description = "Gestion des categories (produits, clients, fournisseurs...)";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr'; $this->version = 'dolibarr';
@ -82,29 +82,29 @@ class modCategorie extends DolibarrModules
$this->rights[$r][0] = 241; // id de la permission $this->rights[$r][0] = 241; // id de la permission
$this->rights[$r][1] = 'Lire les categories'; // libelle de la permission $this->rights[$r][1] = 'Lire les categories'; // libelle de la permission
$this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'r'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 1; // La permission est-elle une permission par défaut $this->rights[$r][3] = 1; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'lire'; $this->rights[$r][4] = 'lire';
$r++; $r++;
$this->rights[$r][0] = 242; // id de la permission $this->rights[$r][0] = 242; // id de la permission
$this->rights[$r][1] = 'Creer/modifier les categories'; // libelle de la permission $this->rights[$r][1] = 'Creer/modifier les categories'; // libelle de la permission
$this->rights[$r][2] = 'w'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'w'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'creer'; $this->rights[$r][4] = 'creer';
$r++; $r++;
$this->rights[$r][0] = 243; // id de la permission $this->rights[$r][0] = 243; // id de la permission
$this->rights[$r][1] = 'Supprimer les categories'; // libelle de la permission $this->rights[$r][1] = 'Supprimer les categories'; // libelle de la permission
$this->rights[$r][2] = 'd'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'd'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par défaut $this->rights[$r][3] = 0; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'supprimer'; $this->rights[$r][4] = 'supprimer';
$r++; $r++;
$this->rights[$r][0] = 244; // id de la permission $this->rights[$r][0] = 244; // id de la permission
$this->rights[$r][1] = 'Voir le contenu des categories cachees'; // libelle de la permission $this->rights[$r][1] = 'Voir le contenu des categories cachees'; // libelle de la permission
$this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) $this->rights[$r][2] = 'r'; // type de la permission (d<EFBFBD>pr<EFBFBD>ci<EFBFBD> <20> ce jour)
$this->rights[$r][3] = 1; // La permission est-elle une permission par défaut $this->rights[$r][3] = 1; // La permission est-elle une permission par d<EFBFBD>faut
$this->rights[$r][4] = 'voir'; $this->rights[$r][4] = 'voir';
$r++; $r++;
@ -151,8 +151,8 @@ class modCategorie extends DolibarrModules
/** /**
* \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. * \brief Fonction appel<EFBFBD>e lors de l'activation du module. Ins<EFBFBD>re en base les constantes, boites, permissions du module.
* Définit également les répertoires de données à créer pour ce module. * D<EFBFBD>finit <EFBFBD>galement les r<EFBFBD>pertoires de donn<EFBFBD>es <EFBFBD> cr<EFBFBD>er pour ce module.
*/ */
function init() function init()
{ {
@ -165,7 +165,7 @@ class modCategorie extends DolibarrModules
} }
/** /**
* \brief Fonction appelée lors de la désactivation d'un module. * \brief Fonction appel<EFBFBD>e lors de la d<EFBFBD>sactivation d'un module.
* Supprime de la base les constantes, boites et permissions du module. * Supprime de la base les constantes, boites et permissions du module.
*/ */
function remove() function remove()

View File

@ -51,7 +51,7 @@ class modClickToDial extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion du Click To Dial"; $this->description = "Gestion du Click To Dial";
$this->version = 'dolibarr'; // 'development' or 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'development' or 'experimental' or 'dolibarr' or version

View File

@ -54,7 +54,7 @@ class modCommande extends DolibarrModules
$this->family = "crm"; $this->family = "crm";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des commandes clients"; $this->description = "Gestion des commandes clients";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr'; $this->version = 'dolibarr';

View File

@ -53,7 +53,7 @@ class modComptabilite extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion sommaire de comptabilite"; $this->description = "Gestion sommaire de comptabilite";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -51,7 +51,7 @@ class modContrat extends DolibarrModules
$this->family = "crm"; $this->family = "crm";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des contrats de services"; $this->description = "Gestion des contrats de services";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -51,7 +51,7 @@ class modDeplacement extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des notes de frais et deplacements"; // Si traduction Module75Desc non trouvee $this->description = "Gestion des notes de frais et deplacements"; // Si traduction Module75Desc non trouvee
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -51,7 +51,7 @@ class modDocument extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Generation de courriers/publipostages papiers"; $this->description = "Generation de courriers/publipostages papiers";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'development'; $this->version = 'development';

View File

@ -49,7 +49,7 @@ class modDomain extends DolibarrModules
$this->family = "other"; $this->family = "other";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion d'une base de noms de domaines"; $this->description = "Gestion d'une base de noms de domaines";
$this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version $this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -51,7 +51,7 @@ class modDon extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$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_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -51,7 +51,7 @@ class modDroitPret extends DolibarrModules
$this->family = "other"; $this->family = "other";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion du droit de prets"; $this->description = "Gestion du droit de prets";
$this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version $this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -53,7 +53,7 @@ class modECM extends DolibarrModules
// It is used to sort modules in module setup page // It is used to sort modules in module setup page
$this->family = "ecm"; $this->family = "ecm";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value) // Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value)
$this->description = "Electronic Content Management"; $this->description = "Electronic Content Management";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -50,7 +50,7 @@ class modEditeur extends DolibarrModules
$this->family = "other"; $this->family = "other";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des livres et editeurs"; $this->description = "Gestion des livres et editeurs";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'development'; $this->version = 'development';

View File

@ -49,7 +49,7 @@ class modExpedition extends DolibarrModules
$this->family = "crm"; $this->family = "crm";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des expeditions"; $this->description = "Gestion des expeditions";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -49,7 +49,7 @@ class modExport extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Outils d'exports de donnees Dolibarr (via un assistant)"; $this->description = "Outils d'exports de donnees Dolibarr (via un assistant)";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -52,7 +52,7 @@ class modExternalRss extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Ajout de files d'informations RSS dans les ecrans Dolibarr"; $this->description = "Ajout de files d'informations RSS dans les ecrans Dolibarr";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -53,7 +53,7 @@ class modFTP extends DolibarrModules
// It is used to sort modules in module setup page // It is used to sort modules in module setup page
$this->family = "other"; $this->family = "other";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value) // Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value)
$this->description = "FTP Client"; $this->description = "FTP Client";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -54,7 +54,7 @@ class modFacture extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des factures"; $this->description = "Gestion des factures";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -50,7 +50,7 @@ class modFckeditor extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Editeur WYSIWYG"; $this->description = "Editeur WYSIWYG";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -55,7 +55,7 @@ class modFicheinter extends DolibarrModules
$this->family = "crm"; $this->family = "crm";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des fiches d'intervention"; $this->description = "Gestion des fiches d'intervention";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -50,7 +50,7 @@ class modFournisseur extends DolibarrModules
$this->family = "products"; $this->family = "products";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des fournisseurs"; $this->description = "Gestion des fournisseurs";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -49,7 +49,7 @@ class modGeoIPMaxmind extends DolibarrModules
// It is used to group modules in module setup page // It is used to group modules in module setup page
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "GeoIP Maxmind conversions capabilities"; $this->description = "GeoIP Maxmind conversions capabilities";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -53,7 +53,7 @@ class modGravatar extends DolibarrModules
// It is used to group modules in module setup page // It is used to group modules in module setup page
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Use online Gravatar service (www.gravatar.com) to show photo of users/members (found with their emails).<br>Need an internet access."; $this->description = "Use online Gravatar service (www.gravatar.com) to show photo of users/members (found with their emails).<br>Need an internet access.";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -48,7 +48,7 @@ class modImport extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Outils d'imports de donnees Dolibarr (via un assistant)"; $this->description = "Outils d'imports de donnees Dolibarr (via un assistant)";
// Possible values for version are: 'experimental' or 'dolibarr' or version // Possible values for version are: 'experimental' or 'dolibarr' or version
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version

View File

@ -51,7 +51,7 @@ class modLabel extends DolibarrModules
$this->family = "other"; $this->family = "other";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des etiquettes"; $this->description = "Gestion des etiquettes";
$this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version $this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -47,7 +47,7 @@ class modLdap extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Synchronisation Ldap"; $this->description = "Synchronisation Ldap";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -51,7 +51,7 @@ class modMailing extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des EMailings"; $this->description = "Gestion des EMailings";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -54,7 +54,7 @@ class modMantis extends DolibarrModules
// It is used to sort modules in module setup page // It is used to sort modules in module setup page
$this->family = "projects"; $this->family = "projects";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description used translation string 'ModuleXXXDesc' not found (XXX is id value) // Module description used translation string 'ModuleXXXDesc' not found (XXX is id value)
$this->description = "Interfacage avec le bug tracking Mantis"; $this->description = "Interfacage avec le bug tracking Mantis";
// Possible values for version are: 'experimental' or 'dolibarr' or version // Possible values for version are: 'experimental' or 'dolibarr' or version

View File

@ -54,7 +54,7 @@ class modMultiCompany extends DolibarrModules
// It is used to group modules in module setup page // It is used to group modules in module setup page
$this->family = "base"; $this->family = "base";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Gestion Multi-Societe"; $this->description = "Gestion Multi-Societe";
// Can be enabled / disabled only in the main company // Can be enabled / disabled only in the main company

View File

@ -49,7 +49,7 @@ class modNotification extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des notifications (par mail) sur evenement Dolibarr"; $this->description = "Gestion des notifications (par mail) sur evenement Dolibarr";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -53,7 +53,7 @@ class modOSCommerceWS extends DolibarrModules
$this->family = "products"; $this->family = "products";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Interface de visualisation d'une boutique OSCommerce via des Web services.\nCe module requiert d'installer les composants dans /oscommerce_ws/ws_server sur OSCommerce. Voir fichier README dans /oscommerce_ws/ws_server"; $this->description = "Interface de visualisation d'une boutique OSCommerce via des Web services.\nCe module requiert d'installer les composants dans /oscommerce_ws/ws_server sur OSCommerce. Voir fichier README dans /oscommerce_ws/ws_server";
$this->version = 'experimental'; // 'development' or 'experimental' or 'dolibarr' or version $this->version = 'experimental'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -53,7 +53,7 @@ class modPayBox extends DolibarrModules
// It is used to group modules in module setup page // It is used to group modules in module setup page
$this->family = "other"; $this->family = "other";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Module to offer an online payment page by credit card with PayBox"; $this->description = "Module to offer an online payment page by credit card with PayBox";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -54,7 +54,7 @@ class modPhenix extends DolibarrModules
// It is used to sort modules in module setup page // It is used to sort modules in module setup page
$this->family = "projects"; $this->family = "projects";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module descriptoin used translation string 'ModuleXXXDesc' not found (XXX is id value) // Module descriptoin used translation string 'ModuleXXXDesc' not found (XXX is id value)
$this->description = "Interface avec le calendrier Phenix"; $this->description = "Interface avec le calendrier Phenix";
// Possible values for version are: 'experimental' or 'dolibarr' or version // Possible values for version are: 'experimental' or 'dolibarr' or version

View File

@ -53,7 +53,7 @@ class modPrelevement extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des Prelevements"; $this->description = "Gestion des Prelevements";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -55,7 +55,7 @@ class modProduit extends DolibarrModules
$this->family = "products"; $this->family = "products";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des produits"; $this->description = "Gestion des produits";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -51,7 +51,7 @@ class modProjet extends DolibarrModules
$this->family = "projects"; $this->family = "projects";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des projets"; $this->description = "Gestion des projets";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr'; $this->version = 'dolibarr';

View File

@ -53,7 +53,7 @@ class modPropale extends DolibarrModules
$this->family = "crm"; $this->family = "crm";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des propositions commerciales"; $this->description = "Gestion des propositions commerciales";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -55,7 +55,7 @@ class modService extends DolibarrModules
$this->family = "products"; $this->family = "products";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des services"; $this->description = "Gestion des services";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -55,7 +55,7 @@ class modSociete extends DolibarrModules
$this->family = "crm"; $this->family = "crm";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des societes et contacts"; $this->description = "Gestion des societes et contacts";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -53,7 +53,7 @@ class modStock extends DolibarrModules
$this->family = "products"; $this->family = "products";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des stocks"; $this->description = "Gestion des stocks";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -51,7 +51,7 @@ class modSyslog extends DolibarrModules
// It is used to group modules in module setup page // It is used to group modules in module setup page
$this->family = "base"; $this->family = "base";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Activate debug logs (syslog)"; $this->description = "Activate debug logs (syslog)";
// Can be enabled / disabled only in the main company // Can be enabled / disabled only in the main company

View File

@ -54,7 +54,7 @@ class modTax extends DolibarrModules
$this->family = "financial"; $this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) // Module description used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Gestion des taxes, charges sociales et dividendes"; $this->description = "Gestion des taxes, charges sociales et dividendes";

View File

@ -51,7 +51,7 @@ class modUser extends DolibarrModules
$this->family = "base"; // Family for module (or "base" if core module) $this->family = "base"; // Family for module (or "base" if core module)
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des utilisateurs (requis)"; $this->description = "Gestion des utilisateurs (requis)";
$this->always_enabled = 1; // Can't be disabled $this->always_enabled = 1; // Can't be disabled

View File

@ -49,7 +49,7 @@ class modWebServices extends DolibarrModules
$this->family = "technic"; $this->family = "technic";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Enable the Dolibarr web services server"; $this->description = "Enable the Dolibarr web services server";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase) // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)

View File

@ -56,7 +56,7 @@ class modWebcalendar extends DolibarrModules
// It is used to sort modules in module setup page // It is used to sort modules in module setup page
$this->family = "projects"; $this->family = "projects";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = preg_replace('/^mod/i','',get_class($this));
// Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value) // Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value)
$this->description = "Interfacage avec le calendrier Webcalendar"; $this->description = "Interfacage avec le calendrier Webcalendar";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version // Possible values for version are: 'development', 'experimental', 'dolibarr' or version

View File

@ -599,7 +599,7 @@ class pdf_propale_azur extends ModelePDFPropales
$tvacompl=''; $tvacompl='';
if (eregi('\*',$tvakey)) if (eregi('\*',$tvakey))
{ {
$tvakey=eregi_replace('\*','',$tvakey); $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
} }
$totalvat =$outputlangs->transnoentities("TotalVAT").' '; $totalvat =$outputlangs->transnoentities("TotalVAT").' ';

View File

@ -80,7 +80,7 @@ class mod_codecompta_aquarium extends ModeleAccountancyCode
if ($type == 'supplier') $codetouse = $prefixcodecomptasupplier; if ($type == 'supplier') $codetouse = $prefixcodecomptasupplier;
if ($type == 'customer') $codetouse.=$societe->code_client; if ($type == 'customer') $codetouse.=$societe->code_client;
if ($type == 'supplier') $codetouse.=$societe->code_fournisseur; if ($type == 'supplier') $codetouse.=$societe->code_fournisseur;
$codetouse=strtoupper(eregi_replace('[^a-z0-9]','',$codetouse)); $codetouse=strtoupper(preg_replace('/([^a-z0-9])/i','',$codetouse));
$is_dispo = $this->verif($DB, $codetouse, $societe, $type); $is_dispo = $this->verif($DB, $codetouse, $societe, $type);
if (! $is_dispo) if (! $is_dispo)

View File

@ -453,7 +453,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
if (eregi('\*',$tvakey)) if (eregi('\*',$tvakey))
{ {
$tvakey=eregi_replace('\*','',$tvakey); $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")"; $tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
} }

View File

@ -48,7 +48,7 @@ class InterfaceDemo
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('^Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "demo"; $this->family = "demo";
$this->description = "Triggers of this module are empty functions. They have no effect. They are provided for tutorial purpose only."; $this->description = "Triggers of this module are empty functions. They have no effect. They are provided for tutorial purpose only.";
$this->version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' or version $this->version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' or version

View File

@ -47,7 +47,7 @@ class InterfaceLogevents
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('^Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "core"; $this->family = "core";
$this->description = "Triggers of this module allows to add security event records inside Dolibarr."; $this->description = "Triggers of this module allows to add security event records inside Dolibarr.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version

View File

@ -46,7 +46,7 @@ class InterfaceActionsAuto
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('^Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "agenda"; $this->family = "agenda";
$this->description = "Triggers of this module add actions in agenda according to setup made in agenda setup."; $this->description = "Triggers of this module add actions in agenda according to setup made in agenda setup.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version

View File

@ -43,7 +43,7 @@ class InterfaceEcotax
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "facture"; $this->family = "facture";
$this->description = "Les triggers de ce composant calculent le ecotax du produit si le produit est membre d'une categorie speciale (par default: 'Ecotax', change le valeur du variable \$ecotax dans le trigger pour accomoder votre choix)."; $this->description = "Les triggers de ce composant calculent le ecotax du produit si le produit est membre d'une categorie speciale (par default: 'Ecotax', change le valeur du variable \$ecotax dans le trigger pour accomoder votre choix).";
$this->revision = explode(' ','$Revision$'); $this->revision = explode(' ','$Revision$');

View File

@ -43,7 +43,7 @@ class InterfaceFraisport
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "facture"; $this->family = "facture";
$this->description = "Les triggers de ce composant calculent les frais de port."; $this->description = "Les triggers de ce composant calculent les frais de port.";
$this->revision = explode(' ','$Revision$'); $this->revision = explode(' ','$Revision$');

View File

@ -43,7 +43,7 @@ class InterfaceEditeur
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "editeur"; $this->family = "editeur";
$this->description = "Les triggers de ce composant tri les lignes commandes par stock_loc."; $this->description = "Les triggers de ce composant tri les lignes commandes par stock_loc.";
$this->revision = explode(' ','$Revision$'); $this->revision = explode(' ','$Revision$');

View File

@ -45,7 +45,7 @@ class InterfaceLdapsynchro
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "ldap"; $this->family = "ldap";
$this->description = "Triggers of this module allows to synchronize Dolibarr toward a LDAP database."; $this->description = "Triggers of this module allows to synchronize Dolibarr toward a LDAP database.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version

View File

@ -40,7 +40,7 @@ class InterfaceNotification
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "notification"; $this->family = "notification";
$this->description = "Triggers of this module send email notifications according to Notification module setup."; $this->description = "Triggers of this module send email notifications according to Notification module setup.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version

View File

@ -50,7 +50,7 @@ class InterfacePhenixsynchro
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "phenix"; $this->family = "phenix";
$this->description = "Triggers of this module allows to add an event inside Phenix calenar for each Dolibarr business event."; $this->description = "Triggers of this module allows to add an event inside Phenix calenar for each Dolibarr business event.";
$this->version = 'experimental'; // 'experimental' or 'dolibarr' or version $this->version = 'experimental'; // 'experimental' or 'dolibarr' or version

View File

@ -42,7 +42,7 @@ class InterfaceExportsynchro
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('^Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "propale"; $this->family = "propale";
$this->description = "Triggers of this module allows to export signed propal for synchro with an other application. (in csv files)"; $this->description = "Triggers of this module allows to export signed propal for synchro with an other application. (in csv files)";
$this->version = 'development'; // 'development', 'experimental', 'dolibarr' or version $this->version = 'development'; // 'development', 'experimental', 'dolibarr' or version

View File

@ -49,7 +49,7 @@ class InterfaceWebcalsynchro
{ {
$this->db = $DB ; $this->db = $DB ;
$this->name = eregi_replace('Interface','',get_class($this)); $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "webcal"; $this->family = "webcal";
$this->description = "Triggers of this module allows to add an event inside Webcalendar for each Dolibarr business event."; $this->description = "Triggers of this module allows to add an event inside Webcalendar for each Dolibarr business event.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version