- Timestamp:
- Dec 6, 2008 7:34:31 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/examples/example.cli.php
r339 r340 41 41 'site_email' => 'codebase@strangecode.com', 42 42 'enable_session' => false, 43 'enable_db' => true,43 'enable_db' => false, 44 44 'db_always_debug' => false, 45 45 'db_debug' => true, … … 56 56 // given only to the user who will be executing the scripts: -rw------- 57 57 // 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'; 59 59 60 60 // Start application-based functionality: database, session, environment, ini setup, etc. … … 63 63 64 64 // Global DB object. Automatically pre-configured by $app->start(). 65 $db =& DB::getInstance();65 // $db =& DB::getInstance(); 66 66 67 67 -
trunk/lib/Utilities.inc.php
r338 r340 267 267 return preg_replace(array(sprintf('/^(.{%s}).{4,}$/sU', $part1 + $part2), '/\s*\.{3,}\s*/sU'), array('$1' . $delim, $delim), $str); 268 268 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 */ 282 if (!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)); 269 286 } 270 287 }
Note: See TracChangeset
for help on using the changeset viewer.