Show
Ignore:
Timestamp:
11/18/2007 03:13:52 AM (13 months ago)
Author:
Shadowhand
Message:

Batch of core changes:

  • Added a configuration file for profiler, to enable/disable specific profiler information
  • Implemented configuration handling in Profiler and views/kohana_profiler.php
  • Added system/models/form.php and views/kohana_form.php, see: http://kohanaphp.com/tutorials/quick_forms.html
  • text::random('unique') now uses sha1, instead of md5
  • Added a couple of missing connect() calls in Database
  • Added Database::list_fields() and Database_Mysql::list_fields()
  • Fixed Database_Mysql::escape_table()
  • Changed Loader::helper() to just do a Log::add('debug') instead of actually loading the helper
  • Updated some comment styles to prepare for Kodoc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/text.php

    r936 r1168  
    104104         * 
    105105         * Default Types: 
    106          *  unique  - a 32 character unique hash 
     106         *  unique  - 40 character unique hash 
    107107         *  alnum   - alpha-numeric characters 
    108108         *  alpha   - alphabetical characters 
     
    118118                { 
    119119                        case 'unique': 
    120                                 return md5(uniqid(mt_rand())); 
    121                         case '': 
     120                                return sha1(uniqid(NULL, TRUE)); 
    122121                        case 'alnum': 
    123122                                $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';