summaryrefslogtreecommitdiffstats
path: root/lang/lang.php
diff options
context:
space:
mode:
Diffstat (limited to 'lang/lang.php')
-rw-r--r--lang/lang.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lang/lang.php b/lang/lang.php
new file mode 100644
index 00000000..401b91e5
--- /dev/null
+++ b/lang/lang.php
@@ -0,0 +1,8 @@
+<?php
+
+ $langArray = array("english","german","portuguese");
+ if(isset($_GET['lang']))
+ if(in_array($_GET['lang'],$langArray))
+ file_put_contents('lang.txt', $_GET['lang']);
+ header('Location: ' . $_SERVER['HTTP_REFERER']);
+?>