Out with split(), in with explode()

This commit is contained in:
Tony Landis 2009-03-27 23:20:19 -06:00
parent ff9e25abcf
commit 87a8e0f92d
101 changed files with 639 additions and 639 deletions

View File

@ -189,8 +189,8 @@ class account_admin
if($date == '0' || $date == '') if($date == '0' || $date == '')
return ''; return '';
$Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT);
$Arr_date = split(DEFAULT_DATE_DIVIDER, $date); $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date);
for($i=0; $i<3; $i++) for($i=0; $i<3; $i++)
{ {
@ -235,7 +235,7 @@ class account_admin
$where = "id LIKE ".$db->qstr($VAR['account_search']."%"); $where = "id LIKE ".$db->qstr($VAR['account_search']."%");
$type = 1; $type = 1;
} elseif (eregi(" ", $VAR['account_search'])) { } elseif (eregi(" ", $VAR['account_search'])) {
$arr = split(" ", $VAR['account_search']); $arr = explode(" ", $VAR['account_search']);
$where = "first_name = ".$db->qstr($arr[0])." AND ". $where = "first_name = ".$db->qstr($arr[0])." AND ".
"last_name LIKE ".$db->qstr($arr[1].'%') ; "last_name LIKE ".$db->qstr($arr[1].'%') ;
$type = 2; $type = 2;
@ -363,7 +363,7 @@ class account_admin
if (empty($VAR['search'])) { if (empty($VAR['search'])) {
$where = ''; $where = '';
} elseif (eregi(" ", $VAR['search'])) { } elseif (eregi(" ", $VAR['search'])) {
$arr = split(" ", $VAR['search']); $arr = explode(" ", $VAR['search']);
$where = "first_name = ".$db->qstr($arr[0])." AND ". $where = "first_name = ".$db->qstr($arr[0])." AND ".
"last_name LIKE ".$db->qstr('%'.$arr[1].'%')." AND "; "last_name LIKE ".$db->qstr('%'.$arr[1].'%')." AND ";
} else { } else {
@ -676,10 +676,10 @@ class account_admin
$E['from_email'] = $setup_email->fields['from_email']; $E['from_email'] = $setup_email->fields['from_email'];
if($setup_email->fields['cc_list'] != '') 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'] != '') 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 ### Call the mail class
@ -919,7 +919,7 @@ class account_admin
#################################################################### ####################################################################
$type = 'add'; $type = 'add';
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$arr = $this->method["$type"]; $arr = $this->method["$type"];
include_once(PATH_CORE . 'validate.inc.php'); include_once(PATH_CORE . 'validate.inc.php');
$validate = new CORE_validate; $validate = new CORE_validate;
@ -1204,14 +1204,14 @@ class account_admin
global $C_auth; global $C_auth;
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$db = &DB(); $db = &DB();
$arr = $this->method[$type]; $arr = $this->method[$type];
if(isset($VAR["id"])) if(isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
{ {
if($id[$i] != '') if($id[$i] != '')
@ -1494,7 +1494,7 @@ class account_admin
### Update the record ### Update the record
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$ok = $db->update($VAR, $this, $type); $ok = $db->update($VAR, $this, $type);
@ -1693,11 +1693,11 @@ class account_admin
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
{ {
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
} }
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
} }
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
@ -1879,7 +1879,7 @@ class account_admin
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -1894,7 +1894,7 @@ class account_admin
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
@ -2205,7 +2205,7 @@ class account_admin
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$arr = $this->method[$type]; $arr = $this->method[$type];
@ -2401,7 +2401,7 @@ class account_admin
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -2409,7 +2409,7 @@ class account_admin
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -2417,7 +2417,7 @@ class account_admin
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -2425,7 +2425,7 @@ class account_admin
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -2433,7 +2433,7 @@ class account_admin
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -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['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']; if(empty($VAR['option'])) return false; else $checkout_plugin_id=$VAR['option'];
$db=&DB(); $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", $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::")); "(card_exp_year>=::$year:: or card_type='eft') AND account_id=::$account_id:: AND checkout_plugin_id=::$checkout_plugin_id::"));
$arr = $this->cardMenuArr($result); $arr = $this->cardMenuArr($result);
@ -214,7 +214,7 @@ class account_billing
$this->construct(); $this->construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -224,7 +224,7 @@ class account_billing
global $C_debug, $C_translate; global $C_debug, $C_translate;
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -309,7 +309,7 @@ class account_billing
function search_form($VAR) { function search_form($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -317,7 +317,7 @@ class account_billing
function search($VAR) { function search($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -331,7 +331,7 @@ class account_billing
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -339,7 +339,7 @@ class account_billing
function search_show($VAR) { function search_show($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -349,7 +349,7 @@ class account_billing
if(!SESS_LOGGED) return false; if(!SESS_LOGGED) return false;
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -366,7 +366,7 @@ class account_billing
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class account_memo
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class account_memo
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class account_memo
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class account_memo
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class account_memo
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class account_memo
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -67,7 +67,7 @@ class affiliate
$where = "{$p}affiliate.id LIKE ".$db->qstr($VAR['search']."%") ; $where = "{$p}affiliate.id LIKE ".$db->qstr($VAR['search']."%") ;
$type = 1; $type = 1;
} elseif (eregi(" ", $VAR['affiliate_search'])) { } 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 ". $where = "{$p}account.first_name = ".$db->qstr($arr[0])." AND ".
"{$p}account.last_name LIKE ".$db->qstr($arr[1].'%') ; "{$p}account.last_name LIKE ".$db->qstr($arr[1].'%') ;
$type = 2; $type = 2;
@ -741,7 +741,7 @@ class affiliate
} }
$type = "user_update"; $type = "user_update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
@ -861,14 +861,14 @@ class affiliate
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$db = &DB(); $db = &DB();
$arr = $this->method[$type]; $arr = $this->method[$type];
if(isset($VAR["id"])) if(isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
{ {
if($id[$i] != '') if($id[$i] != '')
@ -1102,7 +1102,7 @@ class affiliate
} }
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
@ -1126,11 +1126,11 @@ class affiliate
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
{ {
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
} }
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
} }
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
@ -1201,7 +1201,7 @@ class affiliate
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -1209,7 +1209,7 @@ class affiliate
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -1217,7 +1217,7 @@ class affiliate
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -1225,7 +1225,7 @@ class affiliate
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -1233,7 +1233,7 @@ class affiliate
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }
@ -1247,7 +1247,7 @@ class affiliate
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -1258,7 +1258,7 @@ class affiliate
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
@ -1552,7 +1552,7 @@ class affiliate
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$arr = $this->method[$type]; $arr = $this->method[$type];

View File

@ -327,7 +327,7 @@ class affiliate_commission
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
@ -452,7 +452,7 @@ class affiliate_commission
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -501,7 +501,7 @@ class affiliate_commission
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -512,7 +512,7 @@ class affiliate_commission
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -523,7 +523,7 @@ class affiliate_commission
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class affiliate_template
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class affiliate_template
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class affiliate_template
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class affiliate_template
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class affiliate_template
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class affiliate_template
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -128,7 +128,7 @@ class asset
function add($VAR) { function add($VAR) {
$this->construct(); $this->construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -136,7 +136,7 @@ class asset
function view($VAR) { function view($VAR) {
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -144,7 +144,7 @@ class asset
function update($VAR) { function update($VAR) {
$this->construct(); $this->construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -158,7 +158,7 @@ class asset
function search_form($VAR) { function search_form($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -166,7 +166,7 @@ class asset
function search($VAR) { function search($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -174,7 +174,7 @@ class asset
function search_show($VAR) { function search_show($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -40,7 +40,7 @@ class asset_pool
{ {
$this->construct(); $this->construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -49,7 +49,7 @@ class asset_pool
{ {
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -58,7 +58,7 @@ class asset_pool
{ {
$this->construct(); $this->construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class asset_pool
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -83,7 +83,7 @@ class asset_pool
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -50,7 +50,7 @@ class blocked_email
############################## ##############################
function is_blocked($email) function is_blocked($email)
{ {
@$dom = split('@', $email); @$dom = explode('@', $email);
$db = &DB(); $db = &DB();
$sql = 'SELECT id FROM ' . AGILE_DB_PREFIX . 'blocked_email WHERE $sql = 'SELECT id FROM ' . AGILE_DB_PREFIX . 'blocked_email WHERE
email = ' . $db->qstr($email) .' OR email = ' . $db->qstr($email) .' OR
@ -72,7 +72,7 @@ class blocked_email
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -83,7 +83,7 @@ class blocked_email
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class blocked_email
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -114,7 +114,7 @@ class blocked_email
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -125,7 +125,7 @@ class blocked_email
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -137,7 +137,7 @@ class blocked_email
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -50,7 +50,7 @@ class blocked_ip
function is_blocked($ip) function is_blocked($ip)
{ {
$ip_full = $ip; $ip_full = $ip;
@$ip = split('\.', $ip_full); @$ip = explode('\.', $ip_full);
$db = &DB(); $db = &DB();
$sql = 'SELECT id FROM ' . AGILE_DB_PREFIX . 'blocked_ip WHERE $sql = 'SELECT id FROM ' . AGILE_DB_PREFIX . 'blocked_ip WHERE
ip = ' . $db->qstr(@$ip[0]) . ' OR ip = ' . $db->qstr(@$ip[0]) . ' OR
@ -72,7 +72,7 @@ class blocked_ip
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -83,7 +83,7 @@ class blocked_ip
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class blocked_ip
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -114,7 +114,7 @@ class blocked_ip
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -125,7 +125,7 @@ class blocked_ip
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -137,7 +137,7 @@ class blocked_ip
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -152,7 +152,7 @@ class campaign
## Attempt to add the record: ## Attempt to add the record:
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$campaign_id = $db->add($VAR, $this, $type); $campaign_id = $db->add($VAR, $this, $type);
@ -181,7 +181,7 @@ class campaign
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$smart = $db->view($VAR, $this, $type); $smart = $db->view($VAR, $this, $type);
@ -366,7 +366,7 @@ class campaign
function affiliate($VAR) function affiliate($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -386,7 +386,7 @@ class campaign
# Store the record # Store the record
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$rs = $db->update($VAR, $this, $type); $rs = $db->update($VAR, $this, $type);
@ -446,11 +446,11 @@ class campaign
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
{ {
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
} }
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
} }
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
@ -525,7 +525,7 @@ class campaign
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -536,7 +536,7 @@ class campaign
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -548,7 +548,7 @@ class campaign
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$smart = $db->search_show($VAR, $this, $type); $smart = $db->search_show($VAR, $this, $type);
@ -660,7 +660,7 @@ class campaign
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -668,7 +668,7 @@ class campaign
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -676,7 +676,7 @@ class campaign
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -684,7 +684,7 @@ class campaign
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -692,7 +692,7 @@ class campaign
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -534,7 +534,7 @@ class charge
} }
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -546,7 +546,7 @@ class charge
{ {
$this->charge_construct(); $this->charge_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -558,7 +558,7 @@ class charge
{ {
$this->charge_construct(); $this->charge_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -580,7 +580,7 @@ class charge
{ {
$this->charge_construct(); $this->charge_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -593,7 +593,7 @@ class charge
$this->charge_construct(); $this->charge_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
@ -861,7 +861,7 @@ class charge
$this->charge_construct(); $this->charge_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$arr = $this->method[$type]; $arr = $this->method[$type];
@ -1054,7 +1054,7 @@ class charge
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -1062,7 +1062,7 @@ class charge
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -1070,7 +1070,7 @@ class charge
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -1078,7 +1078,7 @@ class charge
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -1086,7 +1086,7 @@ class charge
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -118,7 +118,7 @@ class base_checkout_plugin
// validate actual credit card details // validate actual credit card details
include_once(PATH_CORE . 'validate.inc.php'); include_once(PATH_CORE . 'validate.inc.php');
$validate = new CORE_validate; $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'] )) { if (!$validate->validate_cc( $this->billing["cc_no"], false, $this->billing["card_type"], $this->cfg['card_type'] )) {
$ret['status'] = 0; $ret['status'] = 0;
global $C_translate; global $C_translate;

View File

@ -513,8 +513,8 @@ class checkout
*/ */
function getInputDate($date) { function getInputDate($date) {
$Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT);
$Arr_date = split(DEFAULT_DATE_DIVIDER, $date); $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date);
for($i=0; $i<3; $i++) for($i=0; $i<3; $i++)
{ {
if($Arr_format[$i] == 'd') $day = $Arr_date[$i]; if($Arr_format[$i] == 'd') $day = $Arr_date[$i];
@ -844,7 +844,7 @@ class checkout
function add($VAR) { function add($VAR) {
$this->checkout_construct(); $this->checkout_construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -852,7 +852,7 @@ class checkout
function view($VAR) { function view($VAR) {
$this->checkout_construct(); $this->checkout_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -860,7 +860,7 @@ class checkout
function update($VAR) { function update($VAR) {
$this->checkout_construct(); $this->checkout_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -874,7 +874,7 @@ class checkout
function search($VAR) { function search($VAR) {
$this->checkout_construct(); $this->checkout_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -882,7 +882,7 @@ class checkout
function search_show($VAR) { function search_show($VAR) {
$this->checkout_construct(); $this->checkout_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -163,7 +163,7 @@ class CORE_RSA
} }
function rsa_decrypt($c, $d, $n) { function rsa_decrypt($c, $d, $n) {
$decryptarray = split(" ", $c); $decryptarray = explode(" ", $c);
for ($u=0; $u<count ($decryptarray); $u++) { for ($u=0; $u<count ($decryptarray); $u++) {
if ($decryptarray[$u] == "") { if ($decryptarray[$u] == "") {
array_splice($decryptarray, $u, 1); array_splice($decryptarray, $u, 1);

View File

@ -87,7 +87,7 @@ class CORE_database
* @return array * @return array
*/ */
function ignore_fields($ignore_fields,$construct_fields) { function ignore_fields($ignore_fields,$construct_fields) {
if(!is_array($construct_fields)) $fields = split(",", $construct_fields); else $fields = $construct_fields; if(!is_array($construct_fields)) $fields = explode(",", $construct_fields); else $fields = $construct_fields;
foreach($fields as $id=>$fld) { foreach($fields as $id=>$fld) {
if(in_array($fld,$ignore_fields)) { if(in_array($fld,$ignore_fields)) {
unset($fields[$id]); unset($fields[$id]);

View File

@ -30,11 +30,11 @@ function CORE_database_mass_delete($VAR, &$construct, $type)
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
{ {
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
} }
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
} }
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)

View File

@ -401,11 +401,11 @@ function search_excel($VAR, $construct, $type)
$pdf->AddPage(); $pdf->AddPage();
# Determine the number of columns and width for each one... # Determine the number of columns and width for each one...
$SetWidths = split(",",$width_list); $SetWidths = explode(",",$width_list);
$pdf->SetWidths($SetWidths); $pdf->SetWidths($SetWidths);
# Define the table heading # Define the table heading
$TableHeading = split(",",$heading_list); $TableHeading = explode(",",$heading_list);
# Define the Properties for the table heading cells: # Define the Properties for the table heading cells:
# set the font: # set the font:
@ -573,7 +573,7 @@ function search_excel($VAR, $construct, $type)
} }
$i++; $i++;
} }
$ThisRow = split("::",$CurrRow); $ThisRow = explode("::",$CurrRow);
# set the colors & fonts # set the colors & fonts
if($BackAlt) if($BackAlt)

View File

@ -342,7 +342,7 @@ class CORE_list
$auth = Array('product:top', 'account_admin:top', 'affiliate:top', 'invoice:compare'); $auth = Array('product:top', 'account_admin:top', 'affiliate:top', 'invoice:compare');
for($i=0; $i<count($auth); $i++) { for($i=0; $i<count($auth); $i++) {
if($auth[$i] == $VAR['graph']) { if($auth[$i] == $VAR['graph']) {
$m = split(':', $VAR['graph']); $m = explode(':', $VAR['graph']);
$C_method->exe_noauth($m[0], $m[1]); $C_method->exe_noauth($m[0], $m[1]);
exit; exit;
} }

View File

@ -254,14 +254,14 @@ class CORE_search
$ii=0; $ii=0;
if(ereg(" AND ", $sql)) if(ereg(" AND ", $sql))
{ {
$sql = split(" AND ",$sql); $sql = explode(" AND ",$sql);
$this_fields = count($sql); $this_fields = count($sql);
# loop # loop
for($count=0; $count < $this_fields; $count++) for($count=0; $count < $this_fields; $count++)
{ {
# do each field # do each field
$sqls = split("==",$sql[$count]); $sqls = explode("==",$sql[$count]);
$field[$count][name] = $sqls[0]; $field[$count][name] = $sqls[0];
$field[$count][value] = ereg_replace("'","",$sqls[1]); $field[$count][value] = ereg_replace("'","",$sqls[1]);
$field[$count][value] = ereg_replace("=","",$field[$count][value]); $field[$count][value] = ereg_replace("=","",$field[$count][value]);
@ -293,7 +293,7 @@ class CORE_search
$this_fields = 1; $this_fields = 1;
# do this one field # do this one field
$sqls = split("==",$sql); $sqls = explode("==",$sql);
$field[name] = $sqls[0]; $field[name] = $sqls[0];
$field[value] = ereg_replace("'","",$sqls[1]); $field[value] = ereg_replace("'","",$sqls[1]);
$field[value] = ereg_replace("=","",$field[value]); $field[value] = ereg_replace("=","",$field[value]);
@ -492,14 +492,14 @@ class CORE_search
$ii=0; $ii=0;
if(ereg(" AND ", $sql)) if(ereg(" AND ", $sql))
{ {
$sql = split(" AND ",$sql); $sql = explode(" AND ",$sql);
$this_fields = count($sql); $this_fields = count($sql);
# loop # loop
for($count=0; $count < $this_fields; $count++) for($count=0; $count < $this_fields; $count++)
{ {
# do each field # do each field
$sqls = split("==",$sql[$count]); $sqls = explode("==",$sql[$count]);
$field[$count][name] = $sqls[0]; $field[$count][name] = $sqls[0];
$field[$count][value] = ereg_replace("'","",$sqls[1]); $field[$count][value] = ereg_replace("'","",$sqls[1]);
$field[$count][value] = ereg_replace("=","",$field[$count][value]); $field[$count][value] = ereg_replace("=","",$field[$count][value]);
@ -530,7 +530,7 @@ class CORE_search
$this_fields = 1; $this_fields = 1;
# do this one field # do this one field
$sqls = split("==",$sql); $sqls = explode("==",$sql);
$field[name] = $sqls[0]; $field[name] = $sqls[0];
$field[value] = ereg_replace("'","",$sqls[1]); $field[value] = ereg_replace("'","",$sqls[1]);
$field[value] = ereg_replace("=","",$field[value]); $field[value] = ereg_replace("=","",$field[value]);

View File

@ -79,8 +79,8 @@ class CORE_validate
if($date == '0' || $date == '') if($date == '0' || $date == '')
return ''; return '';
$Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT);
$Arr_date = split(DEFAULT_DATE_DIVIDER, $date); $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date);
for($i=0; $i<3; $i++) for($i=0; $i<3; $i++)
{ {
@ -104,8 +104,8 @@ class CORE_validate
if($date == '0' || $date == '') if($date == '0' || $date == '')
return ''; return '';
$Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT);
$Arr_date = split(DEFAULT_DATE_DIVIDER, $date); $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date);
for($i=0; $i<3; $i++) { for($i=0; $i<3; $i++) {
if($Arr_format[$i] == 'd') if(!empty($Arr_date[$i])) $day = $Arr_date[$i]; if($Arr_format[$i] == 'd') if(!empty($Arr_date[$i])) $day = $Arr_date[$i];
@ -357,8 +357,8 @@ class CORE_validate
return false; return false;
} }
$Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT);
$Arr_date = split(DEFAULT_DATE_DIVIDER, $data); $Arr_date = explode(DEFAULT_DATE_DIVIDER, $data);
if(!gettype($Arr_date) == 'array' || count($Arr_date) != 3) if(!gettype($Arr_date) == 'array' || count($Arr_date) != 3)
{ {
@ -589,7 +589,7 @@ class CORE_validate
} }
else if ($card_type == "mc" || !$card_type) { else if ($card_type == "mc" || !$card_type) {
// MC // MC
if ( ereg("^5[1-5][0-9]{14}$", $ccNum) ) { if ( preg_match("/^5[1-5][0-9]{14}$/", $ccNum) ) {
$v_ccNum = true; $v_ccNum = true;
$c_type = 'mc'; $c_type = 'mc';
} }
@ -737,8 +737,8 @@ class CORE_validate
function DateToEpoch($format,$date) function DateToEpoch($format,$date)
{ {
$Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT);
$Arr_date = split(DEFAULT_DATE_DIVIDER, $date); $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date);
for($i=0; $i<3; $i++) for($i=0; $i<3; $i++)
{ {
if($Arr_format[$i] == 'd') $day = $Arr_date[$i]; if($Arr_format[$i] == 'd') $day = $Arr_date[$i];

View File

@ -45,7 +45,7 @@ class CORE_weblog
} }
else else
{ {
@$pagearr = split(':', $VAR['_page']); @$pagearr = explode(':', $VAR['_page']);
@$page = $pagearr["1"]; @$page = $pagearr["1"];
} }

View File

@ -52,7 +52,7 @@ class country
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class country
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class country
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class country
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class country
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class country
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class currency
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class currency
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class currency
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -97,7 +97,7 @@ class currency
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -108,7 +108,7 @@ class currency
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -120,7 +120,7 @@ class currency
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -149,7 +149,7 @@ class db_mapping
global $C_translate; global $C_translate;
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$arr = $this->method["$type"]; $arr = $this->method["$type"];
@ -537,7 +537,7 @@ class db_mapping
{ {
$this->construct(); $this->construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $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']; $fld = $MAP_this->map['account_fields']['first_name']['map_field'];
@$first_name = $result->fields[$fld]; @$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'] ) if ( !$MAP_this->map['account_fields']['last_name']['map_field'] )
{ {

View File

@ -383,7 +383,7 @@ class discount
$VAR['discount_avail_account_id'] = SESS_ACCOUNT; $VAR['discount_avail_account_id'] = SESS_ACCOUNT;
$this->discount_construct(); $this->discount_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -395,7 +395,7 @@ class discount
} }
$this->discount_construct(); $this->discount_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -403,7 +403,7 @@ class discount
function add($VAR) { function add($VAR) {
$this->discount_construct(); $this->discount_construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -411,7 +411,7 @@ class discount
function view($VAR) { function view($VAR) {
$this->discount_construct(); $this->discount_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -419,7 +419,7 @@ class discount
function update($VAR) { function update($VAR) {
$this->discount_construct(); $this->discount_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -433,7 +433,7 @@ class discount
function search_form($VAR) { function search_form($VAR) {
$this->discount_construct(); $this->discount_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -441,7 +441,7 @@ class discount
function search($VAR) { function search($VAR) {
$this->discount_construct(); $this->discount_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -449,7 +449,7 @@ class discount
function search_show($VAR) { function search_show($VAR) {
$this->discount_construct(); $this->discount_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$dbc = new CORE_database; $dbc = new CORE_database;
$smart = $dbc->search_show($VAR, $this, $type); $smart = $dbc->search_show($VAR, $this, $type);
$db = &DB(); $db = &DB();

View File

@ -65,7 +65,7 @@ class email_log
function view($VAR) { function view($VAR) {
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -79,7 +79,7 @@ class email_log
function search_form($VAR) { function search_form($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -87,7 +87,7 @@ class email_log
function search($VAR) { function search($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -95,7 +95,7 @@ class email_log
function search_show($VAR) { function search_show($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -116,7 +116,7 @@ class email_queue
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -127,7 +127,7 @@ class email_queue
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -138,7 +138,7 @@ class email_queue
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -158,7 +158,7 @@ class email_queue
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -169,7 +169,7 @@ class email_queue
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -181,7 +181,7 @@ class email_queue
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -59,7 +59,7 @@ class email_template
{ {
$this->construct(); $this->construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -71,7 +71,7 @@ class email_template
{ {
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -83,7 +83,7 @@ class email_template
{ {
$this->construct(); $this->construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -108,7 +108,7 @@ class email_template
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -120,7 +120,7 @@ class email_template
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -133,7 +133,7 @@ class email_template
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -240,10 +240,10 @@ class email_template
$E['from_email'] = $setup_email->fields['from_email']; $E['from_email'] = $setup_email->fields['from_email'];
if($setup_email->fields['cc_list'] != '') 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'] != '') if($setup_email->fields['bcc_list'] != '')
$E['bcc_list'] = split(',', $setup_email->fields['bcc_list']); $E['bcc_list'] = explode(',', $setup_email->fields['bcc_list']);

View File

@ -52,7 +52,7 @@ class email_template_translate
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class email_template_translate
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class email_template_translate
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class email_template_translate
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class email_template_translate
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class email_template_translate
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -208,7 +208,7 @@ class faq
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$id = $db->add($VAR, $this, $type); $id = $db->add($VAR, $this, $type);
@ -237,7 +237,7 @@ class faq
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -248,7 +248,7 @@ class faq
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -274,7 +274,7 @@ class faq
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -285,7 +285,7 @@ class faq
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -297,7 +297,7 @@ class faq
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -122,7 +122,7 @@ class faq_category
$this->faq_category_construct(); $this->faq_category_construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -135,7 +135,7 @@ class faq_category
$this->faq_category_construct(); $this->faq_category_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -148,7 +148,7 @@ class faq_category
$this->faq_category_construct(); $this->faq_category_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -172,7 +172,7 @@ class faq_category
$this->faq_category_construct(); $this->faq_category_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -185,7 +185,7 @@ class faq_category
$this->faq_category_construct(); $this->faq_category_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -199,7 +199,7 @@ class faq_category
$this->faq_category_construct(); $this->faq_category_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -53,7 +53,7 @@ class faq_translate
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -64,7 +64,7 @@ class faq_translate
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -75,7 +75,7 @@ class faq_translate
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -95,7 +95,7 @@ class faq_translate
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -106,7 +106,7 @@ class faq_translate
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -118,7 +118,7 @@ class faq_translate
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -344,7 +344,7 @@ class file
### Create the record ### Create the record
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$id = $db->add($VAR, $this, $type); $id = $db->add($VAR, $this, $type);
@ -365,7 +365,7 @@ class file
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -376,7 +376,7 @@ class file
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -395,11 +395,11 @@ class file
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
{ {
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
} }
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
} }
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
@ -461,7 +461,7 @@ class file
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -472,7 +472,7 @@ class file
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -484,7 +484,7 @@ class file
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -50,7 +50,7 @@ class file_category
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -61,7 +61,7 @@ class file_category
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -72,7 +72,7 @@ class file_category
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -92,7 +92,7 @@ class file_category
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -103,7 +103,7 @@ class file_category
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -115,7 +115,7 @@ class file_category
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -51,7 +51,7 @@ class group
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$group_id = $db->add($VAR, $this, $type); $group_id = $db->add($VAR, $this, $type);
@ -88,7 +88,7 @@ class group
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -102,9 +102,9 @@ class group
global $C_debug, $C_auth; global $C_debug, $C_auth;
$id_list = ''; $id_list = '';
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
{ {
@ -127,7 +127,7 @@ class group
} }
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -146,9 +146,9 @@ class group
global $C_debug; global $C_debug;
$id_list = ''; $id_list = '';
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
{ {
@ -181,7 +181,7 @@ class group
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -192,7 +192,7 @@ class group
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -204,7 +204,7 @@ class group
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -50,7 +50,7 @@ class host_registrar_plugin
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -61,7 +61,7 @@ class host_registrar_plugin
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -72,7 +72,7 @@ class host_registrar_plugin
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -92,7 +92,7 @@ class host_registrar_plugin
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }

View File

@ -213,7 +213,7 @@ class host_server
$VAR['host_server_keycode'] = md5(rand(99,999) . microtime()); $VAR['host_server_keycode'] = md5(rand(99,999) . microtime());
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -226,7 +226,7 @@ class host_server
global $smarty; global $smarty;
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$dx = new CORE_database; $dx = new CORE_database;
$rs = $dx->view($VAR, $this, $type); $rs = $dx->view($VAR, $this, $type);
@ -259,7 +259,7 @@ class host_server
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -279,7 +279,7 @@ class host_server
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -290,7 +290,7 @@ class host_server
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -302,7 +302,7 @@ class host_server
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -356,7 +356,7 @@ class host_tld
{ {
$this->constructor(); $this->constructor();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -365,7 +365,7 @@ class host_tld
{ {
$this->constructor(); $this->constructor();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -374,7 +374,7 @@ class host_tld
{ {
$this->constructor(); $this->constructor();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -390,7 +390,7 @@ class host_tld
{ {
$this->constructor(); $this->constructor();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -399,7 +399,7 @@ class host_tld
{ {
$this->constructor(); $this->constructor();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -408,7 +408,7 @@ class host_tld
{ {
$this->constructor(); $this->constructor();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -191,7 +191,7 @@ class htaccess
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$id = $db->add($VAR, $this, $type); $id = $db->add($VAR, $this, $type);
@ -236,7 +236,7 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php");
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -247,7 +247,7 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php");
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$result = $db->update($VAR, $this, $type); $result = $db->update($VAR, $this, $type);
@ -295,9 +295,9 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php");
### Get the array ### Get the array
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
$id = split(',', $VAR["delete_id"]); $id = explode(',', $VAR["delete_id"]);
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
$id = split(',', $VAR["id"]); $id = explode(',', $VAR["id"]);
### Load class for deleting sub-dirs. ### Load class for deleting sub-dirs.
include_once ( PATH_MODULES .'htaccess_dir/htaccess_dir.inc.php' ); 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) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -353,7 +353,7 @@ require_once(PATH_MODULES. "htaccess/mod_auth_remote.inc.php");
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -145,7 +145,7 @@ class htaccess_dir
### Create the record/verify fields ### Create the record/verify fields
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$dir_id = $db->add($VAR, $this, $type); $dir_id = $db->add($VAR, $this, $type);
@ -304,7 +304,7 @@ class htaccess_dir
### Update the db record ### Update the db record
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$dir = $db->update($VAR, $this, $type); $dir = $db->update($VAR, $this, $type);
@ -330,9 +330,9 @@ class htaccess_dir
{ {
### Get the array ### Get the array
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
$id = split(',', $VAR["delete_id"]); $id = explode(',', $VAR["delete_id"]);
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
$id = split(',', $VAR["id"]); $id = explode(',', $VAR["id"]);
### Loop: ### Loop:
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
@ -395,7 +395,7 @@ class htaccess_dir
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -406,7 +406,7 @@ class htaccess_dir
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -418,7 +418,7 @@ class htaccess_dir
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class htaccess_exclude
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class htaccess_exclude
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class htaccess_exclude
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class htaccess_exclude
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class htaccess_exclude
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class htaccess_exclude
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -2969,7 +2969,7 @@ class invoice
if(empty($invoice) || eregi(",", $invoice)) { if(empty($invoice) || eregi(",", $invoice)) {
$id_list=''; $id_list='';
if(!empty($invoice)) { if(!empty($invoice)) {
$id = split(',', $invoice); $id = explode(',', $invoice);
for($i=0; $i<count($id); $i++) { for($i=0; $i<count($id); $i++) {
if($id[$i] != '') { if($id[$i] != '') {
if($i == 0) { if($i == 0) {
@ -3290,7 +3290,7 @@ class invoice
global $C_translate, $C_list; global $C_translate, $C_list;
$this->invoice_construct(); $this->invoice_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
@ -3317,7 +3317,7 @@ class invoice
if(isset($VAR["id"])) if(isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
{ {
if($id[$i] != '') if($id[$i] != '')
@ -3650,7 +3650,7 @@ class invoice
{ {
$this->invoice_construct(); $this->invoice_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -3665,9 +3665,9 @@ class invoice
### Get the array ### Get the array
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
$id = split(',', $VAR["delete_id"]); $id = explode(',', $VAR["delete_id"]);
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
$id = split(',', $VAR["id"]); $id = explode(',', $VAR["id"]);
### Load the service module ### Load the service module
include_once(PATH_MODULES.'service/service.inc.php'); include_once(PATH_MODULES.'service/service.inc.php');
@ -3712,7 +3712,7 @@ class invoice
{ {
$this->invoice_construct(); $this->invoice_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -3723,7 +3723,7 @@ class invoice
{ {
$this->invoice_construct(); $this->invoice_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
@ -4068,7 +4068,7 @@ class invoice
{ {
$this->invoice_construct(); $this->invoice_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$arr = $this->method[$type]; $arr = $this->method[$type];
@ -4261,7 +4261,7 @@ class invoice
$VAR['invoice_account_id'] = SESS_ACCOUNT; $VAR['invoice_account_id'] = SESS_ACCOUNT;
$this->invoice_construct(); $this->invoice_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -4273,7 +4273,7 @@ class invoice
if(!SESS_LOGGED) return false; if(!SESS_LOGGED) return false;
$this->invoice_construct(); $this->invoice_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -4288,7 +4288,7 @@ class invoice
// verify the account_id for this order is the SESS_ACCOUNT // verify the account_id for this order is the SESS_ACCOUNT
if ( $C_auth->auth_method_by_name('invoice','view') == false) if ( $C_auth->auth_method_by_name('invoice','view') == false)
{ {
$id = split(',',$VAR['id']); $id = explode(',',$VAR['id']);
$db = &DB(); $db = &DB();
$q = "SELECT account_id FROM ".AGILE_DB_PREFIX."invoice WHERE $q = "SELECT account_id FROM ".AGILE_DB_PREFIX."invoice WHERE
id = ".$db->qstr($id[0])." AND id = ".$db->qstr($id[0])." AND
@ -4317,7 +4317,7 @@ class invoice
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -4325,7 +4325,7 @@ class invoice
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->pdf_invoice($VAR, $this, $type); $export->pdf_invoice($VAR, $this, $type);
} }
@ -4333,7 +4333,7 @@ class invoice
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -4341,7 +4341,7 @@ class invoice
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -4349,7 +4349,7 @@ class invoice
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class invoice_item
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class invoice_item
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class invoice_item
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class invoice_item
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class invoice_item
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class invoice_item
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class invoice_memo
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class invoice_memo
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class invoice_memo
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class invoice_memo
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class invoice_memo
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class invoice_memo
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -93,7 +93,7 @@ class log_error
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -104,7 +104,7 @@ class log_error
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -115,7 +115,7 @@ class log_error
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -135,7 +135,7 @@ class log_error
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -146,7 +146,7 @@ class log_error
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -158,7 +158,7 @@ class log_error
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -95,7 +95,7 @@ class login_log
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -106,7 +106,7 @@ class login_log
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class login_log
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -137,7 +137,7 @@ class login_log
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -148,7 +148,7 @@ class login_log
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -160,7 +160,7 @@ class login_log
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -987,7 +987,7 @@ function dev_construct_php($VAR)
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -1000,7 +1000,7 @@ function dev_construct_php($VAR)
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -1013,7 +1013,7 @@ function dev_construct_php($VAR)
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -1037,7 +1037,7 @@ function dev_construct_php($VAR)
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -1050,7 +1050,7 @@ function dev_construct_php($VAR)
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -1064,7 +1064,7 @@ function dev_construct_php($VAR)
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -1108,7 +1108,7 @@ function dev_construct_php($VAR)
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -1116,7 +1116,7 @@ function dev_construct_php($VAR)
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -1124,7 +1124,7 @@ function dev_construct_php($VAR)
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -1132,7 +1132,7 @@ function dev_construct_php($VAR)
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -1140,7 +1140,7 @@ function dev_construct_php($VAR)
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -288,7 +288,7 @@ class module
$post= new CORE_post; $post= new CORE_post;
$result = $post->post_data($host, $form, $pass); $result = $post->post_data($host, $form, $pass);
$pat = "\n"; $pat = "\n";
$arr = split($pat, $result); $arr = explode($pat, $result);
$ret=''; $ret='';
for($i=0; $i<count($arr); $i++) for($i=0; $i<count($arr); $i++)
@ -304,7 +304,7 @@ class module
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -315,7 +315,7 @@ class module
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -326,7 +326,7 @@ class module
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -340,9 +340,9 @@ class module
$core = $this->core_mods; $core = $this->core_mods;
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
{ {
@ -433,7 +433,7 @@ class module
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -444,7 +444,7 @@ class module
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -456,7 +456,7 @@ class module
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -556,7 +556,7 @@ class module
if($dependancy) if($dependancy)
{ {
if(ereg(',', $dependancy)) if(ereg(',', $dependancy))
$depend = split(',', $dependancy); $depend = explode(',', $dependancy);
else else
$depend[0] = $dependancy; $depend[0] = $dependancy;
@ -685,7 +685,7 @@ class module
if(ereg('[(]',$t_s)) if(ereg('[(]',$t_s))
{ {
$ts = split('[(]',$t_s); $ts = explode('[(]',$t_s);
$type = $ts[0]; $type = $ts[0];
$size = ereg_replace('[)]', '', $ts[1]); $size = ereg_replace('[)]', '', $ts[1]);
$flds[] = Array($field, $type, $size); $flds[] = Array($field, $type, $size);
@ -966,7 +966,7 @@ class module
$arr_sub = $this->install["install"]["module_properties"]["sub_modules"]; $arr_sub = $this->install["install"]["module_properties"]["sub_modules"];
if(ereg(',', $arr_sub)) if(ereg(',', $arr_sub))
$arr_s = split(',', $arr_sub); $arr_s = explode(',', $arr_sub);
else else
$arr_s[] = $arr_sub; $arr_s[] = $arr_sub;
@ -1166,7 +1166,7 @@ class module
$t_s = $arr_field["$key"]["type"]; $t_s = $arr_field["$key"]["type"];
if(ereg('[(]',$t_s)) if(ereg('[(]',$t_s))
{ {
$ts = split('[(]',$t_s); $ts = explode('[(]',$t_s);
$type = $ts[0]; $type = $ts[0];
$size = ereg_replace(')', '', $ts[1]); $size = ereg_replace(')', '', $ts[1]);
$flds[] = Array($field, $type, $size); $flds[] = Array($field, $type, $size);

View File

@ -52,7 +52,7 @@ class module_method
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class module_method
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class module_method
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class module_method
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class module_method
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class module_method
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -129,7 +129,7 @@ class module_method
function view_methods($VAR) function view_methods($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$this->this_search_show($VAR, $this, $type); $this->this_search_show($VAR, $this, $type);
} }
@ -325,7 +325,7 @@ class module_method
if(isset($VAR['id']) && $VAR['id'] != '') if(isset($VAR['id']) && $VAR['id'] != '')
{ {
$arr = split(',', $VAR['id']); $arr = explode(',', $VAR['id']);
} }
else { return;} else { return;}

View File

@ -171,7 +171,7 @@ class net_term
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -182,7 +182,7 @@ class net_term
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -193,7 +193,7 @@ class net_term
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -213,7 +213,7 @@ class net_term
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -224,7 +224,7 @@ class net_term
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -236,7 +236,7 @@ class net_term
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -53,7 +53,7 @@ class newsletter
{ {
$this->newsletter_construct(); $this->newsletter_construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -65,7 +65,7 @@ class newsletter
{ {
$this->newsletter_construct(); $this->newsletter_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -78,7 +78,7 @@ class newsletter
{ {
$this->newsletter_construct(); $this->newsletter_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -90,7 +90,7 @@ class newsletter
{ {
$this->newsletter_construct(); $this->newsletter_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -112,7 +112,7 @@ class newsletter
{ {
$this->newsletter_construct(); $this->newsletter_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -124,7 +124,7 @@ class newsletter
{ {
$this->newsletter_construct(); $this->newsletter_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -137,7 +137,7 @@ class newsletter
{ {
$this->newsletter_construct(); $this->newsletter_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -179,10 +179,10 @@ class newsletter
$E['from_email'] = $setup_email->fields['from_email']; $E['from_email'] = $setup_email->fields['from_email'];
if($setup_email->fields['cc_list'] != '') 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'] != '') if($setup_email->fields['bcc_list'] != '')
$E['bcc_list'] = split(',', $setup_email->fields['bcc_list']); $E['bcc_list'] = explode(',', $setup_email->fields['bcc_list']);
##################################################### #####################################################

View File

@ -92,7 +92,7 @@ class newsletter_subscriber
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$id = $db->add($VAR, $this, $type); $id = $db->add($VAR, $this, $type);
@ -112,7 +112,7 @@ class newsletter_subscriber
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
@ -134,7 +134,7 @@ class newsletter_subscriber
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
if($db->update($VAR, $this, $type)) if($db->update($VAR, $this, $type))
{ {
@ -161,7 +161,7 @@ class newsletter_subscriber
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -172,7 +172,7 @@ class newsletter_subscriber
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
@ -456,7 +456,7 @@ class newsletter_subscriber
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$arr = $this->method[$type]; $arr = $this->method[$type];
@ -653,7 +653,7 @@ class newsletter_subscriber
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -661,7 +661,7 @@ class newsletter_subscriber
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -669,7 +669,7 @@ class newsletter_subscriber
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -677,7 +677,7 @@ class newsletter_subscriber
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -685,7 +685,7 @@ class newsletter_subscriber
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -600,7 +600,7 @@ class product
$this->product_construct(); $this->product_construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$result = $db->add($VAR, $this, $type); $result = $db->add($VAR, $this, $type);
@ -623,7 +623,7 @@ class product
function view($VAR) { function view($VAR) {
$this->product_construct(); $this->product_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -653,7 +653,7 @@ class product
$this->product_construct(); $this->product_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$result = $db->update($VAR, $this, $type); $result = $db->update($VAR, $this, $type);
@ -680,7 +680,7 @@ class product
function search_form($VAR) { function search_form($VAR) {
$this->product_construct(); $this->product_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -689,7 +689,7 @@ class product
{ {
$this->product_construct(); $this->product_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -697,7 +697,7 @@ class product
function search_show($VAR) { function search_show($VAR) {
$this->product_construct(); $this->product_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class product_attr
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class product_attr
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class product_attr
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class product_attr
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class product_attr
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class product_attr
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -487,7 +487,7 @@ class product_cat
## Attempt to add the record: ## Attempt to add the record:
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$result = $db->add($VAR, $this, $type); $result = $db->add($VAR, $this, $type);
@ -515,7 +515,7 @@ class product_cat
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -545,7 +545,7 @@ class product_cat
} }
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$result = $db->update($VAR, $this, $type); $result = $db->update($VAR, $this, $type);
@ -581,7 +581,7 @@ class product_cat
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -592,7 +592,7 @@ class product_cat
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -604,7 +604,7 @@ class product_cat
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class product_cat_translate
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class product_cat_translate
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class product_cat_translate
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class product_cat_translate
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class product_cat_translate
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class product_cat_translate
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -93,7 +93,7 @@ class product_img
} }
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$result = $db->add($VAR, $this, $type); $result = $db->add($VAR, $this, $type);
@ -111,7 +111,7 @@ class product_img
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -127,11 +127,11 @@ class product_img
### Delete any saved images: ### Delete any saved images:
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
{ {
$id = split(',',$VAR["delete_id"]); $id = explode(',',$VAR["delete_id"]);
} }
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
} }
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
@ -174,7 +174,7 @@ class product_img
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -186,7 +186,7 @@ class product_img
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class product_translate
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class product_translate
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class product_translate
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class product_translate
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class product_translate
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class product_translate
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -289,7 +289,7 @@ class radius
{ {
$this->construct(); $this->construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -301,7 +301,7 @@ class radius
{ {
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -313,7 +313,7 @@ class radius
{ {
$this->construct(); $this->construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -335,7 +335,7 @@ class radius
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -347,7 +347,7 @@ class radius
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -359,7 +359,7 @@ class radius
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -377,7 +377,7 @@ class radius
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -385,7 +385,7 @@ class radius
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -393,7 +393,7 @@ class radius
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -401,7 +401,7 @@ class radius
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -409,7 +409,7 @@ class radius
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -287,8 +287,8 @@ class report
if($date == '0' || $date == '') if($date == '0' || $date == '')
return ''; return '';
$Arr_format = split(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT); $Arr_format = explode(DEFAULT_DATE_DIVIDER, UNIX_DATE_FORMAT);
$Arr_date = split(DEFAULT_DATE_DIVIDER, $date); $Arr_date = explode(DEFAULT_DATE_DIVIDER, $date);
for($i=0; $i<3; $i++) for($i=0; $i<3; $i++)
{ {

View File

@ -1160,7 +1160,7 @@ class service
### loop through the field list to validate the required fields ### loop through the field list to validate the required fields
$type = 'add'; $type = 'add';
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$arr = $this->method["$type"]; $arr = $this->method["$type"];
include_once(PATH_CORE . 'validate.inc.php'); include_once(PATH_CORE . 'validate.inc.php');
$validate = new CORE_validate; $validate = new CORE_validate;
@ -1477,7 +1477,7 @@ class service
global $smarty,$C_auth; global $smarty,$C_auth;
$this->construct(); $this->construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$smart = $db->view($VAR, $this, $type); $smart = $db->view($VAR, $this, $type);
@ -1647,7 +1647,7 @@ class service
# update record # update record
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
@ -1665,9 +1665,9 @@ class service
### Get the array ### Get the array
if(isset($VAR["delete_id"])) if(isset($VAR["delete_id"]))
$id = split(',', $VAR["delete_id"]); $id = explode(',', $VAR["delete_id"]);
elseif (isset($VAR["id"])) elseif (isset($VAR["id"]))
$id = split(',', $VAR["id"]); $id = explode(',', $VAR["id"]);
### Loop: ### Loop:
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
@ -1721,7 +1721,7 @@ class service
function search_form($VAR) { function search_form($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -1729,7 +1729,7 @@ class service
function search($VAR) { function search($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -1737,7 +1737,7 @@ class service
function search_show($VAR) { function search_show($VAR) {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$dba = new CORE_database; $dba = new CORE_database;
$smart = $dba->search_show($VAR, $this, $type); $smart = $dba->search_show($VAR, $this, $type);
@ -1799,7 +1799,7 @@ class service
$VAR['service_account_id'] = SESS_ACCOUNT; $VAR['service_account_id'] = SESS_ACCOUNT;
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -1811,7 +1811,7 @@ class service
} }
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -1843,7 +1843,7 @@ class service
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -1854,21 +1854,21 @@ class service
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class service_memo
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class service_memo
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class service_memo
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class service_memo
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class service_memo
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class service_memo
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -93,7 +93,7 @@ class session
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -113,7 +113,7 @@ class session
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -124,7 +124,7 @@ class session
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -136,7 +136,7 @@ class session
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -51,7 +51,7 @@ class setup
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class setup
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class setup
$VAR['setup_nonssl_url'] .= '/'; $VAR['setup_nonssl_url'] .= '/';
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$rs = $db->update($VAR, $this, $type); $rs = $db->update($VAR, $this, $type);

View File

@ -52,7 +52,7 @@ class setup_email
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class setup_email
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class setup_email
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class setup_email
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class setup_email
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class setup_email
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -39,7 +39,7 @@ class setup_invoice
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -47,7 +47,7 @@ class setup_invoice
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -55,7 +55,7 @@ class setup_invoice
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class setup_invoice
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$rs = $db->update($VAR, $this, $type); $rs = $db->update($VAR, $this, $type);
} }

View File

@ -232,10 +232,10 @@ class staff
} }
if($setup_email->fields['cc_list'] != '') 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'] != '') 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 ### Call the mail() or smtp() function to send
@ -275,7 +275,7 @@ class staff
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -286,7 +286,7 @@ class staff
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -297,7 +297,7 @@ class staff
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -317,7 +317,7 @@ class staff
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -328,7 +328,7 @@ class staff
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -340,7 +340,7 @@ class staff
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class staff_department
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class staff_department
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class staff_department
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class staff_department
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class staff_department
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class staff_department
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -344,7 +344,7 @@ class static_page
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -355,7 +355,7 @@ class static_page
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -366,7 +366,7 @@ class static_page
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -392,7 +392,7 @@ class static_page
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -403,7 +403,7 @@ class static_page
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -415,7 +415,7 @@ class static_page
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -114,7 +114,7 @@ class static_page_category
$this->static_page_category_construct(); $this->static_page_category_construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -127,7 +127,7 @@ class static_page_category
$this->static_page_category_construct(); $this->static_page_category_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -140,7 +140,7 @@ class static_page_category
$this->static_page_category_construct(); $this->static_page_category_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -164,7 +164,7 @@ class static_page_category
$this->static_page_category_construct(); $this->static_page_category_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -177,7 +177,7 @@ class static_page_category
$this->static_page_category_construct(); $this->static_page_category_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -191,7 +191,7 @@ class static_page_category
$this->static_page_category_construct(); $this->static_page_category_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class static_page_translate
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class static_page_translate
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class static_page_translate
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class static_page_translate
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class static_page_translate
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class static_page_translate
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class static_relation
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class static_relation
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class static_relation
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -97,7 +97,7 @@ class static_relation
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -108,7 +108,7 @@ class static_relation
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -120,7 +120,7 @@ class static_relation
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class static_var
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class static_var
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class static_var
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -100,7 +100,7 @@ class static_var
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -111,7 +111,7 @@ class static_var
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -123,7 +123,7 @@ class static_var
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -233,7 +233,7 @@ class task
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -244,7 +244,7 @@ class task
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -255,7 +255,7 @@ class task
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -275,7 +275,7 @@ class task
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -286,7 +286,7 @@ class task
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -298,7 +298,7 @@ class task
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -52,7 +52,7 @@ class task_log
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class task_log
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class task_log
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class task_log
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class task_log
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class task_log
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -120,7 +120,7 @@ class tax
function add($VAR) { function add($VAR) {
$this->tax_construct(); $this->tax_construct();
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -128,7 +128,7 @@ class tax
function view($VAR) { function view($VAR) {
$this->tax_construct(); $this->tax_construct();
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -136,7 +136,7 @@ class tax
function update($VAR) { function update($VAR) {
$this->tax_construct(); $this->tax_construct();
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -150,7 +150,7 @@ class tax
function search_form($VAR) { function search_form($VAR) {
$this->tax_construct(); $this->tax_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -158,7 +158,7 @@ class tax
function search($VAR) { function search($VAR) {
$this->tax_construct(); $this->tax_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -166,7 +166,7 @@ class tax
function search_show($VAR) { function search_show($VAR) {
$this->tax_construct(); $this->tax_construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -799,7 +799,7 @@ class ticket
$VAR['ticket_status'] = "0"; $VAR['ticket_status'] = "0";
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$this->record_id = $db->add($VAR, $this, $type); $this->record_id = $db->add($VAR, $this, $type);
@ -904,14 +904,14 @@ class ticket
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
# set the field list for this method: # set the field list for this method:
$arr = $this->method[$type]; $arr = $this->method[$type];
if(isset($VAR["id"])) if(isset($VAR["id"]))
{ {
$id = split(',',$VAR["id"]); $id = explode(',',$VAR["id"]);
for($i=0; $i<count($id); $i++) for($i=0; $i<count($id); $i++)
{ {
if($id[$i] != '') if($id[$i] != '')
@ -1129,7 +1129,7 @@ class ticket
@$old_ticket_department_id = $rs->fields[0]; @$old_ticket_department_id = $rs->fields[0];
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
@ -1223,7 +1223,7 @@ class ticket
{ {
$this->construct(); $this->construct();
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -1258,7 +1258,7 @@ class ticket
} }
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = &DB(); $db = &DB();
@ -1583,7 +1583,7 @@ class ticket
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
# set the field list for this method: # set the field list for this method:
$arr = $this->method[$type]; $arr = $this->method[$type];

View File

@ -52,7 +52,7 @@ class ticket_department
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -63,7 +63,7 @@ class ticket_department
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -74,7 +74,7 @@ class ticket_department
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -94,7 +94,7 @@ class ticket_department
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -105,7 +105,7 @@ class ticket_department
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -117,7 +117,7 @@ class ticket_department
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -92,7 +92,7 @@ class ticket_message
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -103,7 +103,7 @@ class ticket_message
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -114,7 +114,7 @@ class ticket_message
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -134,7 +134,7 @@ class ticket_message
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -145,7 +145,7 @@ class ticket_message
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -157,7 +157,7 @@ class ticket_message
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -1764,7 +1764,7 @@ class voip
} else if ($r['type'] == 'regular' || $r['type'] == 'default') { } else if ($r['type'] == 'regular' || $r['type'] == 'default') {
#echo "src=".$rs1->fields['src']."\n"; #echo "src=".$rs1->fields['src']."\n";
#echo "dst=".$rs1->fields['dst']."\n"; #echo "dst=".$rs1->fields['dst']."\n";
$pats = split(";", $r['pattern']); $pats = explode(";", $r['pattern']);
$search = $rs1->fields['dst']; $search = $rs1->fields['dst'];
foreach ($pats as $pattern) { foreach ($pats as $pattern) {
#echo "Matching against: $pattern\n"; #echo "Matching against: $pattern\n";

View File

@ -50,7 +50,7 @@ class voip_blacklist
if(SESS_LOGGED) { if(SESS_LOGGED) {
$VAR['voip_blacklist_account_id'] = SESS_ACCOUNT; $VAR['voip_blacklist_account_id'] = SESS_ACCOUNT;
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} else { } else {
@ -161,7 +161,7 @@ class voip_blacklist
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -169,7 +169,7 @@ class voip_blacklist
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -177,7 +177,7 @@ class voip_blacklist
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -191,7 +191,7 @@ class voip_blacklist
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -199,7 +199,7 @@ class voip_blacklist
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -207,7 +207,7 @@ class voip_blacklist
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -51,7 +51,7 @@ class voip_cdr
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -62,7 +62,7 @@ class voip_cdr
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -73,7 +73,7 @@ class voip_cdr
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -93,7 +93,7 @@ class voip_cdr
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -104,7 +104,7 @@ class voip_cdr
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -116,7 +116,7 @@ class voip_cdr
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -133,7 +133,7 @@ class voip_cdr
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -141,7 +141,7 @@ class voip_cdr
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -149,7 +149,7 @@ class voip_cdr
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -157,7 +157,7 @@ class voip_cdr
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -165,7 +165,7 @@ class voip_cdr
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -91,7 +91,7 @@ class voip_did
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -103,7 +103,7 @@ class voip_did
{ {
global $smarty; global $smarty;
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$smart = $db->view($VAR, $this, $type); $smart = $db->view($VAR, $this, $type);
@ -134,7 +134,7 @@ class voip_did
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
@ -191,7 +191,7 @@ class voip_did
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -202,7 +202,7 @@ class voip_did
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -214,7 +214,7 @@ class voip_did
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -231,7 +231,7 @@ class voip_did
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -239,7 +239,7 @@ class voip_did
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -247,7 +247,7 @@ class voip_did
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -255,7 +255,7 @@ class voip_did
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -193,7 +193,7 @@ class voip_did_plugin
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -204,7 +204,7 @@ class voip_did_plugin
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -215,7 +215,7 @@ class voip_did_plugin
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -235,7 +235,7 @@ class voip_did_plugin
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -246,7 +246,7 @@ class voip_did_plugin
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -258,7 +258,7 @@ class voip_did_plugin
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -91,7 +91,7 @@ class voip_fax
unset($db); unset($db);
$VAR['voip_fax_account_id'] = SESS_ACCOUNT; $VAR['voip_fax_account_id'] = SESS_ACCOUNT;
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} else { } else {
@ -130,7 +130,7 @@ class voip_fax
function add($VAR) { function add($VAR) {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -140,7 +140,7 @@ class voip_fax
$this->associated_DELETE[] = Array( 'table' => 'voip_fax_data', 'field' => 'fax_id'); $this->associated_DELETE[] = Array( 'table' => 'voip_fax_data', 'field' => 'fax_id');
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -152,14 +152,14 @@ class voip_fax
function search_form($VAR) { function search_form($VAR) {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
function search($VAR) { function search($VAR) {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -184,7 +184,7 @@ class voip_fax
unset($db); unset($db);
} }
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -143,7 +143,7 @@ class voip_pool
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -154,7 +154,7 @@ class voip_pool
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -165,7 +165,7 @@ class voip_pool
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -185,7 +185,7 @@ class voip_pool
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -196,7 +196,7 @@ class voip_pool
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -208,7 +208,7 @@ class voip_pool
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -225,7 +225,7 @@ class voip_pool
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -233,7 +233,7 @@ class voip_pool
else if ($VAR["format"] == "pdf") else if ($VAR["format"] == "pdf")
{ {
$type = "export_pdf"; $type = "export_pdf";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_pdf($VAR, $this, $type); $export->search_pdf($VAR, $this, $type);
} }
@ -241,7 +241,7 @@ class voip_pool
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -249,7 +249,7 @@ class voip_pool
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -257,7 +257,7 @@ class voip_pool
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -434,7 +434,7 @@ class voip_prepaid
} else { } else {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -443,7 +443,7 @@ class voip_prepaid
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -451,7 +451,7 @@ class voip_prepaid
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -465,7 +465,7 @@ class voip_prepaid
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -473,7 +473,7 @@ class voip_prepaid
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -481,7 +481,7 @@ class voip_prepaid
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }
@ -496,7 +496,7 @@ class voip_prepaid
if($VAR["format"] == "excel") if($VAR["format"] == "excel")
{ {
$type = "export_excel"; $type = "export_excel";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_excel($VAR, $this, $type); $export->search_excel($VAR, $this, $type);
} }
@ -504,7 +504,7 @@ class voip_prepaid
else if ($VAR["format"] == "xml") else if ($VAR["format"] == "xml")
{ {
$type = "export_xml"; $type = "export_xml";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_xml($VAR, $this, $type); $export->search_xml($VAR, $this, $type);
} }
@ -512,7 +512,7 @@ class voip_prepaid
else if ($VAR["format"] == "csv") else if ($VAR["format"] == "csv")
{ {
$type = "export_csv"; $type = "export_csv";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_csv($VAR, $this, $type); $export->search_csv($VAR, $this, $type);
} }
@ -520,7 +520,7 @@ class voip_prepaid
else if ($VAR["format"] == "tab") else if ($VAR["format"] == "tab")
{ {
$type = "export_tab"; $type = "export_tab";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$export = new CORE_export; $export = new CORE_export;
$export->search_tab($VAR, $this, $type); $export->search_tab($VAR, $this, $type);
} }

View File

@ -143,7 +143,7 @@ class voip_rate
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -154,7 +154,7 @@ class voip_rate
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -165,7 +165,7 @@ class voip_rate
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -185,7 +185,7 @@ class voip_rate
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -196,7 +196,7 @@ class voip_rate
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -207,7 +207,7 @@ class voip_rate
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -60,7 +60,7 @@ class voip_rate_prod
} }
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -71,7 +71,7 @@ class voip_rate_prod
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -82,7 +82,7 @@ class voip_rate_prod
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -102,7 +102,7 @@ class voip_rate_prod
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -113,7 +113,7 @@ class voip_rate_prod
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -124,7 +124,7 @@ class voip_rate_prod
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -198,7 +198,7 @@ class voip_vm
function add($VAR) function add($VAR)
{ {
$type = "add"; $type = "add";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->add($VAR, $this, $type); $db->add($VAR, $this, $type);
} }
@ -206,7 +206,7 @@ class voip_vm
function view($VAR) function view($VAR)
{ {
$type = "view"; $type = "view";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->view($VAR, $this, $type); $db->view($VAR, $this, $type);
} }
@ -214,7 +214,7 @@ class voip_vm
function update($VAR) function update($VAR)
{ {
$type = "update"; $type = "update";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->update($VAR, $this, $type); $db->update($VAR, $this, $type);
} }
@ -228,7 +228,7 @@ class voip_vm
function search_form($VAR) function search_form($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_form($VAR, $this, $type); $db->search_form($VAR, $this, $type);
} }
@ -236,7 +236,7 @@ class voip_vm
function search($VAR) function search($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search($VAR, $this, $type); $db->search($VAR, $this, $type);
} }
@ -244,7 +244,7 @@ class voip_vm
function search_show($VAR) function search_show($VAR)
{ {
$type = "search"; $type = "search";
$this->method["$type"] = split(",", $this->method["$type"]); $this->method["$type"] = explode(",", $this->method["$type"]);
$db = new CORE_database; $db = new CORE_database;
$db->search_show($VAR, $this, $type); $db->search_show($VAR, $this, $type);
} }

View File

@ -85,10 +85,10 @@ class plg_chout_NETBILLING extends base_checkout_plugin
$ret['status'] = 1; $ret['status'] = 1;
} elseif (eregi("RET_STATUS=0",$response)) { } elseif (eregi("RET_STATUS=0",$response)) {
$ret['status'] = 0; $ret['status'] = 0;
$mydata = split("\&",$response); $mydata = explode("\&",$response);
foreach($mydata as $key=>$value) foreach($mydata as $key=>$value)
{ {
$newdata = split('=', $value); $newdata = explode('=', $value);
$ret[$newdata[0]] = $newdata[1]; $ret[$newdata[0]] = $newdata[1];
} }
$reason = urldecode($ret['RET_AUTH_MSG']); $reason = urldecode($ret['RET_AUTH_MSG']);

View File

@ -118,8 +118,8 @@ class plg_chout_SWREG_ADVANCED extends base_checkout_plugin
echo '<script language=Javascript>alert(\'SSL Failed!\') </script>'; echo '<script language=Javascript>alert(\'SSL Failed!\') </script>';
return false; return false;
} else { } else {
foreach(split("&",$response) as $pair) { foreach(explode("&",$response) as $pair) {
list($key,$val)=split("=",$pair); list($key,$val)=explode("=",$pair);
$swreg[$key]=$val; $swreg[$key]=$val;
} }
} }

View File

@ -90,13 +90,13 @@ class plg_chout_TRUSTCOMMERCE extends base_checkout_plugin
echo '<script language=Javascript>alert(\'SSL Failed!\') </script>'; echo '<script language=Javascript>alert(\'SSL Failed!\') </script>';
return false; return false;
} else { } else {
$response = split("\n", trim($return)); $response = explode("\n", trim($return));
for($i=0; $i<count($response); $i++) for($i=0; $i<count($response); $i++)
{ {
if(!empty($response[$i])) if(!empty($response[$i]))
{ {
unset($thisone); unset($thisone);
$thisone = split("=", $response[$i]); $thisone = explode("=", $response[$i]);
$varr[$thisone[0]] = $thisone[1]; $varr[$thisone[0]] = $thisone[1];
} }
} }

View File

@ -469,7 +469,7 @@ class umTransaction {
} }
// result will be on the last line of the return // result will be on the last line of the return
$tmp=split("\n",$result); $tmp=explode("\n",$result);
$result=$tmp[count($tmp)-1]; $result=$tmp[count($tmp)-1];
// result is in urlencoded format, parse into an array // result is in urlencoded format, parse into an array

View File

@ -976,7 +976,7 @@ class import_plugin extends import
$term = $rs->fields['domain_years']; $term = $rs->fields['domain_years'];
$domain_name = strtolower($rs->fields['domain_name']); $domain_name = strtolower($rs->fields['domain_name']);
$arr = split('\.', $domain_name); $arr = explode('\.', $domain_name);
$tld = ''; $tld = '';
$domain = $arr[0]; $domain = $arr[0];
for($i=0; $i<count($arr); $i++) { for($i=0; $i<count($arr); $i++) {

View File

@ -256,8 +256,8 @@ class import_plugin extends import
# Get a local account_billing id # Get a local account_billing id
$bill_id = $db->GenID($p.'account_billing_id'); $bill_id = $db->GenID($p.'account_billing_id');
$type = split("-", $rs->fields['billing_cc_type']); $type = explode("-", $rs->fields['billing_cc_type']);
$exp = split("/", $rs->fields['billing_cc_exp']); $exp = explode("/", $rs->fields['billing_cc_exp']);
# the modernbill encryption method is unknown, so we have no way to decrypt the cc details # 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... # 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: # Determine the domain TLD & Name:
$domain_name = $rs->fields['domain_name']; $domain_name = $rs->fields['domain_name'];
$arr = split('\.', $domain_name); $arr = explode('\.', $domain_name);
$tld = ''; $tld = '';
$domain = $arr[0]; $domain = $arr[0];
for($i=0; $i<count($arr); $i++) { for($i=0; $i<count($arr); $i++) {
@ -1216,7 +1216,7 @@ class import_plugin extends import
# Determine the domain TLD & Name: # Determine the domain TLD & Name:
$domain_name = $rs->fields['target']; $domain_name = $rs->fields['target'];
$arr = split('\.', $domain_name); $arr = explode('\.', $domain_name);
$tld = ''; $tld = '';
$domain = $arr[0]; $domain = $arr[0];
for($i=0; $i<count($arr); $i++) { for($i=0; $i<count($arr); $i++) {

View File

@ -814,7 +814,7 @@ class import_plugin extends import
# Determine the domain TLD & Name: # Determine the domain TLD & Name:
$domain_name = $rs->fields['domain']; $domain_name = $rs->fields['domain'];
$arr = split('\.', $domain_name); $arr = explode('\.', $domain_name);
$tld = ''; $tld = '';
$domain = $arr[0]; $domain = $arr[0];
for($i=0; $i<count($arr); $i++) { for($i=0; $i<count($arr); $i++) {
@ -1066,7 +1066,7 @@ class import_plugin extends import
# Determine the domain TLD & Name: # Determine the domain TLD & Name:
$domain_name = $rs->fields['target']; $domain_name = $rs->fields['target'];
$arr = split('\.', $domain_name); $arr = explode('\.', $domain_name);
$tld = ''; $tld = '';
$domain = $arr[0]; $domain = $arr[0];
for($i=0; $i<count($arr); $i++) { for($i=0; $i<count($arr); $i++) {

View File

@ -388,7 +388,7 @@ function mail_co_uk($account,$domain) {
$name = trim($name); $name = trim($name);
$fullname = split(" ",$name); $fullname = explode(" ",$name);
$count = count($fullname) - 1; $count = count($fullname) - 1;
$l_name = $fullname[$count]; $l_name = $fullname[$count];
$f_name = $fullname[0]; $f_name = $fullname[0];
@ -540,7 +540,7 @@ function mail_c_n_o($account,$domain) {
$name = trim($name); $name = trim($name);
$fullname = split(" ",$name); $fullname = explode(" ",$name);
$count = count($fullname) - 1; $count = count($fullname) - 1;
$l_name = $fullname[$count]; $l_name = $fullname[$count];
$f_name = $fullname[0]; $f_name = $fullname[0];
@ -677,7 +677,7 @@ function mail_info_biz($account,$domain) {
$country = $dbc->f("country_2_code"); $country = $dbc->f("country_2_code");
$name = trim($name); $name = trim($name);
$fullname = split(" ",$name); $fullname = explode(" ",$name);
$count = count($fullname) - 1; $count = count($fullname) - 1;
$l_name = $fullname[$count]; $l_name = $fullname[$count];
$f_name = $fullname[0]; $f_name = $fullname[0];
@ -859,7 +859,7 @@ function mail_name($account,$domain) {
$name = trim($name); $name = trim($name);
$fullname = split(" ",$name); $fullname = explode(" ",$name);
$count = count($fullname) - 1; $count = count($fullname) - 1;
$l_name = $fullname[$count]; $l_name = $fullname[$count];
$f_name = $fullname[0]; $f_name = $fullname[0];
@ -1029,7 +1029,7 @@ function mail_us($account,$domain) {
$name = trim($name); $name = trim($name);
$fullname = split(" ",$name); $fullname = explode(" ",$name);
$count = count($fullname) - 1; $count = count($fullname) - 1;
$l_name = $fullname[$count]; $l_name = $fullname[$count];
$f_name = $fullname[0]; $f_name = $fullname[0];

View File

@ -243,10 +243,10 @@ class plgn_voip_did_DIDX
global $C_debug; global $C_debug;
$C_debug->error('DIDX.php', 'refresh', 'Could not acquire information from DIDx.org'); $C_debug->error('DIDX.php', 'refresh', 'Could not acquire information from DIDx.org');
} else { } else {
$entries = split("\r\n", $this->country_area); $entries = explode("\r\n", $this->country_area);
foreach ($entries as $entry) { foreach ($entries as $entry) {
$eparts = split(":", $entry); $eparts = explode(":", $entry);
$areas = split(",", $eparts[1]); $areas = explode(",", $eparts[1]);
$bDelete = true; $bDelete = true;
foreach ($areas as $area) { foreach ($areas as $area) {
$params = array( $params = array(

Some files were not shown because too many files have changed in this diff Show More