mirror of
				https://github.com/brmlab/brmsklad.git
				synced 2025-10-30 15:53:59 +01:00 
			
		
		
		
	Backup of current cakephp version
This commit is contained in:
		
							parent
							
								
									b8f82da6f8
								
							
						
					
					
						commit
						5a580df460
					
				
					 925 changed files with 238041 additions and 1 deletions
				
			
		
							
								
								
									
										60
									
								
								lib/Cake/Test/test_app/Config/acl.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								lib/Cake/Test/test_app/Config/acl.ini
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,60 @@ | |||
| ;<?php exit() ?> | ||||
| ; SVN FILE: $Id$ | ||||
| ;/** | ||||
| ; * Test App Ini Based Acl Config File | ||||
| ; * | ||||
| ; * | ||||
| ; * PHP 5 | ||||
| ; * | ||||
| ; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
| ; * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
| ; * | ||||
| ; *  Licensed under The MIT License | ||||
| ; *  Redistributions of files must retain the above copyright notice. | ||||
| ; * | ||||
| ; * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
| ; * @link          http://cakephp.org CakePHP(tm) Project | ||||
| ;; * @package       Cake.Test.test_app.Config | ||||
| ; * @since         CakePHP(tm) v 0.10.0.1076 | ||||
| ; * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
| ; */ | ||||
| 
 | ||||
| ;------------------------------------- | ||||
| ;Users | ||||
| ;------------------------------------- | ||||
| 
 | ||||
| [admin] | ||||
| groups = administrators | ||||
| allow = | ||||
| deny = ads | ||||
| 
 | ||||
| [paul] | ||||
| groups = users | ||||
| allow = | ||||
| deny = | ||||
| 
 | ||||
| [jenny] | ||||
| groups = users | ||||
| allow = ads | ||||
| deny = images, files | ||||
| 
 | ||||
| [nobody] | ||||
| groups = anonymous | ||||
| allow = | ||||
| deny = | ||||
| 
 | ||||
| ;------------------------------------- | ||||
| ;Groups | ||||
| ;------------------------------------- | ||||
| 
 | ||||
| [administrators] | ||||
| deny = | ||||
| allow = posts, comments, images, files, stats, ads | ||||
| 
 | ||||
| [users] | ||||
| allow = posts, comments, images, files | ||||
| deny = stats, ads | ||||
| 
 | ||||
| [anonymous] | ||||
| allow = | ||||
| deny = posts, comments, images, files, stats, ads | ||||
							
								
								
									
										60
									
								
								lib/Cake/Test/test_app/Config/acl.ini.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								lib/Cake/Test/test_app/Config/acl.ini.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,60 @@ | |||
| ;<?php exit() ?>
 | ||||
| ; SVN FILE: $Id$ | ||||
| ;/** | ||||
| ; * Test App Ini Based Acl Config File | ||||
| ; * | ||||
| ; * | ||||
| ; * PHP 5 | ||||
| ; * | ||||
| ; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
| ; * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
| ; * | ||||
| ; *  Licensed under The MIT License | ||||
| ; *  Redistributions of files must retain the above copyright notice. | ||||
| ; * | ||||
| ; * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
| ; * @link          http://cakephp.org CakePHP(tm) Project | ||||
| ;; * @package       Cake.Test.test_app.Config | ||||
| ; * @since         CakePHP(tm) v 0.10.0.1076 | ||||
| ; * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
| ; */ | ||||
| 
 | ||||
| ;------------------------------------- | ||||
| ;Users | ||||
| ;------------------------------------- | ||||
| 
 | ||||
| [admin] | ||||
| groups = administrators | ||||
| allow = | ||||
| deny = ads | ||||
| 
 | ||||
| [paul] | ||||
| groups = users | ||||
| allow = | ||||
| deny = | ||||
| 
 | ||||
| [jenny] | ||||
| groups = users | ||||
| allow = ads | ||||
| deny = images, files | ||||
| 
 | ||||
| [nobody] | ||||
| groups = anonymous | ||||
| allow = | ||||
| deny = | ||||
| 
 | ||||
| ;------------------------------------- | ||||
| ;Groups | ||||
| ;------------------------------------- | ||||
| 
 | ||||
| [administrators] | ||||
| deny = | ||||
| allow = posts, comments, images, files, stats, ads | ||||
| 
 | ||||
| [users] | ||||
| allow = posts, comments, images, files | ||||
| deny = stats, ads | ||||
| 
 | ||||
| [anonymous] | ||||
| allow = | ||||
| deny = posts, comments, images, files, stats, ads | ||||
							
								
								
									
										74
									
								
								lib/Cake/Test/test_app/Config/acl.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								lib/Cake/Test/test_app/Config/acl.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,74 @@ | |||
| <?php | ||||
| /* | ||||
|  * Test App PHP Based Acl Config File | ||||
|  * | ||||
|  * | ||||
|  * PHP 5 | ||||
|  * | ||||
|  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  *  Licensed under The MIT License | ||||
|  *  Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP(tm) Project | ||||
|  * @package       Cake.Test.test_app.Config | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www/opensource/org/licenses/mit-license.php) | ||||
|  */ | ||||
| 
 | ||||
| 
 | ||||
| // -------------------------------------
 | ||||
| // Roles
 | ||||
| // -------------------------------------
 | ||||
| $config['roles'] = array( | ||||
| 	'Role/admin' 				=> null, | ||||
| 	'Role/data_acquirer' 		=> null, | ||||
| 	'Role/accounting' 			=> null, | ||||
| 	'Role/database_manager'		=> null, | ||||
| 	'Role/sales' 				=> null, | ||||
| 	'Role/data_analyst' 		=> 'Role/data_acquirer, Role/database_manager', | ||||
| 	'Role/reports' 				=> 'Role/data_analyst', | ||||
| 	// allow inherited roles to be defined as an array or comma separated list
 | ||||
| 	'Role/manager' 				=> array( | ||||
| 		'Role/accounting', | ||||
| 		'Role/sales', | ||||
| 	), | ||||
| 	'Role/accounting_manager' 	=> 'Role/accounting', | ||||
| 	// managers
 | ||||
| 	'User/hardy'				=> 'Role/accounting_manager, Role/reports', | ||||
| 	'User/stan' 				=> 'Role/manager', | ||||
| 	// accountants
 | ||||
| 	'User/peter' 				=> 'Role/accounting', | ||||
| 	'User/jeff' 				=> 'Role/accounting', | ||||
| 	// admins
 | ||||
| 	'User/jan'					=> 'Role/admin', | ||||
| 	// database
 | ||||
| 	'User/db_manager_1' 		=> 'Role/database_manager', | ||||
| 	'User/db_manager_2'			=> 'Role/database_manager', | ||||
| ); | ||||
| 
 | ||||
| //-------------------------------------
 | ||||
| // Rules
 | ||||
| //-------------------------------------
 | ||||
| $config['rules']['allow'] = array( | ||||
| 	'/*' => 'Role/admin', | ||||
| 	'/controllers/*/manager_*' => 'Role/manager', | ||||
| 	'/controllers/reports/*' => 'Role/sales', | ||||
| 	'/controllers/invoices/*' => 'Role/accounting', | ||||
| 	'/controllers/invoices/edit' => 'User/db_manager_2', | ||||
| 	'/controllers/db/*' => 'Role/database_manager', | ||||
| 	'/controllers/*/(add|edit|publish)' => 'User/stan', | ||||
| 	'/controllers/users/dashboard' => 'Role/default', | ||||
| 	// test for case insensitivity
 | ||||
| 	'controllers/Forms/NEW' => 'Role/data_acquirer', | ||||
| ); | ||||
| $config['rules']['deny'] = array( | ||||
| 	// accountants and sales should not delete anything
 | ||||
| 	'/controllers/*/delete' 	=> array( | ||||
| 		'Role/sales', | ||||
| 		'Role/accounting' | ||||
| 	), | ||||
| 	'/controllers/db/drop'  	=> 'User/db_manager_2', | ||||
| ); | ||||
							
								
								
									
										1
									
								
								lib/Cake/Test/test_app/Config/empty.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								lib/Cake/Test/test_app/Config/empty.ini
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| ; do nothing this is an empty file. | ||||
							
								
								
									
										2
									
								
								lib/Cake/Test/test_app/Config/empty.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								lib/Cake/Test/test_app/Config/empty.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| <?php | ||||
| //do nothing this is an empty file.
 | ||||
							
								
								
									
										2
									
								
								lib/Cake/Test/test_app/Config/htmlhelper_minimized.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								lib/Cake/Test/test_app/Config/htmlhelper_minimized.ini
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| minimizedAttributeFormat = "format" | ||||
| 
 | ||||
							
								
								
									
										8
									
								
								lib/Cake/Test/test_app/Config/htmlhelper_tags.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								lib/Cake/Test/test_app/Config/htmlhelper_tags.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| <?php | ||||
| 
 | ||||
| $config = array( | ||||
| 	'tags' => array( | ||||
| 		'form' => 'start form', | ||||
| 		'formend' => 'finish form' | ||||
| 	) | ||||
| ); | ||||
							
								
								
									
										17
									
								
								lib/Cake/Test/test_app/Config/nested.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								lib/Cake/Test/test_app/Config/nested.ini
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| ; Test file for testing ini files with . syntax | ||||
| [database] | ||||
| db.username = mark | ||||
| db.password = secret | ||||
| 
 | ||||
| [nesting] | ||||
| one.two.three = 3 | ||||
| a.b.c.d = On | ||||
| 
 | ||||
| [bools] | ||||
| test_on = on | ||||
| test_off = off | ||||
| test_yes = yes | ||||
| test_no = no | ||||
| test_true = true | ||||
| test_false = false | ||||
| test_null = null | ||||
							
								
								
									
										3
									
								
								lib/Cake/Test/test_app/Config/no_ini_extension
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								lib/Cake/Test/test_app/Config/no_ini_extension
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| ; Test file for testing config file without .ini extension. | ||||
| some_key = some_value | ||||
| bool_key = 1 | ||||
							
								
								
									
										9
									
								
								lib/Cake/Test/test_app/Config/no_php_extension
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								lib/Cake/Test/test_app/Config/no_php_extension
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| <?php | ||||
| // Test file for testing config file without .php extension. | ||||
| $config = array( | ||||
| 	'Deep' => array( | ||||
| 		'Third' => array( | ||||
| 			'ThirdDeepest' => 'buried3' | ||||
| 		) | ||||
| 	) | ||||
| ); | ||||
							
								
								
									
										2
									
								
								lib/Cake/Test/test_app/Config/no_section.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								lib/Cake/Test/test_app/Config/no_section.ini
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| some_key = some_value | ||||
| bool_key = 1 | ||||
							
								
								
									
										23
									
								
								lib/Cake/Test/test_app/Config/routes.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								lib/Cake/Test/test_app/Config/routes.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| <?php | ||||
| /** | ||||
|  * Routes file | ||||
|  * | ||||
|  * Routes for test app | ||||
|  * | ||||
|  * PHP versions 4 and 5 | ||||
|  * | ||||
|  * CakePHP : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright 2005-2012, Cake Software Foundation, Inc. | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. | ||||
|  * @link          http://cakephp.org CakePHP Project | ||||
|  * @package       Cake.Test.test_app.Config | ||||
|  * @since         CakePHP v 2.0 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| 
 | ||||
| Router::parseExtensions('json'); | ||||
| Router::connect('/some_alias', array('controller' => 'tests_apps', 'action' => 'some_method')); | ||||
							
								
								
									
										12
									
								
								lib/Cake/Test/test_app/Config/var_test.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								lib/Cake/Test/test_app/Config/var_test.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| <?php | ||||
| $config = array( | ||||
| 	'Read' => 'value', | ||||
| 	'Deep' => array( | ||||
| 		'Deeper' => array( | ||||
| 			'Deepest' => 'buried' | ||||
| 		) | ||||
| 	), | ||||
| 	'TestAcl' => array( | ||||
| 		'classname' => 'Original' | ||||
| 	) | ||||
| ); | ||||
							
								
								
									
										13
									
								
								lib/Cake/Test/test_app/Config/var_test2.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								lib/Cake/Test/test_app/Config/var_test2.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| <?php | ||||
| $config = array( | ||||
| 	'Read' => 'value2', | ||||
| 	'Deep' => array( | ||||
| 		'Second' => array( | ||||
| 			'SecondDeepest' => 'buried2' | ||||
| 		) | ||||
| 	), | ||||
| 	'TestAcl' => array( | ||||
| 		'classname' => 'Overwrite', | ||||
| 		'custom' => 'one' | ||||
| 	) | ||||
| ); | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brm Ko
						Brm Ko