Detect-It-Easy/db/result-general
2014-06-02 09:02:47 +02:00

36 lines
788 B
Text

// Standard result format - "type: name(version)[options]".
// If no version, make it "-"; if no options, use the general options.
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=File.getGeneralOptions();
}
sResult+="["+sOptions+"]";
}
}
return sResult;
}