Revert "Include pwg_token in user list POST request (Fixes #748) (#866)"

This reverts commit 65ac272179.
This commit is contained in:
plegall
2019-04-02 14:06:54 +02:00
parent 1646f5e631
commit ab46632a32
2 changed files with 5 additions and 13 deletions
+1 -7
View File
@@ -615,13 +615,7 @@ jQuery(document).on('click', '.close-user-details', function(e) {
processing: true, processing: true,
serverSide: true, serverSide: true,
serverMethod: "POST", serverMethod: "POST",
ajax: { ajaxSource: "admin/user_list_backend.php",
url : "admin/user_list_backend.php",
type : "POST",
data : {
pwg_token : pwg_token
}
},
pagingType: "simple", pagingType: "simple",
language: { language: {
processing: "{/literal}{'Loading...'|translate|escape:'javascript'}{literal}", processing: "{/literal}{'Loading...'|translate|escape:'javascript'}{literal}",
+4 -6
View File
@@ -70,8 +70,7 @@ if ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1'
$sLimit = "LIMIT ".$_REQUEST['iDisplayStart'].", ".$_REQUEST['iDisplayLength']; $sLimit = "LIMIT ".$_REQUEST['iDisplayStart'].", ".$_REQUEST['iDisplayLength'];
} }
$sOrder = "";
/* /*
* Ordering * Ordering
*/ */
@@ -105,7 +104,7 @@ if ( isset( $_REQUEST['iSortCol_0'] ) )
* on very large tables, and MySQL's regex functionality is very limited * on very large tables, and MySQL's regex functionality is very limited
*/ */
$sWhere = ""; $sWhere = "";
if ( isSet( $_REQUEST['sSearch']) && $_REQUEST['sSearch'] != "" ) if ( $_REQUEST['sSearch'] != "" )
{ {
$sWhere = "WHERE ("; $sWhere = "WHERE (";
for ( $i=0 ; $i<count($aColumns) ; $i++ ) for ( $i=0 ; $i<count($aColumns) ; $i++ )
@@ -162,13 +161,12 @@ $rResultTotal = pwg_query($sQuery);
$aResultTotal = pwg_db_fetch_array($rResultTotal); $aResultTotal = pwg_db_fetch_array($rResultTotal);
$iTotal = $aResultTotal[0]; $iTotal = $aResultTotal[0];
$sEcho = isSet($_REQUEST['sEcho']) ? intval($_REQUEST['sEcho']) : 0;
/* /*
* Output * Output
*/ */
$output = array( $output = array(
"sEcho" => $sEcho, "sEcho" => intval($_REQUEST['sEcho']),
"iTotalRecords" => $iTotal, "iTotalRecords" => $iTotal,
"iTotalDisplayRecords" => $iFilteredTotal, "iTotalDisplayRecords" => $iFilteredTotal,
"aaData" => array() "aaData" => array()