Changeset 209 for trunk/lib


Ignore:
Timestamp:
Nov 29, 2006 1:25:59 AM (17 years ago)
Author:
scdev
Message:

Q - bug fixes

Location:
trunk/lib
Files:
3 edited

Legend:

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

    r208 r209  
    604604    * Calculates the most specific cascading privilege found for a requested
    605605    * ARO -> ACO -> AXO entry. Returns FALSE if the entry is denied. By default,
    606     * all entries are denied, unless some point in the hierarchy is set ao "allow."
     606    * all entries are denied, unless some point in the hierarchy is set to "allow."
    607607    *
    608608    * @access   public
  • trunk/lib/Auth_File.inc.php

    r158 r209  
    307307    }
    308308   
     309    /**
     310     * Wrapper function for compatability with lib/Lock.inc.php.
     311     *
     312     * @param  string  $username    Username to return.
     313     * @return string               Username, or false if none found.
     314     */
     315    function getUsername($username)
     316    {
     317        if ('' != $username) {
     318            return $username;
     319        } else {
     320            return false;
     321        }
     322    }
     323
    309324    /*
    310325    * Reads the configured htpasswd file into the _users array.
  • trunk/lib/DB.inc.php

    r172 r209  
    143143            // Die or continue without connection?
    144144            if ($this->getParam('db_die_on_failure')) {
    145                 echo "\n\n<!-- Script execution stopped out of embarrassment. -->";
     145                echo "\n\n<!-- Script execution stopped out of embarrassment. There was a database error. -->";
    146146                die;
    147147            } else {
     
    154154
    155155        // Tell MySQL what character set we're useing. Available only on MySQL verions > 4.01.01.
    156         $this->query("/*!40101 SET NAMES '" . $this->mysql_character_sets[strtolower($app->getParam('character_set'))] . "' */");
     156        if ('' != $app->getParam('character_set') && isset($this->mysql_character_sets[strtolower($app->getParam('character_set'))])) {
     157            $this->query("/*!40101 SET NAMES '" . $this->mysql_character_sets[strtolower($app->getParam('character_set'))] . "' */");
     158        } else {
     159            $app->logMsg(sprintf('%s is not a known character_set.', $app->getParam('character_set')), LOG_ERR, __FILE__, __LINE__);
     160        }
    157161
    158162        return true;
Note: See TracChangeset for help on using the changeset viewer.