Detect-It-Easy/db/result
2021-12-13 14:52:59 +01:00

41 lines
830 B
Text
Executable file

// Standard result format - "type: name(version)[options]".
// If no version or options, make them "-".
includeScript("_init");
function result(bShowType,bShowVersion,bShowOptions)
{
var sResult="";
if(bDetected)
{
if(bShowType)
{
sResult+=sType+": ";
}
sResult+=sName;
if(bShowVersion)
{
if(sVersion=="")
{
sVersion="-";
}
sResult+="("+sVersion+")";
}
if(bShowOptions)
{
if(sOptions=="")
{
sOptions="-";
}
sResult+="["+sOptions+"]";
}
if((typeof _setResult)=='function')
{
_setResult(sType,sName,sVersion,sOptions);
}
}
return sResult;
}