Changeset 25545 for trunk/admin/user_list_backend.php
- Timestamp:
- Nov 18, 2013, 6:03:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/user_list_backend.php
r25475 r25545 29 29 */ 30 30 $sLimit = ""; 31 if ( isset( $_ GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )31 if ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1' ) 32 32 { 33 $sLimit = "LIMIT ".pwg_db_real_escape_string( $_ GET['iDisplayStart'] ).", ".34 pwg_db_real_escape_string( $_ GET['iDisplayLength'] );33 $sLimit = "LIMIT ".pwg_db_real_escape_string( $_REQUEST['iDisplayStart'] ).", ". 34 pwg_db_real_escape_string( $_REQUEST['iDisplayLength'] ); 35 35 } 36 36 … … 39 39 * Ordering 40 40 */ 41 if ( isset( $_ GET['iSortCol_0'] ) )41 if ( isset( $_REQUEST['iSortCol_0'] ) ) 42 42 { 43 43 $sOrder = "ORDER BY "; 44 for ( $i=0 ; $i<intval( $_ GET['iSortingCols'] ) ; $i++ )44 for ( $i=0 ; $i<intval( $_REQUEST['iSortingCols'] ) ; $i++ ) 45 45 { 46 if ( $_ GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == "true" )46 if ( $_REQUEST[ 'bSortable_'.intval($_REQUEST['iSortCol_'.$i]) ] == "true" ) 47 47 { 48 $sOrder .= $aColumns[ intval( $_ GET['iSortCol_'.$i] ) ]."49 ".pwg_db_real_escape_string( $_ GET['sSortDir_'.$i] ) .", ";48 $sOrder .= $aColumns[ intval( $_REQUEST['iSortCol_'.$i] ) ]." 49 ".pwg_db_real_escape_string( $_REQUEST['sSortDir_'.$i] ) .", "; 50 50 } 51 51 } … … 66 66 */ 67 67 $sWhere = ""; 68 if ( $_ GET['sSearch'] != "" )68 if ( $_REQUEST['sSearch'] != "" ) 69 69 { 70 70 $sWhere = "WHERE ("; 71 71 for ( $i=0 ; $i<count($aColumns) ; $i++ ) 72 72 { 73 $sWhere .= $aColumns[$i]." LIKE '%".pwg_db_real_escape_string( $_ GET['sSearch'] )."%' OR ";73 $sWhere .= $aColumns[$i]." LIKE '%".pwg_db_real_escape_string( $_REQUEST['sSearch'] )."%' OR "; 74 74 } 75 75 $sWhere = substr_replace( $sWhere, "", -3 ); … … 80 80 for ( $i=0 ; $i<count($aColumns) ; $i++ ) 81 81 { 82 if ( $_ GET['bSearchable_'.$i] == "true" && $_GET['sSearch_'.$i] != '' )82 if ( $_REQUEST['bSearchable_'.$i] == "true" && $_REQUEST['sSearch_'.$i] != '' ) 83 83 { 84 84 if ( $sWhere == "" ) … … 90 90 $sWhere .= " AND "; 91 91 } 92 $sWhere .= $aColumns[$i]." LIKE '%".pwg_db_real_escape_string($_ GET['sSearch_'.$i])."%' ";92 $sWhere .= $aColumns[$i]." LIKE '%".pwg_db_real_escape_string($_REQUEST['sSearch_'.$i])."%' "; 93 93 } 94 94 } … … 130 130 */ 131 131 $output = array( 132 "sEcho" => intval($_ GET['sEcho']),132 "sEcho" => intval($_REQUEST['sEcho']), 133 133 "iTotalRecords" => $iTotal, 134 134 "iTotalDisplayRecords" => $iFilteredTotal,
Note: See TracChangeset
for help on using the changeset viewer.