Merge branch 'master' of git@github.com:tony-landis/agilebill
This commit is contained in:
commit
dad570c0bf
211
includes/telnet/magrathea.inc.php
Executable file
211
includes/telnet/magrathea.inc.php
Executable file
@ -0,0 +1,211 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AgileBill - Open Billing Software
|
||||||
|
*
|
||||||
|
* This body of work is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the Open AgileBill License
|
||||||
|
* License as published at http://www.agileco.com/agilebill/license1-4.txt
|
||||||
|
*
|
||||||
|
* For questions, help, comments, discussion, etc., please join the
|
||||||
|
* Agileco community forums at http://forum.agileco.com/
|
||||||
|
*
|
||||||
|
* @link http://www.agileco.com/
|
||||||
|
* @copyright 2004-2008 Agileco, LLC.
|
||||||
|
* @license http://www.agileco.com/agilebill/license1-4.txt
|
||||||
|
* @author Tony Landis <tony@agileco.com> and Thralling Penguin, LLC <http://www.thrallingpenguin.com>
|
||||||
|
* @package AgileBill
|
||||||
|
* @version 1.4.93
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Magrathea-Telecom.co.uk Plug in
|
||||||
|
*
|
||||||
|
* @package magrathea
|
||||||
|
* @author Joseph Benden <joe@thrallingpenguin.com>
|
||||||
|
* @version 0.1
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
require_once(PATH_INCLUDES."telnet/telnet.inc.php");
|
||||||
|
|
||||||
|
class magrathea extends telnet {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The TCP port number the Magrathea service listens on.
|
||||||
|
* @access private
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
var $port = 777;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle connecting and logging into Magrathea. Returns 0 on success.
|
||||||
|
* @param $hostname The hostname to connect to
|
||||||
|
* @param $username Username
|
||||||
|
* @param $password Password
|
||||||
|
*/
|
||||||
|
function login($hostname, $username, $password) {
|
||||||
|
$r = ""; $code = ""; $msg = "";
|
||||||
|
$ret = $this->connect($hostname, $this->port, $username, $password);
|
||||||
|
if ($ret == 0) {
|
||||||
|
$ret = false;
|
||||||
|
$this->getresponse($r);
|
||||||
|
if ($this->use_usleep) usleep($this->sleeptime);
|
||||||
|
else sleep(1);
|
||||||
|
$this->loginprompt = $r;
|
||||||
|
$this->docommand("AUTH $username $password",$r);
|
||||||
|
if ($this->parse_response($r, $code, $msg)) {
|
||||||
|
if ($code == 0) {
|
||||||
|
# Logged in!
|
||||||
|
$ret = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$ret = false;
|
||||||
|
}
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log out of the Magrathea system.
|
||||||
|
*/
|
||||||
|
function logout() {
|
||||||
|
$r = ""; $code = ""; $msg = "";
|
||||||
|
$this->docommand("QUIT",$r);
|
||||||
|
if ($this->parse_response($r, $code, $msg)) {
|
||||||
|
if ($code == 0) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
# Log an error!
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','logout','Error: '.$msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attempt to allocate a single phone number. False is returned on error, else a phone number is returned.
|
||||||
|
* @param $areacode The desired area code to find a possible number for, using underscores for wildcard characters.
|
||||||
|
*/
|
||||||
|
function allocate($areacode) {
|
||||||
|
$r = ""; $code = ""; $msg = "";
|
||||||
|
$ret = $this->docommand("ALLO $areacode",$r);
|
||||||
|
$ret = false;
|
||||||
|
if ($this->parse_response($r, $code, $msg)) {
|
||||||
|
if ($code == 0) {
|
||||||
|
# got a number
|
||||||
|
$ret = ereg_replace("[^0-9]","",$msg);
|
||||||
|
} else {
|
||||||
|
# Log an error!
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','allocate','Error: '.$msg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','allocate',"Parse Response Error (code: $areacode): ".$msg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attempt to activate a single phone number. Returns a boolean success indicator.
|
||||||
|
* @param $did The desired phone number to activate.
|
||||||
|
*/
|
||||||
|
function activate($did) {
|
||||||
|
$r = ""; $code = ""; $msg = "";
|
||||||
|
$this->docommand("ACTI $did",$r);
|
||||||
|
if ($this->parse_response($r, $code, $msg)) {
|
||||||
|
if ($code == 0) {
|
||||||
|
# got a number
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
# Log an error!
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','activate','Error: '.$msg);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','activate','(ACTI '.$did.') Error, couldnot parse: '.$r);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attempt to deactivate a single phone number. Returns a boolean success indicator.
|
||||||
|
* @param $did The desired telephone number to deactivate/disconnect.
|
||||||
|
*/
|
||||||
|
function deactivate($did) {
|
||||||
|
$r = ""; $code = ""; $msg = "";
|
||||||
|
$this->docommand("DEAC $did",$r);
|
||||||
|
if ($this->parse_response($r, $code, $msg)) {
|
||||||
|
if ($code == 0) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
# Log an error!
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','deactivate','Error: '.$msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attempt to reactivate a single phone number. Returns a boolean success indicator.
|
||||||
|
* @param $did The desired telephone number to reactivate/reconnect.
|
||||||
|
*/
|
||||||
|
function reactivate($did) {
|
||||||
|
$r = ""; $code = ""; $msg = "";
|
||||||
|
$this->docommand("REAC $did",$r);
|
||||||
|
if ($this->parse_response($r, $code, $msg)) {
|
||||||
|
if ($code == 0) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
# Log an error!
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','reactivate','Error: '.$msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a given phone number's destination, over RFC 2833 DTMF SIP. Returns a boolean success indicator.
|
||||||
|
* @param $did The desired telephone number to provision.
|
||||||
|
* @param $sip_url The full URL to send the number to, ie: me@sip1.mydomain.com
|
||||||
|
*/
|
||||||
|
function set($did, $sip_url) {
|
||||||
|
$r = ""; $code = ""; $msg = "";
|
||||||
|
$this->docommand("SET $did 1 S:".$sip_url,$r);
|
||||||
|
if ($this->parse_response($r, $code, $msg)) {
|
||||||
|
if ($code == 0) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
# Log an error!
|
||||||
|
global $C_debug;
|
||||||
|
$C_debug->error('magrathea','reactivate','Error: '.$msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parses the responses from Magrathea, pulling out the response code and the associated message.
|
||||||
|
* @param $r The response text
|
||||||
|
* @param $code A reference to a variable to store the parsed response code
|
||||||
|
* @param $msg A reference to a variable to store the parsed message
|
||||||
|
*/
|
||||||
|
function parse_response($r, &$code, &$msg) {
|
||||||
|
$code = intval(substr($r,0,1));
|
||||||
|
$msg = substr($r,2);
|
||||||
|
#echo "Parsed code: $code \n Parsed msg: $msg \n";
|
||||||
|
if ($code == 0)
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
216
includes/telnet/telnet.inc.php
Executable file
216
includes/telnet/telnet.inc.php
Executable file
@ -0,0 +1,216 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AgileBill - Open Billing Software
|
||||||
|
*
|
||||||
|
* This body of work is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the Open AgileBill License
|
||||||
|
* License as published at http://www.agileco.com/agilebill/license1-4.txt
|
||||||
|
*
|
||||||
|
* For questions, help, comments, discussion, etc., please join the
|
||||||
|
* Agileco community forums at http://forum.agileco.com/
|
||||||
|
*
|
||||||
|
* @link http://www.agileco.com/
|
||||||
|
* @copyright 2004-2008 Agileco, LLC.
|
||||||
|
* @license http://www.agileco.com/agilebill/license1-4.txt
|
||||||
|
* @author Tony Landis <tony@agileco.com> and Thralling Penguin, LLC <http://www.thrallingpenguin.com>
|
||||||
|
* @package AgileBill
|
||||||
|
* @version 1.4.93
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Telnet class
|
||||||
|
*
|
||||||
|
* @package telnet
|
||||||
|
* @author Joseph Benden <joe@thrallingpenguin.com>
|
||||||
|
* @version 0.1
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
class telnet {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the style of communications. 0 for socket line mode, 1 for telnet compatible mode.
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @var boolean
|
||||||
|
*/
|
||||||
|
var $mode = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether or not to use microsleep.
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @var boolean
|
||||||
|
*/
|
||||||
|
var $use_usleep = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Amount of time to sleep in between communications.
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
var $sleeptime = 125000;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Amount of time to sleep after logging in to the remote server.
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
var $loginsleeptime = 1000000;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal file descriptor
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @var resource
|
||||||
|
*/
|
||||||
|
var $fp = NULL;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stored login prompt, used to tell if a username/password failed.
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $loginprompt;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connects to a remote telnet or socket line mode server.
|
||||||
|
* @param $server The remote servers IP address or hostname
|
||||||
|
* @param $port The remote servers TCP port
|
||||||
|
* @param $user The username
|
||||||
|
* @param $pass The password
|
||||||
|
* @return 0 for success
|
||||||
|
* @return 1 for an error whilst opening the network connection
|
||||||
|
* @return 2 for an unknown hostname resolution
|
||||||
|
* @return 3 for a login failure
|
||||||
|
* @return 4 for a PHP versioning error
|
||||||
|
*/
|
||||||
|
function connect($server, $port, $user, $pass) {
|
||||||
|
$rv=0;
|
||||||
|
$r = "";
|
||||||
|
$vers=explode('.',PHP_VERSION);
|
||||||
|
$needvers=array(4,3,0);
|
||||||
|
$j=count($vers);
|
||||||
|
$k=count($needvers);
|
||||||
|
if ($k<$j) $j=$k;
|
||||||
|
for ($i=0;$i<$j;$i++) {
|
||||||
|
if (($vers[$i]+0)>$needvers[$i]) break;
|
||||||
|
if (($vers[$i]+0)<$needvers[$i]) return 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Make sure we're disconnected first
|
||||||
|
$this->disconnect();
|
||||||
|
|
||||||
|
if (strlen($server)) {
|
||||||
|
if (preg_match('/[^0-9.]/',$server)) {
|
||||||
|
$ip=gethostbyname($server);
|
||||||
|
if ($ip==$server) {
|
||||||
|
$ip='';
|
||||||
|
$rv=2;
|
||||||
|
}
|
||||||
|
} else $ip=$server;
|
||||||
|
} else $ip='127.0.0.1';
|
||||||
|
|
||||||
|
if (strlen($ip)) {
|
||||||
|
if (($this->fp=fsockopen($ip, $port))) {
|
||||||
|
if ($this->mode == 1) {
|
||||||
|
fputs($this->fp,chr(0xFF).chr(0xFB).chr(0x1F).chr(0xFF).chr(0xFB).
|
||||||
|
chr(0x20).chr(0xFF).chr(0xFB).chr(0x18).chr(0xFF).chr(0xFB).
|
||||||
|
chr(0x27).chr(0xFF).chr(0xFD).chr(0x01).chr(0xFF).chr(0xFB).
|
||||||
|
chr(0x03).chr(0xFF).chr(0xFD).chr(0x03).chr(0xFF).chr(0xFC).
|
||||||
|
chr(0x23).chr(0xFF).chr(0xFC).chr(0x24).chr(0xFF).chr(0xFA).
|
||||||
|
chr(0x1F).chr(0x00).chr(0x50).chr(0x00).chr(0x18).chr(0xFF).
|
||||||
|
chr(0xF0).chr(0xFF).chr(0xFA).chr(0x20).chr(0x00).chr(0x33).
|
||||||
|
chr(0x38).chr(0x34).chr(0x30).chr(0x30).chr(0x2C).chr(0x33).
|
||||||
|
chr(0x38).chr(0x34).chr(0x30).chr(0x30).chr(0xFF).chr(0xF0).
|
||||||
|
chr(0xFF).chr(0xFA).chr(0x27).chr(0x00).chr(0xFF).chr(0xF0).
|
||||||
|
chr(0xFF).chr(0xFA).chr(0x18).chr(0x00).chr(0x58).chr(0x54).
|
||||||
|
chr(0x45).chr(0x52).chr(0x4D).chr(0xFF).chr(0xF0));
|
||||||
|
}
|
||||||
|
if ($this->use_usleep) usleep($this->sleeptime);
|
||||||
|
else sleep(1);
|
||||||
|
|
||||||
|
if ($this->mode == 1) {
|
||||||
|
fputs($this->fp,chr(0xFF).chr(0xFC).chr(0x01).chr(0xFF).chr(0xFC).
|
||||||
|
chr(0x22).chr(0xFF).chr(0xFE).chr(0x05).chr(0xFF).chr(0xFC).chr(0x21));
|
||||||
|
}
|
||||||
|
if ($this->use_usleep) usleep($this->sleeptime);
|
||||||
|
else sleep(1);
|
||||||
|
|
||||||
|
if ($this->mode == 1) {
|
||||||
|
# BEGIN actual LOGIN method
|
||||||
|
$this->getresponse($r);
|
||||||
|
$r=explode("\n",$r);
|
||||||
|
$this->loginprompt=$r[count($r)-1];
|
||||||
|
|
||||||
|
fputs($this->fp,"$user\r");
|
||||||
|
if ($this->use_usleep) usleep($this->sleeptime);
|
||||||
|
else sleep(1);
|
||||||
|
|
||||||
|
fputs($this->fp,"$pass\r");
|
||||||
|
if ($this->use_usleep) usleep($this->loginsleeptime);
|
||||||
|
else sleep(1);
|
||||||
|
$this->getresponse($r);
|
||||||
|
$r=explode("\n",$r);
|
||||||
|
if (($r[count($r)-1]=='')||($this->loginprompt==$r[count($r)-1])) {
|
||||||
|
$rv=3;
|
||||||
|
$this->disconnect();
|
||||||
|
}
|
||||||
|
# END LOGIN method
|
||||||
|
}
|
||||||
|
} else $rv=1;
|
||||||
|
}
|
||||||
|
return $rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disconnect from the remote server.
|
||||||
|
* @param $exit If the exit command is used prior to disconnecting. Default is yes.
|
||||||
|
*/
|
||||||
|
function disconnect($exit=1) {
|
||||||
|
$junk = "";
|
||||||
|
if ($this->fp) {
|
||||||
|
if ($exit) $this->docommand('exit',$junk);
|
||||||
|
fclose($this->fp);
|
||||||
|
$this->fp=NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute a remote command and return the reply.
|
||||||
|
* @param $c The command to execute
|
||||||
|
* @param $r A reference to a variable which will receive the returned result
|
||||||
|
* @return True or false, if the connection is still alive
|
||||||
|
*/
|
||||||
|
function docommand($c,&$r) {
|
||||||
|
if ($this->fp) {
|
||||||
|
fputs($this->fp,"$c\r");
|
||||||
|
if ($this->use_usleep) usleep($this->sleeptime);
|
||||||
|
else sleep(1);
|
||||||
|
$this->getresponse($r);
|
||||||
|
$r=preg_replace("/^.*?\n(.*)\n[^\n]*$/","$1",$r);
|
||||||
|
}
|
||||||
|
return $this->fp?1:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performs the socket operations required to read all available data from a remote connection.
|
||||||
|
* @param $r A reference to a variable which will receive the read data
|
||||||
|
*/
|
||||||
|
function getresponse(&$r) {
|
||||||
|
$r='';
|
||||||
|
do {
|
||||||
|
$r.=fread($this->fp,1000);
|
||||||
|
$s=socket_get_status($this->fp);
|
||||||
|
} while ($s['unread_bytes']);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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];
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
@ -183,7 +183,7 @@ class CORE_RSA
|
|||||||
|
|
||||||
|
|
||||||
function CORE_encrypt($data) {
|
function CORE_encrypt($data) {
|
||||||
if(LICENSE_KEY == '') return false;
|
if(LICENSE_KEY == '') return $data; // provide a license key in the setup area to enable encryption
|
||||||
$rsa = new CORE_RSA;
|
$rsa = new CORE_RSA;
|
||||||
$keys = explode('-', LICENSE_KEY);
|
$keys = explode('-', LICENSE_KEY);
|
||||||
$rsa_data = $rsa->rsa_encrypt($data, $keys[1], $keys[0]);
|
$rsa_data = $rsa->rsa_encrypt($data, $keys[1], $keys[0]);
|
||||||
@ -194,7 +194,7 @@ function CORE_encrypt($data) {
|
|||||||
|
|
||||||
|
|
||||||
function CORE_decrypt($data) {
|
function CORE_decrypt($data) {
|
||||||
if(LICENSE_KEY == '') return false;
|
if(LICENSE_KEY == '') return $data; // provide a license key in the setup area to enable encryption
|
||||||
$rc4_key = do_rc4(LICENSE_KEY, 'en', false);
|
$rc4_key = do_rc4(LICENSE_KEY, 'en', false);
|
||||||
$rc4_data = do_rc4($data, 'de', $rc4_key);
|
$rc4_data = do_rc4($data, 'de', $rc4_key);
|
||||||
$rsa = new CORE_RSA;
|
$rsa = new CORE_RSA;
|
||||||
|
@ -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]);
|
||||||
|
@ -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++)
|
||||||
|
@ -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)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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]);
|
||||||
|
@ -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];
|
||||||
|
@ -45,7 +45,7 @@ class CORE_weblog
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@$pagearr = split(':', $VAR['_page']);
|
@$pagearr = explode(':', $VAR['_page']);
|
||||||
@$page = $pagearr["1"];
|
@$page = $pagearr["1"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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'] )
|
||||||
{
|
{
|
||||||
|
@ -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();
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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;}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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']);
|
||||||
|
|
||||||
|
|
||||||
#####################################################
|
#####################################################
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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++)
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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];
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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']);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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++) {
|
||||||
|
@ -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++) {
|
||||||
|
@ -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++) {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user