/*
**************************
*/
require_once PHPOS_DIR . 'controllers/databaseController.php';
require_once PHPOS_DIR . 'classes/class.users.php';
require_once PHPOS_DIR . 'classes/class.phpos_config.php';
$config = new phpos_config();
$config->set_id_user();
require_once PHPOS_DIR . 'classes/class.helpers.php';
require_once PHPOS_DIR . 'classes/class.phpos_logs.php';
$phpos_log = new phpos_logs();
/*
**************************
*/
define("PHPOS_SYSTEM_LANG", cfg::get('lang'));
define("PHPOS_USER_LANG", cfg::uget('lang'));
require_once PHPOS_DIR . 'classes/class.languages.php';
require_once PHPOS_DIR . 'controllers/languageController.php';
require_once PHPOS_DIR . 'common/functions.php';
require_once PHPOS_DIR . 'classes/class.api_wintask.php';
require_once PHPOS_DIR . 'classes/class.api_processes.php';
require_once PHPOS_DIR . 'controllers/helpersController.php';
define('THEME_DIR', PHPOS_WEBROOT_DIR . '_phpos/themes/' . globalconfig('theme') . '/');
define('THEME_URL', PHPOS_WEBROOT_URL . '_phpos/themes/' . globalconfig('theme') . '/');
if ($_SESSION['DEBUG']) {
    //define("PHPOS_IN_DEBUG", true);
}
/*
**************************
*/
require_once PHPOS_DIR . 'classes/class.phpos_debugger.php';