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

View file

@ -615,13 +615,7 @@ jQuery(document).on('click', '.close-user-details', function(e) {
processing: true,
serverSide: true,
serverMethod: "POST",
ajax: {
url : "admin/user_list_backend.php",
type : "POST",
data : {
pwg_token : pwg_token
}
},
ajaxSource: "admin/user_list_backend.php",
pagingType: "simple",
language: {
processing: "{/literal}{'Loading...'|translate|escape:'javascript'}{literal}",

View file

@ -70,7 +70,6 @@ if ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1'
$sLimit = "LIMIT ".$_REQUEST['iDisplayStart'].", ".$_REQUEST['iDisplayLength'];
}
$sOrder = "";
/*
* Ordering
@ -105,7 +104,7 @@ if ( isset( $_REQUEST['iSortCol_0'] ) )
* on very large tables, and MySQL's regex functionality is very limited
*/
$sWhere = "";
if ( isSet( $_REQUEST['sSearch']) && $_REQUEST['sSearch'] != "" )
if ( $_REQUEST['sSearch'] != "" )
{
$sWhere = "WHERE (";
for ( $i=0 ; $i<count($aColumns) ; $i++ )
@ -162,13 +161,12 @@ $rResultTotal = pwg_query($sQuery);
$aResultTotal = pwg_db_fetch_array($rResultTotal);
$iTotal = $aResultTotal[0];
$sEcho = isSet($_REQUEST['sEcho']) ? intval($_REQUEST['sEcho']) : 0;
/*
* Output
*/
$output = array(
"sEcho" => $sEcho,
"sEcho" => intval($_REQUEST['sEcho']),
"iTotalRecords" => $iTotal,
"iTotalDisplayRecords" => $iFilteredTotal,
"aaData" => array()