Changeset 340 for trunk


Ignore:
Timestamp:
Dec 6, 2008 7:34:31 PM (15 years ago)
Author:
quinn
Message:
 
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/examples/example.cli.php

    r339 r340  
    4141    'site_email' => 'codebase@strangecode.com',
    4242    'enable_session' => false,
    43     'enable_db' => true,
     43    'enable_db' => false,
    4444    'db_always_debug' => false,
    4545    'db_debug' => true,
     
    5656// given only to the user who will be executing the scripts: -rw-------
    5757// This file includes $app-> method calls so this must be included after App::getInstance().
    58 require_once 'global/db_auth.inc.php';
     58// require_once 'global/db_auth.inc.php';
    5959
    6060// Start application-based functionality: database, session, environment, ini setup, etc.
     
    6363
    6464// Global DB object. Automatically pre-configured by $app->start().
    65 $db =& DB::getInstance();
     65// $db =& DB::getInstance();
    6666
    6767
  • trunk/lib/Utilities.inc.php

    r338 r340  
    267267        return preg_replace(array(sprintf('/^(.{%s}).{4,}$/sU', $part1 + $part2), '/\s*\.{3,}\s*/sU'), array('$1' . $delim, $delim), $str);
    268268        break;
     269    }
     270}
     271
     272/*
     273* A substitution for the missing mb_ucfirst function.
     274*
     275* @access   public
     276* @param    string  $strong The string
     277* @return   string          String with uper-cased first character.
     278* @author   Quinn Comendant <quinn@strangecode.com>
     279* @version  1.0
     280* @since    06 Dec 2008 17:04:01
     281*/
     282if (!function_exists('mb_ucfirst')) {   
     283    function mb_ucfirst($string)
     284    {
     285        return mb_strtoupper(mb_substr($string, 0, 1)) . mb_substr($string, 1, mb_strlen($string));
    269286    }
    270287}
Note: See TracChangeset for help on using the changeset viewer.