mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merging fixes and enhancements into trunk.
Revision: [2133] Fixing sub package doc tag Revision: [2132] Added fixes when ini_set() is disabled. Problem reported here: http://groups.google.com/group/cake-php/browse_thread/thread/f8e537b165da733e/06888a4112345f59 Revision: [2131] "Correcting subpackage doc block tags " git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2134 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
80d6673717
commit
f37dfb6302
32 changed files with 156 additions and 116 deletions
|
@ -6,4 +6,4 @@
|
|||
// +---------------------------------------------------------------------------------------------------+ //
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
0.10.8.2130
|
||||
0.10.8.2134
|
|
@ -18,7 +18,7 @@
|
|||
; * @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
|
||||
; * @subpackage cake.app.config
|
||||
; * @since CakePHP v 0.10.0.1076
|
||||
; * @version $Revision$
|
||||
; * @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.app.webroot
|
||||
* @subpackage cake.app.config
|
||||
* @since CakePHP v 0.10.8.2117
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @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
|
||||
* @subpackage cake.app.config
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @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
|
||||
* @subpackage cake.app.config
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* @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
|
||||
* @subpackage cake.app.config
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -5,18 +5,18 @@
|
|||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
||||
* Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* 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
|
||||
* @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
|
||||
* @subpackage cake.app
|
||||
* @since CakePHP v 0.10.0.1076
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.app.webroot
|
||||
* @subpackage cake.app.webroot
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.app.webroot
|
||||
* @subpackage cake.app.webroot
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -66,6 +66,7 @@ if (!defined('CAKE_CORE_INCLUDE_PATH'))
|
|||
define('CAKE_CORE_INCLUDE_PATH', ROOT);
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////
|
||||
//DO NOT EDIT BELOW THIS LINE//
|
||||
///////////////////////////////
|
||||
|
@ -74,13 +75,22 @@ if (!defined('WEBROOT_DIR'))
|
|||
{
|
||||
define ('WEBROOT_DIR', basename(dirname(__FILE__)));
|
||||
}
|
||||
|
||||
define('WWW_ROOT', dirname(__FILE__));
|
||||
|
||||
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.CAKE_CORE_INCLUDE_PATH.PATH_SEPARATOR.ROOT.DS.APP_DIR.DS);
|
||||
if(function_exists('ini_set'))
|
||||
{
|
||||
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.CAKE_CORE_INCLUDE_PATH.PATH_SEPARATOR.ROOT.DS.APP_DIR.DS);
|
||||
define('APP_PATH', null);
|
||||
define('CORE_PATH', null);
|
||||
}
|
||||
else
|
||||
{
|
||||
define('APP_PATH', ROOT.DS.APP_DIR.DS);
|
||||
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH.DS);
|
||||
}
|
||||
|
||||
require 'cake'.DS.'bootstrap.php';
|
||||
require 'config'.DS.'bootstrap.php';
|
||||
require CORE_PATH.'cake'.DS.'bootstrap.php';
|
||||
require APP_PATH.'config'.DS.'bootstrap.php';
|
||||
|
||||
if(isset($_GET['url']) && $_GET['url'] === 'favicon.ico')
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.public.js
|
||||
* @subpackage cake.app.webroot.js
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -3,21 +3,21 @@
|
|||
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* This file is application-wide controller file. You can put all
|
||||
*
|
||||
* This file is application-wide controller file. You can put all
|
||||
* application-wide controller-related methods here.
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
||||
* Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* 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
|
||||
* @filesource
|
||||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
|
@ -32,11 +32,11 @@
|
|||
/**
|
||||
* Short description for class.
|
||||
*
|
||||
* Add your application-wide methods in the class below, your controllers
|
||||
* Add your application-wide methods in the class below, your controllers
|
||||
* will inherit them.
|
||||
*
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.app
|
||||
* @subpackage cake.cake
|
||||
*/
|
||||
class AppController extends Controller {
|
||||
}
|
||||
|
|
|
@ -3,21 +3,21 @@
|
|||
|
||||
/**
|
||||
* Application model for Cake.
|
||||
*
|
||||
* This file is application-wide model file. You can put all
|
||||
*
|
||||
* This file is application-wide model file. You can put all
|
||||
* application-wide model-related methods here.
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
||||
* Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* 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
|
||||
* @filesource
|
||||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
|
@ -28,15 +28,15 @@
|
|||
* @lastmodified $Date$
|
||||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Application model for Cake.
|
||||
*
|
||||
* Add your application-wide methods in the class below, your models
|
||||
* will inherit them.
|
||||
*
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.app
|
||||
* @subpackage cake.cake
|
||||
*/
|
||||
class AppModel extends Model {
|
||||
}
|
||||
|
|
|
@ -940,6 +940,10 @@ function fileExistsInPath ($file)
|
|||
{
|
||||
return $fullPath;
|
||||
}
|
||||
elseif (file_exists($file))
|
||||
{
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -35,9 +35,9 @@
|
|||
*/
|
||||
if(!isset($bootstrap))
|
||||
{
|
||||
require 'cake'.DS.'basics.php';
|
||||
require 'config'.DS.'core.php';
|
||||
require 'cake'.DS.'config'.DS.'paths.php';
|
||||
require CORE_PATH.'cake'.DS.'basics.php';
|
||||
require APP_PATH.'config'.DS.'core.php';
|
||||
require CORE_PATH.'cake'.DS.'config'.DS.'paths.php';
|
||||
}
|
||||
require LIBS.'object.php';
|
||||
require LIBS.'session.php';
|
||||
|
@ -95,7 +95,11 @@ if (strpos($url, 'ccss/') === 0)
|
|||
if (DEBUG)
|
||||
{
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
if(function_exists('ini_set'))
|
||||
{
|
||||
ini_set('display_errors', 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ if(!defined('WEBROOT_DIR'))
|
|||
/**
|
||||
* Path to the application's directory.
|
||||
*/
|
||||
define ('CAKE', 'cake'.DS);
|
||||
define ('CAKE', CORE_PATH.'cake'.DS);
|
||||
|
||||
/**
|
||||
* Path to the application's directory.
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.app.webroot
|
||||
* @subpackage cake.cake.libs
|
||||
* @since CakePHP v 0.10.3.1612
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -37,7 +37,7 @@ uses('object', 'inflector');
|
|||
* base class for /scripts/add.php.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.libs
|
||||
* @subpackage cake.cake.libs
|
||||
* @since CakePHP v CakePHP v 0.10.3.1612
|
||||
*/
|
||||
class Bake extends Object
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.app.controllers.componenets.dbacl
|
||||
* @subpackage cake.cake.libs.controller.componenets.dbacl
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -39,7 +39,7 @@ uses('controller'.DS.'components'.DS.'dbacl'.DS.'models'.DS.'aros_aco');
|
|||
* In this file you can extend the AclBase.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.app.controllers.components.dbacl
|
||||
* @subpackage cake.cake.libs.controller.components.dbacl
|
||||
*/
|
||||
|
||||
class DB_ACL extends AclBase
|
||||
|
|
|
@ -2,25 +2,25 @@
|
|||
/* SVN FILE: $Id$ */
|
||||
|
||||
/**
|
||||
* This is core configuration file.
|
||||
*
|
||||
* This is core configuration file.
|
||||
*
|
||||
* Use it to configure core behaviour ofCake.
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
||||
* Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* 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
|
||||
* @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.controllers.componenets
|
||||
* @subpackage cake.cake.libs.controller.componenets.iniacl
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -34,10 +34,10 @@ uses('controller/components/acl_base');
|
|||
* In this file you can extend the AclBase.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.app.controllers.componenets
|
||||
* @subpackage cake.cake.libs.controller.componenets.iniacl
|
||||
*/
|
||||
|
||||
class INI_ACL extends AclBase
|
||||
class INI_ACL extends AclBase
|
||||
{
|
||||
/**
|
||||
* The constructor must be overridden, as AclBase is abstract.
|
||||
|
@ -45,9 +45,9 @@ class INI_ACL extends AclBase
|
|||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Main ACL check function. Checks to see if the ARO (access request object) has access to the ACO (access control object).
|
||||
* Looks at the acl.ini.php file for permissions (see instructions in/config/acl.ini.php).
|
||||
|
@ -59,7 +59,7 @@ class INI_ACL extends AclBase
|
|||
function check($aro, $aco, $aco_action = null)
|
||||
{
|
||||
$aclConfig = $this->readConfigFile(CONFIGS . 'acl.ini.php');
|
||||
|
||||
|
||||
//First, if the user is specifically denied, then DENY
|
||||
if(isset($aclConfig[$aro]['deny']))
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ class INI_ACL extends AclBase
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Second, if the user is specifically allowed, then ALLOW
|
||||
if(isset($aclConfig[$aro]['allow']))
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ class INI_ACL extends AclBase
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Check group permissions
|
||||
if (isset($aclConfig[$aro]['groups']))
|
||||
{
|
||||
|
@ -101,7 +101,7 @@ class INI_ACL extends AclBase
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//If the group is specifically allowed, then ALLOW
|
||||
if(isset($aclConfig[$group]['allow']))
|
||||
{
|
||||
|
@ -115,12 +115,12 @@ class INI_ACL extends AclBase
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Default, DENY
|
||||
//echo("DEFAULT: DENY.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Parses an INI file and returns an array that reflects the INI file's section structure. Double-quote friendly.
|
||||
*
|
||||
|
@ -130,7 +130,7 @@ class INI_ACL extends AclBase
|
|||
function readConfigFile ($fileName)
|
||||
{
|
||||
$fileLineArray = file($fileName);
|
||||
|
||||
|
||||
foreach ($fileLineArray as $fileLine)
|
||||
{
|
||||
$dataLine = trim($fileLine);
|
||||
|
@ -170,7 +170,7 @@ class INI_ACL extends AclBase
|
|||
}
|
||||
return $iniSetting;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Removes trailing spaces on all array elements (to prepare for searching)
|
||||
*
|
||||
|
@ -182,7 +182,7 @@ class INI_ACL extends AclBase
|
|||
foreach($array as $element) {
|
||||
$element = trim($element);
|
||||
}
|
||||
|
||||
|
||||
//Adding this element keeps array_search from returning 0:
|
||||
//0 is the first key, which may be correct, but 0 is interpreted as false.
|
||||
//Adding this element makes all the keys be positive integers.
|
||||
|
|
|
@ -356,13 +356,13 @@ class Scaffold extends Object {
|
|||
*/
|
||||
function __scaffoldError()
|
||||
{
|
||||
if(file_exists(APP.'views'.DS.$this->viewPath.DS.'scaffolds'.DS.'new.thtml'))
|
||||
if(file_exists(APP.'views'.DS.$this->viewPath.DS.'scaffolds'.DS.'scaffold.error.thtml'))
|
||||
{
|
||||
return $this->controllerClass->render($this->actionView, '', APP.'views'.DS.$this->viewPath.DS.'scaffolds'.DS.'scaffold_error.thtml');
|
||||
return $this->controllerClass->render($this->actionView, '', APP.'views'.DS.$this->viewPath.DS.'scaffolds'.DS.'scaffold.error.thtml');
|
||||
}
|
||||
elseif(file_exists(APP.'views'.DS.'scaffold'.DS.'scaffold.new.thtml'))
|
||||
elseif(file_exists(APP.'views'.DS.'scaffold'.DS.'scaffold.error.thtml'))
|
||||
{
|
||||
return $this->controllerClass->render($this->actionView, '', APP.'views'.DS.'scaffold'.DS.'scaffold_error.thtml');
|
||||
return $this->controllerClass->render($this->actionView, '', APP.'views'.DS.'scaffold'.DS.'scaffold.error.thtml');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -40,7 +40,7 @@ uses('model'.DS.'datasources'.DS.'dbo_source');
|
|||
* Database abstraction implementation for the AdoDB library.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.2.9
|
||||
*/
|
||||
class DboAdodb extends DboSource
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -37,7 +37,7 @@ uses('model'.DS.'datasources'.DS.'dbo_source');
|
|||
* All implementations override this class.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.2.9
|
||||
*/
|
||||
class DBO_generic extends DboSource
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.2.9
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -41,7 +41,7 @@ vendor('Pear/DB');
|
|||
* Long description for class
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.2.9
|
||||
*/
|
||||
class DBO_Pear extends DboSource
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.9.1.114
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -39,7 +39,7 @@ uses('model'.DS.'datasources'.DS.'dbo_source');
|
|||
* Long description for class
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.9.1.114
|
||||
*/
|
||||
class DboPostgres extends DboSource
|
||||
|
@ -233,7 +233,7 @@ class DboPostgres extends DboSource
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
@ -299,7 +299,7 @@ class DboPostgres extends DboSource
|
|||
}
|
||||
|
||||
$data = pg_escape_string($data);
|
||||
|
||||
|
||||
$return = "'" . $data . "'";
|
||||
return $return;
|
||||
}
|
||||
|
@ -388,7 +388,7 @@ class DboPostgres extends DboSource
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
function resultSet(&$results)
|
||||
{
|
||||
$this->results =& $results;
|
||||
|
@ -400,7 +400,7 @@ class DboPostgres extends DboSource
|
|||
while ($j < $num_fields)
|
||||
{
|
||||
$columnName = pg_field_name($results, $j);
|
||||
|
||||
|
||||
if (strpos($columnName, '__'))
|
||||
{
|
||||
$parts = explode('__', $columnName);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.9.0
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -39,7 +39,7 @@ uses('model'.DS.'datasources'.DS.'dbo_source');
|
|||
* Long description for class
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.model.datasources.dbo
|
||||
* @subpackage cake.cake.libs.model.dbo
|
||||
* @since CakePHP v 0.9.0
|
||||
*/
|
||||
class DBO_SQLite extends DboSource
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
* Long description for file
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.1233
|
||||
* @since CakePHP v .0.10.0.1222
|
||||
* @subpackage cake.cake.libs
|
||||
* @since CakePHP v .0.10.0.1233
|
||||
*/
|
||||
class Security extends Object
|
||||
{
|
||||
|
|
|
@ -347,7 +347,10 @@ class CakeSession extends Object
|
|||
{
|
||||
case 'high':
|
||||
$this->cookieLifeTime = 0;
|
||||
ini_set('session.referer_check', $this->host);
|
||||
if(function_exists('ini_set'))
|
||||
{
|
||||
ini_set('session.referer_check', $this->host);
|
||||
}
|
||||
break;
|
||||
case 'medium':
|
||||
$this->cookieLifeTime = 7 * 86400;
|
||||
|
@ -363,33 +366,38 @@ class CakeSession extends Object
|
|||
case 'cake':
|
||||
if(!isset($_SESSION))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('url_rewriter.tags', '');
|
||||
ini_set('session.serialize_handler', 'php');
|
||||
ini_set('session.use_cookies', 1);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
ini_set('session.auto_start', 0);
|
||||
ini_set('session.save_path', TMP.'sessions');
|
||||
if(function_exists('ini_set'))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('url_rewriter.tags', '');
|
||||
ini_set('session.serialize_handler', 'php');
|
||||
ini_set('session.use_cookies', 1);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
ini_set('session.auto_start', 0);
|
||||
ini_set('session.save_path', TMP.'sessions');
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'database':
|
||||
if(!isset($_SESSION))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('url_rewriter.tags', '');
|
||||
ini_set('session.save_handler', 'user');
|
||||
ini_set('session.serialize_handler', 'php');
|
||||
ini_set('session.use_cookies', 1);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
ini_set('session.auto_start', 0);
|
||||
if(function_exists('ini_set'))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('url_rewriter.tags', '');
|
||||
ini_set('session.save_handler', 'user');
|
||||
ini_set('session.serialize_handler', 'php');
|
||||
ini_set('session.use_cookies', 1);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
ini_set('session.auto_start', 0);
|
||||
}
|
||||
}
|
||||
|
||||
session_set_save_handler(array('CakeSession', '__open'),
|
||||
array('CakeSession', '__close'),
|
||||
array('CakeSession', '__read'),
|
||||
|
@ -400,11 +408,14 @@ class CakeSession extends Object
|
|||
case 'php':
|
||||
if(!isset($_SESSION))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
if(function_exists('ini_set'))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
@ -420,11 +431,14 @@ class CakeSession extends Object
|
|||
{
|
||||
if(!isset($_SESSION))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
if(function_exists('ini_set'))
|
||||
{
|
||||
ini_set('session.use_trans_sid', 0);
|
||||
ini_set('session.name', CAKE_SESSION_COOKIE);
|
||||
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
|
||||
ini_set('session.cookie_path', $this->path);
|
||||
ini_set('session.gc_probability', 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.view.templates.pages
|
||||
* @subpackage cake.cake.libs.view.templates.elements
|
||||
* @since CakePHP v 0.10.5.1782
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.controller.templates.scaffolds
|
||||
* @subpackage cake.cake.libs.view.templates.scaffolds
|
||||
* @since CakePHP v 0.10.0.1076
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.controller.templates.scaffolds
|
||||
* @subpackage cake.cake.libs.view.templates.scaffolds
|
||||
* @since CakePHP v 0.10.0.1076
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.controller.templates.scaffolds
|
||||
* @subpackage cake.cake.libs.view.templates.scaffolds
|
||||
* @since CakePHP v 0.10.0.1076
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.controller.templates.scaffolds
|
||||
* @subpackage cake.cake.libs.view.templates.scaffolds
|
||||
* @since CakePHP v 0.10.0.1076
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.controller.components.dbacl.models
|
||||
* @subpackage cake.cake.scripts
|
||||
* @since CakePHP v 0.10.0.1232
|
||||
* @version $Revision$
|
||||
* @modifiedby $LastChangedBy$
|
||||
|
@ -71,6 +71,14 @@ $args = $serverArgs;
|
|||
|
||||
$aclCLI = new AclCLI ($command, $args);
|
||||
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.scripts
|
||||
* @since CakePHP v 0.10.0.1232
|
||||
*/
|
||||
class AclCLI {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue