Adds a function to recreate static directories

This commit is contained in:
Cyberboss
2017-09-27 14:14:23 -04:00
parent 2d8fab96ad
commit 848221fc0a
8 changed files with 148 additions and 21 deletions
+10
View File
@@ -44,6 +44,16 @@ namespace TGControlPanel
return true;
}
public static bool CheckAdminWithWarning()
{
if (!Server.AuthenticateAdmin())
{
MessageBox.Show("Only system administrators may use this command!");
return false;
}
return true;
}
public static void ServiceDisconnectException(Exception e)
{
MessageBox.Show("An unhandled exception occurred. This usually means we lost connection to the service. Error" + e.ToString());