diff --git a/Makefile b/Makefile
index cff6890..5b9b5f3 100644
--- a/Makefile
+++ b/Makefile
@@ -2368,6 +2368,7 @@ Q3UIOBJ_ = \
$(B)/$(BASEGAME)/ui/ui_transporter.o \
$(B)/$(BASEGAME)/ui/ui_motd.o \
$(B)/$(BASEGAME)/ui/ui_msd.o \
+ $(B)/$(BASEGAME)/ui/ui_sql.o \
$(B)/$(BASEGAME)/ui/ui_admin.o \
$(B)/$(BASEGAME)/ui/ui_fonts.o \
$(B)/$(BASEGAME)/ui/ui_emotes.o \
diff --git a/code/ui/ui.vcxproj b/code/ui/ui.vcxproj
index 82ac033..e6e631e 100644
--- a/code/ui/ui.vcxproj
+++ b/code/ui/ui.vcxproj
@@ -323,6 +323,7 @@
WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;UI_EXPORTS
+
Disabled
WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;UI_EXPORTS
@@ -443,6 +444,7 @@
MaxSpeed
WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;UI_EXPORTS
+
Disabled
WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;UI_EXPORTS
diff --git a/code/ui/ui.vcxproj.filters b/code/ui/ui.vcxproj.filters
index f8a0946..ce846f5 100644
--- a/code/ui/ui.vcxproj.filters
+++ b/code/ui/ui.vcxproj.filters
@@ -146,6 +146,12 @@
Source Files
+
+ Source Files
+
+
+ Source Files
+
diff --git a/code/ui/ui_sql.c b/code/ui/ui_sql.c
new file mode 100644
index 0000000..e7dec8b
--- /dev/null
+++ b/code/ui/ui_sql.c
@@ -0,0 +1,47 @@
+/**********************************************************************
+ UI_sql.C
+
+ User interface trigger from within game
+**********************************************************************/
+
+#include "ui_local.h"
+
+typedef struct {
+ menuframework_s menu;
+
+ char *username;
+ char *password;
+} sql_t;
+
+sql_t s_sql;
+
+#define ID_QUIT 10
+#define ID_LOGIN 11
+
+/*
+=================
+M_sql_Event
+=================
+*/
+static void M_sql_Event(void *ptr, int notification) {
+ int id;
+
+ id = ((menucommon_s*)ptr)->id;
+
+ switch (id)
+ {
+ case ID_QUIT:
+ if(notification == QM_ACTIVATED) {
+ UI_PopMenu();
+ }
+ break;
+ case ID_LOGIN:
+ if(notification == QM_ACTIVATED) {
+ // do login
+ }
+ break;
+ default:
+ break;
+ }
+
+}