/home/webfycou/public_html/application/autoload/ORM.php
$query = $this->_join_if_not_empty(" ", array(
"DELETE FROM",
$this->_quote_identifier($this->_table_name),
$this->_build_where(),
));
return self::_execute($query, $this->_values, $this->_connection_name);
}
// --------------------- //
// --- ArrayAccess --- //
// --------------------- //
public function offsetExists($key): bool
{
return array_key_exists($key, $this->_data);
}
public function offsetGet($key): mixed {
return $this->get($key);
}
public function offsetSet($key, $value): void {
if(is_null($key)) {
throw new InvalidArgumentException('You must specify a key/array index.');
}
$this->set($key, $value);
}
public function offsetUnset($key): void {
unset($this->_data[$key]);
unset($this->_dirty_fields[$key]);
}
// --------------------- //
// --- MAGIC METHODS --- //
// --------------------- //
public function __get($key) {
return $this->offsetGet($key);
}
Arguments
"Return value of ORM::offsetGet() must be an instance of mixed, string returned"
/home/webfycou/public_html/application/helpers/ibilling_bootstrap.php
}
function _raid($l = '6')
{
$r = substr(str_shuffle(str_repeat('0123456789', $l)), 0, $l);
return $r;
}
ORM::configure("mysql:host=$db_host;dbname=$db_name");
ORM::configure('username', $db_user);
ORM::configure('password', $db_password);
ORM::configure('driver_options', [
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
]);
ORM::configure('return_result_sets', true); // returns result sets
$result = ORM::for_table('sys_appconfig')->find_many();
foreach ($result as $value) {
$config[$value['setting']] = $value['value'];
}
date_default_timezone_set($config['timezone']);
function _notify($msg, $type = 'e')
{
$_SESSION['ntype'] = $type;
$_SESSION['notify'] = $msg;
}
$_c = $config;
$_theme = APP_URL . '/ui/theme/' . $config['theme'];
$ib_language_file_path = 'application/i18n/' . $config['language'] . '.php';
$app_theme = $config['theme'];
if (file_exists($ib_language_file_path)) {
require $ib_language_file_path;
Arguments
/home/webfycou/public_html/application/app.php
<?php
if (!defined('APP_RUN')) {
exit('No direct access allowed');
}
$file_build = '5000';
require 'vendor/autoload.php';
require 'application/helpers/ibilling_bootstrap.php';
Arguments
"/home/webfycou/public_html/application/helpers/ibilling_bootstrap.php"
/home/webfycou/public_html/index.php
<?php
define('APP_RUN', true);
require 'application/app.php';
Arguments
"/home/webfycou/public_html/application/app.php"