-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added a new section on page under the dashboard with 'Actions and p…
…age options' * Updated autorunsc.exe from v13.2 to v13.3 * Changed tables will not make use of extra features from datatables by default because huge tables can freeze the page from loading if not loaded locally. Still local html report file will init tables with datatables plugin if there are less than 4000 rows on page or 1000 if online. * Changed the networks default sort. They are now sorted by status * Changed the processes default sort. They are now sorted by memory DESC * Changed the services default sort. They are now sorted by status and name ASC * Changed the autoruns default sort. They are now sorted by enabled and name ASC * Moved some code classes into Core
- Loading branch information
Showing
31 changed files
with
1,276 additions
and
674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Web.Script.Serialization; | ||
|
||
namespace SystemInfoSnapshot.Components | ||
{ | ||
/// <summary> | ||
/// Javascript utility class | ||
/// </summary> | ||
public static class JavaScript | ||
{ | ||
/*public static string Encode(string value, bool addDoubleQuotes) | ||
{ | ||
return System.Web.JavaScriptStringEncode | ||
}*/ | ||
/// <summary> | ||
/// Encode a object into javascript code. | ||
/// </summary> | ||
/// <param name="obj">Object to encode.</param> | ||
/// <param name="assingVar">Assign the serialized object to an variable. Null for no variable</param> | ||
/// <returns>A valid javascript string.</returns> | ||
public static string Encode(object obj, string assingVar = null) | ||
{ | ||
var js = new JavaScriptSerializer(); | ||
return !string.IsNullOrEmpty(assingVar) ? | ||
string.Format("var {0} = {1};", assingVar, js.Serialize(obj)) | ||
: | ||
js.Serialize(obj); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* SystemInfoSnapshot | ||
* Author: Tiago Conceição | ||
* | ||
* http://systeminfosnapshot.com/ | ||
* https://github.com/sn4k3/SystemInfoSnapshot | ||
*/ | ||
|
||
using System; | ||
|
||
namespace SystemInfoSnapshot.Core.Autorun | ||
{ | ||
/// <summary> | ||
/// Represents a install program in the system. | ||
/// </summary> | ||
public sealed class AutorunItem | ||
{ | ||
#region Properties | ||
//Time,Entry Location,Entry,Enabled,Category,Profile,Description,Publisher,Image Path,Version,Launch String | ||
|
||
public DateTime Time { get; set; } | ||
public string EntryLocation { get; set; } | ||
public string Entry { get; set; } | ||
public bool Enabled { get; set; } | ||
public string Category { get; set; } | ||
public string Profile { get; set; } | ||
public string Description { get; set; } | ||
public string Publisher { get; set; } | ||
public string ImagePath { get; set; } | ||
public string Version { get; set; } | ||
public string LunchString { get; set; } | ||
|
||
public bool IsValidFile { get; set; } | ||
#endregion | ||
|
||
#region Construtor | ||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public AutorunItem() | ||
{ | ||
IsValidFile = true; | ||
} | ||
|
||
#endregion | ||
|
||
#region Overrides | ||
private bool Equals(AutorunItem other) | ||
{ | ||
return string.Equals(Entry, other.Entry); | ||
} | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
if (ReferenceEquals(null, obj)) return false; | ||
if (ReferenceEquals(this, obj)) return true; | ||
if (obj is string) | ||
return Entry.Equals(obj.ToString()); | ||
return obj is AutorunItem && Equals((AutorunItem)obj); | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
return (Entry != null ? Entry.GetHashCode() : 0); | ||
} | ||
#endregion | ||
} | ||
} |
Oops, something went wrong.