diff --git a/cake/bootstrap.php b/cake/bootstrap.php index 25cf19d6e..1e2f834b5 100644 --- a/cake/bootstrap.php +++ b/cake/bootstrap.php @@ -43,11 +43,19 @@ if (!defined('PHP5')) { require LIBS . 'security.php'; require LIBS . 'inflector.php'; require LIBS . 'configure.php'; + require LIBS . 'debugger.php'; $paths = Configure::getInstance(); Configure::store(null, 'class.paths'); Configure::load('class.paths'); + Configure::write('debug', DEBUG); /** - * Enter description here... + * Verify that the application's salt has been changed from the default value + */ + if (CAKE_SESSION_STRING == 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi') { + trigger_error('Please change the value of CAKE_SESSION_STRING in app/config/core.php to a salt value specific to your application', E_USER_NOTICE); + } +/** + * Get the application path and request URL */ if (empty($uri) && defined('BASE_URL')) { $uri = setUri(); @@ -95,8 +103,6 @@ if (!defined('PHP5')) { } } - Configure::write('debug', DEBUG); - require CAKE . 'dispatcher.php'; if (defined('CACHE_CHECK') && CACHE_CHECK === true) { diff --git a/cake/libs/file.php b/cake/libs/file.php index fb45c898e..5ef41504a 100644 --- a/cake/libs/file.php +++ b/cake/libs/file.php @@ -103,7 +103,7 @@ class File extends Object{ function write($data, $mode = 'w') { $file = $this->getFullPath(); if (!($handle = fopen($file, $mode))) { - print ("[File] Could not open $file with mode $mode!"); + trigger_error("[File] Could not open {$file} with mode {$mode}!", E_USER_WARNING); return false; }