Changeset 467 for branches/eli_branch/services/admins.php
- Timestamp:
- Feb 19, 2014 2:28:00 AM (10 years ago)
- Location:
- branches/eli_branch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch
-
branches/eli_branch/services/admins.php
r438 r467 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/>. … … 27 27 // require_once dirname(__FILE__) . '/_config.inc.php'; 28 28 29 $app->sslOn(); 29 30 $auth->requireLogin(); 30 $app->sslOn();31 31 32 32 require_once 'codebase/lib/PageNumbers.inc.php'; … … 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()) { … … 353 353 $qid = $db->query(" 354 354 SELECT " . $auth->getParam('db_username_column') . " 355 FROM " . $auth->getParam('db_table') . " 355 356 WHERE " . $auth->getParam('db_primary_key') . " = '" . $db->escapeString($id) . "' 356 357 "); … … 386 387 $app =& App::getInstance(); 387 388 $db =& DB::getInstance(); 388 389 389 390 // Remove any stale cached list data. 390 391 $cache->delete('list'); … … 429 430 $app =& App::getInstance(); 430 431 $db =& DB::getInstance(); 431 432 432 433 $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $frm['admin_id']); 433 434 if ($lock->isLocked() && !$lock->isMine()) { … … 474 475 global $auth; 475 476 $db =& DB::getInstance(); 476 477 477 478 $where_clause = ''; 478 479 … … 508 509 SELECT 509 510 " . $auth->getParam('db_table') . ".*, 510 " . $auth->getParam('db_table') . "." . $auth->getParam('db_primary_key') . " AS admin_id, 511 " . $auth->getParam('db_table') . "." . $auth->getParam('db_primary_key') . " AS admin_id, 511 512 a1." . $auth->getParam('db_username_column') . " AS added_admin_username, 512 513 a2." . $auth->getParam('db_username_column') . " AS modified_admin_username … … 536 537 return $list; 537 538 } 538 539 539 540 // The list was not cached, so issue the real query. 540 541 $qid = $db->query($sql);
Note: See TracChangeset
for help on using the changeset viewer.