Changeset 334 for trunk/lib/ACL.inc.php


Ignore:
Timestamp:
May 13, 2008 4:14:53 AM (16 years ago)
Author:
quinn
Message:

Fixed lots of misplings. I'm so embarrassed! ;P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/ACL.inc.php

    r280 r334  
    2121    var $_params = array(
    2222       
    23         // If false nothing will be cached or retreived. Useful for testing realtime data requests.
     23        // If false nothing will be cached or retrieved. Useful for testing realtime data requests.
    2424        'enable_cache' => true,
    2525
     
    178178                    trigger_error(sprintf('Database table %s has invalid columns. Please update this table manually.', "{$a_o}_tbl"), E_USER_ERROR);
    179179                } else {
    180                     // Insert root node data if nonexistant.
     180                    // Insert root node data if nonexistent.
    181181                    $qid = $db->query("SELECT 1 FROM {$a_o}_tbl WHERE name = 'root'");
    182182                    if (mysql_num_rows($qid) == 0) {
     
    247247        $qid = $db->query("SELECT rgt FROM $tbl WHERE name = '" . $db->escapeString($parent) . "'");
    248248        if (!list($parent_rgt) = mysql_fetch_row($qid)) {
    249             $app->logMsg(sprintf('Cannot add %s node to nonexistant parent: %s', $type, $parent), LOG_WARNING, __FILE__, __LINE__);
     249            $app->logMsg(sprintf('Cannot add %s node to nonexistent parent: %s', $type, $parent), LOG_WARNING, __FILE__, __LINE__);
    250250            return false;
    251251        }
     
    325325        $qid = $db->query("SELECT lft, rgt FROM $tbl WHERE name = '" . $db->escapeString($name) . "'");
    326326        if (!list($lft, $rgt) = mysql_fetch_row($qid)) {
    327             $app->logMsg(sprintf('Cannot delete nonexistant %s name: %s', $type, $name), LOG_NOTICE, __FILE__, __LINE__);
     327            $app->logMsg(sprintf('Cannot delete nonexistent %s name: %s', $type, $name), LOG_NOTICE, __FILE__, __LINE__);
    328328            return false;
    329329        }
     
    412412        $qid = $db->query("SELECT lft, rgt FROM $tbl WHERE name = '" . $db->escapeString($name) . "'");
    413413        if (!list($lft, $rgt) = mysql_fetch_row($qid)) {
    414             $app->logMsg(sprintf('Cannot move nonexistant %s name: %s', $type, $name), LOG_NOTICE, __FILE__, __LINE__);
     414            $app->logMsg(sprintf('Cannot move nonexistent %s name: %s', $type, $name), LOG_NOTICE, __FILE__, __LINE__);
    415415            return false;
    416416        }
     
    422422        $qid = $db->query("SELECT rgt FROM $tbl WHERE name = '" . $db->escapeString($new_parent) . "'");
    423423        if (!list($new_parent_rgt) = mysql_fetch_row($qid)) {
    424             $app->logMsg(sprintf('Cannot move %s node to nonexistant parent: %s', $type, $new_parent), LOG_WARNING, __FILE__, __LINE__);
     424            $app->logMsg(sprintf('Cannot move %s node to nonexistent parent: %s', $type, $new_parent), LOG_WARNING, __FILE__, __LINE__);
    425425            return false;
    426426        }
     
    661661            if (!list($access) = mysql_fetch_row($qid)) {
    662662                $this->cache->set($cache_hash, 'deny');
    663                 $app->logMsg(sprintf('Access denyed: %s -> %s -> %s. No records found.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__);
     663                $app->logMsg(sprintf('Access denied: %s -> %s -> %s. No records found.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__);
    664664                return false;
    665665            }
     
    671671            return true;
    672672        } else {
    673             $app->logMsg(sprintf('Access denyed: %s -> %s -> %s.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__);
     673            $app->logMsg(sprintf('Access denied: %s -> %s -> %s.', $aro, $aco, $axo), LOG_DEBUG, __FILE__, __LINE__);
    674674            return false;
    675675        }
Note: See TracChangeset for help on using the changeset viewer.