1
0
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:
Allan Jardine 2014-01-21 08:20:03 +00:00
parent 9a462a5fe4
commit ac0e965c09
8 changed files with 8 additions and 50 deletions

View File

@ -1 +1 @@
456f664604b0cea876883f2dbc6c523704368c90
362d018175caefe43124ac5bf4777049f9ae3f7e

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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