- Timestamp:
- 09/26/13 15:41:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/adodb-pager.inc.php
r34 r8222 2 2 3 3 /* 4 V 4.94 23 Jan 2007 (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved.4 V5.18 3 Sep 2012 (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. 5 5 Released under both BSD license and Lesser GPL library license. 6 6 Whenever there is any discrepancy between the two licenses, … … 61 61 62 62 $curr_page = $id.'_curr_page'; 63 if ( empty($PHP_SELF)) $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']); // htmlspecialchars() to prevent XSS attacks63 if (!empty($PHP_SELF)) $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']); // htmlspecialchars() to prevent XSS attacks 64 64 65 65 $this->sql = $sql; … … 248 248 if ($this->db->pageExecuteCountRows) $ADODB_COUNTRECS = true; 249 249 if ($this->cache) 250 $rs = &$this->db->CachePageExecute($this->cache,$this->sql,$rows,$this->curr_page);250 $rs = $this->db->CachePageExecute($this->cache,$this->sql,$rows,$this->curr_page); 251 251 else 252 $rs = &$this->db->PageExecute($this->sql,$rows,$this->curr_page);252 $rs = $this->db->PageExecute($this->sql,$rows,$this->curr_page); 253 253 $ADODB_COUNTRECS = $savec; 254 254 255 $this->rs = &$rs;255 $this->rs = $rs; 256 256 if (!$rs) { 257 257 print "<h3>Query failed: $this->sql</h3>";
Note: See TracChangeset
for help on using the changeset viewer.