blob: fa772d22e161b71731b353042de6a5b30b2f3e09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?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']))
{
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2);
if(file_exists($dpath.$lang))
$wsdata[4] = $lang;
}
$wsdata = array_merge($wsdata, file($dpath.$wsdata[4].'/'.$common, FILE_IGNORE_NEW_LINES));
?>
|