31 lines
741 B
C#
31 lines
741 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Drawing;
|
|
namespace Pithos
|
|
{
|
|
class decode
|
|
{
|
|
public decode() { }
|
|
public string injectVariables(string text)
|
|
{
|
|
text = text.Replace("$user", Environment.UserName);
|
|
return text;
|
|
}
|
|
|
|
|
|
public void command(string text)
|
|
{
|
|
string[] args = text.Substring(1).Split(' ');//splits string and removed character
|
|
|
|
if (args[0] == "lock")
|
|
{
|
|
Program.MW.display("Locking Software...", Color.Red);
|
|
Program.MW.Hide();
|
|
Program.UL.Show();
|
|
}
|
|
}
|
|
}
|
|
}
|