mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Dev: Tidy up SSP scripts so the db include for test env. is done only
once
This commit is contained in:
parent
9a462a5fe4
commit
ac0e965c09
@ -1 +1 @@
|
||||
456f664604b0cea876883f2dbc6c523704368c90
|
||||
362d018175caefe43124ac5bf4777049f9ae3f7e
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user