BASE . LOG,
'file_id' => $LOG_FILE_ID,
// add file date
'print_file_date' => true,
// set debug and print flags
'debug_all' => $DEBUG_ALL,
'echo_all' => $ECHO_ALL ?? false,
'print_all' => $PRINT_ALL,
]);
$PAGE_NAME = 'TEST CLASS: SYSTEM';
print "";
print "
" . $PAGE_NAME . "";
print "";
print '';
print '' . $PAGE_NAME . '
';
print "System::getHostName():
";
print "GETHOSTNAME: " . DgS::printAr(System::getHostName()) . "
";
print "System::getPageName():
";
print "GETPAGENAME(0): " . System::getPageName() . "
";
print "GETPAGENAME(1): " . System::getPageName(System::NO_EXTENSION) . "
";
print "GETPAGENAME(2): " . System::getPageName(System::FULL_PATH) . "
";
print "System::getPageNameArray():
";
print "GETPAGENAMEARRAY: " . \CoreLibs\Debug\Support::printAr(System::getPageNameArray()) . "
";
// seting errro codes file upload
print "System::fileUploadErrorMessage():
";
print "FILEUPLOADERRORMESSAGE(): " . System::fileUploadErrorMessage(-1) . "
";
print "FILEUPLOADERRORMESSAGE(UPLOAD_ERR_CANT_WRITE): "
. System::fileUploadErrorMessage(UPLOAD_ERR_CANT_WRITE) . "
";
print "System::checkCLI():
";
print "Are we in an CLI: " . (System::checkCLI() ? 'Yes' : 'No') . "
";
// error message
print $log->printErrorMsg();
print "";