Skip to content

Commit

Permalink
Add patched flag
Browse files Browse the repository at this point in the history
  • Loading branch information
th3-z committed Sep 25, 2019
1 parent 88276b0 commit 6132721
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin_patches/checksums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ORIG_MD5 = {
"gamesummary.inc": "c058a82cc997d82cb6b135aec3d3e398",
"current_rules.inc": "fa1f6df26241de95d1e2b67383c2382d",
"header_base.inc": "47c04f5c37a02e14dd848898c9b1445c",
# "about.html": "170c37c1a24bc3f5ed7fad5f0cd6988d",
# "console.html": "e677bf40becdaf7351ca152bcdb9ab81",
# "current_bot_empty.inc": "7010a3c6ce19005916cb8da47b9b6c9f",
Expand Down Expand Up @@ -58,7 +59,6 @@
# "gamesummary_base.inc": "3319af6efb70753866b2bafce634e258",
# "gamesummary.js": "3723867be22e71f8f655b3ac1815c119",
# "gamesummary_kfgameinfo_survival.inc": "86f11c0d38193fd39ab6b966a8ade24a",
# "header_base.inc": "47c04f5c37a02e14dd848898c9b1445c",
# "header.inc": "562ac9fa12fb6f1dbfc0352bf99ea76a",
# "login.html": "08bfb87514ab579bd89e470fc50bd245",
# "message_error.inc": "9c3885f94344bf53cf90effa965e255a",
Expand Down
12 changes: 12 additions & 0 deletions admin_patches/patches/header_base.inc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/ServerAdmin/header_base.inc b/ServerAdmin/header_base.inc
index 217a460..9b085bd 100755
--- a/ServerAdmin/header_base.inc
+++ b/ServerAdmin/header_base.inc
@@ -1,6 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
+ <!-- KF2-MA-INSTALLED-FLAG -->
<title>Killing Floor 2 WebAdmin - <%page.title%></title>
<link rel="stylesheet" type="text/css" href="/images/kf2.css?gzip" />
<link rel="stylesheet" type="text/css" href="/images/kf2modern.css?gzip" />
5 changes: 2 additions & 3 deletions magicked_admin/web_admin/web_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ def __new_session(self):
info("Detected KF2-MA install on server.")
else:
pass
# TODO: Implement webadmin patches
# warning("KF2-MA install not detected on server side! "
# "Consequently, only Survival mode will function fully.")
warning("KF2-MA install not detected on server side! "
"Consequently, only Survival mode will function fully.")

return session

Expand Down

0 comments on commit 6132721

Please sign in to comment.