mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Added a standard header comment to all db framework and detection rule files, indicating they are part of the Detect It Easy (DiE-JS) framework and warning against unauthorized changes. This improves consistency and clarifies file purpose for maintainers.
28 lines
No EOL
755 B
Text
28 lines
No EOL
755 B
Text
// Detect It Easy: DiE-JS framework file
|
|
// Don't change anything unless you're sure about what you're doing
|
|
|
|
// Debugging functions to help with development
|
|
|
|
// Author: DosX
|
|
// E-Mail: collab@kay-software.ru
|
|
// GitHub: https://github.com/DosX-dev
|
|
// Telegram: @DosX_dev
|
|
|
|
// Just a debug function
|
|
function _debug(messageText) {
|
|
messageText = "-> " + messageText;
|
|
_log("Debug: " + messageText);
|
|
_setResult("dev-output", messageText, "", "");
|
|
}
|
|
|
|
// Handle exceptions and log them
|
|
function _error(exceptionText) {
|
|
var exceptionText = "Error: " + exceptionText;
|
|
|
|
if (sName) {
|
|
exceptionText += ", last define() is '" + sName + "' with type '" + sType + "'";
|
|
}
|
|
|
|
_log("Exception: " + exceptionText);
|
|
throw exceptionText;
|
|
} |