Ignore:
Timestamp:
Jun 5, 2006 1:31:25 AM (18 years ago)
Author:
scdev
Message:

Q - Change Auth_SQL::getVal to Auth_SQL::get and Auth_SQL::setVal to Auth_SQL::set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/admins.php

    r143 r147  
    202202    }
    203203
    204     if (getFormData('user_type') == 'root' && 'root' != $auth->getVal('user_type')) {
     204    if (getFormData('user_type') == 'root' && 'root' != $auth->get('user_type')) {
    205205        $fv->addError('user_type', sprintf(_("You do not have clearance to create a user with root privileges."), null));
    206206    }
     
    343343    $qid = $db->query("SELECT COUNT(*) from admin_tbl");
    344344    list($num_admins) = mysql_fetch_row($qid);
    345     if ('root' == $user_type && 'root' != $auth->getVal('user_type')) {
     345    if ('root' == $user_type && 'root' != $auth->get('user_type')) {
    346346        // Only root users can delete root users!
    347347        $app->raiseMsg(_("You do not have clearance to delete a root administrator."), MSG_NOTICE, __FILE__, __LINE__);
     
    349349        // There must always be at least one admnistrator!
    350350        $app->raiseMsg(_("You cannot delete the only administrator in the database. There must be at least one to log in and create other users."), MSG_NOTICE, __FILE__, __LINE__);
    351     } else if ($auth->getVal('user_id') == $id) {
     351    } else if ($auth->get('user_id') == $id) {
    352352        // Do not delete yourself!
    353353        $app->raiseMsg(_("You cannot delete yourself."), MSG_NOTICE, __FILE__, __LINE__);
     
    388388            '" . $db->escapeString($frm['email']) . "',
    389389            '" . $db->escapeString($frm['user_type']) . "',
    390             '" . $db->escapeString($auth->getVal('user_id')) . "',
     390            '" . $db->escapeString($auth->get('user_id')) . "',
    391391            NOW()
    392392        )
     
    435435            email = '" . $db->escapeString($frm['email']) . "',
    436436            user_type = '" . $db->escapeString($frm['user_type']) . "',
    437             modified_by_user_id = '" . $db->escapeString($auth->getVal('user_id')) . "',
     437            modified_by_user_id = '" . $db->escapeString($auth->get('user_id')) . "',
    438438            modified_datetime = NOW()
    439439        WHERE admin_id = '" . $db->escapeString($frm['admin_id']) . "'
Note: See TracChangeset for help on using the changeset viewer.