- Game masters and Game admins can view server .log file using "Show Server Log" command in Admin panel.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1538 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
panurgomatic
2011-05-06 15:05:32 +00:00
parent 2a1023b594
commit 94feec379e
2 changed files with 26 additions and 2 deletions

View File

@@ -2209,6 +2209,28 @@ var/showadminmessages = 1
log_admin("[key_name(usr)] toggled guests game entering [guests_allowed?"":"dis"]allowed.")
message_admins("\blue [key_name_admin(usr)] toggled guests game entering [guests_allowed?"":"dis"]allowed.", 1)
/obj/admins/proc/view_txt_log()
set category = "Admin"
set desc="Shows todays server log in new window"
set name="Show Server Log"
var/path = "data/logs/[time2text(world.realtime,"YYYY")]/[time2text(world.realtime,"MM")]-[time2text(world.realtime,"Month")]/[time2text(world.realtime,"DD")]-[time2text(world.realtime,"Day")].log"
var/output = {"<html>
<head>
<title>[time2text(world.realtime,"Day, MMM DD, YYYY")] - Log</title>
</head>
<body>
<pre>
[file2text(path)]
</pre>
</body>
</html>"}
usr << browse(output,"window=server_logfile")
onclose(usr,"server_logfile")
return
//
//
//ALL DONE

View File

@@ -28,7 +28,7 @@
src.holder.level = 6
// Settings
src.verbs += /obj/admins/proc/view_txt_log
src.verbs += /client/proc/colorooc // -- Urist
src.verbs += /obj/admins/proc/adjump //toggle admin jumping
src.verbs += /obj/admins/proc/adrev //toggle admin revives
@@ -173,6 +173,7 @@
// Settings
//src.verbs += /client/proc/colorooc // -- Urist
src.verbs += /obj/admins/proc/view_txt_log
src.verbs += /obj/admins/proc/adjump //toggle admin jumping
src.verbs += /obj/admins/proc/adrev //toggle admin revives
src.verbs += /obj/admins/proc/adspawn //toggle admin item spawning
@@ -1036,6 +1037,7 @@
src.verbs -= /client/proc/unstealthadmin
// Settings
src.verbs -= /obj/admins/proc/view_txt_log
src.verbs -= /client/proc/colorooc // -- Urist
src.verbs -= /obj/admins/proc/adjump //toggle admin jumping
src.verbs -= /obj/admins/proc/adrev //toggle admin revives
@@ -1692,4 +1694,4 @@
// Old and unused
if ("Admin Observer") //Former Filthy Xeno
if ("Admin Observer") //Former Filthy Xeno