summaryrefslogtreecommitdiff
path: root/authenticate_session
diff options
context:
space:
mode:
Diffstat (limited to 'authenticate_session')
-rwxr-xr-xauthenticate_session5
1 files changed, 5 insertions, 0 deletions
diff --git a/authenticate_session b/authenticate_session
new file mode 100755
index 0000000..8995080
--- /dev/null
+++ b/authenticate_session
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+AUTH="'authenticated' => 'yes'"
+
+sed "s/\('_SESSION_REMOTE_ADDR'\)/$AUTH, \1/"