Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* @license MIT License https://github.com/serbanghita/Mobile-Detect/blob/master/LICENSE.txt
* @link http://mobiledetect.net
*
* Compile the providers list.
* The providers list is updated weekly.
* You can contribute by adding new user agents and tests.
*/
// Setup.
$includeBasePath = dirname(__FILE__) . '/providers/vendors';
$list = array();
// Scan.
$dir = new DirectoryIterator($includeBasePath);
foreach ($dir as $fileInfo) {
if ($fileInfo->isDot()) {
continue;
}
$listNew = include $includeBasePath . '/' . $fileInfo->getFilename();
if (is_array($listNew)) {
$list = array_merge($list, $listNew);
}
}
return $list;
|
Revision |
Author |
Commited |
Message |
1049
|
LZicari
|
Wed 23 Dec, 2015 15:41:53 +0000 |
|