Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0
This commit is contained in:
parent
1eaf5069b5
commit
9ab461819e
@ -110,7 +110,7 @@ print '<br>';
|
||||
$paramclear=$param;
|
||||
if (! empty($dolibarr_main_db_pass))
|
||||
{
|
||||
$paramcrypted.=" -p".eregi_replace('.','*',$dolibarr_main_db_pass);
|
||||
$paramcrypted.=" -p".preg_replace('/./i','*',$dolibarr_main_db_pass);
|
||||
$paramclear.=" -p".$dolibarr_main_db_pass;
|
||||
}
|
||||
|
||||
|
||||
@ -125,7 +125,7 @@ if ($what == 'mysql')
|
||||
$paramclear=$param;
|
||||
if (! empty($dolibarr_main_db_pass))
|
||||
{
|
||||
$paramcrypted.=" -p".eregi_replace('.','*',$dolibarr_main_db_pass);
|
||||
$paramcrypted.=" -p".preg_replace('/./i','*',$dolibarr_main_db_pass);
|
||||
$paramclear.=" -p".$dolibarr_main_db_pass;
|
||||
}
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ $filelog='';
|
||||
if ($conf->syslog->enabled)
|
||||
{
|
||||
$filelog=SYSLOG_FILE;
|
||||
$filelog=eregi_replace('DOL_DATA_ROOT',DOL_DATA_ROOT,$filelog);
|
||||
$filelog=preg_replace('/DOL_DATA_ROOT/i',DOL_DATA_ROOT,$filelog);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -38,8 +38,8 @@ if ($_GET["msg"]) $message='<div class="error">'.$_GET["msg"].'</div>';
|
||||
$urldolibarr='http://www.dolibarr.org/downloads/cat_view/62-stable-versions';
|
||||
$urldolibarrmodules='http://www.dolibarr.org/downloads/cat_view/65-modulesaddon';
|
||||
$urldolibarrthemes='http://www.dolibarr.org/';
|
||||
$dolibarrroot=eregi_replace('[\\\/]+$','',DOL_DOCUMENT_ROOT);
|
||||
$dolibarrroot=eregi_replace('[^\\\/]+$','',$dolibarrroot);
|
||||
$dolibarrroot=preg_replace('/([\\/]+)$/i','',DOL_DOCUMENT_ROOT);
|
||||
$dolibarrroot=preg_replace('/([^\\/]+)$/i','',$dolibarrroot);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user