summaryrefslogtreecommitdiffstats
path: root/php/ws-procedures.php
blob: d1536e7c1c999f98c69057dcf3441831e666f999 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
<?php
//read the file and create array separate by new line
$wsdata = file($dpath.'/'.$common, FILE_IGNORE_NEW_LINES);

# Language overwritten by the browser preference
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
  $wsdata[3] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2);

$wsdata = array_merge($wsdata, file($dpath.$wsdata[3].'/'.$common, FILE_IGNORE_NEW_LINES));
?>