diff --git a/htdocs/ecm/ecmdirectory.class.php b/htdocs/ecm/ecmdirectory.class.php
index 655114ecbad..ce3df92ca10 100644
--- a/htdocs/ecm/ecmdirectory.class.php
+++ b/htdocs/ecm/ecmdirectory.class.php
@@ -91,7 +91,7 @@ class EcmDirectory // extends CommonObject
$parent->fetch($this->fk_parent);
$relativepath=$parent->getRelativePath().$relativepath;
}
- $relativepath=eregi_replace('[\/]+','/',$relativepath); // Avoid duplicate / or \
+ $relativepath=preg_replace('/([\/])+/i','/',$relativepath); // Avoid duplicate / or \
//print $relativepath.'
';
$cat = new ECMDirectory($this->db);
@@ -99,7 +99,7 @@ class EcmDirectory // extends CommonObject
$pathfound=0;
foreach ($cate_arbo as $key => $categ)
{
- $path=eregi_replace('[ -><\/]+','/',$categ['fulllabel']);
+ $path=preg_replace('/([\s-><\/])+/i','/',$categ['fulllabel']);
//print $path.'
';
if ($path == $relativepath)
{
@@ -385,7 +385,7 @@ class EcmDirectory // extends CommonObject
//$picto=DOL_URL_ROOT.'/theme/common/treemenu/folder.gif';
$picto='dir';
- $newref=eregi_replace('_',' ',$this->ref);
+ $newref=str_replace('_',' ',$this->ref);
$newlabel=$langs->trans("ShowECMSection").': '.$newref;
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'];
}
// 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
$protection++;
diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php
index 8154aeb7586..31e2ff42ef8 100644
--- a/htdocs/ecm/index.php
+++ b/htdocs/ecm/index.php
@@ -460,7 +460,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
$val['cachenbofdoc']=$result;
}
- //$fullpathparent=eregi_replace('_[^_]+$','',$val['fullpath']);
+ //$fullpathparent=preg_replace('/(_[^_]+)$/i','',$val['fullpath']);
// Define showline
$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);
if ($option == 'indexexpanded') $lien = '';
if ($option == 'indexnotexpanded') $lien = '';
- $newref=eregi_replace('_',' ',$ref);
+ $newref=str_replace('_',' ',$ref);
$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);
diff --git a/htdocs/exports/export.class.php b/htdocs/exports/export.class.php
index 7388c2d3a6c..4fe68b4c229 100644
--- a/htdocs/exports/export.class.php
+++ b/htdocs/exports/export.class.php
@@ -84,13 +84,13 @@ class Export
$i=0;
while (($file = readdir($handle))!==false)
{
- if (eregi("^(mod.*)\.class\.php$",$file,$reg))
+ if (preg_match("/^(mod.*)\.class\.php$/i",$file,$reg))
{
$modulename=$reg[1];
// Defined if module is enabled
$enabled=true;
- $part=strtolower(eregi_replace('^mod','',$modulename));
+ $part=strtolower(preg_replace('/^mod/i','',$modulename));
if (empty($conf->$part->enabled)) $enabled=false;
if ($enabled)
diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php
index 4edd100c5b5..d82340b86c8 100644
--- a/htdocs/exports/export.php
+++ b/htdocs/exports/export.php
@@ -798,11 +798,11 @@ llxFooter('$Date$ - $Revision$');
function getablenamefromfield($code,$sqlmaxforexport)
{
$newsql=$sqlmaxforexport;
- $newsql=eregi_replace('^.* FROM ','',$newsql);
- $newsql=eregi_replace(' WHERE .*$','',$newsql);
- $alias=eregi_replace('\..*$','',$code);
+ $newsql=preg_replace('/^(.*) FROM /i','',$newsql);
+ $newsql=preg_replace('/ WHERE (.*)$/i','',$newsql);
+ $alias=preg_replace('/\.(.*)$/i','',$code);
//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];
}
diff --git a/htdocs/imports/import.class.php b/htdocs/imports/import.class.php
index 3fe89416617..289e760c873 100644
--- a/htdocs/imports/import.class.php
+++ b/htdocs/imports/import.class.php
@@ -76,13 +76,13 @@ class Import
$i=0;
while (($file = readdir($handle))!==false)
{
- if (eregi("^(mod.*)\.class\.php",$file,$reg))
+ if (preg_match("/^(mod.*)\.class\.php/i",$file,$reg))
{
$modulename=$reg[1];
// Defined if module is enabled
$enabled=true;
- $part=strtolower(eregi_replace('^mod','',$modulename));
+ $part=strtolower(preg_replace('/^mod/i','',$modulename));
if (empty($conf->$part->enabled)) $enabled=false;
if ($enabled)
diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php
index 987f13510d8..854d7fb10b4 100644
--- a/htdocs/imports/import.php
+++ b/htdocs/imports/import.php
@@ -834,14 +834,14 @@ if ($step == 4 && $datatoimport)
$i++;
$entity=$objimport->array_import_entities[0][$code];
- $tablealias=eregi_replace('\..*$','',$code);
+ $tablealias=preg_replace('/(\..*)$/i','',$code);
$tablename=$objimport->array_import_tables[0][$tablealias];
$entityicon=$entitytoicon[$entity]?$entitytoicon[$entity]:$entity;
$entitylang=$entitytolang[$entity]?$entitytolang[$entity]:$entity;
print '
=>'.img_object('',$entityicon).' '.$langs->trans($entitylang).' | ';
print '';
- $newlabel=eregi_replace('\*$','',$label);
+ $newlabel=preg_replace('/\*$/i','',$label);
$text=$langs->trans($newlabel);
$more='';
if (eregi('\*$',$label))
@@ -1182,7 +1182,7 @@ if ($step == 5 && $datatoimport)
//var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label;
- $alias=eregi_replace('\..*$','',$label);
+ $alias=preg_replace('/(\..*)$/i','',$label);
$listtables[$alias]=$objimport->array_import_tables[0][$alias];
}
if (sizeof($listtables))
@@ -1225,7 +1225,7 @@ if ($step == 5 && $datatoimport)
//var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label;
- $alias=eregi_replace('\..*$','',$label);
+ $alias=preg_replace('/(\..*)$/i','',$label);
$listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label;
}
print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error");
@@ -1400,7 +1400,7 @@ if ($step == 6 && $datatoimport)
//var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label;
- $alias=eregi_replace('\..*$','',$label);
+ $alias=preg_replace('/(\..*)$/i','',$label);
$listtables[$alias]=$objimport->array_import_tables[0][$alias];
}
if (sizeof($listtables))
@@ -1441,7 +1441,7 @@ if ($step == 6 && $datatoimport)
//var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label;
- $alias=eregi_replace('\..*$','',$label);
+ $alias=preg_replace('/(\..*)$/i','',$label);
$listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label;
}
print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error");
@@ -1729,7 +1729,7 @@ if ($step == 7 && $datatoimport)
//var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label;
- $alias=eregi_replace('\..*$','',$label);
+ $alias=preg_replace('/(\..*)$/i','',$label);
$listtables[$alias]=$objimport->array_import_tables[0][$alias];
}
if (sizeof($listtables))
@@ -1770,7 +1770,7 @@ if ($step == 7 && $datatoimport)
//var_dump($fieldssource);
if ($code > sizeof($fieldssource)) continue;
//print $code.'-'.$label;
- $alias=eregi_replace('\..*$','',$label);
+ $alias=preg_replace('/(\..*)$/i','',$label);
$listfields[$i]=$langs->trans("Field").' '.$code.'->'.$label;
}
print sizeof($listfields)?(join(', ',$listfields)):$langs->trans("Error");
diff --git a/htdocs/includes/boxes/box_prospect.php b/htdocs/includes/boxes/box_prospect.php
index 06cfa73ddd6..6874d5a466d 100644
--- a/htdocs/includes/boxes/box_prospect.php
+++ b/htdocs/includes/boxes/box_prospect.php
@@ -106,7 +106,7 @@ class box_prospect extends ModeleBoxes {
'text' => dol_print_date($datem, "day"));
$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++;
}
diff --git a/htdocs/includes/boxes/modules_boxes.php b/htdocs/includes/boxes/modules_boxes.php
index 9f25054b307..392d977a59f 100644
--- a/htdocs/includes/boxes/modules_boxes.php
+++ b/htdocs/includes/boxes/modules_boxes.php
@@ -178,9 +178,9 @@ class ModeleBoxes
if (empty($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']:'';
- $texte2withnotags=eregi_replace('<[^>]+>','',$texte2);
+ $texte2withnotags=preg_replace('/<([^>]+)>/i','',$texte2);
//print "xxx $textewithnotags y";
print ' | ';
@@ -196,7 +196,7 @@ class ModeleBoxes
// 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);
}
@@ -204,13 +204,13 @@ class ModeleBoxes
if (! empty($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength'];
if ($maxlength) $textewithnotags=dol_trunc($textewithnotags,$maxlength);
- if (eregi('^ ';
- if (eregi('^ ";
diff --git a/htdocs/includes/dolibarr_changes.txt b/htdocs/includes/dolibarr_changes.txt
index fa0da3f0b45..69e50ee8803 100644
--- a/htdocs/includes/dolibarr_changes.txt
+++ b/htdocs/includes/dolibarr_changes.txt
@@ -65,7 +65,7 @@ define('NOTOKENRENEWAL',1); // Disables token renewal
// is a security hole if anybody can access without
// being an authenticated user.
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
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
define('DOL_URL_ROOT', $pos);
diff --git a/htdocs/includes/fckeditor/editor/filemanager/connectors/php/config.php b/htdocs/includes/fckeditor/editor/filemanager/connectors/php/config.php
index ce866d847b1..76f733ed4bd 100644
--- a/htdocs/includes/fckeditor/editor/filemanager/connectors/php/config.php
+++ b/htdocs/includes/fckeditor/editor/filemanager/connectors/php/config.php
@@ -31,7 +31,7 @@ define('NOTOKENRENEWAL',1); // Disables token renewal
// is a security hole if anybody can access without
// being an authenticated user.
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
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
define('DOL_URL_ROOT', $pos);
diff --git a/htdocs/includes/fpdf/fpdf/fpdf.php b/htdocs/includes/fpdf/fpdf/fpdf.php
index e61a48607e0..9e6e6e1cc38 100644
--- a/htdocs/includes/fpdf/fpdf/fpdf.php
+++ b/htdocs/includes/fpdf/fpdf/fpdf.php
@@ -2319,7 +2319,7 @@ function _enddoc()
}
if (eregi("font-size",$attr['style'])){
$headsize = substr($attr['style'],11);
- $headsize = eregi_replace('[;-]','',$headsize);
+ $headsize = preg_replace('/[;-]/','',$headsize);
//print 'headsize1: '.$headsize.' ';
//print 'recupheadsize: '.$this->$headsize.' ';
$headsize = intval($this->$headsize);
diff --git a/htdocs/includes/modules/DolibarrModules.class.php b/htdocs/includes/modules/DolibarrModules.class.php
index 5bc907b9f69..6aadcaf11ee 100644
--- a/htdocs/includes/modules/DolibarrModules.class.php
+++ b/htdocs/includes/modules/DolibarrModules.class.php
@@ -969,7 +969,7 @@ class DolibarrModules
{
//print 'xxx'.$this->menu[$key]['fk_menu'];exit;
$numparent=$this->menu[$key]['fk_menu'];
- $numparent=eregi_replace('r=','',$numparent);
+ $numparent=str_replace('r=','',$numparent);
if (isset($this->menu[$numparent]['rowid']))
{
$menu->fk_menu=$this->menu[$numparent]['rowid'];
diff --git a/htdocs/includes/modules/commande/pdf_einstein.modules.php b/htdocs/includes/modules/commande/pdf_einstein.modules.php
index a95476a330d..795010e011e 100644
--- a/htdocs/includes/modules/commande/pdf_einstein.modules.php
+++ b/htdocs/includes/modules/commande/pdf_einstein.modules.php
@@ -570,7 +570,7 @@ class pdf_einstein extends ModelePDFCommandes
$tvacompl='';
if (eregi('\*',$tvakey))
{
- $tvakey=eregi_replace('\*','',$tvakey);
+ $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
}
$totalvat =$outputlangs->transnoentities("TotalVAT").' ';
diff --git a/htdocs/includes/modules/dons/html_cerfafr.modules.php b/htdocs/includes/modules/dons/html_cerfafr.modules.php
index dc19adc880b..02f7f551bc2 100644
--- a/htdocs/includes/modules/dons/html_cerfafr.modules.php
+++ b/htdocs/includes/modules/dons/html_cerfafr.modules.php
@@ -126,22 +126,22 @@ class html_cerfafr extends ModeleDon
// Defini contenu
$donmodel=DOL_DOCUMENT_ROOT ."/includes/modules/dons/html_cerfafr.html";
$html = implode('', file($donmodel));
- $html = eregi_replace('__REF__',$id,$html);
- $html = eregi_replace('__DATE__',dol_print_date($don->date,'day',false,$outputlangs),$html);
- $html = eregi_replace('__IP__',$user->ip,$html);
- $html = eregi_replace('__AMOUNT__',$don->amount,$html);
- $html = eregi_replace('__CURRENCY__',$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie),$html);
- $html = eregi_replace('__CURRENCYCODE__',$conf->monnaie,$html);
- $html = eregi_replace('__MAIN_INFO_SOCIETE_NOM__',$mysoc->nom,$html);
- $html = eregi_replace('__MAIN_INFO_SOCIETE_ADRESSE__',$mysoc->adresse,$html);
- $html = eregi_replace('__MAIN_INFO_SOCIETE_CP__',$mysoc->cp,$html);
- $html = eregi_replace('__MAIN_INFO_SOCIETE_VILLE__',$mysoc->ville,$html);
- $html = eregi_replace('__DONATOR_NAME__',$don->nom,$html);
- $html = eregi_replace('__DONATOR_ADDRESS__',$don->adresse,$html);
- $html = eregi_replace('__DONATOR_ZIP__',$don->cp,$html);
- $html = eregi_replace('__DONATOR_TOWN__',$don->ville,$html);
- $html = eregi_replace('__PAYMENTMODE_LIB__ ',$don->modepaiement,$html);
- $html = eregi_replace('__NOW__',dol_print_date($now,'',false,$outputlangs),$html);
+ $html = str_replace('__REF__',$id,$html);
+ $html = str_replace('__DATE__',dol_print_date($don->date,'day',false,$outputlangs),$html);
+ $html = str_replace('__IP__',$user->ip,$html);
+ $html = str_replace('__AMOUNT__',$don->amount,$html);
+ $html = str_replace('__CURRENCY__',$outputlangs->transnoentitiesnoconv("Currency".$conf->monnaie),$html);
+ $html = str_replace('__CURRENCYCODE__',$conf->monnaie,$html);
+ $html = str_replace('__MAIN_INFO_SOCIETE_NOM__',$mysoc->nom,$html);
+ $html = str_replace('__MAIN_INFO_SOCIETE_ADRESSE__',$mysoc->adresse,$html);
+ $html = str_replace('__MAIN_INFO_SOCIETE_CP__',$mysoc->cp,$html);
+ $html = str_replace('__MAIN_INFO_SOCIETE_VILLE__',$mysoc->ville,$html);
+ $html = str_replace('__DONATOR_NAME__',$don->nom,$html);
+ $html = str_replace('__DONATOR_ADDRESS__',$don->adresse,$html);
+ $html = str_replace('__DONATOR_ZIP__',$don->cp,$html);
+ $html = str_replace('__DONATOR_TOWN__',$don->ville,$html);
+ $html = str_replace('__PAYMENTMODE_LIB__ ',$don->modepaiement,$html);
+ $html = str_replace('__NOW__',dol_print_date($now,'',false,$outputlangs),$html);
// Sauve fichier sur disque
dol_syslog("html_cerfafr::write_file $file");
diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php
index 1dfa7c7a7c6..5ba3507ae13 100644
--- a/htdocs/includes/modules/facture/pdf_crabe.modules.php
+++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php
@@ -718,7 +718,7 @@ class pdf_crabe extends ModelePDFFactures
$tvacompl='';
if (eregi('\*',$tvakey))
{
- $tvakey=eregi_replace('\*','',$tvakey);
+ $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
}
$totalvat =$outputlangs->transnoentities("TotalVAT").' ';
diff --git a/htdocs/includes/modules/facture/pdf_oursin.modules.php b/htdocs/includes/modules/facture/pdf_oursin.modules.php
index 09a2b3ca3e5..c9ea75f5497 100644
--- a/htdocs/includes/modules/facture/pdf_oursin.modules.php
+++ b/htdocs/includes/modules/facture/pdf_oursin.modules.php
@@ -641,7 +641,7 @@ class pdf_oursin extends ModelePDFFactures
$tvacompl='';
if (eregi('\*',$tvakey))
{
- $tvakey=eregi_replace('\*','',$tvakey);
+ $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
}
$totalvat =$outputlangs->transnoentities("TotalVAT").' ';
diff --git a/htdocs/includes/modules/import/import_csv.modules.php b/htdocs/includes/modules/import/import_csv.modules.php
index 9dd5e4722f7..4143435aeb3 100644
--- a/htdocs/includes/modules/import/import_csv.modules.php
+++ b/htdocs/includes/modules/import/import_csv.modules.php
@@ -312,7 +312,7 @@ class ImportCsv extends ModeleImports
if ($key <= $maxfields)
{
if ($listfields) { $listfields.=', '; $listvalues.=', '; }
- $listfields.=eregi_replace('^.*\.','',$val);
+ $listfields.=preg_replace('/^.*\./i','',$val);
$newval='';
if ($arrayrecord[($key-1)]['type'] < 0)
{
diff --git a/htdocs/includes/modules/modAccounting.class.php b/htdocs/includes/modules/modAccounting.class.php
index 6c0a6844152..eb792821dd0 100644
--- a/htdocs/includes/modules/modAccounting.class.php
+++ b/htdocs/includes/modules/modAccounting.class.php
@@ -53,7 +53,7 @@ class modAccounting extends DolibarrModules
$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)
- $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)";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modAdherent.class.php b/htdocs/includes/modules/modAdherent.class.php
index efd589a4c95..e61cce7f49f 100644
--- a/htdocs/includes/modules/modAdherent.class.php
+++ b/htdocs/includes/modules/modAdherent.class.php
@@ -52,7 +52,7 @@ class modAdherent extends DolibarrModules
$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)
- $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->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modAgenda.class.php b/htdocs/includes/modules/modAgenda.class.php
index 687003f9d4a..2cc1b4c777a 100644
--- a/htdocs/includes/modules/modAgenda.class.php
+++ b/htdocs/includes/modules/modAgenda.class.php
@@ -52,7 +52,7 @@ class modAgenda extends DolibarrModules
$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)
- $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->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)
diff --git a/htdocs/includes/modules/modBanque.class.php b/htdocs/includes/modules/modBanque.class.php
index 0d6582371c7..a5f1313d988 100644
--- a/htdocs/includes/modules/modBanque.class.php
+++ b/htdocs/includes/modules/modBanque.class.php
@@ -21,7 +21,7 @@
*/
/** \defgroup banque Module bank
- * \brief Module pour gérer la tenue d'un compte bancaire et rapprochements
+ * \brief Module pour g�rer la tenue d'un compte bancaire et rapprochements
* \version $Id$
*/
@@ -43,7 +43,7 @@ class modBanque extends DolibarrModules
/**
* \brief Constructeur. Definit les noms, constantes et boites
- * \param DB handler d'accès base
+ * \param DB handler d'acc�s base
*/
function modBanque($DB)
{
@@ -54,7 +54,7 @@ class modBanque extends DolibarrModules
$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)
- $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";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
@@ -92,50 +92,50 @@ class modBanque extends DolibarrModules
$r++;
$this->rights[$r][0] = 111; // id de la permission
$this->rights[$r][1] = 'Lire les comptes bancaires'; // libelle de la permission
- $this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour)
- $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'r'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 1; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'lire';
$r++;
$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][2] = 'w'; // type de la permission (déprécié à ce jour)
- $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'w'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'modifier';
$r++;
$this->rights[$r][0] = 113; // id de la permission
$this->rights[$r][1] = 'Configurer les comptes bancaires (creer, gerer categories)'; // libelle de la permission
- $this->rights[$r][2] = 'a'; // type de la permission (déprécié à ce jour)
- $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'a'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'configurer';
$r++;
$this->rights[$r][0] = 114; // id 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][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'w'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'consolidate';
$r++;
$this->rights[$r][0] = 115; // id 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][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'r'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'export';
$r++;
$this->rights[$r][0] = 116; // id 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][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'w'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'transfer';
$r++;
$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][2] = 'w'; // type de la permission (déprécié à ce jour)
- $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'w'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'cheque';
@@ -146,7 +146,7 @@ class modBanque extends DolibarrModules
$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�s';
$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_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.
- * Définit également les répertoires de données à créer pour ce module.
+ * \brief Fonction appel�e lors de l'activation du module. Ins�re en base les constantes, boites, permissions du module.
+ * D�finit �galement les r�pertoires de donn�es � cr�er pour ce module.
*/
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�e lors de la d�sactivation d'un module.
* Supprime de la base les constantes, boites et permissions du module.
*/
function remove()
diff --git a/htdocs/includes/modules/modBarcode.class.php b/htdocs/includes/modules/modBarcode.class.php
index 3fc751ce934..9e7e8adfe32 100644
--- a/htdocs/includes/modules/modBarcode.class.php
+++ b/htdocs/includes/modules/modBarcode.class.php
@@ -51,7 +51,7 @@ class modBarcode extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des codes barres";
$this->version = 'dolibarr'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modBookmark.class.php b/htdocs/includes/modules/modBookmark.class.php
index 965f4dfe27c..29db2387c69 100644
--- a/htdocs/includes/modules/modBookmark.class.php
+++ b/htdocs/includes/modules/modBookmark.class.php
@@ -51,7 +51,7 @@ class modBookmark extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des Bookmarks";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modBoutique.class.php b/htdocs/includes/modules/modBoutique.class.php
index 693370f31d8..cc4858a8a93 100644
--- a/htdocs/includes/modules/modBoutique.class.php
+++ b/htdocs/includes/modules/modBoutique.class.php
@@ -52,7 +52,7 @@ class modBoutique extends DolibarrModules
$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)
- $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->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modCashDesk.class.php b/htdocs/includes/modules/modCashDesk.class.php
index a0e5865ede0..a1fb37cf0bb 100644
--- a/htdocs/includes/modules/modCashDesk.class.php
+++ b/htdocs/includes/modules/modCashDesk.class.php
@@ -52,7 +52,7 @@ class modCashDesk extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "CashDesk module";
$this->revision = explode(' ','$Revision$');
diff --git a/htdocs/includes/modules/modCategorie.class.php b/htdocs/includes/modules/modCategorie.class.php
index 9b1432eb06a..50fca973dfb 100644
--- a/htdocs/includes/modules/modCategorie.class.php
+++ b/htdocs/includes/modules/modCategorie.class.php
@@ -19,7 +19,7 @@
/**
\defgroup category Module categories
- \brief Module pour gérer les catégories
+ \brief Module pour g�rer les cat�gories
\version $Id$
*/
@@ -38,8 +38,8 @@ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
class modCategorie extends DolibarrModules
{
/**
- * \brief Constructeur. définit les noms, constantes et boîtes
- * \param DB handler d'accès base
+ * \brief Constructeur. d�finit les noms, constantes et bo�tes
+ * \param DB handler d'acc�s base
*/
function modCategorie ($DB)
{
@@ -48,8 +48,8 @@ class modCategorie extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
- $this->description = "Gestion des catégories (produits, clients, fournisseurs...)";
+ $this->name = preg_replace('/^mod/i','',get_class($this));
+ $this->description = "Gestion des categories (produits, clients, fournisseurs...)";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr';
@@ -82,29 +82,29 @@ class modCategorie extends DolibarrModules
$this->rights[$r][0] = 241; // id 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][3] = 1; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'r'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 1; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'lire';
$r++;
$this->rights[$r][0] = 242; // id 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][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'w'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'creer';
$r++;
$this->rights[$r][0] = 243; // id 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][3] = 0; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'd'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 0; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'supprimer';
$r++;
$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][2] = 'r'; // type de la permission (déprécié à ce jour)
- $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut
+ $this->rights[$r][2] = 'r'; // type de la permission (d�pr�ci� � ce jour)
+ $this->rights[$r][3] = 1; // La permission est-elle une permission par d�faut
$this->rights[$r][4] = 'voir';
$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.
- * Définit également les répertoires de données à créer pour ce module.
+ * \brief Fonction appel�e lors de l'activation du module. Ins�re en base les constantes, boites, permissions du module.
+ * D�finit �galement les r�pertoires de donn�es � cr�er pour ce module.
*/
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�e lors de la d�sactivation d'un module.
* Supprime de la base les constantes, boites et permissions du module.
*/
function remove()
diff --git a/htdocs/includes/modules/modClickToDial.class.php b/htdocs/includes/modules/modClickToDial.class.php
index 0c43f97a1da..42c9ae8f8cd 100644
--- a/htdocs/includes/modules/modClickToDial.class.php
+++ b/htdocs/includes/modules/modClickToDial.class.php
@@ -51,7 +51,7 @@ class modClickToDial extends DolibarrModules
$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)
- $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->version = 'dolibarr'; // 'development' or 'experimental' or 'dolibarr' or version
diff --git a/htdocs/includes/modules/modCommande.class.php b/htdocs/includes/modules/modCommande.class.php
index 78b4fe59e81..f6af817e0bd 100644
--- a/htdocs/includes/modules/modCommande.class.php
+++ b/htdocs/includes/modules/modCommande.class.php
@@ -54,7 +54,7 @@ class modCommande extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des commandes clients";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr';
diff --git a/htdocs/includes/modules/modComptabilite.class.php b/htdocs/includes/modules/modComptabilite.class.php
index 059357a3cc3..b37a88eda74 100644
--- a/htdocs/includes/modules/modComptabilite.class.php
+++ b/htdocs/includes/modules/modComptabilite.class.php
@@ -53,7 +53,7 @@ class modComptabilite extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion sommaire de comptabilite";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modContrat.class.php b/htdocs/includes/modules/modContrat.class.php
index 8bdc109a2cc..b61e2309dd9 100644
--- a/htdocs/includes/modules/modContrat.class.php
+++ b/htdocs/includes/modules/modContrat.class.php
@@ -51,7 +51,7 @@ class modContrat extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des contrats de services";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modDeplacement.class.php b/htdocs/includes/modules/modDeplacement.class.php
index cac248119a5..0be8cab2086 100644
--- a/htdocs/includes/modules/modDeplacement.class.php
+++ b/htdocs/includes/modules/modDeplacement.class.php
@@ -51,7 +51,7 @@ class modDeplacement extends DolibarrModules
$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)
- $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
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modDocument.class.php b/htdocs/includes/modules/modDocument.class.php
index 4b08913ee90..11824130c10 100644
--- a/htdocs/includes/modules/modDocument.class.php
+++ b/htdocs/includes/modules/modDocument.class.php
@@ -51,7 +51,7 @@ class modDocument extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Generation de courriers/publipostages papiers";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'development';
diff --git a/htdocs/includes/modules/modDomain.class.php b/htdocs/includes/modules/modDomain.class.php
index ad2269cb7b3..1ce44d39fdb 100644
--- a/htdocs/includes/modules/modDomain.class.php
+++ b/htdocs/includes/modules/modDomain.class.php
@@ -49,7 +49,7 @@ class modDomain extends DolibarrModules
$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)
- $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->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modDon.class.php b/htdocs/includes/modules/modDon.class.php
index f218be926b8..61ca456b973 100644
--- a/htdocs/includes/modules/modDon.class.php
+++ b/htdocs/includes/modules/modDon.class.php
@@ -51,7 +51,7 @@ class modDon extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des dons";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modDroitPret.class.php b/htdocs/includes/modules/modDroitPret.class.php
index aae993b7e15..b288976ecd4 100644
--- a/htdocs/includes/modules/modDroitPret.class.php
+++ b/htdocs/includes/modules/modDroitPret.class.php
@@ -51,7 +51,7 @@ class modDroitPret extends DolibarrModules
$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)
- $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->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modECM.class.php b/htdocs/includes/modules/modECM.class.php
index 16f894c9d57..a594bc77973 100644
--- a/htdocs/includes/modules/modECM.class.php
+++ b/htdocs/includes/modules/modECM.class.php
@@ -53,7 +53,7 @@ class modECM extends DolibarrModules
// It is used to sort modules in module setup page
$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)
- $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)
$this->description = "Electronic Content Management";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modEditeur.class.php b/htdocs/includes/modules/modEditeur.class.php
index c97c18756f7..4d2f52c39cb 100644
--- a/htdocs/includes/modules/modEditeur.class.php
+++ b/htdocs/includes/modules/modEditeur.class.php
@@ -50,7 +50,7 @@ class modEditeur extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des livres et editeurs";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'development';
diff --git a/htdocs/includes/modules/modExpedition.class.php b/htdocs/includes/modules/modExpedition.class.php
index e564ac9ac2c..799d5df6225 100644
--- a/htdocs/includes/modules/modExpedition.class.php
+++ b/htdocs/includes/modules/modExpedition.class.php
@@ -49,7 +49,7 @@ class modExpedition extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des expeditions";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modExport.class.php b/htdocs/includes/modules/modExport.class.php
index 3a15dd5d445..86947c96300 100644
--- a/htdocs/includes/modules/modExport.class.php
+++ b/htdocs/includes/modules/modExport.class.php
@@ -49,7 +49,7 @@ class modExport extends DolibarrModules
$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)
- $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->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modExternalRss.class.php b/htdocs/includes/modules/modExternalRss.class.php
index 6c817b2254f..28369e7efdc 100644
--- a/htdocs/includes/modules/modExternalRss.class.php
+++ b/htdocs/includes/modules/modExternalRss.class.php
@@ -52,7 +52,7 @@ class modExternalRss extends DolibarrModules
$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)
- $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->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modFTP.class.php b/htdocs/includes/modules/modFTP.class.php
index 7c0d6118500..d86e49a8303 100644
--- a/htdocs/includes/modules/modFTP.class.php
+++ b/htdocs/includes/modules/modFTP.class.php
@@ -53,7 +53,7 @@ class modFTP extends DolibarrModules
// It is used to sort modules in module setup page
$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)
- $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)
$this->description = "FTP Client";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modFacture.class.php b/htdocs/includes/modules/modFacture.class.php
index cfcbd438ceb..305c64aa733 100644
--- a/htdocs/includes/modules/modFacture.class.php
+++ b/htdocs/includes/modules/modFacture.class.php
@@ -54,7 +54,7 @@ class modFacture extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des factures";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modFckeditor.class.php b/htdocs/includes/modules/modFckeditor.class.php
index 74c8486942f..b62093addb6 100644
--- a/htdocs/includes/modules/modFckeditor.class.php
+++ b/htdocs/includes/modules/modFckeditor.class.php
@@ -50,7 +50,7 @@ class modFckeditor extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Editeur WYSIWYG";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modFicheinter.class.php b/htdocs/includes/modules/modFicheinter.class.php
index 8558121df8b..060f35bf492 100644
--- a/htdocs/includes/modules/modFicheinter.class.php
+++ b/htdocs/includes/modules/modFicheinter.class.php
@@ -55,7 +55,7 @@ class modFicheinter extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des fiches d'intervention";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modFournisseur.class.php b/htdocs/includes/modules/modFournisseur.class.php
index f5cdc2dd57d..b4562f5b22c 100644
--- a/htdocs/includes/modules/modFournisseur.class.php
+++ b/htdocs/includes/modules/modFournisseur.class.php
@@ -50,7 +50,7 @@ class modFournisseur extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des fournisseurs";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modGeoIPMaxmind.class.php b/htdocs/includes/modules/modGeoIPMaxmind.class.php
index b9866cee0ae..5f676e0fb73 100644
--- a/htdocs/includes/modules/modGeoIPMaxmind.class.php
+++ b/htdocs/includes/modules/modGeoIPMaxmind.class.php
@@ -49,7 +49,7 @@ class modGeoIPMaxmind extends DolibarrModules
// It is used to group modules in module setup page
$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)
- $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)
$this->description = "GeoIP Maxmind conversions capabilities";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modGravatar.class.php b/htdocs/includes/modules/modGravatar.class.php
index a27b147bff7..a3c53ee1c25 100644
--- a/htdocs/includes/modules/modGravatar.class.php
+++ b/htdocs/includes/modules/modGravatar.class.php
@@ -53,7 +53,7 @@ class modGravatar extends DolibarrModules
// It is used to group modules in module setup page
$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)
- $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)
$this->description = "Use online Gravatar service (www.gravatar.com) to show photo of users/members (found with their emails). Need an internet access.";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modImport.class.php b/htdocs/includes/modules/modImport.class.php
index c7189204e9f..017dc3764c1 100644
--- a/htdocs/includes/modules/modImport.class.php
+++ b/htdocs/includes/modules/modImport.class.php
@@ -48,7 +48,7 @@ class modImport extends DolibarrModules
$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)
- $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)";
// Possible values for version are: 'experimental' or 'dolibarr' or version
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
diff --git a/htdocs/includes/modules/modLabel.class.php b/htdocs/includes/modules/modLabel.class.php
index 3d4f5456ad6..df0b374c026 100644
--- a/htdocs/includes/modules/modLabel.class.php
+++ b/htdocs/includes/modules/modLabel.class.php
@@ -51,7 +51,7 @@ class modLabel extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des etiquettes";
$this->version = 'development'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modLdap.class.php b/htdocs/includes/modules/modLdap.class.php
index c4d9caa63e7..4765863b223 100644
--- a/htdocs/includes/modules/modLdap.class.php
+++ b/htdocs/includes/modules/modLdap.class.php
@@ -47,7 +47,7 @@ class modLdap extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Synchronisation Ldap";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modMailing.class.php b/htdocs/includes/modules/modMailing.class.php
index 061e07450c5..80690dd41ad 100644
--- a/htdocs/includes/modules/modMailing.class.php
+++ b/htdocs/includes/modules/modMailing.class.php
@@ -51,7 +51,7 @@ class modMailing extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des EMailings";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modMantis.class.php b/htdocs/includes/modules/modMantis.class.php
index 4960546b206..dac21e75b02 100644
--- a/htdocs/includes/modules/modMantis.class.php
+++ b/htdocs/includes/modules/modMantis.class.php
@@ -54,7 +54,7 @@ class modMantis extends DolibarrModules
// It is used to sort modules in module setup page
$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)
- $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)
$this->description = "Interfacage avec le bug tracking Mantis";
// Possible values for version are: 'experimental' or 'dolibarr' or version
diff --git a/htdocs/includes/modules/modMultiCompany.class.php b/htdocs/includes/modules/modMultiCompany.class.php
index 562b7d18f39..104c017a92b 100644
--- a/htdocs/includes/modules/modMultiCompany.class.php
+++ b/htdocs/includes/modules/modMultiCompany.class.php
@@ -54,7 +54,7 @@ class modMultiCompany extends DolibarrModules
// It is used to group modules in module setup page
$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)
- $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)
$this->description = "Gestion Multi-Societe";
// Can be enabled / disabled only in the main company
diff --git a/htdocs/includes/modules/modNotification.class.php b/htdocs/includes/modules/modNotification.class.php
index db77301abf2..424e5ae5a7a 100644
--- a/htdocs/includes/modules/modNotification.class.php
+++ b/htdocs/includes/modules/modNotification.class.php
@@ -49,7 +49,7 @@ class modNotification extends DolibarrModules
$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)
- $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->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modOSCommerceWS.class.php b/htdocs/includes/modules/modOSCommerceWS.class.php
index 11983002558..89c7e48a71b 100644
--- a/htdocs/includes/modules/modOSCommerceWS.class.php
+++ b/htdocs/includes/modules/modOSCommerceWS.class.php
@@ -53,7 +53,7 @@ class modOSCommerceWS extends DolibarrModules
$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)
- $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->version = 'experimental'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
diff --git a/htdocs/includes/modules/modPaybox.class.php b/htdocs/includes/modules/modPaybox.class.php
index 7a79aedc011..50f997fafcd 100644
--- a/htdocs/includes/modules/modPaybox.class.php
+++ b/htdocs/includes/modules/modPaybox.class.php
@@ -53,7 +53,7 @@ class modPayBox extends DolibarrModules
// It is used to group modules in module setup page
$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)
- $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)
$this->description = "Module to offer an online payment page by credit card with PayBox";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modPhenix.class.php b/htdocs/includes/modules/modPhenix.class.php
index 08f9559bf1a..70d832675f2 100644
--- a/htdocs/includes/modules/modPhenix.class.php
+++ b/htdocs/includes/modules/modPhenix.class.php
@@ -54,7 +54,7 @@ class modPhenix extends DolibarrModules
// It is used to sort modules in module setup page
$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)
- $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)
$this->description = "Interface avec le calendrier Phenix";
// Possible values for version are: 'experimental' or 'dolibarr' or version
diff --git a/htdocs/includes/modules/modPrelevement.class.php b/htdocs/includes/modules/modPrelevement.class.php
index a8f8a93e944..66890758a53 100644
--- a/htdocs/includes/modules/modPrelevement.class.php
+++ b/htdocs/includes/modules/modPrelevement.class.php
@@ -53,7 +53,7 @@ class modPrelevement extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des Prelevements";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modProduit.class.php b/htdocs/includes/modules/modProduit.class.php
index 1c7d6c6baf7..7f81a67d663 100644
--- a/htdocs/includes/modules/modProduit.class.php
+++ b/htdocs/includes/modules/modProduit.class.php
@@ -55,7 +55,7 @@ class modProduit extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des produits";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modProjet.class.php b/htdocs/includes/modules/modProjet.class.php
index a487ac80afc..81fad4c666a 100644
--- a/htdocs/includes/modules/modProjet.class.php
+++ b/htdocs/includes/modules/modProjet.class.php
@@ -51,7 +51,7 @@ class modProjet extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des projets";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr';
diff --git a/htdocs/includes/modules/modPropale.class.php b/htdocs/includes/modules/modPropale.class.php
index 19a85534a6e..19f8715b49d 100644
--- a/htdocs/includes/modules/modPropale.class.php
+++ b/htdocs/includes/modules/modPropale.class.php
@@ -53,7 +53,7 @@ class modPropale extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des propositions commerciales";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modService.class.php b/htdocs/includes/modules/modService.class.php
index ec7c6a86f45..cc8cd5a5fa8 100644
--- a/htdocs/includes/modules/modService.class.php
+++ b/htdocs/includes/modules/modService.class.php
@@ -55,7 +55,7 @@ class modService extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des services";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modSociete.class.php b/htdocs/includes/modules/modSociete.class.php
index 8c185f6f4fd..c2dd0dec95f 100644
--- a/htdocs/includes/modules/modSociete.class.php
+++ b/htdocs/includes/modules/modSociete.class.php
@@ -55,7 +55,7 @@ class modSociete extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des societes et contacts";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modStock.class.php b/htdocs/includes/modules/modStock.class.php
index 9592de070f5..518f799bda0 100644
--- a/htdocs/includes/modules/modStock.class.php
+++ b/htdocs/includes/modules/modStock.class.php
@@ -53,7 +53,7 @@ class modStock extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des stocks";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/modSyslog.class.php b/htdocs/includes/modules/modSyslog.class.php
index d60c487b054..406c6f008b2 100644
--- a/htdocs/includes/modules/modSyslog.class.php
+++ b/htdocs/includes/modules/modSyslog.class.php
@@ -51,7 +51,7 @@ class modSyslog extends DolibarrModules
// It is used to group modules in module setup page
$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)
- $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)
$this->description = "Activate debug logs (syslog)";
// Can be enabled / disabled only in the main company
diff --git a/htdocs/includes/modules/modTax.class.php b/htdocs/includes/modules/modTax.class.php
index e6cf3168d8d..5662e9071cd 100644
--- a/htdocs/includes/modules/modTax.class.php
+++ b/htdocs/includes/modules/modTax.class.php
@@ -54,7 +54,7 @@ class modTax extends DolibarrModules
$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)
- $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)
$this->description = "Gestion des taxes, charges sociales et dividendes";
diff --git a/htdocs/includes/modules/modUser.class.php b/htdocs/includes/modules/modUser.class.php
index e53a0fc5ecc..6a6df3caff2 100644
--- a/htdocs/includes/modules/modUser.class.php
+++ b/htdocs/includes/modules/modUser.class.php
@@ -51,7 +51,7 @@ class modUser extends DolibarrModules
$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)
- $this->name = eregi_replace('^mod','',get_class($this));
+ $this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Gestion des utilisateurs (requis)";
$this->always_enabled = 1; // Can't be disabled
diff --git a/htdocs/includes/modules/modWebServices.class.php b/htdocs/includes/modules/modWebServices.class.php
index 55623b310e5..5faa11e0d2a 100644
--- a/htdocs/includes/modules/modWebServices.class.php
+++ b/htdocs/includes/modules/modWebServices.class.php
@@ -49,7 +49,7 @@ class modWebServices extends DolibarrModules
$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)
- $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->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)
diff --git a/htdocs/includes/modules/modWebcalendar.class.php b/htdocs/includes/modules/modWebcalendar.class.php
index eaa2551231a..115e63a8b96 100644
--- a/htdocs/includes/modules/modWebcalendar.class.php
+++ b/htdocs/includes/modules/modWebcalendar.class.php
@@ -56,7 +56,7 @@ class modWebcalendar extends DolibarrModules
// It is used to sort modules in module setup page
$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)
- $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)
$this->description = "Interfacage avec le calendrier Webcalendar";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
diff --git a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php
index 920aeeba4a7..63d994c2233 100644
--- a/htdocs/includes/modules/propale/pdf_propale_azur.modules.php
+++ b/htdocs/includes/modules/propale/pdf_propale_azur.modules.php
@@ -599,7 +599,7 @@ class pdf_propale_azur extends ModelePDFPropales
$tvacompl='';
if (eregi('\*',$tvakey))
{
- $tvakey=eregi_replace('\*','',$tvakey);
+ $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
}
$totalvat =$outputlangs->transnoentities("TotalVAT").' ';
diff --git a/htdocs/includes/modules/societe/mod_codecompta_aquarium.php b/htdocs/includes/modules/societe/mod_codecompta_aquarium.php
index 6ff0905d131..bf0d24eb541 100644
--- a/htdocs/includes/modules/societe/mod_codecompta_aquarium.php
+++ b/htdocs/includes/modules/societe/mod_codecompta_aquarium.php
@@ -80,7 +80,7 @@ class mod_codecompta_aquarium extends ModeleAccountancyCode
if ($type == 'supplier') $codetouse = $prefixcodecomptasupplier;
if ($type == 'customer') $codetouse.=$societe->code_client;
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);
if (! $is_dispo)
diff --git a/htdocs/includes/modules/supplier_order/pdf/pdf_muscadet.modules.php b/htdocs/includes/modules/supplier_order/pdf/pdf_muscadet.modules.php
index c6fc87ec6eb..451d3a0475a 100644
--- a/htdocs/includes/modules/supplier_order/pdf/pdf_muscadet.modules.php
+++ b/htdocs/includes/modules/supplier_order/pdf/pdf_muscadet.modules.php
@@ -453,7 +453,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
if (eregi('\*',$tvakey))
{
- $tvakey=eregi_replace('\*','',$tvakey);
+ $tvakey=str_replace('*','',$tvakey);
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
}
diff --git a/htdocs/includes/triggers/interface_all_Demo.class.php-NORUN b/htdocs/includes/triggers/interface_all_Demo.class.php-NORUN
index 070d81b833e..3063e385f7c 100644
--- a/htdocs/includes/triggers/interface_all_Demo.class.php-NORUN
+++ b/htdocs/includes/triggers/interface_all_Demo.class.php-NORUN
@@ -48,7 +48,7 @@ class InterfaceDemo
{
$this->db = $DB ;
- $this->name = eregi_replace('^Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "demo";
$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
diff --git a/htdocs/includes/triggers/interface_all_Logevents.class.php b/htdocs/includes/triggers/interface_all_Logevents.class.php
index c2ce2980ee5..abffeb212f8 100644
--- a/htdocs/includes/triggers/interface_all_Logevents.class.php
+++ b/htdocs/includes/triggers/interface_all_Logevents.class.php
@@ -47,7 +47,7 @@ class InterfaceLogevents
{
$this->db = $DB ;
- $this->name = eregi_replace('^Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "core";
$this->description = "Triggers of this module allows to add security event records inside Dolibarr.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
diff --git a/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php b/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php
index 920a27983d0..1fec40c5efe 100644
--- a/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php
+++ b/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php
@@ -46,7 +46,7 @@ class InterfaceActionsAuto
{
$this->db = $DB ;
- $this->name = eregi_replace('^Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "agenda";
$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
diff --git a/htdocs/includes/triggers/interface_modCommande_Ecotax.class.php-NORUN b/htdocs/includes/triggers/interface_modCommande_Ecotax.class.php-NORUN
index 765debd4cda..2685be9d110 100644
--- a/htdocs/includes/triggers/interface_modCommande_Ecotax.class.php-NORUN
+++ b/htdocs/includes/triggers/interface_modCommande_Ecotax.class.php-NORUN
@@ -43,7 +43,7 @@ class InterfaceEcotax
{
$this->db = $DB ;
- $this->name = eregi_replace('Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$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->revision = explode(' ','$Revision$');
diff --git a/htdocs/includes/triggers/interface_modCommande_Fraisport.class.php-NORUN b/htdocs/includes/triggers/interface_modCommande_Fraisport.class.php-NORUN
index 5a516323f6b..a962a4fa666 100644
--- a/htdocs/includes/triggers/interface_modCommande_Fraisport.class.php-NORUN
+++ b/htdocs/includes/triggers/interface_modCommande_Fraisport.class.php-NORUN
@@ -43,7 +43,7 @@ class InterfaceFraisport
{
$this->db = $DB ;
- $this->name = eregi_replace('Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "facture";
$this->description = "Les triggers de ce composant calculent les frais de port.";
$this->revision = explode(' ','$Revision$');
diff --git a/htdocs/includes/triggers/interface_modEditeur_Editeur.class.php-NORUN b/htdocs/includes/triggers/interface_modEditeur_Editeur.class.php-NORUN
index a6ab77b1310..134c03c3386 100644
--- a/htdocs/includes/triggers/interface_modEditeur_Editeur.class.php-NORUN
+++ b/htdocs/includes/triggers/interface_modEditeur_Editeur.class.php-NORUN
@@ -43,7 +43,7 @@ class InterfaceEditeur
{
$this->db = $DB ;
- $this->name = eregi_replace('Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "editeur";
$this->description = "Les triggers de ce composant tri les lignes commandes par stock_loc.";
$this->revision = explode(' ','$Revision$');
diff --git a/htdocs/includes/triggers/interface_modLdap_Ldapsynchro.class.php b/htdocs/includes/triggers/interface_modLdap_Ldapsynchro.class.php
index edc2e78f926..b8eb919e8ac 100644
--- a/htdocs/includes/triggers/interface_modLdap_Ldapsynchro.class.php
+++ b/htdocs/includes/triggers/interface_modLdap_Ldapsynchro.class.php
@@ -45,7 +45,7 @@ class InterfaceLdapsynchro
{
$this->db = $DB ;
- $this->name = eregi_replace('Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "ldap";
$this->description = "Triggers of this module allows to synchronize Dolibarr toward a LDAP database.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
diff --git a/htdocs/includes/triggers/interface_modNotification_Notification.class.php b/htdocs/includes/triggers/interface_modNotification_Notification.class.php
index 98d9072fb65..03e79ac2394 100644
--- a/htdocs/includes/triggers/interface_modNotification_Notification.class.php
+++ b/htdocs/includes/triggers/interface_modNotification_Notification.class.php
@@ -40,7 +40,7 @@ class InterfaceNotification
{
$this->db = $DB ;
- $this->name = eregi_replace('Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "notification";
$this->description = "Triggers of this module send email notifications according to Notification module setup.";
$this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version
diff --git a/htdocs/includes/triggers/interface_modPhenix_Phenixsynchro.class.php b/htdocs/includes/triggers/interface_modPhenix_Phenixsynchro.class.php
index b56464bb435..d85abb02c54 100644
--- a/htdocs/includes/triggers/interface_modPhenix_Phenixsynchro.class.php
+++ b/htdocs/includes/triggers/interface_modPhenix_Phenixsynchro.class.php
@@ -50,7 +50,7 @@ class InterfacePhenixsynchro
{
$this->db = $DB ;
- $this->name = eregi_replace('Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "phenix";
$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
diff --git a/htdocs/includes/triggers/interface_modPropale_Exportsynchro.class.php-NORUN b/htdocs/includes/triggers/interface_modPropale_Exportsynchro.class.php-NORUN
index cd6adb80f63..a0d1f0e61ed 100644
--- a/htdocs/includes/triggers/interface_modPropale_Exportsynchro.class.php-NORUN
+++ b/htdocs/includes/triggers/interface_modPropale_Exportsynchro.class.php-NORUN
@@ -42,7 +42,7 @@ class InterfaceExportsynchro
{
$this->db = $DB ;
- $this->name = eregi_replace('^Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "propale";
$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
diff --git a/htdocs/includes/triggers/interface_modWebcalendar_Webcalsynchro.class.php b/htdocs/includes/triggers/interface_modWebcalendar_Webcalsynchro.class.php
index acfff854003..dcaa848d924 100644
--- a/htdocs/includes/triggers/interface_modWebcalendar_Webcalsynchro.class.php
+++ b/htdocs/includes/triggers/interface_modWebcalendar_Webcalsynchro.class.php
@@ -49,7 +49,7 @@ class InterfaceWebcalsynchro
{
$this->db = $DB ;
- $this->name = eregi_replace('Interface','',get_class($this));
+ $this->name = preg_replace('/^Interface/i','',get_class($this));
$this->family = "webcal";
$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
|