added admin mode and echo command

This commit is contained in:
Jake Howard 2015-01-10 23:16:14 +00:00
parent e82cde3f4a
commit 11e204bbaf

View file

@ -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;
}
}