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

This commit is contained in:
Regis Houssin
2009-10-22 11:13:31 +00:00
parent 6558d01348
commit e420c6cc7c
29 changed files with 48 additions and 48 deletions

View File

@@ -185,8 +185,8 @@ foreach ($orders as $key => $value)
$disabledbyname=0;
$disabledbymodule=1;
$module='';
if (eregi('NORUN$',$files[$key])) $disabledbyname=1;
if (eregi('^interface_([^_]+)_(.+)\.class\.php',$files[$key],$reg))
if (preg_match('/NORUN$/i',$files[$key])) $disabledbyname=1;
if (preg_match('/^interface_([^_]+)_(.+)\.class\.php/i',$files[$key],$reg))
{
// Check if trigger file is for a particular module
$module=preg_replace('/^mod/i','',$reg[1]);