dbInfo(true);
ob_end_flush();
print "
TEST CLASS";
print "";
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print '';
print "
";
// print all _ENV vars set
print "READ _ENV ARRAY:
";
print "" . print_r(array_map('htmlentities', $_ENV), true) . "";
// set + check edit access id
$edit_access_id = 3;
if (is_object($login) && isset($login->acl['unit'])) {
print "ACL UNIT: " . print_r(array_keys($login->acl['unit']), true) . "
";
print "ACCESS CHECK: " . (string)$login->loginCheckEditAccess($edit_access_id) . "
";
if ($login->loginCheckEditAccess($edit_access_id)) {
$basic->edit_access_id = $edit_access_id;
} else {
$basic->edit_access_id = $login->acl['unit_id'];
}
} else {
print "Something went wrong with the login
";
}
// $basic->log->debug('SESSION', \CoreLibs\Debug\Support::printAr($_SESSION));
print '';
// print the debug core vars
foreach (['on', 'off'] as $flag) {
foreach (['debug', 'echo', 'print'] as $type) {
$prefix = $flag == 'off' ? 'NOT ' : '';
print $prefix . strtoupper($type) . ' OUT: '
. \CoreLibs\Debug\Support::printAr($basic->log->getLogLevel($type, $flag)) . '
';
}
}
foreach (['debug', 'echo', 'print'] as $type) {
print strtoupper($type) . ' OUT ALL: ' . $basic->log->getLogLevelAll($type) . '
';
}
$basic->log->debug('SOME MARK', 'Some error output');
// INTERNAL SET
print "EDIT ACCESS ID: " . $basic->edit_access_id . "
";
if (is_object($login)) {
// print "ACL:
".$basic->print_ar($login->acl)."
";
$basic->log->debug('ACL', "ACL: " . \CoreLibs\Debug\Support::printAr($login->acl));
// print "DEFAULT ACL:
".$basic->print_ar($login->default_acl_list)."
";
// print "DEFAULT ACL:
".$basic->print_ar($login->default_acl_list)."
";
// $result = array_flip(
// array_filter(
// array_flip($login->default_acl_list),
// function ($key) {
// if (is_numeric($key)) {
// return $key;
// }
// }
// )
// );
// print "DEFAULT ACL:
".$basic->print_ar($result)."
";
// DEPRICATED CALL
// $basic->adbSetACL($login->acl);
}
print "THIS HOST: " . HOST_NAME . ", with PROTOCOL: " . HOST_PROTOCOL . " is running SSL: " . HOST_SSL . "
";
print "DIR: " . DIR . "
";
print "BASE: " . BASE . "
";
print "ROOT: " . ROOT . "
";
print "HOST: " . HOST_NAME . " => DB HOST: " . DB_CONFIG_NAME . " => " . print_r(DB_CONFIG, true) . "
";
$ds = defined('DS') ? DS : DIRECTORY_SEPARATOR;
$du = DS ?? DIRECTORY_SEPARATOR;
print "DS is: " . $ds . "
";
print "SERVER HOST: " . $_SERVER['HTTP_HOST'] . "
";
// print error messages
// print $login->log->printErrorMsg();
print $basic->log->printErrorMsg();
print "";
# __END__