From 11e204bbafc17cc292c38685708cce3077c476f3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 10 Jan 2015 23:16:14 +0000 Subject: [PATCH] added admin mode and echo command --- decode.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/decode.cs b/decode.cs index 4a8afeb..3afa438 100644 --- a/decode.cs +++ b/decode.cs @@ -19,6 +19,7 @@ namespace Pithos if (args[0] == "lock") { //locks the program Program.MW.display("Locking Software...", Color.Red); + Program.MW.adminMode = false; Program.MW.Hide(); Program.UL.Show(); return true; @@ -28,6 +29,12 @@ namespace Pithos return true; } else if (args[0] == "shutdown") { Process.Start("shutdown /s /t 0"); return true; } //shutdown computer + + else if (args[0] == "echo") { Program.MW.display(args[1], Color.LimeGreen); return true; } //display content + + else if (args[0] == "override" && args[1] == "¦") { Program.MW.adminMode = true; Program.MW.display("Admin Mode had been enabled.", Color.Orange); return true; } //activate admin + + return false; } }