/home/webzonebg/public_html/billing/vendors/minphp/db/src/PdoConnection.php
array(1) {
[0]=>
array(6) {
[0]=>
string(7) "company"
[1]=>
int(1)
[2]=>
string(8) "timezone"
[3]=>
string(6) "system"
[4]=>
string(8) "timezone"
[5]=>
string(1) "1"
}
}
/home/webzonebg/public_html/billing/vendors/minphp/record/src/Record.php
array(2) {
[0]=>
string(282) "SELECT * FROM (((SELECT `key`, `value`, `encrypted`, `inherit`, ? AS `level` FROM `company_settings` WHERE `company_id`=? AND `key`=?) UNION (SELECT `key`, `value`, `encrypted`, `inherit`, ? AS `level` FROM `settings` WHERE `key`=? AND `inherit`=?))) AS `temp` GROUP BY `temp`.`key`"
[1]=>
array(6) {
[0]=>
string(7) "company"
[1]=>
int(1)
[2]=>
string(8) "timezone"
[3]=>
string(6) "system"
[4]=>
string(8) "timezone"
[5]=>
string(1) "1"
}
}
/home/webzonebg/public_html/billing/app/models/companies.php
/home/webzonebg/public_html/billing/app/app_controller.php
array(2) {
[0]=>
int(1)
[1]=>
string(8) "timezone"
}
/home/webzonebg/public_html/billing/app/app_controller.php
array(1) {
[0]=>
object(stdClass)#109 (6) {
["id"]=>
int(1)
["name"]=>
string(16) "LEAVE A MARK LTD"
["hostname"]=>
string(13) "webzonebg.com"
["address"]=>
string(56) "LEAVE A MARK LTD
BG207282426
VELINGRAD
TSVETOMIR NIKOLOV"
["phone"]=>
string(13) "+359876944667"
["fax"]=>
NULL
}
}
/home/webzonebg/public_html/billing/plugins/order/order_controller.php
/home/webzonebg/public_html/billing/plugins/order/order_form_controller.php
/home/webzonebg/public_html/billing/plugins/order/controllers/main.php
/home/webzonebg/public_html/billing/vendors/minphp/bridge/src/Lib/Dispatcher.php
/home/webzonebg/public_html/billing/index.php
array(1) {
[0]=>
string(59) "/billing/order/main/packages/free-trial/?group_id=4&lang=bg"
}
self::$connections[] = $connection;
self::$dbInfos[] = $this->dbInfo;
$this->setConnection($connection);
return $connection;
}
/**
* Set whether or not to reuse an existing connection
*
* @param boolean $enable True to reuse an existing matching connection if available
* @return PdoConnection
*/
public function reuseConnection($enable)
{
$this->reuseConnection = $enable;
return $this;
}
/**
* Sets the fetch mode to the given value, returning the old value
*
* @param int $fetchMode The PDO:FETCH_* constant (int) to fetch records
*/
public function setFetchMode($fetchMode)
{
$cur = $this->fetchMode;
$this->fetchMode = $fetchMode;
return $cur;
}
/**
* Get the last inserted ID
*
* @param string $name The name of the sequence object from which the ID should be returned
* @return string The last ID inserted, if available
*/
public function lastInsertId($name = null)
{
return $this->connect()->lastInsertId($name);
}
/**
* Sets the given value to the given attribute for this connection
*
* @param long $attribute The attribute to set
* @param int $value The value to assign to the attribute
* @return PdoConnection
*/
public function setAttribute($attribute, $value)
{
$this->connect()->setAttribute($attribute, $value);
return $this;
}
/**
* Query the Database using the given prepared statement and argument list
*
* @param string $sql The SQL to execute
* @param string $... Bound parameters [$param1, $param2, ..., $paramN]
* @return PDOStatement The resulting PDOStatement from the execution of this query
*/
public function query($sql)
{
$params = func_get_args();
// Shift the SQL parameter off of the list
array_shift($params);
// If 2nd param is an array, use it as the series of params, rather than
// the rest of the param list
if (isset($params[0]) && is_array($params[0])) {
$params = $params[0];
}
$this->connect();
// Store this statement in our PDO object for easy use later
$this->statement = $this->prepare($sql, $this->fetchMode);
// Execute the query
$this->statement->execute($params);
// Return the statement
return $this->statement;
}
/**
* Prepares an SQL statement to be executed by the PDOStatement::execute() method.
* Useful when executing the same query with different bound parameters.
*
* @param string $sql The SQL statement to prepare
* @param int $fetchMode The PDO::FETCH_* constant
* @return PDOStatement The resulting PDOStatement from the preparation of this query
* @see PDOStatement::execute()
*/
public function prepare($sql, $fetchMode = null)
{
if ($fetchMode === null) {
$fetchMode = $this->fetchMode;
}
$this->statement = $this->connect()->prepare($sql);
// Set the default fetch mode for this query
$this->statement->setFetchMode($fetchMode);
return $this->statement;
}
/**
* Begin a transaction
*
* @return boolean True if the transaction was successfully opened, false otherwise
*/
public function begin()
{
return $this->connect()->beginTransaction();
}
/**
* Rolls back and closes the transaction
*
* @return boolean True if the transaction was successfully rolled back and closed, false otherwise
*/
public function rollBack()
{
return $this->connect()->rollBack();
}
/**
* Commits a transaction
*
* @return boolean True if the transaction was successfully commited and closed, false otherwise
*/
public function commit()
{
return $this->connect()->commit();
}
/**
* Returns the connection's PDO object if a connection has been established, null otherwise.
*
* @return PDO The PDO connection object, null if no connection exists
*/
public function getConnection()
{
return $this->connection;
}
/**
* Set the PDO connection to use
*
* @param PDO $connection
* @return PdoConnection
*/
public function setConnection(PDO $connection)
{
$this->connection = $connection;
return $this;
}
/**