SQL notes system

Creates and impliments a system of playernotes that actively pulls data
from SQL. Has one transfer proc in it that probably should not be run
unless the table is set up.
This commit is contained in:
skull132
2015-06-07 00:53:22 +03:00
parent ddff9868c0
commit 963378041a
5 changed files with 354 additions and 33 deletions
+6 -1
View File
@@ -110,7 +110,12 @@
var/DBQuery/query_insert = dbcon.NewQuery("INSERT INTO aurora_warnings (id, time, severity, reason, notes, ckey, computerid, ip, a_ckey) VALUES (null, Now(), '[severity]', '[reason]', '[notes]', '[sqlkey]', '[computerid]', '[ip]', '[a_ckey]')")
query_insert.Execute()
notes_add(warned_ckey, "Warning added by [a_ckey], for: [reason]. || Notes regarding the warning: [notes].")
if(config.ban_legacy_system)
notes_add(warned_ckey, "Warning added by [a_ckey], for: [reason]. || Notes regarding the warning: [notes].")
else
notes_add_sql(warned_ckey, "Warning added by [a_ckey], for: [reason]. || Notes regarding the warning: [notes].", a_ckey, ip, computerid)
feedback_add_details("admin_verb","WARN-DB")
if(C)
C << "<font color='red'><BIG><B>You have been formally warned by an administrator.</B></BIG><br>You can look up your warnings through the OOC panel, with the 'My Warnings' button.</font>"