From 87a8e0f92db2f3c41e89d06ad241100970878fa4 Mon Sep 17 00:00:00 2001 From: Tony Landis Date: Fri, 27 Mar 2009 23:20:19 -0600 Subject: [PATCH] Out with split(), in with explode() --- modules/account_admin/account_admin.inc.php | 40 +++++++++---------- .../account_billing/account_billing.inc.php | 18 ++++----- modules/account_memo/account_memo.inc.php | 12 +++--- modules/affiliate/affiliate.inc.php | 30 +++++++------- .../affiliate_commission.inc.php | 10 ++--- .../affiliate_template.inc.php | 12 +++--- modules/asset/asset.inc.php | 12 +++--- modules/asset_pool/asset_pool.inc.php | 10 ++--- modules/blocked_email/blocked_email.inc.php | 14 +++---- modules/blocked_ip/blocked_ip.inc.php | 14 +++---- modules/campaign/campaign.inc.php | 28 ++++++------- modules/charge/charge.inc.php | 22 +++++----- .../checkout/base_checkout_plugin.class.php | 2 +- modules/checkout/checkout.inc.php | 14 +++---- modules/core/crypt.inc.php | 2 +- modules/core/database.inc.php | 2 +- modules/core/database_mass_delete.inc.php | 4 +- modules/core/export.inc.php | 6 +-- modules/core/list.inc.php | 2 +- modules/core/search.inc.php | 12 +++--- modules/core/validate.inc.php | 18 ++++----- modules/core/weblog.inc.php | 2 +- modules/country/country.inc.php | 12 +++--- modules/currency/currency.inc.php | 12 +++--- modules/db_mapping/db_mapping.inc.php | 6 +-- modules/discount/discount.inc.php | 16 ++++---- modules/email_log/email_log.inc.php | 8 ++-- modules/email_queue/email_queue.inc.php | 12 +++--- modules/email_template/email_template.inc.php | 16 ++++---- .../email_template_translate.inc.php | 12 +++--- modules/faq/faq.inc.php | 12 +++--- modules/faq_category/faq_category.inc.php | 12 +++--- modules/faq_translate/faq_translate.inc.php | 12 +++--- modules/file/file.inc.php | 16 ++++---- modules/file_category/file_category.inc.php | 12 +++--- modules/group/group.inc.php | 20 +++++----- .../host_registrar_plugin.inc.php | 8 ++-- modules/host_server/host_server.inc.php | 12 +++--- modules/host_tld/host_tld.inc.php | 12 +++--- modules/htaccess/htaccess.inc.php | 14 +++---- modules/htaccess_dir/htaccess_dir.inc.php | 14 +++---- .../htaccess_exclude/htaccess_exclude.inc.php | 12 +++--- modules/invoice/invoice.inc.php | 34 ++++++++-------- modules/invoice_item/invoice_item.inc.php | 12 +++--- modules/invoice_memo/invoice_memo.inc.php | 12 +++--- modules/log_error/log_error.inc.php | 12 +++--- modules/login_log/login_log.inc.php | 12 +++--- modules/module/dev.inc.php | 22 +++++----- modules/module/module.inc.php | 26 ++++++------ modules/module_method/module_method.inc.php | 16 ++++---- modules/net_term/net_term.inc.php | 12 +++--- modules/newsletter/newsletter.inc.php | 18 ++++----- .../newsletter_subscriber.inc.php | 22 +++++----- modules/product/product.inc.php | 12 +++--- modules/product_attr/product_attr.inc.php | 12 +++--- modules/product_cat/product_cat.inc.php | 12 +++--- .../product_cat_translate.inc.php | 12 +++--- modules/product_img/product_img.inc.php | 12 +++--- .../product_translate.inc.php | 12 +++--- modules/radius/radius.inc.php | 22 +++++----- modules/report/report.inc.php | 4 +- modules/service/service.inc.php | 28 ++++++------- modules/service_memo/service_memo.inc.php | 12 +++--- modules/session/session.inc.php | 8 ++-- modules/setup/setup.inc.php | 6 +-- modules/setup_email/setup_email.inc.php | 12 +++--- modules/setup_invoice/setup_invoice.inc.php | 8 ++-- modules/staff/staff.inc.php | 16 ++++---- .../staff_department/staff_department.inc.php | 12 +++--- modules/static_page/static_page.inc.php | 12 +++--- .../static_page_category.inc.php | 12 +++--- .../static_page_translate.inc.php | 12 +++--- .../static_relation/static_relation.inc.php | 12 +++--- modules/static_var/static_var.inc.php | 12 +++--- modules/task/task.inc.php | 12 +++--- modules/task_log/task_log.inc.php | 12 +++--- modules/tax/tax.inc.php | 12 +++--- modules/ticket/ticket.inc.php | 14 +++---- .../ticket_department.inc.php | 12 +++--- modules/ticket_message/ticket_message.inc.php | 12 +++--- modules/voip/voip.inc.php | 2 +- modules/voip_blacklist/voip_blacklist.inc.php | 14 +++---- modules/voip_cdr/voip_cdr.inc.php | 22 +++++----- modules/voip_did/voip_did.inc.php | 20 +++++----- .../voip_did_plugin/voip_did_plugin.inc.php | 12 +++--- modules/voip_fax/voip_fax.inc.php | 12 +++--- modules/voip_pool/voip_pool.inc.php | 22 +++++----- modules/voip_prepaid/voip_prepaid.inc.php | 20 +++++----- modules/voip_rate/voip_rate.inc.php | 12 +++--- modules/voip_rate_prod/voip_rate_prod.inc.php | 12 +++--- modules/voip_vm/voip_vm.inc.php | 12 +++--- plugins/checkout/NETBILLING.php | 4 +- plugins/checkout/SWREG_ADVANCED.php | 4 +- plugins/checkout/TRUSTCOMMERCE.php | 4 +- plugins/checkout/USA_EPAY.php | 2 +- plugins/import/HostAdmin.php | 2 +- plugins/import/ModernBill.php | 8 ++-- plugins/import/WhoisCart.php | 4 +- plugins/registrar/MELBOURNEIT.php | 10 ++--- plugins/voip_did/DIDX.php | 6 +-- plugins/voip_did/MAGRATHEA.php | 6 +-- 101 files changed, 639 insertions(+), 639 deletions(-) diff --git a/modules/account_admin/account_admin.inc.php b/modules/account_admin/account_admin.inc.php index d92b9f2a..13ecc29c 100644 --- a/modules/account_admin/account_admin.inc.php +++ b/modules/account_admin/account_admin.inc.php @@ -189,8 +189,8 @@ class account_admin if($date == '0' || $date == '') return ''; - $Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); - $Arr_date = split(DEFAULT_DATE_DIVIDER, $date); + $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); + $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date); for($i=0; $i<3; $i++) { @@ -235,7 +235,7 @@ class account_admin $where = "id LIKE ".$db->qstr($VAR['account_search']."%"); $type = 1; } elseif (eregi(" ", $VAR['account_search'])) { - $arr = split(" ", $VAR['account_search']); + $arr = explode(" ", $VAR['account_search']); $where = "first_name = ".$db->qstr($arr[0])." AND ". "last_name LIKE ".$db->qstr($arr[1].'%') ; $type = 2; @@ -363,7 +363,7 @@ class account_admin if (empty($VAR['search'])) { $where = ''; } elseif (eregi(" ", $VAR['search'])) { - $arr = split(" ", $VAR['search']); + $arr = explode(" ", $VAR['search']); $where = "first_name = ".$db->qstr($arr[0])." AND ". "last_name LIKE ".$db->qstr('%'.$arr[1].'%')." AND "; } else { @@ -676,10 +676,10 @@ class account_admin $E['from_email'] = $setup_email->fields['from_email']; if($setup_email->fields['cc_list'] != '') - $E['cc_list'] = split(',', $setup_email->fields['cc_list']); + $E['cc_list'] = explode(',', $setup_email->fields['cc_list']); if($setup_email->fields['bcc_list'] != '') - $E['bcc_list'] = split(',', $setup_email->fields['bcc_list']); + $E['bcc_list'] = explode(',', $setup_email->fields['bcc_list']); ### Call the mail class @@ -919,7 +919,7 @@ class account_admin #################################################################### $type = 'add'; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $arr = $this->method["$type"]; include_once(PATH_CORE . 'validate.inc.php'); $validate = new CORE_validate; @@ -1204,14 +1204,14 @@ class account_admin global $C_auth; $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $db = &DB(); $arr = $this->method[$type]; if(isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $ok = $db->update($VAR, $this, $type); @@ -1693,11 +1693,11 @@ class account_admin if(isset($VAR["delete_id"])) { - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); } elseif (isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); } for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -1894,7 +1894,7 @@ class account_admin function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); @@ -2205,7 +2205,7 @@ class account_admin function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $arr = $this->method[$type]; @@ -2401,7 +2401,7 @@ class account_admin if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -2409,7 +2409,7 @@ class account_admin else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -2417,7 +2417,7 @@ class account_admin else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -2425,7 +2425,7 @@ class account_admin else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -2433,7 +2433,7 @@ class account_admin else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/account_billing/account_billing.inc.php b/modules/account_billing/account_billing.inc.php index 51f0448b..79da82df 100644 --- a/modules/account_billing/account_billing.inc.php +++ b/modules/account_billing/account_billing.inc.php @@ -46,7 +46,7 @@ class account_billing if(!empty($VAR['account_id']) && $C_auth->auth_method_by_name('checkout','admin_checkoutnow')) $account_id=$VAR['account_id']; else $account_id=SESS_ACCOUNT; if(empty($VAR['option'])) return false; else $checkout_plugin_id=$VAR['option']; $db=&DB(); - $year = ereg_replace("^20", "", date("Y")); + $year = preg_replace("/^20/", "", date("Y")); $result = $db->Execute($sql=sqlSelect($db,"account_billing","id,card_type,card_num4,card_exp_month,card_exp_year", "(card_exp_year>=::$year:: or card_type='eft') AND account_id=::$account_id:: AND checkout_plugin_id=::$checkout_plugin_id::")); $arr = $this->cardMenuArr($result); @@ -214,7 +214,7 @@ class account_billing $this->construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -224,7 +224,7 @@ class account_billing global $C_debug, $C_translate; $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); } @@ -309,7 +309,7 @@ class account_billing function search_form($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -317,7 +317,7 @@ class account_billing function search($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -331,7 +331,7 @@ class account_billing $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -339,7 +339,7 @@ class account_billing function search_show($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -349,7 +349,7 @@ class account_billing if(!SESS_LOGGED) return false; $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -366,7 +366,7 @@ class account_billing $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); } diff --git a/modules/account_memo/account_memo.inc.php b/modules/account_memo/account_memo.inc.php index ab140298..6e3a69e0 100644 --- a/modules/account_memo/account_memo.inc.php +++ b/modules/account_memo/account_memo.inc.php @@ -52,7 +52,7 @@ class account_memo function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class account_memo function view($VAR) { $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); } @@ -74,7 +74,7 @@ class account_memo function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class account_memo function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class account_memo function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class account_memo function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/affiliate/affiliate.inc.php b/modules/affiliate/affiliate.inc.php index c07f831b..efda6f52 100644 --- a/modules/affiliate/affiliate.inc.php +++ b/modules/affiliate/affiliate.inc.php @@ -67,7 +67,7 @@ class affiliate $where = "{$p}affiliate.id LIKE ".$db->qstr($VAR['search']."%") ; $type = 1; } elseif (eregi(" ", $VAR['affiliate_search'])) { - $arr = split(" ", $VAR['affiliate_search']); + $arr = explode(" ", $VAR['affiliate_search']); $where = "{$p}account.first_name = ".$db->qstr($arr[0])." AND ". "{$p}account.last_name LIKE ".$db->qstr($arr[1].'%') ; $type = 2; @@ -741,7 +741,7 @@ class affiliate } $type = "user_update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); @@ -861,14 +861,14 @@ class affiliate function view($VAR) { $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $db = &DB(); $arr = $this->method[$type]; if(isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); @@ -1126,11 +1126,11 @@ class affiliate if(isset($VAR["delete_id"])) { - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); } elseif (isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); } for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -1209,7 +1209,7 @@ class affiliate else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -1217,7 +1217,7 @@ class affiliate else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -1225,7 +1225,7 @@ class affiliate else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -1233,7 +1233,7 @@ class affiliate else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } @@ -1247,7 +1247,7 @@ class affiliate function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -1258,7 +1258,7 @@ class affiliate function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); @@ -1552,7 +1552,7 @@ class affiliate function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $arr = $this->method[$type]; diff --git a/modules/affiliate_commission/affiliate_commission.inc.php b/modules/affiliate_commission/affiliate_commission.inc.php index 151343e4..c81bf458 100644 --- a/modules/affiliate_commission/affiliate_commission.inc.php +++ b/modules/affiliate_commission/affiliate_commission.inc.php @@ -327,7 +327,7 @@ class affiliate_commission function view($VAR) { $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); @@ -452,7 +452,7 @@ class affiliate_commission function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -501,7 +501,7 @@ class affiliate_commission function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -512,7 +512,7 @@ class affiliate_commission function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -523,7 +523,7 @@ class affiliate_commission function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/affiliate_template/affiliate_template.inc.php b/modules/affiliate_template/affiliate_template.inc.php index 613616e5..5b25baef 100644 --- a/modules/affiliate_template/affiliate_template.inc.php +++ b/modules/affiliate_template/affiliate_template.inc.php @@ -52,7 +52,7 @@ class affiliate_template function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class affiliate_template function view($VAR) { $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); } @@ -74,7 +74,7 @@ class affiliate_template function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class affiliate_template function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class affiliate_template function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class affiliate_template function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/asset/asset.inc.php b/modules/asset/asset.inc.php index 3732e04e..9342f7e7 100644 --- a/modules/asset/asset.inc.php +++ b/modules/asset/asset.inc.php @@ -128,7 +128,7 @@ class asset function add($VAR) { $this->construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -136,7 +136,7 @@ class asset function view($VAR) { $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); } @@ -144,7 +144,7 @@ class asset function update($VAR) { $this->construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -158,7 +158,7 @@ class asset function search_form($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -166,7 +166,7 @@ class asset function search($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -174,7 +174,7 @@ class asset function search_show($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/asset_pool/asset_pool.inc.php b/modules/asset_pool/asset_pool.inc.php index aad4d3a5..5cd78d9b 100644 --- a/modules/asset_pool/asset_pool.inc.php +++ b/modules/asset_pool/asset_pool.inc.php @@ -40,7 +40,7 @@ class asset_pool { $this->construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -49,7 +49,7 @@ class asset_pool { $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); } @@ -58,7 +58,7 @@ class asset_pool { $this->construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -74,7 +74,7 @@ class asset_pool { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -83,7 +83,7 @@ class asset_pool { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/blocked_email/blocked_email.inc.php b/modules/blocked_email/blocked_email.inc.php index 54db2a47..ceec3970 100644 --- a/modules/blocked_email/blocked_email.inc.php +++ b/modules/blocked_email/blocked_email.inc.php @@ -50,7 +50,7 @@ class blocked_email ############################## function is_blocked($email) { - @$dom = split('@', $email); + @$dom = explode('@', $email); $db = &DB(); $sql = 'SELECT id FROM ' . AGILE_DB_PREFIX . 'blocked_email WHERE email = ' . $db->qstr($email) .' OR @@ -72,7 +72,7 @@ class blocked_email function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -83,7 +83,7 @@ class blocked_email function view($VAR) { $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); } @@ -94,7 +94,7 @@ class blocked_email function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -114,7 +114,7 @@ class blocked_email function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -125,7 +125,7 @@ class blocked_email function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -137,7 +137,7 @@ class blocked_email function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/blocked_ip/blocked_ip.inc.php b/modules/blocked_ip/blocked_ip.inc.php index a6e20695..782c9c18 100644 --- a/modules/blocked_ip/blocked_ip.inc.php +++ b/modules/blocked_ip/blocked_ip.inc.php @@ -50,7 +50,7 @@ class blocked_ip function is_blocked($ip) { $ip_full = $ip; - @$ip = split('\.', $ip_full); + @$ip = explode('\.', $ip_full); $db = &DB(); $sql = 'SELECT id FROM ' . AGILE_DB_PREFIX . 'blocked_ip WHERE ip = ' . $db->qstr(@$ip[0]) . ' OR @@ -72,7 +72,7 @@ class blocked_ip function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -83,7 +83,7 @@ class blocked_ip function view($VAR) { $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); } @@ -94,7 +94,7 @@ class blocked_ip function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -114,7 +114,7 @@ class blocked_ip function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -125,7 +125,7 @@ class blocked_ip function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -137,7 +137,7 @@ class blocked_ip function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/campaign/campaign.inc.php b/modules/campaign/campaign.inc.php index 3a1cab8b..67a1b7a8 100644 --- a/modules/campaign/campaign.inc.php +++ b/modules/campaign/campaign.inc.php @@ -152,7 +152,7 @@ class campaign ## Attempt to add the record: $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $campaign_id = $db->add($VAR, $this, $type); @@ -181,7 +181,7 @@ class campaign function view($VAR) { $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $smart = $db->view($VAR, $this, $type); @@ -366,7 +366,7 @@ class campaign function affiliate($VAR) { $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); } @@ -386,7 +386,7 @@ class campaign # Store the record $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $rs = $db->update($VAR, $this, $type); @@ -446,11 +446,11 @@ class campaign if(isset($VAR["delete_id"])) { - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); } elseif (isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); } for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -536,7 +536,7 @@ class campaign function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -548,7 +548,7 @@ class campaign function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $smart = $db->search_show($VAR, $this, $type); @@ -660,7 +660,7 @@ class campaign if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -668,7 +668,7 @@ class campaign else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -676,7 +676,7 @@ class campaign else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -684,7 +684,7 @@ class campaign else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -692,7 +692,7 @@ class campaign else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/charge/charge.inc.php b/modules/charge/charge.inc.php index d58fa962..3f25c274 100644 --- a/modules/charge/charge.inc.php +++ b/modules/charge/charge.inc.php @@ -534,7 +534,7 @@ class charge } $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -546,7 +546,7 @@ class charge { $this->charge_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); } @@ -558,7 +558,7 @@ class charge { $this->charge_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -580,7 +580,7 @@ class charge { $this->charge_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -593,7 +593,7 @@ class charge $this->charge_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); @@ -861,7 +861,7 @@ class charge $this->charge_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $arr = $this->method[$type]; @@ -1054,7 +1054,7 @@ class charge if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -1062,7 +1062,7 @@ class charge else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -1070,7 +1070,7 @@ class charge else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -1078,7 +1078,7 @@ class charge else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -1086,7 +1086,7 @@ class charge else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/checkout/base_checkout_plugin.class.php b/modules/checkout/base_checkout_plugin.class.php index 1f914208..e82e60ad 100644 --- a/modules/checkout/base_checkout_plugin.class.php +++ b/modules/checkout/base_checkout_plugin.class.php @@ -118,7 +118,7 @@ class base_checkout_plugin // validate actual credit card details include_once(PATH_CORE . 'validate.inc.php'); $validate = new CORE_validate; - $this->billing["cc_no"] == ereg_replace('^[0-9]', '', $this->billing["cc_no"]); + $this->billing["cc_no"] == preg_replace('/^[0-9]/', '', $this->billing["cc_no"]); if (!$validate->validate_cc( $this->billing["cc_no"], false, $this->billing["card_type"], $this->cfg['card_type'] )) { $ret['status'] = 0; global $C_translate; diff --git a/modules/checkout/checkout.inc.php b/modules/checkout/checkout.inc.php index bf8ea3f9..90b0d6dd 100644 --- a/modules/checkout/checkout.inc.php +++ b/modules/checkout/checkout.inc.php @@ -513,8 +513,8 @@ class checkout */ function getInputDate($date) { - $Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); - $Arr_date = split(DEFAULT_DATE_DIVIDER, $date); + $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); + $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date); for($i=0; $i<3; $i++) { if($Arr_format[$i] == 'd') $day = $Arr_date[$i]; @@ -844,7 +844,7 @@ class checkout function add($VAR) { $this->checkout_construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -852,7 +852,7 @@ class checkout function view($VAR) { $this->checkout_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); } @@ -860,7 +860,7 @@ class checkout function update($VAR) { $this->checkout_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -874,7 +874,7 @@ class checkout function search($VAR) { $this->checkout_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -882,7 +882,7 @@ class checkout function search_show($VAR) { $this->checkout_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/core/crypt.inc.php b/modules/core/crypt.inc.php index 4e720744..307a08cb 100644 --- a/modules/core/crypt.inc.php +++ b/modules/core/crypt.inc.php @@ -163,7 +163,7 @@ class CORE_RSA } function rsa_decrypt($c, $d, $n) { - $decryptarray = split(" ", $c); + $decryptarray = explode(" ", $c); for ($u=0; $u$fld) { if(in_array($fld,$ignore_fields)) { unset($fields[$id]); diff --git a/modules/core/database_mass_delete.inc.php b/modules/core/database_mass_delete.inc.php index 7abcca1b..05b4f793 100644 --- a/modules/core/database_mass_delete.inc.php +++ b/modules/core/database_mass_delete.inc.php @@ -30,11 +30,11 @@ function CORE_database_mass_delete($VAR, &$construct, $type) if(isset($VAR["delete_id"])) { - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); } elseif (isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); } for($i=0; $iAddPage(); # Determine the number of columns and width for each one... - $SetWidths = split(",",$width_list); + $SetWidths = explode(",",$width_list); $pdf->SetWidths($SetWidths); # Define the table heading - $TableHeading = split(",",$heading_list); + $TableHeading = explode(",",$heading_list); # Define the Properties for the table heading cells: # set the font: @@ -573,7 +573,7 @@ function search_excel($VAR, $construct, $type) } $i++; } - $ThisRow = split("::",$CurrRow); + $ThisRow = explode("::",$CurrRow); # set the colors & fonts if($BackAlt) diff --git a/modules/core/list.inc.php b/modules/core/list.inc.php index 6392292f..db0db994 100644 --- a/modules/core/list.inc.php +++ b/modules/core/list.inc.php @@ -342,7 +342,7 @@ class CORE_list $auth = Array('product:top', 'account_admin:top', 'affiliate:top', 'invoice:compare'); for($i=0; $iexe_noauth($m[0], $m[1]); exit; } diff --git a/modules/core/search.inc.php b/modules/core/search.inc.php index c64d91bb..79efdf21 100644 --- a/modules/core/search.inc.php +++ b/modules/core/search.inc.php @@ -254,14 +254,14 @@ class CORE_search $ii=0; if(ereg(" AND ", $sql)) { - $sql = split(" AND ",$sql); + $sql = explode(" AND ",$sql); $this_fields = count($sql); # loop for($count=0; $count < $this_fields; $count++) { # do each field - $sqls = split("==",$sql[$count]); + $sqls = explode("==",$sql[$count]); $field[$count][name] = $sqls[0]; $field[$count][value] = ereg_replace("'","",$sqls[1]); $field[$count][value] = ereg_replace("=","",$field[$count][value]); @@ -293,7 +293,7 @@ class CORE_search $this_fields = 1; # do this one field - $sqls = split("==",$sql); + $sqls = explode("==",$sql); $field[name] = $sqls[0]; $field[value] = ereg_replace("'","",$sqls[1]); $field[value] = ereg_replace("=","",$field[value]); @@ -492,14 +492,14 @@ class CORE_search $ii=0; if(ereg(" AND ", $sql)) { - $sql = split(" AND ",$sql); + $sql = explode(" AND ",$sql); $this_fields = count($sql); # loop for($count=0; $count < $this_fields; $count++) { # do each field - $sqls = split("==",$sql[$count]); + $sqls = explode("==",$sql[$count]); $field[$count][name] = $sqls[0]; $field[$count][value] = ereg_replace("'","",$sqls[1]); $field[$count][value] = ereg_replace("=","",$field[$count][value]); @@ -530,7 +530,7 @@ class CORE_search $this_fields = 1; # do this one field - $sqls = split("==",$sql); + $sqls = explode("==",$sql); $field[name] = $sqls[0]; $field[value] = ereg_replace("'","",$sqls[1]); $field[value] = ereg_replace("=","",$field[value]); diff --git a/modules/core/validate.inc.php b/modules/core/validate.inc.php index 3276a9b6..f2c3c920 100644 --- a/modules/core/validate.inc.php +++ b/modules/core/validate.inc.php @@ -79,8 +79,8 @@ class CORE_validate if($date == '0' || $date == '') return ''; - $Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); - $Arr_date = split(DEFAULT_DATE_DIVIDER, $date); + $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); + $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date); for($i=0; $i<3; $i++) { @@ -104,8 +104,8 @@ class CORE_validate if($date == '0' || $date == '') return ''; - $Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); - $Arr_date = split(DEFAULT_DATE_DIVIDER, $date); + $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); + $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date); for($i=0; $i<3; $i++) { if($Arr_format[$i] == 'd') if(!empty($Arr_date[$i])) $day = $Arr_date[$i]; @@ -357,8 +357,8 @@ class CORE_validate return false; } - $Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); - $Arr_date = split(DEFAULT_DATE_DIVIDER, $data); + $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); + $Arr_date = explode(DEFAULT_DATE_DIVIDER, $data); if(!gettype($Arr_date) == 'array' || count($Arr_date) != 3) { @@ -589,7 +589,7 @@ class CORE_validate } else if ($card_type == "mc" || !$card_type) { // MC - if ( ereg("^5[1-5][0-9]{14}$", $ccNum) ) { + if ( preg_match("/^5[1-5][0-9]{14}$/", $ccNum) ) { $v_ccNum = true; $c_type = 'mc'; } @@ -737,8 +737,8 @@ class CORE_validate function DateToEpoch($format,$date) { - $Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); - $Arr_date = split(DEFAULT_DATE_DIVIDER, $date); + $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); + $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date); for($i=0; $i<3; $i++) { if($Arr_format[$i] == 'd') $day = $Arr_date[$i]; diff --git a/modules/core/weblog.inc.php b/modules/core/weblog.inc.php index 3d668b5f..f72545eb 100644 --- a/modules/core/weblog.inc.php +++ b/modules/core/weblog.inc.php @@ -45,7 +45,7 @@ class CORE_weblog } else { - @$pagearr = split(':', $VAR['_page']); + @$pagearr = explode(':', $VAR['_page']); @$page = $pagearr["1"]; } diff --git a/modules/country/country.inc.php b/modules/country/country.inc.php index d4ef9ffe..d1063442 100644 --- a/modules/country/country.inc.php +++ b/modules/country/country.inc.php @@ -52,7 +52,7 @@ class country function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class country function view($VAR) { $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); } @@ -74,7 +74,7 @@ class country function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class country function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class country function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class country function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/currency/currency.inc.php b/modules/currency/currency.inc.php index 099c68be..0f139ed1 100644 --- a/modules/currency/currency.inc.php +++ b/modules/currency/currency.inc.php @@ -52,7 +52,7 @@ class currency function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class currency function view($VAR) { $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); } @@ -74,7 +74,7 @@ class currency function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -97,7 +97,7 @@ class currency function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -108,7 +108,7 @@ class currency function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -120,7 +120,7 @@ class currency function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/db_mapping/db_mapping.inc.php b/modules/db_mapping/db_mapping.inc.php index b37588f0..c191ca01 100644 --- a/modules/db_mapping/db_mapping.inc.php +++ b/modules/db_mapping/db_mapping.inc.php @@ -149,7 +149,7 @@ class db_mapping global $C_translate; $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $arr = $this->method["$type"]; @@ -537,7 +537,7 @@ class db_mapping { $this->construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -1490,7 +1490,7 @@ function MAP_sync ($id, $file, $MAP_this) $fld = $MAP_this->map['account_fields']['first_name']['map_field']; @$first_name = $result->fields[$fld]; - @$name_arr = split(' ', $first_name); + @$name_arr = explode(' ', $first_name); if ( !$MAP_this->map['account_fields']['last_name']['map_field'] ) { diff --git a/modules/discount/discount.inc.php b/modules/discount/discount.inc.php index b31d36b0..0c055038 100644 --- a/modules/discount/discount.inc.php +++ b/modules/discount/discount.inc.php @@ -383,7 +383,7 @@ class discount $VAR['discount_avail_account_id'] = SESS_ACCOUNT; $this->discount_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -395,7 +395,7 @@ class discount } $this->discount_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -403,7 +403,7 @@ class discount function add($VAR) { $this->discount_construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -411,7 +411,7 @@ class discount function view($VAR) { $this->discount_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); } @@ -419,7 +419,7 @@ class discount function update($VAR) { $this->discount_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -433,7 +433,7 @@ class discount function search_form($VAR) { $this->discount_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -441,7 +441,7 @@ class discount function search($VAR) { $this->discount_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -449,7 +449,7 @@ class discount function search_show($VAR) { $this->discount_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $dbc = new CORE_database; $smart = $dbc->search_show($VAR, $this, $type); $db = &DB(); diff --git a/modules/email_log/email_log.inc.php b/modules/email_log/email_log.inc.php index d0690e9e..cf3db10d 100644 --- a/modules/email_log/email_log.inc.php +++ b/modules/email_log/email_log.inc.php @@ -65,7 +65,7 @@ class email_log function view($VAR) { $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); } @@ -79,7 +79,7 @@ class email_log function search_form($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -87,7 +87,7 @@ class email_log function search($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -95,7 +95,7 @@ class email_log function search_show($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/email_queue/email_queue.inc.php b/modules/email_queue/email_queue.inc.php index 74a1c219..f36f0bcc 100644 --- a/modules/email_queue/email_queue.inc.php +++ b/modules/email_queue/email_queue.inc.php @@ -116,7 +116,7 @@ class email_queue function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -127,7 +127,7 @@ class email_queue function view($VAR) { $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); } @@ -138,7 +138,7 @@ class email_queue function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -158,7 +158,7 @@ class email_queue function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -169,7 +169,7 @@ class email_queue function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -181,7 +181,7 @@ class email_queue function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/email_template/email_template.inc.php b/modules/email_template/email_template.inc.php index c9d3ff11..5cbefd6b 100644 --- a/modules/email_template/email_template.inc.php +++ b/modules/email_template/email_template.inc.php @@ -59,7 +59,7 @@ class email_template { $this->construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -71,7 +71,7 @@ class email_template { $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); } @@ -83,7 +83,7 @@ class email_template { $this->construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -108,7 +108,7 @@ class email_template { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -120,7 +120,7 @@ class email_template { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -133,7 +133,7 @@ class email_template { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -240,10 +240,10 @@ class email_template $E['from_email'] = $setup_email->fields['from_email']; if($setup_email->fields['cc_list'] != '') - $E['cc_list'] = split(',', $setup_email->fields['cc_list']); + $E['cc_list'] = explode(',', $setup_email->fields['cc_list']); if($setup_email->fields['bcc_list'] != '') - $E['bcc_list'] = split(',', $setup_email->fields['bcc_list']); + $E['bcc_list'] = explode(',', $setup_email->fields['bcc_list']); diff --git a/modules/email_template_translate/email_template_translate.inc.php b/modules/email_template_translate/email_template_translate.inc.php index a40c94dd..47375511 100644 --- a/modules/email_template_translate/email_template_translate.inc.php +++ b/modules/email_template_translate/email_template_translate.inc.php @@ -52,7 +52,7 @@ class email_template_translate function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class email_template_translate function view($VAR) { $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); } @@ -74,7 +74,7 @@ class email_template_translate function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class email_template_translate function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class email_template_translate function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class email_template_translate function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/faq/faq.inc.php b/modules/faq/faq.inc.php index 728966d7..843a2e4d 100644 --- a/modules/faq/faq.inc.php +++ b/modules/faq/faq.inc.php @@ -208,7 +208,7 @@ class faq function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $id = $db->add($VAR, $this, $type); @@ -237,7 +237,7 @@ class faq function view($VAR) { $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); } @@ -248,7 +248,7 @@ class faq function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -274,7 +274,7 @@ class faq function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -285,7 +285,7 @@ class faq function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -297,7 +297,7 @@ class faq function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/faq_category/faq_category.inc.php b/modules/faq_category/faq_category.inc.php index c3dd16d4..6dac9ccb 100644 --- a/modules/faq_category/faq_category.inc.php +++ b/modules/faq_category/faq_category.inc.php @@ -122,7 +122,7 @@ class faq_category $this->faq_category_construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -135,7 +135,7 @@ class faq_category $this->faq_category_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); } @@ -148,7 +148,7 @@ class faq_category $this->faq_category_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -172,7 +172,7 @@ class faq_category $this->faq_category_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -185,7 +185,7 @@ class faq_category $this->faq_category_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -199,7 +199,7 @@ class faq_category $this->faq_category_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/faq_translate/faq_translate.inc.php b/modules/faq_translate/faq_translate.inc.php index af7ca0ed..16c14a1b 100644 --- a/modules/faq_translate/faq_translate.inc.php +++ b/modules/faq_translate/faq_translate.inc.php @@ -53,7 +53,7 @@ class faq_translate function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -64,7 +64,7 @@ class faq_translate function view($VAR) { $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); } @@ -75,7 +75,7 @@ class faq_translate function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -95,7 +95,7 @@ class faq_translate function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -106,7 +106,7 @@ class faq_translate function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -118,7 +118,7 @@ class faq_translate function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/file/file.inc.php b/modules/file/file.inc.php index 846ee07a..9db7cc76 100644 --- a/modules/file/file.inc.php +++ b/modules/file/file.inc.php @@ -344,7 +344,7 @@ class file ### Create the record $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $id = $db->add($VAR, $this, $type); @@ -365,7 +365,7 @@ class file function view($VAR) { $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); } @@ -376,7 +376,7 @@ class file function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -395,11 +395,11 @@ class file if(isset($VAR["delete_id"])) { - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); } elseif (isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); } for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -472,7 +472,7 @@ class file function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -484,7 +484,7 @@ class file function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/file_category/file_category.inc.php b/modules/file_category/file_category.inc.php index 92155c7b..994572ab 100644 --- a/modules/file_category/file_category.inc.php +++ b/modules/file_category/file_category.inc.php @@ -50,7 +50,7 @@ class file_category function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -61,7 +61,7 @@ class file_category function view($VAR) { $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); } @@ -72,7 +72,7 @@ class file_category function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -92,7 +92,7 @@ class file_category function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -103,7 +103,7 @@ class file_category function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -115,7 +115,7 @@ class file_category function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/group/group.inc.php b/modules/group/group.inc.php index f8a6853a..662f8463 100644 --- a/modules/group/group.inc.php +++ b/modules/group/group.inc.php @@ -51,7 +51,7 @@ class group function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $group_id = $db->add($VAR, $this, $type); @@ -88,7 +88,7 @@ class group function view($VAR) { $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); } @@ -102,9 +102,9 @@ class group global $C_debug, $C_auth; $id_list = ''; if(isset($VAR["delete_id"])) - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); elseif (isset($VAR["id"])) - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -146,9 +146,9 @@ class group global $C_debug; $id_list = ''; if(isset($VAR["delete_id"])) - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); elseif (isset($VAR["id"])) - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -192,7 +192,7 @@ class group function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -204,7 +204,7 @@ class group function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/host_registrar_plugin/host_registrar_plugin.inc.php b/modules/host_registrar_plugin/host_registrar_plugin.inc.php index af2b220d..825755d6 100644 --- a/modules/host_registrar_plugin/host_registrar_plugin.inc.php +++ b/modules/host_registrar_plugin/host_registrar_plugin.inc.php @@ -50,7 +50,7 @@ class host_registrar_plugin function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -61,7 +61,7 @@ class host_registrar_plugin function view($VAR) { $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); } @@ -72,7 +72,7 @@ class host_registrar_plugin function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -92,7 +92,7 @@ class host_registrar_plugin function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } diff --git a/modules/host_server/host_server.inc.php b/modules/host_server/host_server.inc.php index 05f403a5..9c9f6a29 100644 --- a/modules/host_server/host_server.inc.php +++ b/modules/host_server/host_server.inc.php @@ -213,7 +213,7 @@ class host_server $VAR['host_server_keycode'] = md5(rand(99,999) . microtime()); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -226,7 +226,7 @@ class host_server global $smarty; $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $dx = new CORE_database; $rs = $dx->view($VAR, $this, $type); @@ -259,7 +259,7 @@ class host_server function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -279,7 +279,7 @@ class host_server function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -290,7 +290,7 @@ class host_server function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -302,7 +302,7 @@ class host_server function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/host_tld/host_tld.inc.php b/modules/host_tld/host_tld.inc.php index 3c8dfafd..774d3b4c 100644 --- a/modules/host_tld/host_tld.inc.php +++ b/modules/host_tld/host_tld.inc.php @@ -356,7 +356,7 @@ class host_tld { $this->constructor(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -365,7 +365,7 @@ class host_tld { $this->constructor(); $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); } @@ -374,7 +374,7 @@ class host_tld { $this->constructor(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -390,7 +390,7 @@ class host_tld { $this->constructor(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -399,7 +399,7 @@ class host_tld { $this->constructor(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -408,7 +408,7 @@ class host_tld { $this->constructor(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/htaccess/htaccess.inc.php b/modules/htaccess/htaccess.inc.php index d96d26c0..bcc8106e 100644 --- a/modules/htaccess/htaccess.inc.php +++ b/modules/htaccess/htaccess.inc.php @@ -191,7 +191,7 @@ class htaccess function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $id = $db->add($VAR, $this, $type); @@ -236,7 +236,7 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php"); function view($VAR) { $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); } @@ -247,7 +247,7 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php"); function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $result = $db->update($VAR, $this, $type); @@ -295,9 +295,9 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php"); ### Get the array if(isset($VAR["delete_id"])) - $id = split(',', $VAR["delete_id"]); + $id = explode(',', $VAR["delete_id"]); elseif (isset($VAR["id"])) - $id = split(',', $VAR["id"]); + $id = explode(',', $VAR["id"]); ### Load class for deleting sub-dirs. include_once ( PATH_MODULES .'htaccess_dir/htaccess_dir.inc.php' ); @@ -341,7 +341,7 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php"); function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -353,7 +353,7 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php"); function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/htaccess_dir/htaccess_dir.inc.php b/modules/htaccess_dir/htaccess_dir.inc.php index 82bcabdf..c2b059ed 100644 --- a/modules/htaccess_dir/htaccess_dir.inc.php +++ b/modules/htaccess_dir/htaccess_dir.inc.php @@ -145,7 +145,7 @@ class htaccess_dir ### Create the record/verify fields $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $dir_id = $db->add($VAR, $this, $type); @@ -304,7 +304,7 @@ class htaccess_dir ### Update the db record $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $dir = $db->update($VAR, $this, $type); @@ -330,9 +330,9 @@ class htaccess_dir { ### Get the array if(isset($VAR["delete_id"])) - $id = split(',', $VAR["delete_id"]); + $id = explode(',', $VAR["delete_id"]); elseif (isset($VAR["id"])) - $id = split(',', $VAR["id"]); + $id = explode(',', $VAR["id"]); ### Loop: for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->view($VAR, $this, $type); } @@ -406,7 +406,7 @@ class htaccess_dir function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -418,7 +418,7 @@ class htaccess_dir function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/htaccess_exclude/htaccess_exclude.inc.php b/modules/htaccess_exclude/htaccess_exclude.inc.php index 68f276ad..a0f9621a 100644 --- a/modules/htaccess_exclude/htaccess_exclude.inc.php +++ b/modules/htaccess_exclude/htaccess_exclude.inc.php @@ -52,7 +52,7 @@ class htaccess_exclude function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class htaccess_exclude function view($VAR) { $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); } @@ -74,7 +74,7 @@ class htaccess_exclude function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class htaccess_exclude function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class htaccess_exclude function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class htaccess_exclude function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/invoice/invoice.inc.php b/modules/invoice/invoice.inc.php index 7d58ee92..9bd17e72 100644 --- a/modules/invoice/invoice.inc.php +++ b/modules/invoice/invoice.inc.php @@ -2969,7 +2969,7 @@ class invoice if(empty($invoice) || eregi(",", $invoice)) { $id_list=''; if(!empty($invoice)) { - $id = split(',', $invoice); + $id = explode(',', $invoice); for($i=0; $iinvoice_construct(); $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); @@ -3317,7 +3317,7 @@ class invoice if(isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); for($i=0; $iinvoice_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -3665,9 +3665,9 @@ class invoice ### Get the array if(isset($VAR["delete_id"])) - $id = split(',', $VAR["delete_id"]); + $id = explode(',', $VAR["delete_id"]); elseif (isset($VAR["id"])) - $id = split(',', $VAR["id"]); + $id = explode(',', $VAR["id"]); ### Load the service module include_once(PATH_MODULES.'service/service.inc.php'); @@ -3712,7 +3712,7 @@ class invoice { $this->invoice_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -3723,7 +3723,7 @@ class invoice { $this->invoice_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); @@ -4068,7 +4068,7 @@ class invoice { $this->invoice_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $arr = $this->method[$type]; @@ -4261,7 +4261,7 @@ class invoice $VAR['invoice_account_id'] = SESS_ACCOUNT; $this->invoice_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -4273,7 +4273,7 @@ class invoice if(!SESS_LOGGED) return false; $this->invoice_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -4288,7 +4288,7 @@ class invoice // verify the account_id for this order is the SESS_ACCOUNT if ( $C_auth->auth_method_by_name('invoice','view') == false) { - $id = split(',',$VAR['id']); + $id = explode(',',$VAR['id']); $db = &DB(); $q = "SELECT account_id FROM ".AGILE_DB_PREFIX."invoice WHERE id = ".$db->qstr($id[0])." AND @@ -4317,7 +4317,7 @@ class invoice if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -4325,7 +4325,7 @@ class invoice else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->pdf_invoice($VAR, $this, $type); } @@ -4333,7 +4333,7 @@ class invoice else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -4341,7 +4341,7 @@ class invoice else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -4349,7 +4349,7 @@ class invoice else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/invoice_item/invoice_item.inc.php b/modules/invoice_item/invoice_item.inc.php index f5af1553..cba6deb1 100644 --- a/modules/invoice_item/invoice_item.inc.php +++ b/modules/invoice_item/invoice_item.inc.php @@ -52,7 +52,7 @@ class invoice_item function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class invoice_item function view($VAR) { $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); } @@ -74,7 +74,7 @@ class invoice_item function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class invoice_item function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class invoice_item function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class invoice_item function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/invoice_memo/invoice_memo.inc.php b/modules/invoice_memo/invoice_memo.inc.php index 0ce943df..e3e32144 100644 --- a/modules/invoice_memo/invoice_memo.inc.php +++ b/modules/invoice_memo/invoice_memo.inc.php @@ -52,7 +52,7 @@ class invoice_memo function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class invoice_memo function view($VAR) { $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); } @@ -74,7 +74,7 @@ class invoice_memo function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class invoice_memo function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class invoice_memo function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class invoice_memo function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/log_error/log_error.inc.php b/modules/log_error/log_error.inc.php index b3c3c8f8..af7fea0c 100644 --- a/modules/log_error/log_error.inc.php +++ b/modules/log_error/log_error.inc.php @@ -93,7 +93,7 @@ class log_error function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -104,7 +104,7 @@ class log_error function view($VAR) { $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); } @@ -115,7 +115,7 @@ class log_error function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -135,7 +135,7 @@ class log_error function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -146,7 +146,7 @@ class log_error function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -158,7 +158,7 @@ class log_error function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/login_log/login_log.inc.php b/modules/login_log/login_log.inc.php index 3e86a474..490f69db 100644 --- a/modules/login_log/login_log.inc.php +++ b/modules/login_log/login_log.inc.php @@ -95,7 +95,7 @@ class login_log function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -106,7 +106,7 @@ class login_log function view($VAR) { $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); } @@ -117,7 +117,7 @@ class login_log function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -137,7 +137,7 @@ class login_log function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -148,7 +148,7 @@ class login_log function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -160,7 +160,7 @@ class login_log function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/module/dev.inc.php b/modules/module/dev.inc.php index 98d254e4..5985cf0e 100644 --- a/modules/module/dev.inc.php +++ b/modules/module/dev.inc.php @@ -987,7 +987,7 @@ function dev_construct_php($VAR) function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -1000,7 +1000,7 @@ function dev_construct_php($VAR) function view($VAR) { $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); } @@ -1013,7 +1013,7 @@ function dev_construct_php($VAR) function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -1037,7 +1037,7 @@ function dev_construct_php($VAR) function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -1050,7 +1050,7 @@ function dev_construct_php($VAR) function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -1064,7 +1064,7 @@ function dev_construct_php($VAR) function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -1108,7 +1108,7 @@ function dev_construct_php($VAR) if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -1116,7 +1116,7 @@ function dev_construct_php($VAR) else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -1124,7 +1124,7 @@ function dev_construct_php($VAR) else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -1132,7 +1132,7 @@ function dev_construct_php($VAR) else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -1140,7 +1140,7 @@ function dev_construct_php($VAR) else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/module/module.inc.php b/modules/module/module.inc.php index b1ba5288..ace1a4ff 100644 --- a/modules/module/module.inc.php +++ b/modules/module/module.inc.php @@ -288,7 +288,7 @@ class module $post= new CORE_post; $result = $post->post_data($host, $form, $pass); $pat = "\n"; - $arr = split($pat, $result); + $arr = explode($pat, $result); $ret=''; for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -315,7 +315,7 @@ class module function view($VAR) { $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); } @@ -326,7 +326,7 @@ class module function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -340,9 +340,9 @@ class module $core = $this->core_mods; if(isset($VAR["delete_id"])) - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); elseif (isset($VAR["id"])) - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -444,7 +444,7 @@ class module function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -456,7 +456,7 @@ class module function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -556,7 +556,7 @@ class module if($dependancy) { if(ereg(',', $dependancy)) - $depend = split(',', $dependancy); + $depend = explode(',', $dependancy); else $depend[0] = $dependancy; @@ -685,7 +685,7 @@ class module if(ereg('[(]',$t_s)) { - $ts = split('[(]',$t_s); + $ts = explode('[(]',$t_s); $type = $ts[0]; $size = ereg_replace('[)]', '', $ts[1]); $flds[] = Array($field, $type, $size); @@ -966,7 +966,7 @@ class module $arr_sub = $this->install["install"]["module_properties"]["sub_modules"]; if(ereg(',', $arr_sub)) - $arr_s = split(',', $arr_sub); + $arr_s = explode(',', $arr_sub); else $arr_s[] = $arr_sub; @@ -1166,7 +1166,7 @@ class module $t_s = $arr_field["$key"]["type"]; if(ereg('[(]',$t_s)) { - $ts = split('[(]',$t_s); + $ts = explode('[(]',$t_s); $type = $ts[0]; $size = ereg_replace(')', '', $ts[1]); $flds[] = Array($field, $type, $size); diff --git a/modules/module_method/module_method.inc.php b/modules/module_method/module_method.inc.php index 86ad9c69..d7b8504e 100644 --- a/modules/module_method/module_method.inc.php +++ b/modules/module_method/module_method.inc.php @@ -52,7 +52,7 @@ class module_method function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class module_method function view($VAR) { $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); } @@ -74,7 +74,7 @@ class module_method function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class module_method function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class module_method function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class module_method function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -129,7 +129,7 @@ class module_method function view_methods($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $this->this_search_show($VAR, $this, $type); } @@ -325,7 +325,7 @@ class module_method if(isset($VAR['id']) && $VAR['id'] != '') { - $arr = split(',', $VAR['id']); + $arr = explode(',', $VAR['id']); } else { return;} diff --git a/modules/net_term/net_term.inc.php b/modules/net_term/net_term.inc.php index 39a7c3db..c753de78 100644 --- a/modules/net_term/net_term.inc.php +++ b/modules/net_term/net_term.inc.php @@ -171,7 +171,7 @@ class net_term function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -182,7 +182,7 @@ class net_term function view($VAR) { $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); } @@ -193,7 +193,7 @@ class net_term function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -213,7 +213,7 @@ class net_term function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -224,7 +224,7 @@ class net_term function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -236,7 +236,7 @@ class net_term function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/newsletter/newsletter.inc.php b/modules/newsletter/newsletter.inc.php index 86a96d61..115d0490 100644 --- a/modules/newsletter/newsletter.inc.php +++ b/modules/newsletter/newsletter.inc.php @@ -53,7 +53,7 @@ class newsletter { $this->newsletter_construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -65,7 +65,7 @@ class newsletter { $this->newsletter_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); } @@ -78,7 +78,7 @@ class newsletter { $this->newsletter_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); } @@ -90,7 +90,7 @@ class newsletter { $this->newsletter_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -112,7 +112,7 @@ class newsletter { $this->newsletter_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -124,7 +124,7 @@ class newsletter { $this->newsletter_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -137,7 +137,7 @@ class newsletter { $this->newsletter_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -179,10 +179,10 @@ class newsletter $E['from_email'] = $setup_email->fields['from_email']; if($setup_email->fields['cc_list'] != '') - $E['cc_list'] = split(',', $setup_email->fields['cc_list']); + $E['cc_list'] = explode(',', $setup_email->fields['cc_list']); if($setup_email->fields['bcc_list'] != '') - $E['bcc_list'] = split(',', $setup_email->fields['bcc_list']); + $E['bcc_list'] = explode(',', $setup_email->fields['bcc_list']); ##################################################### diff --git a/modules/newsletter_subscriber/newsletter_subscriber.inc.php b/modules/newsletter_subscriber/newsletter_subscriber.inc.php index 728e3e46..3adbfaed 100644 --- a/modules/newsletter_subscriber/newsletter_subscriber.inc.php +++ b/modules/newsletter_subscriber/newsletter_subscriber.inc.php @@ -92,7 +92,7 @@ class newsletter_subscriber function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $id = $db->add($VAR, $this, $type); @@ -112,7 +112,7 @@ class newsletter_subscriber function view($VAR) { $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); @@ -134,7 +134,7 @@ class newsletter_subscriber function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; if($db->update($VAR, $this, $type)) { @@ -161,7 +161,7 @@ class newsletter_subscriber function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -172,7 +172,7 @@ class newsletter_subscriber function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); @@ -456,7 +456,7 @@ class newsletter_subscriber function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $arr = $this->method[$type]; @@ -653,7 +653,7 @@ class newsletter_subscriber if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -661,7 +661,7 @@ class newsletter_subscriber else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -669,7 +669,7 @@ class newsletter_subscriber else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -677,7 +677,7 @@ class newsletter_subscriber else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -685,7 +685,7 @@ class newsletter_subscriber else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/product/product.inc.php b/modules/product/product.inc.php index 8a1af03c..936e43f1 100644 --- a/modules/product/product.inc.php +++ b/modules/product/product.inc.php @@ -600,7 +600,7 @@ class product $this->product_construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $result = $db->add($VAR, $this, $type); @@ -623,7 +623,7 @@ class product function view($VAR) { $this->product_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); } @@ -653,7 +653,7 @@ class product $this->product_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $result = $db->update($VAR, $this, $type); @@ -680,7 +680,7 @@ class product function search_form($VAR) { $this->product_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -689,7 +689,7 @@ class product { $this->product_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -697,7 +697,7 @@ class product function search_show($VAR) { $this->product_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/product_attr/product_attr.inc.php b/modules/product_attr/product_attr.inc.php index 71e3e1b5..7a9f7893 100644 --- a/modules/product_attr/product_attr.inc.php +++ b/modules/product_attr/product_attr.inc.php @@ -52,7 +52,7 @@ class product_attr function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class product_attr function view($VAR) { $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); } @@ -74,7 +74,7 @@ class product_attr function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class product_attr function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class product_attr function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class product_attr function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/product_cat/product_cat.inc.php b/modules/product_cat/product_cat.inc.php index 60e7ae6c..1a7db9ac 100644 --- a/modules/product_cat/product_cat.inc.php +++ b/modules/product_cat/product_cat.inc.php @@ -487,7 +487,7 @@ class product_cat ## Attempt to add the record: $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $result = $db->add($VAR, $this, $type); @@ -515,7 +515,7 @@ class product_cat function view($VAR) { $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); } @@ -545,7 +545,7 @@ class product_cat } $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $result = $db->update($VAR, $this, $type); @@ -581,7 +581,7 @@ class product_cat function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -592,7 +592,7 @@ class product_cat function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -604,7 +604,7 @@ class product_cat function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/product_cat_translate/product_cat_translate.inc.php b/modules/product_cat_translate/product_cat_translate.inc.php index 463078e9..e2e6c04a 100644 --- a/modules/product_cat_translate/product_cat_translate.inc.php +++ b/modules/product_cat_translate/product_cat_translate.inc.php @@ -52,7 +52,7 @@ class product_cat_translate function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class product_cat_translate function view($VAR) { $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); } @@ -74,7 +74,7 @@ class product_cat_translate function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class product_cat_translate function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class product_cat_translate function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class product_cat_translate function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/product_img/product_img.inc.php b/modules/product_img/product_img.inc.php index 474d1ef2..f0e0fc7a 100644 --- a/modules/product_img/product_img.inc.php +++ b/modules/product_img/product_img.inc.php @@ -93,7 +93,7 @@ class product_img } $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $result = $db->add($VAR, $this, $type); @@ -111,7 +111,7 @@ class product_img function view($VAR) { $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); } @@ -127,11 +127,11 @@ class product_img ### Delete any saved images: if(isset($VAR["delete_id"])) { - $id = split(',',$VAR["delete_id"]); + $id = explode(',',$VAR["delete_id"]); } elseif (isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); } for($i=0; $imethod["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -186,7 +186,7 @@ class product_img function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/product_translate/product_translate.inc.php b/modules/product_translate/product_translate.inc.php index e8c3ae1c..4e00994d 100644 --- a/modules/product_translate/product_translate.inc.php +++ b/modules/product_translate/product_translate.inc.php @@ -52,7 +52,7 @@ class product_translate function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class product_translate function view($VAR) { $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); } @@ -74,7 +74,7 @@ class product_translate function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class product_translate function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class product_translate function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class product_translate function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/radius/radius.inc.php b/modules/radius/radius.inc.php index 811e487d..65b32ccc 100644 --- a/modules/radius/radius.inc.php +++ b/modules/radius/radius.inc.php @@ -289,7 +289,7 @@ class radius { $this->construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -301,7 +301,7 @@ class radius { $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); } @@ -313,7 +313,7 @@ class radius { $this->construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -335,7 +335,7 @@ class radius { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -347,7 +347,7 @@ class radius { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -359,7 +359,7 @@ class radius { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -377,7 +377,7 @@ class radius if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -385,7 +385,7 @@ class radius else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -393,7 +393,7 @@ class radius else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -401,7 +401,7 @@ class radius else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -409,7 +409,7 @@ class radius else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/report/report.inc.php b/modules/report/report.inc.php index 27618587..962747e1 100644 --- a/modules/report/report.inc.php +++ b/modules/report/report.inc.php @@ -287,8 +287,8 @@ class report if($date == '0' || $date == '') return ''; - $Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); - $Arr_date = split(DEFAULT_DATE_DIVIDER, $date); + $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); + $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date); for($i=0; $i<3; $i++) { diff --git a/modules/service/service.inc.php b/modules/service/service.inc.php index 337013ad..336361b6 100644 --- a/modules/service/service.inc.php +++ b/modules/service/service.inc.php @@ -1160,7 +1160,7 @@ class service ### loop through the field list to validate the required fields $type = 'add'; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $arr = $this->method["$type"]; include_once(PATH_CORE . 'validate.inc.php'); $validate = new CORE_validate; @@ -1477,7 +1477,7 @@ class service global $smarty,$C_auth; $this->construct(); $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $smart = $db->view($VAR, $this, $type); @@ -1647,7 +1647,7 @@ class service # update record $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); @@ -1665,9 +1665,9 @@ class service ### Get the array if(isset($VAR["delete_id"])) - $id = split(',', $VAR["delete_id"]); + $id = explode(',', $VAR["delete_id"]); elseif (isset($VAR["id"])) - $id = split(',', $VAR["id"]); + $id = explode(',', $VAR["id"]); ### Loop: for($i=0; $iconstruct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -1729,7 +1729,7 @@ class service function search($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -1737,7 +1737,7 @@ class service function search_show($VAR) { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $dba = new CORE_database; $smart = $dba->search_show($VAR, $this, $type); @@ -1799,7 +1799,7 @@ class service $VAR['service_account_id'] = SESS_ACCOUNT; $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -1811,7 +1811,7 @@ class service } $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -1843,7 +1843,7 @@ class service if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -1854,21 +1854,21 @@ class service else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/service_memo/service_memo.inc.php b/modules/service_memo/service_memo.inc.php index d95e1b9a..461aea3a 100644 --- a/modules/service_memo/service_memo.inc.php +++ b/modules/service_memo/service_memo.inc.php @@ -52,7 +52,7 @@ class service_memo function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class service_memo function view($VAR) { $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); } @@ -74,7 +74,7 @@ class service_memo function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class service_memo function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class service_memo function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class service_memo function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/session/session.inc.php b/modules/session/session.inc.php index 1d4ea77f..adf60b6f 100644 --- a/modules/session/session.inc.php +++ b/modules/session/session.inc.php @@ -93,7 +93,7 @@ class session function view($VAR) { $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); } @@ -113,7 +113,7 @@ class session function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -124,7 +124,7 @@ class session function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -136,7 +136,7 @@ class session function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/setup/setup.inc.php b/modules/setup/setup.inc.php index 03edd953..6f1592ed 100644 --- a/modules/setup/setup.inc.php +++ b/modules/setup/setup.inc.php @@ -51,7 +51,7 @@ class setup function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -63,7 +63,7 @@ class setup function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -105,7 +105,7 @@ class setup $VAR['setup_nonssl_url'] .= '/'; $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $rs = $db->update($VAR, $this, $type); diff --git a/modules/setup_email/setup_email.inc.php b/modules/setup_email/setup_email.inc.php index 678512c9..67a1a6cd 100644 --- a/modules/setup_email/setup_email.inc.php +++ b/modules/setup_email/setup_email.inc.php @@ -52,7 +52,7 @@ class setup_email function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class setup_email function view($VAR) { $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); } @@ -74,7 +74,7 @@ class setup_email function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class setup_email function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class setup_email function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class setup_email function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/setup_invoice/setup_invoice.inc.php b/modules/setup_invoice/setup_invoice.inc.php index 086e1284..02ad1d10 100644 --- a/modules/setup_invoice/setup_invoice.inc.php +++ b/modules/setup_invoice/setup_invoice.inc.php @@ -39,7 +39,7 @@ class setup_invoice function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -47,7 +47,7 @@ class setup_invoice function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -55,7 +55,7 @@ class setup_invoice function view($VAR) { $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); } @@ -63,7 +63,7 @@ class setup_invoice function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $rs = $db->update($VAR, $this, $type); } diff --git a/modules/staff/staff.inc.php b/modules/staff/staff.inc.php index 83f8a907..b6fd741b 100644 --- a/modules/staff/staff.inc.php +++ b/modules/staff/staff.inc.php @@ -232,10 +232,10 @@ class staff } if($setup_email->fields['cc_list'] != '') - $E['cc_list'] = split(',', $setup_email->fields['cc_list']); + $E['cc_list'] = explode(',', $setup_email->fields['cc_list']); if($setup_email->fields['bcc_list'] != '') - $E['bcc_list'] = split(',', $setup_email->fields['bcc_list']); + $E['bcc_list'] = explode(',', $setup_email->fields['bcc_list']); ### Call the mail() or smtp() function to send @@ -275,7 +275,7 @@ class staff function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -286,7 +286,7 @@ class staff function view($VAR) { $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); } @@ -297,7 +297,7 @@ class staff function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -317,7 +317,7 @@ class staff function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -328,7 +328,7 @@ class staff function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -340,7 +340,7 @@ class staff function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/staff_department/staff_department.inc.php b/modules/staff_department/staff_department.inc.php index c297cc9a..cca015b7 100644 --- a/modules/staff_department/staff_department.inc.php +++ b/modules/staff_department/staff_department.inc.php @@ -52,7 +52,7 @@ class staff_department function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class staff_department function view($VAR) { $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); } @@ -74,7 +74,7 @@ class staff_department function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class staff_department function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class staff_department function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class staff_department function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/static_page/static_page.inc.php b/modules/static_page/static_page.inc.php index c8ee46f4..8913886d 100644 --- a/modules/static_page/static_page.inc.php +++ b/modules/static_page/static_page.inc.php @@ -344,7 +344,7 @@ class static_page function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -355,7 +355,7 @@ class static_page function view($VAR) { $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); } @@ -366,7 +366,7 @@ class static_page function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -392,7 +392,7 @@ class static_page function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -403,7 +403,7 @@ class static_page function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -415,7 +415,7 @@ class static_page function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/static_page_category/static_page_category.inc.php b/modules/static_page_category/static_page_category.inc.php index 12613f27..b460edfd 100644 --- a/modules/static_page_category/static_page_category.inc.php +++ b/modules/static_page_category/static_page_category.inc.php @@ -114,7 +114,7 @@ class static_page_category $this->static_page_category_construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -127,7 +127,7 @@ class static_page_category $this->static_page_category_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); } @@ -140,7 +140,7 @@ class static_page_category $this->static_page_category_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -164,7 +164,7 @@ class static_page_category $this->static_page_category_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -177,7 +177,7 @@ class static_page_category $this->static_page_category_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -191,7 +191,7 @@ class static_page_category $this->static_page_category_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/static_page_translate/static_page_translate.inc.php b/modules/static_page_translate/static_page_translate.inc.php index 627ffd9e..9e3e8828 100644 --- a/modules/static_page_translate/static_page_translate.inc.php +++ b/modules/static_page_translate/static_page_translate.inc.php @@ -52,7 +52,7 @@ class static_page_translate function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class static_page_translate function view($VAR) { $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); } @@ -74,7 +74,7 @@ class static_page_translate function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class static_page_translate function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class static_page_translate function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class static_page_translate function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/static_relation/static_relation.inc.php b/modules/static_relation/static_relation.inc.php index 178a09b0..037ba12a 100644 --- a/modules/static_relation/static_relation.inc.php +++ b/modules/static_relation/static_relation.inc.php @@ -52,7 +52,7 @@ class static_relation function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class static_relation function view($VAR) { $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); } @@ -74,7 +74,7 @@ class static_relation function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -97,7 +97,7 @@ class static_relation function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -108,7 +108,7 @@ class static_relation function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -120,7 +120,7 @@ class static_relation function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/static_var/static_var.inc.php b/modules/static_var/static_var.inc.php index c0da5614..ef5bbfac 100644 --- a/modules/static_var/static_var.inc.php +++ b/modules/static_var/static_var.inc.php @@ -52,7 +52,7 @@ class static_var function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class static_var function view($VAR) { $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); } @@ -74,7 +74,7 @@ class static_var function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -100,7 +100,7 @@ class static_var function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -111,7 +111,7 @@ class static_var function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -123,7 +123,7 @@ class static_var function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/task/task.inc.php b/modules/task/task.inc.php index d79bc4ce..9330e5d9 100644 --- a/modules/task/task.inc.php +++ b/modules/task/task.inc.php @@ -233,7 +233,7 @@ class task function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -244,7 +244,7 @@ class task function view($VAR) { $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); } @@ -255,7 +255,7 @@ class task function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -275,7 +275,7 @@ class task function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -286,7 +286,7 @@ class task function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -298,7 +298,7 @@ class task function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/task_log/task_log.inc.php b/modules/task_log/task_log.inc.php index ac5dde9e..bcf1dc78 100644 --- a/modules/task_log/task_log.inc.php +++ b/modules/task_log/task_log.inc.php @@ -52,7 +52,7 @@ class task_log function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class task_log function view($VAR) { $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); } @@ -74,7 +74,7 @@ class task_log function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class task_log function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class task_log function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class task_log function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/tax/tax.inc.php b/modules/tax/tax.inc.php index eb7372a0..ba51578d 100644 --- a/modules/tax/tax.inc.php +++ b/modules/tax/tax.inc.php @@ -120,7 +120,7 @@ class tax function add($VAR) { $this->tax_construct(); $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -128,7 +128,7 @@ class tax function view($VAR) { $this->tax_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); } @@ -136,7 +136,7 @@ class tax function update($VAR) { $this->tax_construct(); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -150,7 +150,7 @@ class tax function search_form($VAR) { $this->tax_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -158,7 +158,7 @@ class tax function search($VAR) { $this->tax_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -166,7 +166,7 @@ class tax function search_show($VAR) { $this->tax_construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/ticket/ticket.inc.php b/modules/ticket/ticket.inc.php index c609c7e1..05051b12 100644 --- a/modules/ticket/ticket.inc.php +++ b/modules/ticket/ticket.inc.php @@ -799,7 +799,7 @@ class ticket $VAR['ticket_status'] = "0"; $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $this->record_id = $db->add($VAR, $this, $type); @@ -904,14 +904,14 @@ class ticket $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); # set the field list for this method: $arr = $this->method[$type]; if(isset($VAR["id"])) { - $id = split(',',$VAR["id"]); + $id = explode(',',$VAR["id"]); for($i=0; $ifields[0]; $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); @@ -1223,7 +1223,7 @@ class ticket { $this->construct(); $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -1258,7 +1258,7 @@ class ticket } $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = &DB(); @@ -1583,7 +1583,7 @@ class ticket $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); # set the field list for this method: $arr = $this->method[$type]; diff --git a/modules/ticket_department/ticket_department.inc.php b/modules/ticket_department/ticket_department.inc.php index 9d00b29f..20bfcb0b 100644 --- a/modules/ticket_department/ticket_department.inc.php +++ b/modules/ticket_department/ticket_department.inc.php @@ -52,7 +52,7 @@ class ticket_department function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -63,7 +63,7 @@ class ticket_department function view($VAR) { $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); } @@ -74,7 +74,7 @@ class ticket_department function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -94,7 +94,7 @@ class ticket_department function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -105,7 +105,7 @@ class ticket_department function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -117,7 +117,7 @@ class ticket_department function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/ticket_message/ticket_message.inc.php b/modules/ticket_message/ticket_message.inc.php index 857d8aac..0c51d9d1 100644 --- a/modules/ticket_message/ticket_message.inc.php +++ b/modules/ticket_message/ticket_message.inc.php @@ -92,7 +92,7 @@ class ticket_message function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -103,7 +103,7 @@ class ticket_message function view($VAR) { $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); } @@ -114,7 +114,7 @@ class ticket_message function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -134,7 +134,7 @@ class ticket_message function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -145,7 +145,7 @@ class ticket_message function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -157,7 +157,7 @@ class ticket_message function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/voip/voip.inc.php b/modules/voip/voip.inc.php index e00aafde..799c3191 100644 --- a/modules/voip/voip.inc.php +++ b/modules/voip/voip.inc.php @@ -1764,7 +1764,7 @@ class voip } else if ($r['type'] == 'regular' || $r['type'] == 'default') { #echo "src=".$rs1->fields['src']."\n"; #echo "dst=".$rs1->fields['dst']."\n"; - $pats = split(";", $r['pattern']); + $pats = explode(";", $r['pattern']); $search = $rs1->fields['dst']; foreach ($pats as $pattern) { #echo "Matching against: $pattern\n"; diff --git a/modules/voip_blacklist/voip_blacklist.inc.php b/modules/voip_blacklist/voip_blacklist.inc.php index f0b50603..a9f94685 100644 --- a/modules/voip_blacklist/voip_blacklist.inc.php +++ b/modules/voip_blacklist/voip_blacklist.inc.php @@ -50,7 +50,7 @@ class voip_blacklist if(SESS_LOGGED) { $VAR['voip_blacklist_account_id'] = SESS_ACCOUNT; $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } else { @@ -161,7 +161,7 @@ class voip_blacklist function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -169,7 +169,7 @@ class voip_blacklist function view($VAR) { $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); } @@ -177,7 +177,7 @@ class voip_blacklist function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -191,7 +191,7 @@ class voip_blacklist function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -199,7 +199,7 @@ class voip_blacklist function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -207,7 +207,7 @@ class voip_blacklist function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/voip_cdr/voip_cdr.inc.php b/modules/voip_cdr/voip_cdr.inc.php index 332fbc11..167f1462 100644 --- a/modules/voip_cdr/voip_cdr.inc.php +++ b/modules/voip_cdr/voip_cdr.inc.php @@ -51,7 +51,7 @@ class voip_cdr function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -62,7 +62,7 @@ class voip_cdr function view($VAR) { $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); } @@ -73,7 +73,7 @@ class voip_cdr function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -93,7 +93,7 @@ class voip_cdr function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -104,7 +104,7 @@ class voip_cdr function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -116,7 +116,7 @@ class voip_cdr function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -133,7 +133,7 @@ class voip_cdr if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -141,7 +141,7 @@ class voip_cdr else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -149,7 +149,7 @@ class voip_cdr else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -157,7 +157,7 @@ class voip_cdr else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -165,7 +165,7 @@ class voip_cdr else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/voip_did/voip_did.inc.php b/modules/voip_did/voip_did.inc.php index b36555be..3f339def 100644 --- a/modules/voip_did/voip_did.inc.php +++ b/modules/voip_did/voip_did.inc.php @@ -91,7 +91,7 @@ class voip_did function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -103,7 +103,7 @@ class voip_did { global $smarty; $type = "view"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $smart = $db->view($VAR, $this, $type); @@ -134,7 +134,7 @@ class voip_did function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); @@ -191,7 +191,7 @@ class voip_did function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -202,7 +202,7 @@ class voip_did function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -214,7 +214,7 @@ class voip_did function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -231,7 +231,7 @@ class voip_did if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -239,7 +239,7 @@ class voip_did else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -247,7 +247,7 @@ class voip_did else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -255,7 +255,7 @@ class voip_did else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/voip_did_plugin/voip_did_plugin.inc.php b/modules/voip_did_plugin/voip_did_plugin.inc.php index c39d9be1..ca58a9b6 100644 --- a/modules/voip_did_plugin/voip_did_plugin.inc.php +++ b/modules/voip_did_plugin/voip_did_plugin.inc.php @@ -193,7 +193,7 @@ class voip_did_plugin function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -204,7 +204,7 @@ class voip_did_plugin function view($VAR) { $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); } @@ -215,7 +215,7 @@ class voip_did_plugin function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -235,7 +235,7 @@ class voip_did_plugin function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -246,7 +246,7 @@ class voip_did_plugin function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -258,7 +258,7 @@ class voip_did_plugin function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/voip_fax/voip_fax.inc.php b/modules/voip_fax/voip_fax.inc.php index 6a795cb7..64838298 100644 --- a/modules/voip_fax/voip_fax.inc.php +++ b/modules/voip_fax/voip_fax.inc.php @@ -91,7 +91,7 @@ class voip_fax unset($db); $VAR['voip_fax_account_id'] = SESS_ACCOUNT; $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } else { @@ -130,7 +130,7 @@ class voip_fax function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -140,7 +140,7 @@ class voip_fax $this->associated_DELETE[] = Array( 'table' => 'voip_fax_data', 'field' => 'fax_id'); $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -152,14 +152,14 @@ class voip_fax function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -184,7 +184,7 @@ class voip_fax unset($db); } $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/voip_pool/voip_pool.inc.php b/modules/voip_pool/voip_pool.inc.php index 4a69c2ad..28c50615 100644 --- a/modules/voip_pool/voip_pool.inc.php +++ b/modules/voip_pool/voip_pool.inc.php @@ -143,7 +143,7 @@ class voip_pool function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -154,7 +154,7 @@ class voip_pool function view($VAR) { $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); } @@ -165,7 +165,7 @@ class voip_pool function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -185,7 +185,7 @@ class voip_pool function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -196,7 +196,7 @@ class voip_pool function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -208,7 +208,7 @@ class voip_pool function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -225,7 +225,7 @@ class voip_pool if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -233,7 +233,7 @@ class voip_pool else if ($VAR["format"] == "pdf") { $type = "export_pdf"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_pdf($VAR, $this, $type); } @@ -241,7 +241,7 @@ class voip_pool else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -249,7 +249,7 @@ class voip_pool else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -257,7 +257,7 @@ class voip_pool else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/voip_prepaid/voip_prepaid.inc.php b/modules/voip_prepaid/voip_prepaid.inc.php index 32537894..c8a57f69 100644 --- a/modules/voip_prepaid/voip_prepaid.inc.php +++ b/modules/voip_prepaid/voip_prepaid.inc.php @@ -434,7 +434,7 @@ class voip_prepaid } else { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -443,7 +443,7 @@ class voip_prepaid function view($VAR) { $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); } @@ -451,7 +451,7 @@ class voip_prepaid function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -465,7 +465,7 @@ class voip_prepaid function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -473,7 +473,7 @@ class voip_prepaid function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -481,7 +481,7 @@ class voip_prepaid function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } @@ -496,7 +496,7 @@ class voip_prepaid if($VAR["format"] == "excel") { $type = "export_excel"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_excel($VAR, $this, $type); } @@ -504,7 +504,7 @@ class voip_prepaid else if ($VAR["format"] == "xml") { $type = "export_xml"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_xml($VAR, $this, $type); } @@ -512,7 +512,7 @@ class voip_prepaid else if ($VAR["format"] == "csv") { $type = "export_csv"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_csv($VAR, $this, $type); } @@ -520,7 +520,7 @@ class voip_prepaid else if ($VAR["format"] == "tab") { $type = "export_tab"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $export = new CORE_export; $export->search_tab($VAR, $this, $type); } diff --git a/modules/voip_rate/voip_rate.inc.php b/modules/voip_rate/voip_rate.inc.php index cd559daa..8a09651d 100644 --- a/modules/voip_rate/voip_rate.inc.php +++ b/modules/voip_rate/voip_rate.inc.php @@ -143,7 +143,7 @@ class voip_rate function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -154,7 +154,7 @@ class voip_rate function view($VAR) { $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); } @@ -165,7 +165,7 @@ class voip_rate function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -185,7 +185,7 @@ class voip_rate function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -196,7 +196,7 @@ class voip_rate function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -207,7 +207,7 @@ class voip_rate function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/voip_rate_prod/voip_rate_prod.inc.php b/modules/voip_rate_prod/voip_rate_prod.inc.php index f737a6b7..bb40e831 100644 --- a/modules/voip_rate_prod/voip_rate_prod.inc.php +++ b/modules/voip_rate_prod/voip_rate_prod.inc.php @@ -60,7 +60,7 @@ class voip_rate_prod } $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -71,7 +71,7 @@ class voip_rate_prod function view($VAR) { $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); } @@ -82,7 +82,7 @@ class voip_rate_prod function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -102,7 +102,7 @@ class voip_rate_prod function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -113,7 +113,7 @@ class voip_rate_prod function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -124,7 +124,7 @@ class voip_rate_prod function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/modules/voip_vm/voip_vm.inc.php b/modules/voip_vm/voip_vm.inc.php index c1f8b83b..3f1280b7 100644 --- a/modules/voip_vm/voip_vm.inc.php +++ b/modules/voip_vm/voip_vm.inc.php @@ -198,7 +198,7 @@ class voip_vm function add($VAR) { $type = "add"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->add($VAR, $this, $type); } @@ -206,7 +206,7 @@ class voip_vm function view($VAR) { $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); } @@ -214,7 +214,7 @@ class voip_vm function update($VAR) { $type = "update"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->update($VAR, $this, $type); } @@ -228,7 +228,7 @@ class voip_vm function search_form($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_form($VAR, $this, $type); } @@ -236,7 +236,7 @@ class voip_vm function search($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search($VAR, $this, $type); } @@ -244,7 +244,7 @@ class voip_vm function search_show($VAR) { $type = "search"; - $this->method["$type"] = split(",", $this->method["$type"]); + $this->method["$type"] = explode(",", $this->method["$type"]); $db = new CORE_database; $db->search_show($VAR, $this, $type); } diff --git a/plugins/checkout/NETBILLING.php b/plugins/checkout/NETBILLING.php index 4d5d4833..7bb66287 100644 --- a/plugins/checkout/NETBILLING.php +++ b/plugins/checkout/NETBILLING.php @@ -85,10 +85,10 @@ class plg_chout_NETBILLING extends base_checkout_plugin $ret['status'] = 1; } elseif (eregi("RET_STATUS=0",$response)) { $ret['status'] = 0; - $mydata = split("\&",$response); + $mydata = explode("\&",$response); foreach($mydata as $key=>$value) { - $newdata = split('=', $value); + $newdata = explode('=', $value); $ret[$newdata[0]] = $newdata[1]; } $reason = urldecode($ret['RET_AUTH_MSG']); diff --git a/plugins/checkout/SWREG_ADVANCED.php b/plugins/checkout/SWREG_ADVANCED.php index 5fc97f7d..40b518fd 100644 --- a/plugins/checkout/SWREG_ADVANCED.php +++ b/plugins/checkout/SWREG_ADVANCED.php @@ -118,8 +118,8 @@ class plg_chout_SWREG_ADVANCED extends base_checkout_plugin echo ''; return false; } else { - foreach(split("&",$response) as $pair) { - list($key,$val)=split("=",$pair); + foreach(explode("&",$response) as $pair) { + list($key,$val)=explode("=",$pair); $swreg[$key]=$val; } } diff --git a/plugins/checkout/TRUSTCOMMERCE.php b/plugins/checkout/TRUSTCOMMERCE.php index 95c7d8b5..9f72c9a7 100644 --- a/plugins/checkout/TRUSTCOMMERCE.php +++ b/plugins/checkout/TRUSTCOMMERCE.php @@ -90,13 +90,13 @@ class plg_chout_TRUSTCOMMERCE extends base_checkout_plugin echo ''; return false; } else { - $response = split("\n", trim($return)); + $response = explode("\n", trim($return)); for($i=0; $ifields['domain_years']; $domain_name = strtolower($rs->fields['domain_name']); - $arr = split('\.', $domain_name); + $arr = explode('\.', $domain_name); $tld = ''; $domain = $arr[0]; for($i=0; $iGenID($p.'account_billing_id'); - $type = split("-", $rs->fields['billing_cc_type']); - $exp = split("/", $rs->fields['billing_cc_exp']); + $type = explode("-", $rs->fields['billing_cc_type']); + $exp = explode("/", $rs->fields['billing_cc_exp']); # the modernbill encryption method is unknown, so we have no way to decrypt the cc details # we will create a blank CC record that the user or admin can manually update... @@ -1013,7 +1013,7 @@ class import_plugin extends import # Determine the domain TLD & Name: $domain_name = $rs->fields['domain_name']; - $arr = split('\.', $domain_name); + $arr = explode('\.', $domain_name); $tld = ''; $domain = $arr[0]; for($i=0; $ifields['target']; - $arr = split('\.', $domain_name); + $arr = explode('\.', $domain_name); $tld = ''; $domain = $arr[0]; for($i=0; $ifields['domain']; - $arr = split('\.', $domain_name); + $arr = explode('\.', $domain_name); $tld = ''; $domain = $arr[0]; for($i=0; $ifields['target']; - $arr = split('\.', $domain_name); + $arr = explode('\.', $domain_name); $tld = ''; $domain = $arr[0]; for($i=0; $if("country_2_code"); $name = trim($name); - $fullname = split(" ",$name); + $fullname = explode(" ",$name); $count = count($fullname) - 1; $l_name = $fullname[$count]; $f_name = $fullname[0]; @@ -859,7 +859,7 @@ function mail_name($account,$domain) { $name = trim($name); - $fullname = split(" ",$name); + $fullname = explode(" ",$name); $count = count($fullname) - 1; $l_name = $fullname[$count]; $f_name = $fullname[0]; @@ -1029,7 +1029,7 @@ function mail_us($account,$domain) { $name = trim($name); - $fullname = split(" ",$name); + $fullname = explode(" ",$name); $count = count($fullname) - 1; $l_name = $fullname[$count]; $f_name = $fullname[0]; diff --git a/plugins/voip_did/DIDX.php b/plugins/voip_did/DIDX.php index 7ce14ec1..6c1e37be 100644 --- a/plugins/voip_did/DIDX.php +++ b/plugins/voip_did/DIDX.php @@ -243,10 +243,10 @@ class plgn_voip_did_DIDX global $C_debug; $C_debug->error('DIDX.php', 'refresh', 'Could not acquire information from DIDx.org'); } else { - $entries = split("\r\n", $this->country_area); + $entries = explode("\r\n", $this->country_area); foreach ($entries as $entry) { - $eparts = split(":", $entry); - $areas = split(",", $eparts[1]); + $eparts = explode(":", $entry); + $areas = explode(",", $eparts[1]); $bDelete = true; foreach ($areas as $area) { $params = array( diff --git a/plugins/voip_did/MAGRATHEA.php b/plugins/voip_did/MAGRATHEA.php index a87a5474..941fda86 100644 --- a/plugins/voip_did/MAGRATHEA.php +++ b/plugins/voip_did/MAGRATHEA.php @@ -155,10 +155,10 @@ class plgn_voip_did_MAGRATHEA $voip = new voip; $db =& DB(); - $entries = split("\r\n", $this->country_area); + $entries = explode("\r\n", $this->country_area); foreach ($entries as $entry) { - $eparts = split(":", $entry); - $areas = split(",", $eparts[1]); + $eparts = explode(":", $entry); + $areas = explode(",", $eparts[1]); $bDelete = false; foreach ($areas as $area) {