mylittleforum/includes/b8.inc.php
Michael Loesler 454e392dee
B8 spl autoload register (#562)
* B8

- prepare fies for new b8 version

* Update B8

- add new b8 classes

* Update b8.php

- modify spl_autoload_register function to prevent errors
- cf. https://gitlab.com/l3u/b8/-/merge_requests/1
2021-02-28 21:29:12 +01:00

16 lines
No EOL
451 B
PHP

<?php
if (!defined('IN_INDEX')) {
header('Location: ../index.php');
exit;
}
// include B8 php resources
require 'modules/b8/b8.php';
// include config
require 'config/b8_config.php';
// create instance
//$B8_BAYES_FILTER = new b8($B8_CONFIG_DATABASE_TYPE, $B8_CONFIG_AUTHENTICATION, $B8_CONFIG_LEXER, $B8_CONFIG_DEGENERATOR);
$B8_BAYES_FILTER = new b8\b8($B8_CONFIG_DATABASE_TYPE, $B8_CONFIG_STORAGE, $B8_CONFIG_LEXER, $B8_CONFIG_DEGENERATOR);
?>