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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Deprecated: Creation of dynamic property Sucurema\Core\SleekDB::$searchKeyword is deprecated in /var/www/scf/core/application/init/Database/traits/helpers.php on line 72
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: #13 Whoops\Exception\ErrorException in /var/www/scf/core/application/init/Database/SleekDB.php:18 #12 Whoops\Run:handleError in /var/www/scf/core/application/init/Database/SleekDB.php:18 #11 Sucurema\Core\SleekDB:__construct in /var/www/scf/core/application/init/Database/SleekDB.php:34 #10 Sucurema\Core\SleekDB:store in /var/www/scf/core/application/init/Controller/SleekBC.php:41 #9 Sucurema\Core\SleekBC:_getStore in /var/www/scf/core/application/init/ATraits/Facade.php:25 #8 Sucurema\Core\SleekBC:__call in /var/www/scf/core/application/init/Controller/SleekBC.php:25 #7 Sucurema\Core\SleekBC:__construct in /var/www/scf/core/application/init/Config/Config.php:55 #6 Sucurema\Core\Config:initConfigSleek in /var/www/scf/core/application/init/Config/Config.php:31 #5 Sucurema\Core\Config:Get in /var/www/scf/core/application/init/log_utilities.php:461 #4 log_message in /var/www/scf/core/application/init/log_utilities.php:444 #3 log_info in /var/www/scf/core/application/init/Database/Facade/pdofacade.class.php:51 #2 PDOFacade:fetch in /var/www/scf/core/application/application.class.php:126 #1 Application:initialize in /var/www/scf/core/application/auth/auth_header.php:86 #0 include in /var/www/scf/index.php:11
Stack frames (14)
13
Whoops\Exception\ErrorException
/application/init/Database/SleekDB.php18
12
Whoops\Run handleError
/application/init/Database/SleekDB.php18
11
Sucurema\Core\SleekDB __construct
/application/init/Database/SleekDB.php34
10
Sucurema\Core\SleekDB store
/application/init/Controller/SleekBC.php41
9
Sucurema\Core\SleekBC _getStore
/application/init/ATraits/Facade.php25
8
Sucurema\Core\SleekBC __call
/application/init/Controller/SleekBC.php25
7
Sucurema\Core\SleekBC __construct
/application/init/Config/Config.php55
6
Sucurema\Core\Config initConfigSleek
/application/init/Config/Config.php31
5
Sucurema\Core\Config Get
/application/init/log_utilities.php461
4
log_message
/application/init/log_utilities.php444
3
log_info
/application/init/Database/Facade/pdofacade.class.php51
2
PDOFacade fetch
/application/application.class.php126
1
Application initialize
/application/auth/auth_header.php86
0
include
/var/www/scf/index.php11
/var/www/scf/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/scf/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/scf/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/scf/core/application/init/Controller/SleekBC.php
    public function __construct($storageName)
    {
        $this->storageName = $storageName;
        $this->getStore();
    }
 
    /**
     * open Store for Work
     *
     * @param [type] $self
     * @param string $objectCode
     * @return SleekDB
     * @throws \Exception
     */
    public function _getStore($self)
    {
        if ($self->store == null) {
            $dataDir = get_include_path() . self::STORAGE_PATH;
 
            $self->store = \SucSleekDB::store(
                $self->storageName,
                $dataDir
            );
        }
    }
}
 
/var/www/scf/core/application/init/ATraits/Facade.php
 
trait Facade
{
 
    /**
     * our caller to access static classes
     * @param $name
     * @param $arguments
     * @return mixed
     * @throws \Exception
     */
    public function __call($name, $arguments)
    {
 
        if (!method_exists(__CLASS__, "_" . $name) && !method_exists(get_called_class(), "_" . $name)) {
            throw new \Exception('Unknown class method: ' . $name);
        }
 
        array_unshift($arguments, $this);
        return $this->{"_" . $name}(...$arguments);
    }
 
    /**
     * our caller to access static classes
     * @param $name
     * @param $arguments
     * @return mixed
     * @throws \Exception
     */
    public static function __callStatic($name, $arguments)
    {
 
        if (!method_exists(__CLASS__, "_" . $name) && !method_exists(get_called_class(), "_" . $name)) {
            throw new \Exception('Unknown class method: ' . $name);
        }
        $class = get_called_class();
        $self = new $class();
        array_unshift($arguments, $self);
        return $self->{"_" . $name}(...$arguments);
    }
/var/www/scf/core/application/init/Controller/SleekBC.php
 
use Sucurema\Core\Traits\Facade as Facade;
use Sucurema\Core\Traits\SleekHandler;
 
class SleekBC
{
 
    const STORAGE_PATH = "/core/storage/sucurema/";
 
    use Facade;
    use SleekHandler;
 
    private $store;
    public $storageName = null;
    private $result = [];
 
    public function __construct($storageName)
    {
        $this->storageName = $storageName;
        $this->getStore();
    }
 
    /**
     * open Store for Work
     *
     * @param [type] $self
     * @param string $objectCode
     * @return SleekDB
     * @throws \Exception
     */
    public function _getStore($self)
    {
        if ($self->store == null) {
            $dataDir = get_include_path() . self::STORAGE_PATH;
 
            $self->store = \SucSleekDB::store(
                $self->storageName,
                $dataDir
            );
        }
/var/www/scf/core/application/init/Config/Config.php
            return static::$sleekCache[$option];
        }
 
        if (!isset($GLOBALS[$option])) {
            return $defaultValue;
        }
 
        return $GLOBALS[$option];
    }
 
    public static function Put(string $option, $value)
    {
        $GLOBALS[$option] = $value;
        static::$sleekCache[$option] = $value;
        return true;
    }
 
    public static function initConfigSleek() {
 
        $bc = new \Sucurema\Core\SleekBC("succonfig");
        $elements = $bc->byArray([0 => ["param" => "_id", "condition" => "=", "value" => 1]])->find()->all();
 
        if (is_array($elements)) {
            foreach ($elements as $element) {
                foreach ($element as $name => $entity) {
                    if (isset($entity['value'])) {
                        static::$sleekCache[$name] = $entity['value'];
                    }
                }
            }
        }
    }
 
    public static function getSleekConfigValue(string $key)
    {
        $bc = new \Sucurema\Core\SleekBC("succonfig");
        $values = $bc->byArray([0 => ["param" => "_id", "condition" => "=", "value" => 1]])->find()->first();
        if ($values == null) {
            return "configEmpty";
        } else {
/var/www/scf/core/application/init/Config/Config.php
    public static function IsTrue(string $option)
    {
 
        if (!isset($GLOBALS[$option])) {
            return false;
        }
 
        if ($GLOBALS[$option] == 1 || $GLOBALS[$option] == true) {
            return true;
        }
 
        return false;
    }
 
    public static function Get(string $option, $defaultValue = null)
    {
 
        // init the store, get all data - ONCE
        if (count(static::$sleekCache) <= 0) {
            static::initConfigSleek();
        }
 
        // sleek config always wins
        if (isset(static::$sleekCache[$option])) {
            return static::$sleekCache[$option];
        }
 
        if (!isset($GLOBALS[$option])) {
            return $defaultValue;
        }
 
        return $GLOBALS[$option];
    }
 
    public static function Put(string $option, $value)
    {
        $GLOBALS[$option] = $value;
        static::$sleekCache[$option] = $value;
        return true;
    }
/var/www/scf/core/application/init/log_utilities.php
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);
    // \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']);
 
/var/www/scf/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/scf/core/application/init/Database/Facade/pdofacade.class.php
        }
    }
 
    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 "";
        }
 
/var/www/scf/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/scf/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/scf/index.php
<?php
//$page_title = $GLOBALS["APP_TITLE"] . "";
 
ini_set('memory_limit', '512M');
date_default_timezone_set('Europe/Berlin');
$START_LANG = "ENU";
 
 
#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/scf/core/application/auth/auth_header.php"
    

Environment & details:

empty
empty
empty
Key Value
PHPSESSID
"8nrnd0cmk101h33n5t2122q2g2"
Key Value
isLogged
false
timeout
1765237688
lang
"ENU"
skinName
"scrm"
ADMINSETTINGS_BUSINESSYEAR
1
userId
null
Key Value
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"scf.sguenther.codesrv.it"
REDIRECT_STATUS
"200"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SSL_TLS_SNI
"scf.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=8nrnd0cmk101h33n5t2122q2g2"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_HOST
"scf.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 scf.sguenther.codesrv.it Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.58 (Ubuntu)"
SERVER_NAME
"scf.sguenther.codesrv.it"
SERVER_ADDR
"5.9.183.98"
SERVER_PORT
"443"
REMOTE_ADDR
"216.73.216.13"
DOCUMENT_ROOT
"/var/www/scf"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/scf"
SERVER_ADMIN
"simon.guenther@ilume.de"
SCRIPT_FILENAME
"/var/www/scf/index.php"
REMOTE_PORT
"56961"
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
1765237688.0458
REQUEST_TIME
1765237688
empty
0. Whoops\Handler\PrettyPageHandler