diff --git a/.datatables-commit-sync b/.datatables-commit-sync index d824e011..a3910a96 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -456f664604b0cea876883f2dbc6c523704368c90 +362d018175caefe43124ac5bf4777049f9ae3f7e diff --git a/examples/server_side/scripts/ids-arrays.php b/examples/server_side/scripts/ids-arrays.php index 2e2885d6..093a8f13 100644 --- a/examples/server_side/scripts/ids-arrays.php +++ b/examples/server_side/scripts/ids-arrays.php @@ -62,16 +62,8 @@ $sql_details = array( /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. - * - * It should be noted that this script could be made far more modular */ -// REMOVE THIS BLOCK - used for DataTables test environment only! -$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; -if ( is_file( $file ) ) { - include( $file ); -} - require( 'ssp.class.php' ); echo json_encode( diff --git a/examples/server_side/scripts/ids-objects.php b/examples/server_side/scripts/ids-objects.php index 6b845c40..a8820dc0 100644 --- a/examples/server_side/scripts/ids-objects.php +++ b/examples/server_side/scripts/ids-objects.php @@ -61,16 +61,8 @@ $sql_details = array( /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. - * - * It should be noted that this script could be made far more modular */ -// REMOVE THIS BLOCK - used for DataTables test environment only! -$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; -if ( is_file( $file ) ) { - include( $file ); -} - require( 'ssp.class.php' ); echo json_encode( diff --git a/examples/server_side/scripts/jsonp.php b/examples/server_side/scripts/jsonp.php index 6bf22806..bece6ee3 100644 --- a/examples/server_side/scripts/jsonp.php +++ b/examples/server_side/scripts/jsonp.php @@ -60,16 +60,7 @@ $sql_details = array( /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. - * - * It should be noted that this script could be made far more modular */ - -// REMOVE THIS BLOCK - used for DataTables test environment only! -$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; -if ( is_file( $file ) ) { - include( $file ); -} - require( 'ssp.class.php' ); echo $_GET['callback'].'('.json_encode( diff --git a/examples/server_side/scripts/objects.php b/examples/server_side/scripts/objects.php index 4abc9c3e..9105f5d3 100644 --- a/examples/server_side/scripts/objects.php +++ b/examples/server_side/scripts/objects.php @@ -47,16 +47,8 @@ $sql_details = array( /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. - * - * It should be noted that this script could be made far more modular */ -// REMOVE THIS BLOCK - used for DataTables test environment only! -$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; -if ( is_file( $file ) ) { - include( $file ); -} - require( 'ssp.class.php' ); echo json_encode( diff --git a/examples/server_side/scripts/post.php b/examples/server_side/scripts/post.php index 866ead4d..57fd8aae 100644 --- a/examples/server_side/scripts/post.php +++ b/examples/server_side/scripts/post.php @@ -61,16 +61,8 @@ $sql_details = array( /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. - * - * It should be noted that this script could be made far more modular */ -// REMOVE THIS BLOCK - used for DataTables test environment only! -$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; -if ( is_file( $file ) ) { - include( $file ); -} - require( 'ssp.class.php' ); echo json_encode( diff --git a/examples/server_side/scripts/server_processing.php b/examples/server_side/scripts/server_processing.php index d27acb04..26b94054 100644 --- a/examples/server_side/scripts/server_processing.php +++ b/examples/server_side/scripts/server_processing.php @@ -61,16 +61,8 @@ $sql_details = array( /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * If you just want to use the basic configuration for DataTables with PHP * server-side, there is no need to edit below this line. - * - * It should be noted that this script could be made far more modular */ -// REMOVE THIS BLOCK - used for DataTables test environment only! -$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; -if ( is_file( $file ) ) { - include( $file ); -} - require( 'ssp.class.php' ); echo json_encode( diff --git a/examples/server_side/scripts/ssp.class.php b/examples/server_side/scripts/ssp.class.php index 6c0f2645..6d6ac91b 100644 --- a/examples/server_side/scripts/ssp.class.php +++ b/examples/server_side/scripts/ssp.class.php @@ -16,6 +16,13 @@ */ +// REMOVE THIS BLOCK - used for DataTables test environment only! +$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; +if ( is_file( $file ) ) { + include( $file ); +} + + class SSP { /** * Create the data output array for the DataTables rows