Deprecated: Creation of dynamic property Application::$DB_TABLE is deprecated in /var/www/hh/config/db.inc.php on line 9

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$root is deprecated in /var/www/hh/core/application/init/Database/SleekDB.php on line 18

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$dataDirectory is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 33

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$useCache is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 85

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$deleteCacheOnCreate is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 88

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$shouldKeepConditions is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 45

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$storeName is deprecated in /var/www/hh/core/application/init/Database/SleekDB.php on line 35

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$storePath is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 106

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$results is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 53

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$limit is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 55

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$skip is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 57

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$conditions is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 59

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$orConditions is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 61

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$in is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 63

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$notIn is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 65

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$orderBy is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 67

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$searchKeyword is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 72

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$makeCache is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 74

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$root is deprecated in /var/www/hh/core/application/init/Database/SleekDB.php on line 18

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$dataDirectory is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 33

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$useCache is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 85

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$deleteCacheOnCreate is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 88

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$shouldKeepConditions is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 45

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$storeName is deprecated in /var/www/hh/core/application/init/Database/SleekDB.php on line 35

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$storePath is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 106

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$results is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 53

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$limit is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 55

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$skip is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 57

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$conditions is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 59

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$orConditions is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 61

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$in is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 63

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$notIn is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 65

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$orderBy is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 67

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$searchKeyword is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 72

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$makeCache is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 74

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$root is deprecated in /var/www/hh/core/application/init/Database/SleekDB.php on line 18

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$dataDirectory is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 33

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$useCache is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 85

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$deleteCacheOnCreate is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 88

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$shouldKeepConditions is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 45

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$storeName is deprecated in /var/www/hh/core/application/init/Database/SleekDB.php on line 35

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$storePath is deprecated in /var/www/hh/core/application/init/Database/traits/helpers.php on line 106
Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_DEPRECATED)
Creation of dynamic property Sucurema\Core\SleekDB::$root is deprecated Whoops\Exception\ErrorException thrown with message "Creation of dynamic property Sucurema\Core\SleekDB::$root is deprecated" Stacktrace: #9 Whoops\Exception\ErrorException in /var/www/hh/core/application/init/Database/SleekDB.php:18 #8 Whoops\Run:handleError in /var/www/hh/core/application/init/Database/SleekDB.php:18 #7 Sucurema\Core\SleekDB:__construct in /var/www/hh/core/application/init/Database/SleekDB.php:34 #6 Sucurema\Core\SleekDB:store in /var/www/hh/core/application/init/Syslog/Syslog.php:43 #5 Sucurema\Core\Syslog:writeLog in /var/www/hh/core/application/init/log_utilities.php:464 #4 log_message in /var/www/hh/core/application/init/log_utilities.php:444 #3 log_info in /var/www/hh/core/application/init/Database/Facade/pdofacade.class.php:48 #2 PDOFacade:fetch in /var/www/hh/core/application/application.class.php:127 #1 Application:initialize in /var/www/hh/core/application/auth/auth_header.php:86 #0 include in /var/www/hh/index.php:12
Stack frames (10)
9
Whoops\Exception\ErrorException
/application/init/Database/SleekDB.php18
8
Whoops\Run handleError
/application/init/Database/SleekDB.php18
7
Sucurema\Core\SleekDB __construct
/application/init/Database/SleekDB.php34
6
Sucurema\Core\SleekDB store
/application/init/Syslog/Syslog.php43
5
Sucurema\Core\Syslog writeLog
/application/init/log_utilities.php464
4
log_message
/application/init/log_utilities.php444
3
log_info
/application/init/Database/Facade/pdofacade.class.php48
2
PDOFacade fetch
/application/application.class.php127
1
Application initialize
/application/auth/auth_header.php86
0
include
/var/www/hh/index.php12
/var/www/hh/core/application/init/Database/SleekDB.php
<?php
 
namespace Sucurema\Core;
 
require_once __DIR__ . '/traits/helpers.php';
require_once __DIR__ . '/traits/conditions.php';
require_once __DIR__ . '/traits/caching.php';
 
class SleekDB
{
 
    use \HelpersTrait, \ConditionsTrait, \CacheTraits;
 
    // Initialize the database.
    function __construct($dataDir = '', $configurations = false)
    {
        // Define the root path of SleekDB.
        $this->root = __DIR__;
 
        if ($configurations === false) {
            $configurations = [];
        }
 
        // Add data dir.
        $configurations['data_directory'] = $dataDir;
        // Initialize SleekDB
        $this->init($configurations);
    }
 
    // Initialize the store.
    public static function store($storeName = false, $dataDir = "/", $options = false)
    {
        if (!$storeName or empty($storeName)) throw new \Exception('Store name was not valid');
        $_dbInstance = new \Sucurema\Core\SleekDB($dataDir, $options);
        $_dbInstance->storeName = $storeName;
        // Boot store.
        $_dbInstance->bootStore();
        // Initialize variables for the store.
        $_dbInstance->initVariables();
        return $_dbInstance;
Arguments
  1. "Creation of dynamic property Sucurema\Core\SleekDB::$root is deprecated"
    
/var/www/hh/core/application/init/Database/SleekDB.php
<?php
 
namespace Sucurema\Core;
 
require_once __DIR__ . '/traits/helpers.php';
require_once __DIR__ . '/traits/conditions.php';
require_once __DIR__ . '/traits/caching.php';
 
class SleekDB
{
 
    use \HelpersTrait, \ConditionsTrait, \CacheTraits;
 
    // Initialize the database.
    function __construct($dataDir = '', $configurations = false)
    {
        // Define the root path of SleekDB.
        $this->root = __DIR__;
 
        if ($configurations === false) {
            $configurations = [];
        }
 
        // Add data dir.
        $configurations['data_directory'] = $dataDir;
        // Initialize SleekDB
        $this->init($configurations);
    }
 
    // Initialize the store.
    public static function store($storeName = false, $dataDir = "/", $options = false)
    {
        if (!$storeName or empty($storeName)) throw new \Exception('Store name was not valid');
        $_dbInstance = new \Sucurema\Core\SleekDB($dataDir, $options);
        $_dbInstance->storeName = $storeName;
        // Boot store.
        $_dbInstance->bootStore();
        // Initialize variables for the store.
        $_dbInstance->initVariables();
        return $_dbInstance;
/var/www/hh/core/application/init/Database/SleekDB.php
    function __construct($dataDir = '', $configurations = false)
    {
        // Define the root path of SleekDB.
        $this->root = __DIR__;
 
        if ($configurations === false) {
            $configurations = [];
        }
 
        // Add data dir.
        $configurations['data_directory'] = $dataDir;
        // Initialize SleekDB
        $this->init($configurations);
    }
 
    // Initialize the store.
    public static function store($storeName = false, $dataDir = "/", $options = false)
    {
        if (!$storeName or empty($storeName)) throw new \Exception('Store name was not valid');
        $_dbInstance = new \Sucurema\Core\SleekDB($dataDir, $options);
        $_dbInstance->storeName = $storeName;
        // Boot store.
        $_dbInstance->bootStore();
        // Initialize variables for the store.
        $_dbInstance->initVariables();
        return $_dbInstance;
    }
 
    // Read store objects.
    public function fetch()
    {
        $fetchedData = null;
        // Check if data should be provided from the cache.
        if ($this->makeCache === true) {
            $fetchedData = $this->reGenerateCache(); // Re-generate cache.
        } else if ($this->useCache === true) {
            $fetchedData = $this->useExistingCache(); // Use existing cache else re-generate.
        } else {
            $fetchedData = $this->findStoreDocuments(); // Returns data without looking for cached data.
        }
/var/www/hh/core/application/init/Syslog/Syslog.php
 
    public function __construct()
    {
        $userId = (isset($_SESSION["userId"]) ? $_SESSION["userId"] : 1);
        $dataDir = get_include_path() . "/logs/" . $userId;
        $this->store = \SucSleekDB::store('Syslog', $dataDir);
    }
 
    public static function writeLog(int $type, string $component, string $function, string $message, bool $persistent)
    {
        if (self::$instance === null) {
            self::$instance = new self();
        }
 
        $date = new \DateTime();
        $userId  = 0;
        $userId = issetor($_SESSION["userId"], "nologin");
 
        if ($persistent) {
            $storePers = \SucSleekDB::store('Syslog', get_include_path() . "/logs/persistent");
        }
        $data = [
            "dateTime" => $date->format('d.m.Y H:i:s'),
            "type" => $type,
            "function" => $function,
            "component" => $component,
            "message" => $message,
        ];
        if ($persistent) {
            $data["user"] = issetor($_SESSION["userId"], 1);
        }
        $logType = \SucConfig::Get('LOG_LEVEL', \SucSyslog::CRITICAL);
 
        if ($type >= $logType) {
            if ($persistent) {
                $storePers->insert($data);
            }
            $store = \SucSleekDB::store('Syslog', get_include_path() . "/logs/$userId");
            $d = $store->insert($data);
            self::$instance->current = $d["_id"];
/var/www/hh/core/application/init/log_utilities.php
}
 
function log_infomessage($component, $function, $message, $persistent = false)
{
 
    log_message(\SucSyslog::MESSAGE, $component, $function, $message, $persistent);
}
 
function log_warning($component, $function, $message, $persistent = false)
{
    log_message(\SucSyslog::WARNING, $component, $function, $message, $persistent);
}
 
 
function log_message($logLevel, $component, $function, $message, $persistent = false)
{
    if ($persistent || \SucConfig::Get("FULL_PERSISTENT_ERRORLOG", false)) {
        $persistent = true;
    }
    \SucSyslog::writeLog($logLevel, $component, $function, $message, $persistent);
    // \SucSyslog::writeLog($logLevel, $component, $function, $message, $persistent);
 
    if (\SucConfig::Get('FORCE_OLD_DEBUG_MODE', false) && ($GLOBALS['DEBUG_MODE'] || $logLevel === \SucSyslog::CRITICAL)) {
 
 
        $type = 'Error';
 
        if ($logLevel !== \SucSyslog::CRITICAL) {
            $type = 'Info';
        }
 
        $component = str_replace('"', '""', $component);
        $function = str_replace('"', '""', $function);
        $message = str_replace('"', '""', $message);
 
        $user_id = issetor($_SESSION['userId']);
 
        if ($user_id == null || $user_id == '') {
            $user_id = 'system';
        }
/var/www/hh/core/application/init/log_utilities.php
{
    $date = date($GLOBALS['SQL_DATE_FORMAT']);
    $log_file = ($GLOBALS["LOG_DIR"] != "") ? fopen($GLOBALS["LOG_DIR"] . '/' . $date . '_trace.log.txt', "a") : fopen($_SERVER['DOCUMENT_ROOT'] . 'logs/' . $date . '_trace.log.txt', "a");
    fwrite($log_file, $message . "\n");
    fclose($log_file);
}
 
function issetor(&$variable, $or = NULL)
{
    return $variable === NULL ? $or : $variable;
}
 
function log_error($component, $function, $message, $persistent = false)
{
    log_message(\SucSyslog::CRITICAL, $component, $function, $message, $persistent);
}
 
function log_info($component, $function, $message, $persistent = false)
{
    log_message(\SucSyslog::VERBOSE, $component, $function, $message, $persistent);
}
 
function log_infomessage($component, $function, $message, $persistent = false)
{
 
    log_message(\SucSyslog::MESSAGE, $component, $function, $message, $persistent);
}
 
function log_warning($component, $function, $message, $persistent = false)
{
    log_message(\SucSyslog::WARNING, $component, $function, $message, $persistent);
}
 
 
function log_message($logLevel, $component, $function, $message, $persistent = false)
{
    if ($persistent || \SucConfig::Get("FULL_PERSISTENT_ERRORLOG", false)) {
        $persistent = true;
    }
    \SucSyslog::writeLog($logLevel, $component, $function, $message, $persistent);
/var/www/hh/core/application/init/Database/Facade/pdofacade.class.php
            log_error('PDOFacade', 'Constructor', 'Error by establishing database connection: '.$e);
            die();
        }
    }
 
    private function bind($stmt, $args) {
        #bind args to query
        if($args != null) {
            $this->bind = $args;
            foreach ($args as $name => $value) {
                $stmt->bindValue($name, $value);
            }
        }
    }
 
    public function fetch($query, $args = null, $log = true, $byLine = false) {
        assertNotNull($query);
 
        if ($log) {
            log_info('PDOFacade', 'fetch', 'call query: '.$query . $this->keyValueToString($this->lastBind));
        }
 
        $this->last_error = "";
 
        $stmt = $this->pdo->prepare($query);
 
        if($args != null) {
            $this->bind($stmt, $args);
        }
 
        return $this->executePreparedStatement($stmt, true, $log, $byLine);
    }
 
    private function keyValueToString($args) {
 
        if ($args == null || !is_array($args)) {
            return "";
        }
 
        $bind = "";
/var/www/hh/core/application/application.class.php
    public function getSecurityAdapter()
    {
        return $this->sa;
    }
 
    public function initialize()
    {
 
        $this->sa = null;
 
        $tableExists = "";
 
        if ($GLOBALS['application']->DB_DRIVER == 'mysql') {
            // MySQL
            $tableExists = "SHOW TABLES LIKE 'icrm_useractivities';";
        } else {
            // ORACLE, ...
            $tableExists = "SELECT table_name as \"name\" FROM all_tables WHERE table_name LIKE 'ICRM_USERACTIVITIES'";
        }
        $res = $this->dbh->fetch($tableExists);
        $this->tableUAExists = is_array($res) && count($res) > 0;
 
        switch ($GLOBALS['AUTH_MODE']) {
            case 'DB':
                $this->sa = new SecurityAdapterDB();
                break;
            case 'LDAP':
                $this->sa = new SecurityAdapterLDAP();
                break;
            case 'Custom':
                $this->sa = new SecurityAdapterCustom();
                break;
        }
 
        $requestHeaders = apache_request_headers_auth();
        $authorizationHeader = null;
        if (isset($requestHeaders['Authorization'])) {
            $authorizationHeader = $requestHeaders['Authorization'];
 
            // we may want to forcefully disable the auth header
/var/www/hh/core/application/auth/auth_header.php
    if ( !isset($_SESSION['ADMINSETTINGS_BUSINESSYEAR']) ) {
        $_SESSION['ADMINSETTINGS_BUSINESSYEAR'] = 1;
    }
 
 
    include 'core/bc/buscomp.class.php';
    include 'core/ic/csvintcomp.class.php';
    include 'core/applets/applet.class.php';
    include 'core/toolbars/toolbar.class.php';
    include 'core/drilldowns/drilldown.class.php';
    include 'core/modules/logon/auth/verification.php';
    include 'core/modules/logon/bc/applicationuserbuscomp.class.php';
    include 'core/application/application.class.php';
 
    // once the whole thing is setup we don't need to run it;
    $GLOBALS['initDone'] = true;
 
    #Create Application context
    $application = new Application();
    if ($application->initialize() == false) {
        $GLOBALS["USE_CMS"] = true;
    }
 
}
?>
/var/www/hh/index.php
<?php
//$page_title = $GLOBALS["APP_TITLE"] . "";
 
 
if ( !isset($START_LANG) ) {
    $START_LANG = "DEU";
}
 
 
#Authentification/Login and open main view block
include "config/includepath.php";
include 'core/application/auth/auth_header.php';
 
 
//if(isset($_SESSION["isLogged"]) && $_SESSION["isLogged"]) {
 
#Check permissions
//include 'modules/logon/auth/verification.php';
 
//header ("Location: /modules/dashboard/views/dashboardview.php");
//    exit();
//}
 
#Close main view block
//include "core/application/auth/auth_footer.php";
?>
Arguments
  1. "/var/www/hh/core/application/auth/auth_header.php"
    

Environment & details:

empty
empty
empty
Key Value
PHPSESSID
"8iemrhq9tee38je2pi6cpgvuep"
Key Value
isLogged
false
timeout
1764992337
lang
"DEU"
skinName
"scrm"
ADMINSETTINGS_BUSINESSYEAR
1
userId
null
Key Value
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"hh.sguenther.codesrv.it"
REDIRECT_STATUS
"200"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SSL_TLS_SNI
"hh.sguenther.codesrv.it"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_COOKIE
"PHPSESSID=8iemrhq9tee38je2pi6cpgvuep"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_HOST
"hh.sguenther.codesrv.it"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin"
SERVER_SIGNATURE
"<address>Apache/2.4.58 (Ubuntu) Server at hh.sguenther.codesrv.it Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.58 (Ubuntu)"
SERVER_NAME
"hh.sguenther.codesrv.it"
SERVER_ADDR
"5.9.183.98"
SERVER_PORT
"443"
REMOTE_ADDR
"216.73.216.4"
DOCUMENT_ROOT
"/var/www/hh"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/hh"
SERVER_ADMIN
"simon.guenther@ilume.de"
SCRIPT_FILENAME
"/var/www/hh/index.php"
REMOTE_PORT
"54333"
REDIRECT_URL
"/"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1764992337.4947
REQUEST_TIME
1764992337
empty
0. Whoops\Handler\PrettyPageHandler