Changeset 441 for trunk/services
- Timestamp:
- Dec 5, 2013 6:58:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/admins.php
r432 r441 4 4 * For details visit the project site: <http://trac.strangecode.com/codebase/> 5 5 * Copyright 2001-2012 Strangecode, LLC 6 * 6 * 7 7 * This file is part of The Strangecode Codebase. 8 8 * … … 11 11 * Free Software Foundation, either version 3 of the License, or (at your option) 12 12 * any later version. 13 * 13 * 14 14 * The Strangecode Codebase is distributed in the hope that it will be useful, but 15 15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 17 * details. 18 * 18 * 19 19 * You should have received a copy of the GNU General Public License along with 20 20 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. … … 282 282 $app =& App::getInstance(); 283 283 $db =& DB::getInstance(); 284 284 285 285 $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id); 286 286 if ($lock->isLocked() && !$lock->isMine()) { … … 341 341 $app =& App::getInstance(); 342 342 $db =& DB::getInstance(); 343 343 344 344 $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id); 345 345 if ($lock->isLocked() && !$lock->isMine()) { … … 386 386 $app =& App::getInstance(); 387 387 $db =& DB::getInstance(); 388 388 389 389 // Remove any stale cached list data. 390 390 $cache->delete('list'); … … 429 429 $app =& App::getInstance(); 430 430 $db =& DB::getInstance(); 431 431 432 432 $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $frm['admin_id']); 433 433 if ($lock->isLocked() && !$lock->isMine()) { … … 474 474 global $auth; 475 475 $db =& DB::getInstance(); 476 476 477 477 $where_clause = ''; 478 478 … … 508 508 SELECT 509 509 " . $auth->getParam('db_table') . ".*, 510 " . $auth->getParam('db_table') . "." . $auth->getParam('db_primary_key') . " AS admin_id, 510 " . $auth->getParam('db_table') . "." . $auth->getParam('db_primary_key') . " AS admin_id, 511 511 a1." . $auth->getParam('db_username_column') . " AS added_admin_username, 512 512 a2." . $auth->getParam('db_username_column') . " AS modified_admin_username … … 536 536 return $list; 537 537 } 538 538 539 539 // The list was not cached, so issue the real query. 540 540 $qid = $db->query($sql);
Note: See TracChangeset
for help on using the changeset viewer.