summary refs log tree commit diff stats
path: root/php/ws-procedures.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/ws-procedures.php')
-rw-r--r--php/ws-procedures.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/php/ws-procedures.php b/php/ws-procedures.php
new file mode 100644
index 0000000..5dc685a
--- /dev/null
+++ b/php/ws-procedures.php
@@ -0,0 +1,10 @@
+<?php
+//read the file and create array separate by new line
+$mdata = file($dpath.'/'.$common, FILE_IGNORE_NEW_LINES);
+
+# Language overwritten by the browser preference
+if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
+  $mdata[3] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2);
+
+$mdata = array_merge($mdata, file($dpath.$mdata[3].'/'.$common, FILE_IGNORE_NEW_LINES));
+?>