More deprecated php methods
This commit is contained in:
@@ -47,7 +47,7 @@ function auth_generate_admin_menu($menu_obj)
|
||||
if(empty($meth_arr[2]))
|
||||
$page = $module.':'.$method;
|
||||
else
|
||||
$page = eregi_replace('%%', $module, $meth_arr[2]);
|
||||
$page = preg_replace('/%%/', $module, $meth_arr[2]);
|
||||
|
||||
$module_arr[$i]["methods"][] = Array('name' => $method_name, 'page' => $page);
|
||||
|
||||
@@ -71,7 +71,7 @@ function auth_generate_admin_menu($menu_obj)
|
||||
if(empty($meth_arr[2]))
|
||||
$page = $module.':'.$method;
|
||||
else
|
||||
$page = eregi_replace('%%', $module, $meth_arr[2]);
|
||||
$page = preg_replace('/%%/', $module, $meth_arr[2]);
|
||||
$module_arr[$i]["sub_methods"][$ii][] = Array('name' => $method_name, 'page' => $page);
|
||||
}
|
||||
}
|
||||
|
@@ -159,7 +159,7 @@ function sqlConditions( &$db, $Conditions=false, $Tables=false )
|
||||
$where = " WHERE ";
|
||||
|
||||
if($Conditions) {
|
||||
if(ereg('::', $Conditions) ) {
|
||||
if(preg_match('/::/', $Conditions) ) {
|
||||
$s = explode('::', $Conditions);
|
||||
$ii=1;
|
||||
$Conditions = '';
|
||||
|
@@ -29,7 +29,7 @@ class CORE_method
|
||||
{
|
||||
if(!empty($VAR['do'][$i]))
|
||||
{
|
||||
if(ereg(":", $VAR['do'][$i]))
|
||||
if(preg_match("/:/", $VAR['do'][$i]))
|
||||
{
|
||||
$identifier = explode(':',$VAR['do'][$i]);
|
||||
$module = $identifier[0];
|
||||
|
@@ -77,7 +77,7 @@ class CORE_theme
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
$url = ereg_replace('tid=default_admin', '', $url);
|
||||
$url = preg_replace('/tid=default_admin/', '', $url);
|
||||
$smarty->assign('mainFrameUrl', $url);
|
||||
$this_template = 'file:'.PATH_THEMES.''.THEME_NAME.'/template.tpl';
|
||||
$smarty->display($this_template);
|
||||
|
@@ -356,7 +356,7 @@ class db_mapping
|
||||
$this->construct();
|
||||
|
||||
$type = "view";
|
||||
$this->method["$type"] = split(",", $this->method["$type"]);
|
||||
$this->method["$type"] = explode(",", $this->method["$type"]);
|
||||
$db = new CORE_database;
|
||||
$db->view($VAR, $this, $type);
|
||||
|
||||
@@ -624,7 +624,7 @@ class db_mapping
|
||||
{
|
||||
if($file_name != '..' && $file_name != '.')
|
||||
{
|
||||
$result[$count]['name'] = eregi_replace('.php', '', $file_name);
|
||||
$result[$count]['name'] = preg_replace('/.php/', '', $file_name);
|
||||
$result[$count]['id'] = $count;
|
||||
|
||||
### Get the status of this plugin:
|
||||
|
Reference in New Issue
Block a user