added admin mode and echo command
This commit is contained in:
parent
e82cde3f4a
commit
11e204bbaf
1 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,7 @@ namespace Pithos
|
||||||
|
|
||||||
if (args[0] == "lock") { //locks the program
|
if (args[0] == "lock") { //locks the program
|
||||||
Program.MW.display("Locking Software...", Color.Red);
|
Program.MW.display("Locking Software...", Color.Red);
|
||||||
|
Program.MW.adminMode = false;
|
||||||
Program.MW.Hide();
|
Program.MW.Hide();
|
||||||
Program.UL.Show();
|
Program.UL.Show();
|
||||||
return true;
|
return true;
|
||||||
|
@ -28,6 +29,12 @@ namespace Pithos
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (args[0] == "shutdown") { Process.Start("shutdown /s /t 0"); return true; } //shutdown computer
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue