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