-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDataTables.php
More file actions
34 lines (30 loc) · 822 Bytes
/
Copy pathDataTables.php
File metadata and controls
34 lines (30 loc) · 822 Bytes
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
28
29
30
31
32
33
34
<?php
/**
* DataTables PHP libraries.
*
* PHP libraries for DataTables and DataTables Editor.
*
* @author SpryMedia Ltd
* @copyright SpryMedia Ltd
* @license MIT
*
* @see https://datatables.net/manual/server/php
*/
define('DATATABLES', true);
//
// Error checking - check that we are PHP 5.4 or newer
//
if (version_compare(\PHP_VERSION, '5.4.0', '<')) {
echo json_encode([
'sError' => 'Editor PHP libraries required PHP 5.4 or newer. You are '
. 'currently using ' . \PHP_VERSION . '. PHP 5.4 and newer have a lot of '
. 'great new features that the Editor libraries take advantage of to '
. 'present an easy to use and flexible API.',
]);
exit(1);
}
//
// Load the DataTables bootstrap core file and let it register the required
// handlers.
//
require __DIR__ . '/Bootstrap.php';