blob: 9a0fce41a2c990177e69143e7337535f1b01836e (
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[4] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2);
$wsdata = array_merge($wsdata, file($dpath.$wsdata[4].'/'.$common, FILE_IGNORE_NEW_LINES));
?>
|