Skip to content
Permalink
Browse files

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

This reverts commit 65ac272.
  • Loading branch information...
plegall committed Apr 2, 2019
1 parent 1646f5e commit ab46632a3210b755915c4ecf50d06b6727b1de16
Showing with 5 additions and 13 deletions.
  1. +1 −7 admin/themes/default/template/user_list.tpl
  2. +4 −6 admin/user_list_backend.php
@@ -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}",
@@ -70,8 +70,7 @@
$sLimit = "LIMIT ".$_REQUEST['iDisplayStart'].", ".$_REQUEST['iDisplayLength'];
}
$sOrder = "";
/*
* Ordering
*/
@@ -105,7 +104,7 @@
* 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 @@
$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()

0 comments on commit ab46632

Please sign in to comment.
You can’t perform that action at this time.