PageRenderTime 54ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/cake/bootstrap.php

https://github.com/hardsshah/bookmarks
PHP | 48 lines | 17 code | 3 blank | 28 comment | 2 complexity | 9be046be1514c9a095d7bee6012c96be MD5 | raw file
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * Basic Cake functionality.
  5. *
  6. * Core functions for including other source files, loading models and so forth.
  7. *
  8. * PHP versions 4 and 5
  9. *
  10. * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
  11. * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  12. *
  13. * Licensed under The MIT License
  14. * Redistributions of files must retain the above copyright notice.
  15. *
  16. * @filesource
  17. * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  18. * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
  19. * @package cake
  20. * @subpackage cake.cake
  21. * @since CakePHP(tm) v 0.2.9
  22. * @version $Revision$
  23. * @modifiedby $LastChangedBy$
  24. * @lastmodified $Date$
  25. * @license http://www.opensource.org/licenses/mit-license.php The MIT License
  26. */
  27. if (!defined('PHP5')) {
  28. define('PHP5', (PHP_VERSION >= 5));
  29. }
  30. /**
  31. * Configuration, directory layout and standard libraries
  32. */
  33. if (!isset($bootstrap)) {
  34. require CORE_PATH . 'cake' . DS . 'basics.php';
  35. $TIME_START = getMicrotime();
  36. require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
  37. require LIBS . 'object.php';
  38. require LIBS . 'inflector.php';
  39. require LIBS . 'configure.php';
  40. }
  41. require LIBS . 'cache.php';
  42. Configure::getInstance();
  43. $url = null;
  44. App::import('Core', array('Dispatcher'));
  45. ?>