mirror of
				https://github.com/brmlab/brmsklad.git
				synced 2025-10-31 16:23:59 +01:00 
			
		
		
		
	Upgrade CakePHP from 2.2.5 to 2.9.5
This commit is contained in:
		
							parent
							
								
									5a580df460
								
							
						
					
					
						commit
						235a541597
					
				
					 793 changed files with 60746 additions and 23753 deletions
				
			
		|  | @ -0,0 +1 @@ | |||
| <div id="<?php echo $key; ?>Message" class="<?php echo !empty($params['class']) ? $params['class'] : 'message'; ?>"><?php echo $message; ?></div> | ||||
|  | @ -1,25 +1,22 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * PHP 5 | ||||
|  * | ||||
|  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP(tm) Project | ||||
|  * @package       app.View.Emails.html | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| ?> | ||||
| <?php | ||||
| $content = explode("\n", $content); | ||||
| 
 | ||||
| foreach ($content as $line): | ||||
| 	echo '<p> ' . $line . '</p>'; | ||||
| endforeach; | ||||
| ?> | ||||
| 	echo '<p> ' . $line . "</p>\n"; | ||||
| endforeach; | ||||
|  | @ -1,19 +1,17 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * PHP 5 | ||||
|  * | ||||
|  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP(tm) Project | ||||
|  * @package       app.View.Emails.text | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| ?> | ||||
| <?php echo $content; ?> | ||||
|  | @ -1,22 +1,11 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * 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.View.Errors | ||||
|  * @package       app.View.Errors | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| ?> | ||||
| <h2><?php echo $name; ?></h2> | ||||
| <h2><?php echo $message; ?></h2> | ||||
| <p class="error"> | ||||
| 	<strong><?php echo __d('cake', 'Error'); ?>: </strong> | ||||
| 	<?php printf( | ||||
|  | @ -25,7 +14,6 @@ | |||
| 	); ?> | ||||
| </p> | ||||
| <?php | ||||
| if (Configure::read('debug') > 0 ): | ||||
| if (Configure::read('debug') > 0): | ||||
| 	echo $this->element('exception_stack_trace'); | ||||
| endif; | ||||
| ?> | ||||
|  |  | |||
|  | @ -1,28 +1,16 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * 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.View.Errors | ||||
|  * @package       app.View.Errors | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| ?> | ||||
| <h2><?php echo $name; ?></h2> | ||||
| <h2><?php echo $message; ?></h2> | ||||
| <p class="error"> | ||||
| 	<strong><?php echo __d('cake', 'Error'); ?>: </strong> | ||||
| 	<?php echo __d('cake', 'An Internal Error Has Occurred.'); ?> | ||||
| </p> | ||||
| <?php | ||||
| if (Configure::read('debug') > 0 ): | ||||
| if (Configure::read('debug') > 0): | ||||
| 	echo $this->element('exception_stack_trace'); | ||||
| endif; | ||||
| ?> | ||||
|  |  | |||
|  | @ -5,20 +5,11 @@ | |||
|  * This file is application-wide helper file. You can put all | ||||
|  * application-wide helper-related methods here. | ||||
|  * | ||||
|  * 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       app.View.Helper | ||||
|  * @since         CakePHP(tm) v 0.2.9 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| 
 | ||||
| App::uses('Helper', 'View'); | ||||
| 
 | ||||
| /** | ||||
|  |  | |||
|  | @ -1,31 +1,18 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * 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       app.View.Layouts.Email.html | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| ?> | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> | ||||
| 
 | ||||
| <html> | ||||
| <head> | ||||
| 	<title><?php echo $title_for_layout; ?></title> | ||||
| 	<title><?php echo $this->fetch('title'); ?></title> | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
| 	<?php echo $this->fetch('content'); ?> | ||||
| 
 | ||||
| 	<p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p> | ||||
| </body> | ||||
| </html> | ||||
| </html> | ||||
|  | @ -1,22 +1,19 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * PHP 5 | ||||
|  * | ||||
|  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP(tm) Project | ||||
|  * @package       app.View.Layouts.Email.text | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| ?> | ||||
| 
 | ||||
| <?php echo $this->fetch('content'); ?> | ||||
| 
 | ||||
| This email was sent using the CakePHP Framework, http://cakephp.org. | ||||
|  |  | |||
|  | @ -1,19 +1,8 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * 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       app.View.Layouts | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| ?> | ||||
| <?php echo $this->fetch('content'); ?> | ||||
|  |  | |||
|  | @ -1,28 +1,19 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * 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       app.View.Layouts | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| 
 | ||||
| $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework'); | ||||
| ?> | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
| <head> | ||||
| 	<?php echo $this->Html->charset(); ?> | ||||
| 	<title> | ||||
| 		<?php echo __('CakePHP: the rapid development php framework:'); ?> | ||||
| 		<?php echo $title_for_layout; ?> | ||||
| 		<?php echo $cakeDescription ?>: | ||||
| 		<?php echo $this->fetch('title'); ?> | ||||
| 	</title> | ||||
| 	<?php | ||||
| 		echo $this->Html->meta('icon'); | ||||
|  | @ -37,7 +28,7 @@ | |||
| <body> | ||||
| 	<div id="container"> | ||||
| 		<div id="header"> | ||||
| 			<h1><?php echo $this->Html->link(__('CakePHP: the rapid development php framework'), 'http://cakephp.org'); ?></h1> | ||||
| 			<h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1> | ||||
| 		</div> | ||||
| 		<div id="content"> | ||||
| 
 | ||||
|  | @ -47,7 +38,7 @@ | |||
| 		</div> | ||||
| 		<div id="footer"> | ||||
| 			<?php echo $this->Html->link( | ||||
| 					$this->Html->image('cake.power.gif', array('alt' => __('CakePHP: the rapid development php framework'), 'border' => '0')), | ||||
| 					$this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')), | ||||
| 					'http://www.cakephp.org/', | ||||
| 					array('target' => '_blank', 'escape' => false) | ||||
| 				); | ||||
|  |  | |||
|  | @ -1,28 +1,19 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * PHP 5 | ||||
|  * | ||||
|  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP(tm) Project | ||||
|  * @package       app.View.Layouts | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| 
 | ||||
| $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework'); | ||||
| ?> | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
| <head> | ||||
| 	<?php echo $this->Html->charset(); ?> | ||||
| 	<title> | ||||
| 		<?php echo __('CakePHP: the rapid development php framework:'); ?> | ||||
| 		<?php echo $title_for_layout; ?> | ||||
| 		<?php echo $cakeDescription ?>: | ||||
| 		<?php echo $this->fetch('title'); ?> | ||||
| 	</title> | ||||
| 	<?php | ||||
| 		echo $this->Html->meta('icon'); | ||||
|  | @ -37,7 +28,7 @@ | |||
| <body> | ||||
| 	<div id="container"> | ||||
| 		<div id="header"> | ||||
| 			<h1><?php echo $this->Html->link(__('CakePHP: the rapid development php framework'), 'http://cakephp.org'); ?></h1> | ||||
| 			<h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1> | ||||
| 		</div> | ||||
| 		<div id="content"> | ||||
| 
 | ||||
|  | @ -47,7 +38,7 @@ | |||
| 		</div> | ||||
| 		<div id="footer"> | ||||
| 			<?php echo $this->Html->link( | ||||
| 					$this->Html->image('cake.power.gif', array('alt' => __('CakePHP: the rapid development php framework'), 'border' => '0')), | ||||
| 					$this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')), | ||||
| 					'http://www.cakephp.org/', | ||||
| 					array('target' => '_blank', 'escape' => false) | ||||
| 				); | ||||
|  |  | |||
|  | @ -1,30 +1,19 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * 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       app.View.Layouts | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| ?> | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
| <head> | ||||
| <?php echo $this->Html->charset(); ?> | ||||
| <title><?php echo $page_title; ?></title> | ||||
| <title><?php echo $pageTitle; ?></title> | ||||
| 
 | ||||
| <?php if (Configure::read('debug') == 0) { ?> | ||||
| <meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/> | ||||
| <?php } ?> | ||||
| <?php if (!Configure::read('debug')): ?> | ||||
| <meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php echo $url; ?>"/> | ||||
| <?php endif ?> | ||||
| <style><!-- | ||||
| P { text-align:center; font:bold 1.1em sans-serif } | ||||
| A { color:#444; text-decoration:none } | ||||
|  | @ -32,6 +21,6 @@ A:HOVER { text-decoration: underline; color:#44E } | |||
| --></style> | ||||
| </head> | ||||
| <body> | ||||
| <p><a href="<?php echo $url?>"><?php echo $message?></a></p> | ||||
| <p><a href="<?php echo $url; ?>"><?php echo $message; ?></a></p> | ||||
| </body> | ||||
| </html> | ||||
| </html> | ||||
|  |  | |||
|  | @ -1,14 +1,13 @@ | |||
| <?php | ||||
| if (!isset($channel)) { | ||||
| if (!isset($channel)): | ||||
| 	$channel = array(); | ||||
| } | ||||
| if (!isset($channel['title'])) { | ||||
| 	$channel['title'] = $title_for_layout; | ||||
| } | ||||
| endif; | ||||
| if (!isset($channel['title'])): | ||||
| 	$channel['title'] = $this->fetch('title'); | ||||
| endif; | ||||
| 
 | ||||
| echo $this->Rss->document( | ||||
| 	$this->Rss->channel( | ||||
| 		array(), $channel, $this->fetch('content') | ||||
| 	) | ||||
| ); | ||||
| ?> | ||||
|  |  | |||
|  | @ -1,40 +1,36 @@ | |||
| <?php | ||||
| /** | ||||
|  * | ||||
|  * 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.View.Pages | ||||
|  * @package       app.View.Pages | ||||
|  * @since         CakePHP(tm) v 0.10.0.1076 | ||||
|  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php) | ||||
|  */ | ||||
| if (Configure::read('debug') == 0): | ||||
| 
 | ||||
| if (!Configure::read('debug')): | ||||
| 	throw new NotFoundException(); | ||||
| endif; | ||||
| 
 | ||||
| App::uses('Debugger', 'Utility'); | ||||
| ?> | ||||
| <iframe src="http://cakephp.org/bake-banner" width="830" height="160" style="overflow:hidden; border:none;"> | ||||
| 	<p>For updates and important announcements, visit http://cakefest.org</p> | ||||
| </iframe> | ||||
| <h2><?php echo __d('cake_dev', 'Release Notes for CakePHP %s.', Configure::version()); ?></h2> | ||||
| <a href="http://cakephp.org/changelogs/<?php echo Configure::version(); ?>"><?php echo __d('cake_dev', 'Read the changelog'); ?> </a> | ||||
| <p> | ||||
| 	<a href="http://cakephp.org/changelogs/<?php echo Configure::version(); ?>"><?php echo __d('cake_dev', 'Read the changelog'); ?> </a> | ||||
| </p> | ||||
| <?php | ||||
| if (Configure::read('debug') > 0): | ||||
| 	Debugger::checkSecurityKeys(); | ||||
| endif; | ||||
| ?> | ||||
| <?php | ||||
| if (file_exists(WWW_ROOT . 'css' . DS . 'cake.generic.css')): | ||||
| ?> | ||||
| <p id="url-rewriting-warning" style="background-color:#e32; color:#fff;"> | ||||
| 	<?php echo __d('cake_dev', 'URL rewriting is not properly configured on your server.'); ?> | ||||
| 	1) <a target="_blank" href="http://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess" style="color:#fff;">Help me configure it</a> | ||||
| 	1) <a target="_blank" href="http://book.cakephp.org/2.0/en/installation/url-rewriting.html" style="color:#fff;">Help me configure it</a> | ||||
| 	2) <a target="_blank" href="http://book.cakephp.org/2.0/en/development/configuration.html#cakephp-core-configuration" style="color:#fff;">I don't / can't use URL rewriting</a> | ||||
| </p> | ||||
| <?php | ||||
| endif; | ||||
| ?> | ||||
| <p> | ||||
| <?php | ||||
| 	if (version_compare(PHP_VERSION, '5.2.8', '>=')): | ||||
|  | @ -66,11 +62,11 @@ endif; | |||
| 		$settings = Cache::settings(); | ||||
| 		if (!empty($settings)): | ||||
| 			echo '<span class="notice success">'; | ||||
| 				echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>'); | ||||
| 				echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit %s', '<em>' . $settings['engine'] . 'Engine</em>', 'APP/Config/core.php'); | ||||
| 			echo '</span>'; | ||||
| 		else: | ||||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php'); | ||||
| 				echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in %s', 'APP/Config/core.php'); | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
|  | @ -87,7 +83,7 @@ endif; | |||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'Your database configuration file is NOT present.'); | ||||
| 				echo '<br/>'; | ||||
| 				echo __d('cake_dev', 'Rename APP/Config/database.php.default to APP/Config/database.php'); | ||||
| 				echo __d('cake_dev', 'Rename %s to %s', 'APP/Config/database.php.default', 'APP/Config/database.php'); | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
|  | @ -99,19 +95,26 @@ if (isset($filePresent)): | |||
| 		$connected = ConnectionManager::getDataSource('default'); | ||||
| 	} catch (Exception $connectionError) { | ||||
| 		$connected = false; | ||||
| 		$errorMsg = $connectionError->getMessage(); | ||||
| 		if (method_exists($connectionError, 'getAttributes')): | ||||
| 			$attributes = $connectionError->getAttributes(); | ||||
| 			if (isset($errorMsg['message'])): | ||||
| 				$errorMsg .= '<br />' . $attributes['message']; | ||||
| 			endif; | ||||
| 		endif; | ||||
| 	} | ||||
| ?> | ||||
| <p> | ||||
| 	<?php | ||||
| 		if ($connected && $connected->isConnected()): | ||||
| 			echo '<span class="notice success">'; | ||||
| 	 			echo __d('cake_dev', 'Cake is able to connect to the database.'); | ||||
| 				echo __d('cake_dev', 'CakePHP is able to connect to the database.'); | ||||
| 			echo '</span>'; | ||||
| 		else: | ||||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'Cake is NOT able to connect to the database.'); | ||||
| 				echo __d('cake_dev', 'CakePHP is NOT able to connect to the database.'); | ||||
| 				echo '<br /><br />'; | ||||
| 				echo $connectionError->getMessage(); | ||||
| 				echo $errorMsg; | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
|  | @ -119,20 +122,38 @@ if (isset($filePresent)): | |||
| <?php endif; ?> | ||||
| <?php | ||||
| 	App::uses('Validation', 'Utility'); | ||||
| 	if (!Validation::alphaNumeric('cakephp')) { | ||||
| 	if (!Validation::alphaNumeric('cakephp')): | ||||
| 		echo '<p><span class="notice">'; | ||||
| 			echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.'); | ||||
| 			echo '<br/>'; | ||||
| 			echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring'); | ||||
| 		echo '</span></p>'; | ||||
| 	} | ||||
| 	endif; | ||||
| ?> | ||||
| 
 | ||||
| <p> | ||||
| 	<?php | ||||
| 		if (CakePlugin::loaded('DebugKit')): | ||||
| 			echo '<span class="notice success">'; | ||||
| 				echo __d('cake_dev', 'DebugKit plugin is present'); | ||||
| 			echo '</span>'; | ||||
| 		else: | ||||
| 			echo '<span class="notice">'; | ||||
| 				echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.'); | ||||
| 				echo '<br/>'; | ||||
| 				echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit/tree/2.2')); | ||||
| 			echo '</span>'; | ||||
| 		endif; | ||||
| 	?> | ||||
| </p> | ||||
| 
 | ||||
| <h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3> | ||||
| <p> | ||||
| <?php | ||||
| echo __d('cake_dev', 'To change the content of this page, create: APP/View/Pages/home.ctp.<br /> | ||||
| To change its layout, create: APP/View/Layouts/default.ctp.<br /> | ||||
| You can also add some CSS styles for your pages at: APP/webroot/css.'); | ||||
| echo __d('cake_dev', 'To change the content of this page, edit: %s.<br /> | ||||
| To change its layout, edit: %s.<br /> | ||||
| You can also add some CSS styles for your pages at: %s.', | ||||
| 	'APP/View/Pages/home.ctp', 'APP/View/Layouts/default.ctp', 'APP/webroot/css'); | ||||
| ?> | ||||
| </p> | ||||
| 
 | ||||
|  | @ -156,7 +177,21 @@ You can also add some CSS styles for your pages at: APP/webroot/css.'); | |||
| 	?> | ||||
| </p> | ||||
| 
 | ||||
| <h3><?php echo __d('cake_dev', 'More about Cake'); ?></h3> | ||||
| <h3><?php echo __d('cake_dev', 'Official Plugins'); ?></h3> | ||||
| <p> | ||||
| <ul> | ||||
| 	<li> | ||||
| 		<?php echo $this->Html->link('DebugKit', 'https://github.com/cakephp/debug_kit/tree/2.2') ?>: | ||||
| 		<?php echo __d('cake_dev', 'provides a debugging toolbar and enhanced debugging tools for CakePHP applications.'); ?> | ||||
| 	</li> | ||||
| 	<li> | ||||
| 		<?php echo $this->Html->link('Localized', 'https://github.com/cakephp/localized') ?>: | ||||
| 		<?php echo __d('cake_dev', 'contains various localized validation classes and translations for specific countries'); ?> | ||||
| 	</li> | ||||
| </ul> | ||||
| </p> | ||||
| 
 | ||||
| <h3><?php echo __d('cake_dev', 'More about CakePHP'); ?></h3> | ||||
| <p> | ||||
| <?php echo __d('cake_dev', 'CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.'); ?> | ||||
| </p> | ||||
|  | @ -165,24 +200,34 @@ You can also add some CSS styles for your pages at: APP/webroot/css.'); | |||
| </p> | ||||
| 
 | ||||
| <ul> | ||||
| 	<li><a href="http://cakefoundation.org/"><?php echo __d('cake_dev', 'Cake Software Foundation'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li> | ||||
| 	<li><a href="http://www.cakephp.org"><?php echo __d('cake_dev', 'CakePHP'); ?> </a> | ||||
| 	<li><a href="http://cakephp.org">CakePHP</a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li> | ||||
| 	<li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li> | ||||
| 	<li><a href="http://api20.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Quick Reference'); ?></li></ul></li> | ||||
| 	<li><a href="http://api.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Quick API Reference'); ?></li></ul></li> | ||||
| 	<li><a href="http://bakery.cakephp.org"><?php echo __d('cake_dev', 'The Bakery'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Everything CakePHP'); ?></li></ul></li> | ||||
| 	<li><a href="http://live.cakephp.org"><?php echo __d('cake_dev', 'The Show'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'The Show is a live and archived internet radio broadcast CakePHP-related topics and answer questions live via IRC, Skype, and telephone.'); ?></li></ul></li> | ||||
| 	<li><a href="http://groups.google.com/group/cake-php"><?php echo __d('cake_dev', 'CakePHP Google Group'); ?> </a> | ||||
| 	<li><a href="http://plugins.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Plugins'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'A comprehensive list of all CakePHP plugins created by the community'); ?></li></ul></li> | ||||
| 	<li><a href="http://community.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Community Center'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Everything related to the CakePHP community in one place'); ?></li></ul></li> | ||||
| 	<li><a href="https://groups.google.com/group/cake-php"><?php echo __d('cake_dev', 'CakePHP Google Group'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Community mailing list'); ?></li></ul></li> | ||||
| 	<li><a href="http://discourse.cakephp.org/"><?php echo __d('cake_dev', 'CakePHP Official Forum'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'CakePHP discussion forum'); ?></li></ul></li> | ||||
| 	<li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li> | ||||
| 	<li><a href="http://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li> | ||||
| 	<li><a href="http://cakephp.lighthouseapp.com/"><?php echo __d('cake_dev', 'CakePHP Lighthouse'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li> | ||||
| 	<li><a href="https://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Find the CakePHP code on GitHub and contribute to the framework'); ?></li></ul></li> | ||||
| 	<li><a href="https://github.com/cakephp/cakephp/issues"><?php echo __d('cake_dev', 'CakePHP Issues'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'CakePHP Issues'); ?></li></ul></li> | ||||
| 	<li><a href="https://github.com/cakephp/cakephp/wiki#roadmaps"><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?></li></ul></li> | ||||
| 	<li><a href="http://training.cakephp.org"><?php echo __d('cake_dev', 'Training'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Join a live session and get skilled with the framework'); ?></li></ul></li> | ||||
| 	<li><a href="http://cakefest.org"><?php echo __d('cake_dev', 'CakeFest'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Don\'t miss our annual CakePHP conference'); ?></li></ul></li> | ||||
| 	<li><a href="http://cakefoundation.org"><?php echo __d('cake_dev', 'Cake Software Foundation'); ?> </a> | ||||
| 	<ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li> | ||||
| </ul> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brm Ko
						Brm Ko