diff --git a/VERSION.txt b/VERSION.txt index df17f2142..aba202c56 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -6,4 +6,4 @@ // +---------------------------------------------------------------------------------------------------+ // /////////////////////////////////////////////////////////////////////////////////////////////////////////// -0.10.8.1986 \ No newline at end of file +0.10.8.2010 \ No newline at end of file diff --git a/app/config/core.php b/app/config/core.php index bc9107772..0efc0d0c6 100644 --- a/app/config/core.php +++ b/app/config/core.php @@ -58,6 +58,25 @@ define('DEBUG', 1); * Currently PHP supports LOG_DEBUG */ define ('LOG_ERROR', 2); +/** + * CakePHP includes 3 types of session saves + * database or file. Set this to your preffered method. + * If you want to use your own save handeler place it in + * app/config/name.php DO NOT USE file or database as the name. + * and use just the name portion below. + * + * Setting this to cake will save files to /cakedistro/tmp directory + * Setting it to php will use the php default save path + * Setting it to database will use the database + * + * + */ +define('CAKE_SESSION_SAVE', 'php'); +/** + * Set a random string of used in session. + * + */ +define('CAKE_SESSION_STRING', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'); /** * Set the name of session cookie * @@ -81,27 +100,6 @@ define('CAKE_SECURITY', 'high'); */ define('CAKE_SESSION_TIMEOUT', '120'); -/** - * Set a random string of used in session. - * - */ -define('CAKE_SESSION_STRING', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'); - -/** - * CakePHP includes 3 types of session saves - * database or file. Set this to your preffered method. - * If you want to use your own save handeler place it in - * app/config/name.php DO NOT USE file or database as the name. - * and use just the name portion below. - * - * Setting this to cake will save files to /cakedistro/tmp directory - * Setting it to php will use the php default save path - * Setting it to database will use the database - * - * - */ -define('CAKE_SESSION_SAVE', 'php'); - /** * Uncomment the define below to use cake built in admin routes. * You can set this value to anything you want. diff --git a/app/config/routes.php.default b/app/config/routes.php.default deleted file mode 100644 index 59e9949fc..000000000 --- a/app/config/routes.php.default +++ /dev/null @@ -1,60 +0,0 @@ - - * Copyright (c) 2006, Cake Software Foundation, Inc. - * 1785 E. Sahara Avenue, Suite 490-204 - * Las Vegas, Nevada 89104 - * - * Licensed under The MIT License - * Redistributions of files must retain the above copyright notice. - * - * @filesource - * @copyright Copyright (c) 2006, Cake Software Foundation, Inc. - * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project - * @package cake - * @subpackage cake.cake.app.config - * @since CakePHP v 0.2.9 - * @version $Revision$ - * @modifiedby $LastChangedBy$ - * @lastmodified $Date$ - * @license http://www.opensource.org/licenses/mit-license.php The MIT License - */ - -/** - * In this file, you set up routes to your controllers and their actions. - * Routes are very important mechanism that allows you to freely connect - * different urls to chosen controllers and their actions (functions). - * - * @package cake - * @subpackage cake.config - */ - -/** - * Here we are connecting '/' (base path) to a controller called 'Pages', - * and its action called 'display'. We pass a parameter to select the view file - * to use (in this case, /app/views/pages/home.thtml). - */ -$Route->connect ('/', array('controller'=>'pages', 'action'=>'display', 'home')); - -/** - * ...and connect the rest of 'Pages' controller's URLs. - */ -$Route->connect ('/pages/*', array('controller'=>'pages', 'action'=>'display')); - -/** - * Then we connect url '/test' to our test controller. This is helpful in - * development. - */ -$Route->connect ('/test', array('controller'=>'tests', 'action'=>'test_all')); - -?> \ No newline at end of file diff --git a/cake/libs/controller/components/dbacl/db_acl.sql b/app/config/sql/db_acl.sql similarity index 100% rename from cake/libs/controller/components/dbacl/db_acl.sql rename to app/config/sql/db_acl.sql diff --git a/app/config/sql/sessions.sql b/app/config/sql/sessions.sql new file mode 100644 index 000000000..15b16b5e5 --- /dev/null +++ b/app/config/sql/sessions.sql @@ -0,0 +1,11 @@ +# @copyright Copyright (c) 2006, Cake Software Foundation, Inc. +# @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project +# @since CakePHP v 0.10.8.1997 +# @version $Revision$ + +CREATE TABLE cake_sessions ( + id varchar(255) NOT NULL default '', + data text, + expires int(11) default NULL, + PRIMARY KEY (id) +); \ No newline at end of file diff --git a/app/index.php b/app/index.php index 8cfc4e601..509639a04 100644 --- a/app/index.php +++ b/app/index.php @@ -23,5 +23,5 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ -require_once 'webroot'.DIRECTORY_SEPARATOR.'index.php'; +require 'webroot'.DIRECTORY_SEPARATOR.'index.php'; ?> \ No newline at end of file diff --git a/app/webroot/css.php b/app/webroot/css.php index 06742edd9..ccc37d4ce 100644 --- a/app/webroot/css.php +++ b/app/webroot/css.php @@ -31,9 +31,9 @@ /** * Enter description here... */ -require_once(CONFIGS.'paths.php'); -require_once(CAKE.'basics.php'); -require_once(LIBS.'folder.php'); +require(CONFIGS.'paths.php'); +require(CAKE.'basics.php'); +require(LIBS.'folder.php'); require(LIBS.'file.php'); require(LIBS.'legacy.php'); @@ -46,7 +46,7 @@ require(LIBS.'legacy.php'); */ function make_clean_css ($path, $name) { - require_once(VENDORS.'csspp'.DS.'csspp.php'); + require(VENDORS.'csspp'.DS.'csspp.php'); $data = file_get_contents($path); $csspp = new csspp(); diff --git a/app/webroot/index.php b/app/webroot/index.php index 340a1b106..ea451b36d 100644 --- a/app/webroot/index.php +++ b/app/webroot/index.php @@ -73,5 +73,19 @@ if (!defined('WEBROOT_DIR')) ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.CAKE_CORE_INCLUDE_PATH.PATH_SEPARATOR.ROOT.DS.APP_DIR.DS); -require_once 'cake'.DS.'bootstrap.php'; +require 'cake'.DS.'bootstrap.php'; + +if(isset($_GET['url']) && $_GET['url'] === 'favicon.ico') +{ +} +else +{ + $Dispatcher= new Dispatcher (); + $Dispatcher->dispatch($url); +} + +if (DEBUG) +{ + echo ""; +} ?> \ No newline at end of file diff --git a/cake/basics.php b/cake/basics.php index 5b67fc019..c9eda0c85 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -65,11 +65,11 @@ function loadModels() { if(file_exists(APP.'app_model.php')) { - require_once(APP.'app_model.php'); + require(APP.'app_model.php'); } else { - require_once(CAKE.'app_model.php'); + require(CAKE.'app_model.php'); } } @@ -80,7 +80,7 @@ function loadModels() foreach (listClasses(MODELS) as $model_fn) { - require_once (MODELS.$model_fn); + require (MODELS.$model_fn); if (phpversion() < 5 && function_exists("overload")) { list($name) = explode('.', $model_fn); @@ -104,7 +104,7 @@ function loadPluginModels ($plugin) { if(file_exists($pluginAppModelFile)) { - require_once($pluginAppModelFile); + require($pluginAppModelFile); } else { @@ -121,7 +121,7 @@ function loadPluginModels ($plugin) foreach (listClasses($pluginModelDir) as $modelFileName) { - require_once ($pluginModelDir.$modelFileName); + require ($pluginModelDir.$modelFileName); if (phpversion() < 5 && function_exists("overload")) { list($name) = explode('.', $modelFileName); @@ -141,11 +141,11 @@ function loadView ($viewClass) $file = Inflector::underscore($viewClass).'.php'; if(file_exists(VIEWS.$file)) { - return require_once(VIEWS.$file); + return require(VIEWS.$file); } elseif(file_exists(LIBS.'view'.DS.$file)) { - return require_once(LIBS.'view'.DS.$file); + return require(LIBS.'view'.DS.$file); } else { @@ -170,17 +170,17 @@ function loadModel($name) { if(file_exists(APP.'app_model.php')) { - require_once(APP.'app_model.php'); + require(APP.'app_model.php'); } else { - require_once(CAKE.'app_model.php'); + require(CAKE.'app_model.php'); } } if(file_exists(MODELS.$name.'.php')) { - require_once (MODELS.$name.'.php'); + require (MODELS.$name.'.php'); return true; } @@ -201,18 +201,18 @@ function loadControllers () { if(file_exists(APP.'app_controller.php')) { - require_once(APP.'app_controller.php'); + require(APP.'app_controller.php'); } else { - require_once(CAKE.'app_controller.php'); + require(CAKE.'app_controller.php'); } } foreach (listClasses(CONTROLLERS) as $controller) { if(!class_exists($controller)) { - require_once (CONTROLLERS.$controller.'.php'); + require (CONTROLLERS.$controller.'.php'); } } } @@ -229,11 +229,11 @@ function loadController ($name) { if(file_exists(APP.'app_controller.php')) { - require_once(APP.'app_controller.php'); + require(APP.'app_controller.php'); } else { - require_once(CAKE.'app_controller.php'); + require(CAKE.'app_controller.php'); } } if($name === null) @@ -255,7 +255,7 @@ function loadController ($name) { return false; } - require_once($controller_fn); + require($controller_fn); return true; } else @@ -281,7 +281,7 @@ function loadPluginController ($plugin, $controller) { if(file_exists($pluginAppControllerFile)) { - require_once($pluginAppControllerFile); + require($pluginAppControllerFile); } else { @@ -299,7 +299,7 @@ function loadPluginController ($plugin, $controller) } else { - require_once($file); + require($file); return true; } } @@ -396,11 +396,11 @@ function vendor($name) { if(file_exists(APP.'vendors'.DS.$arg.'.php')) { - require_once(APP.'vendors'.DS.$arg.'.php'); + require(APP.'vendors'.DS.$arg.'.php'); } else { - require_once(VENDORS.$arg.'.php'); + require(VENDORS.$arg.'.php'); } } } diff --git a/cake/bootstrap.php b/cake/bootstrap.php index c564d621a..75ce37413 100644 --- a/cake/bootstrap.php +++ b/cake/bootstrap.php @@ -33,14 +33,17 @@ /** * Configuration, directory layout and standard libraries */ -require_once 'cake'.DS.'basics.php'; -require_once ROOT.DS.APP_DIR.DS.'config'.DS.'core.php'; -require_once 'cake'.DS.'config'.DS.'paths.php'; -require_once LIBS.'object.php'; -require_once LIBS.'session.php'; -require_once LIBS.'security.php'; -require_once LIBS.'neat_array.php'; -require_once LIBS.'inflector.php'; +if(!isset($bootstrap)) +{ + require 'cake'.DS.'basics.php'; + require 'config'.DS.'core.php'; + require 'cake'.DS.'config'.DS.'paths.php'; +} +require LIBS.'object.php'; +require LIBS.'session.php'; +require LIBS.'security.php'; +require LIBS.'neat_array.php'; +require LIBS.'inflector.php'; /** * Enter description here... @@ -101,28 +104,14 @@ else $TIME_START = getMicrotime(); -require_once CAKE.'dispatcher.php'; -require_once LIBS.'model'.DS.'connection_manager.php'; +require CAKE.'dispatcher.php'; +require LIBS.'model'.DS.'connection_manager.php'; config('database'); if (class_exists('DATABASE_CONFIG') && !class_exists('AppModel')) { - require_once LIBS.'model'.DS.'model.php'; + require LIBS.'model'.DS.'model.php'; loadModels(); } - -if(isset($_GET['url']) && $_GET['url'] === 'favicon.ico') -{ -} -else -{ - $Dispatcher= new Dispatcher (); - $Dispatcher->dispatch($url); -} - -if (DEBUG) -{ - echo ""; -} ?> \ No newline at end of file diff --git a/cake/config/tags.ini.php b/cake/config/tags.ini.php index 40393f358..de864a38a 100644 --- a/cake/config/tags.ini.php +++ b/cake/config/tags.ini.php @@ -55,7 +55,7 @@ textarea = "" checkbox = "" ; Tag template for a input type='radio' tag. -radio = "" +radio = "%s" ; Tag template for a select opening tag. selectstart = "