Ignore:
Timestamp:
Feb 19, 2014 2:28:00 AM (10 years ago)
Author:
anonymous
Message:

Merged in changes from trunk to finish Eli's branch.

Location:
branches/eli_branch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eli_branch

  • branches/eli_branch/services/admins.php

    r438 r467  
    44 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    55 * Copyright 2001-2012 Strangecode, LLC
    6  * 
     6 *
    77 * This file is part of The Strangecode Codebase.
    88 *
     
    1111 * Free Software Foundation, either version 3 of the License, or (at your option)
    1212 * any later version.
    13  * 
     13 *
    1414 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1515 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1616 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1717 * details.
    18  * 
     18 *
    1919 * You should have received a copy of the GNU General Public License along with
    2020 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
     
    2727// require_once dirname(__FILE__) . '/_config.inc.php';
    2828
     29$app->sslOn();
    2930$auth->requireLogin();
    30 $app->sslOn();
    3131
    3232require_once 'codebase/lib/PageNumbers.inc.php';
     
    282282    $app =& App::getInstance();
    283283    $db =& DB::getInstance();
    284    
     284
    285285    $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id);
    286286    if ($lock->isLocked() && !$lock->isMine()) {
     
    341341    $app =& App::getInstance();
    342342    $db =& DB::getInstance();
    343    
     343
    344344    $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id);
    345345    if ($lock->isLocked() && !$lock->isMine()) {
     
    353353    $qid = $db->query("
    354354        SELECT " . $auth->getParam('db_username_column') . "
     355        FROM " . $auth->getParam('db_table') . "
    355356        WHERE " . $auth->getParam('db_primary_key') . " = '" . $db->escapeString($id) . "'
    356357    ");
     
    386387    $app =& App::getInstance();
    387388    $db =& DB::getInstance();
    388    
     389
    389390    // Remove any stale cached list data.
    390391    $cache->delete('list');
     
    429430    $app =& App::getInstance();
    430431    $db =& DB::getInstance();
    431    
     432
    432433    $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $frm['admin_id']);
    433434    if ($lock->isLocked() && !$lock->isMine()) {
     
    474475    global $auth;
    475476    $db =& DB::getInstance();
    476    
     477
    477478    $where_clause = '';
    478479
     
    508509        SELECT
    509510            " . $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,
    511512            a1." . $auth->getParam('db_username_column') . " AS added_admin_username,
    512513            a2." . $auth->getParam('db_username_column') . " AS modified_admin_username
     
    536537        return $list;
    537538    }
    538    
     539
    539540    // The list was not cached, so issue the real query.
    540541    $qid = $db->query($sql);
Note: See TracChangeset for help on using the changeset viewer.