Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<?php
2
/**
3
 *
4
 *
5
 * @link          http://cakephp.org CakePHP(tm) Project
6
 * @package       app.View.Pages
7
 * @since         CakePHP(tm) v 0.10.0.1076
8
 */
9
 
10
if (!Configure::read('debug')):
11
	throw new NotFoundException();
12
endif;
13
 
14
App::uses('Debugger', 'Utility');
15
?>
16
<h2><?php echo __d('cake_dev', 'Release Notes for CakePHP %s.', Configure::version()); ?></h2>
17
<p>
18
	<a href="http://cakephp.org/changelogs/<?php echo Configure::version(); ?>"><?php echo __d('cake_dev', 'Read the changelog'); ?> </a>
19
</p>
20
<?php
21
if (Configure::read('debug') > 0):
22
	Debugger::checkSecurityKeys();
23
endif;
24
?>
25
<?php
26
if (file_exists(WWW_ROOT . 'css' . DS . 'cake.generic.css')):
27
?>
28
<p id="url-rewriting-warning" style="background-color:#e32; color:#fff;">
29
	<?php echo __d('cake_dev', 'URL rewriting is not properly configured on your server.'); ?>
30
	1) <a target="_blank" href="http://book.cakephp.org/2.0/en/installation/url-rewriting.html" style="color:#fff;">Help me configure it</a>
31
	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>
32
</p>
33
<?php
34
endif;
35
?>
36
<p>
37
<?php
38
	if (version_compare(PHP_VERSION, '5.2.8', '>=')):
39
		echo '<span class="notice success">';
40
			echo __d('cake_dev', 'Your version of PHP is 5.2.8 or higher.');
41
		echo '</span>';
42
	else:
43
		echo '<span class="notice">';
44
			echo __d('cake_dev', 'Your version of PHP is too low. You need PHP 5.2.8 or higher to use CakePHP.');
45
		echo '</span>';
46
	endif;
47
?>
48
</p>
49
<p>
50
	<?php
51
		if (is_writable(TMP)):
52
			echo '<span class="notice success">';
53
				echo __d('cake_dev', 'Your tmp directory is writable.');
54
			echo '</span>';
55
		else:
56
			echo '<span class="notice">';
57
				echo __d('cake_dev', 'Your tmp directory is NOT writable.');
58
			echo '</span>';
59
		endif;
60
	?>
61
</p>
62
<p>
63
	<?php
64
		$settings = Cache::settings();
65
		if (!empty($settings)):
66
			echo '<span class="notice success">';
67
				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');
68
			echo '</span>';
69
		else:
70
			echo '<span class="notice">';
71
				echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in %s', 'APP/Config/core.php');
72
			echo '</span>';
73
		endif;
74
	?>
75
</p>
76
<p>
77
	<?php
78
		$filePresent = null;
79
		if (file_exists(APP . 'Config' . DS . 'database.php')):
80
			echo '<span class="notice success">';
81
				echo __d('cake_dev', 'Your database configuration file is present.');
82
				$filePresent = true;
83
			echo '</span>';
84
		else:
85
			echo '<span class="notice">';
86
				echo __d('cake_dev', 'Your database configuration file is NOT present.');
87
				echo '<br/>';
88
				echo __d('cake_dev', 'Rename %s to %s', 'APP/Config/database.php.default', 'APP/Config/database.php');
89
			echo '</span>';
90
		endif;
91
	?>
92
</p>
93
<?php
94
if (isset($filePresent)):
95
	App::uses('ConnectionManager', 'Model');
96
	try {
97
		$connected = ConnectionManager::getDataSource('default');
98
	} catch (Exception $connectionError) {
99
		$connected = false;
100
		$errorMsg = $connectionError->getMessage();
101
		if (method_exists($connectionError, 'getAttributes')):
102
			$attributes = $connectionError->getAttributes();
103
			if (isset($errorMsg['message'])):
104
				$errorMsg .= '<br />' . $attributes['message'];
105
			endif;
106
		endif;
107
	}
108
?>
109
<p>
110
	<?php
111
		if ($connected && $connected->isConnected()):
112
			echo '<span class="notice success">';
113
				echo __d('cake_dev', 'CakePHP is able to connect to the database.');
114
			echo '</span>';
115
		else:
116
			echo '<span class="notice">';
117
				echo __d('cake_dev', 'CakePHP is NOT able to connect to the database.');
118
				echo '<br /><br />';
119
				echo $errorMsg;
120
			echo '</span>';
121
		endif;
122
	?>
123
</p>
124
<?php endif; ?>
125
<?php
126
	App::uses('Validation', 'Utility');
127
	if (!Validation::alphaNumeric('cakephp')):
128
		echo '<p><span class="notice">';
129
			echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
130
			echo '<br/>';
131
			echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
132
		echo '</span></p>';
133
	endif;
134
?>
135
 
136
<p>
137
	<?php
138
		if (CakePlugin::loaded('DebugKit')):
139
			echo '<span class="notice success">';
140
				echo __d('cake_dev', 'DebugKit plugin is present');
141
			echo '</span>';
142
		else:
143
			echo '<span class="notice">';
144
				echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.');
145
				echo '<br/>';
146
				echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit'));
147
			echo '</span>';
148
		endif;
149
	?>
150
</p>
151
 
152
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
153
<p>
154
<?php
155
echo __d('cake_dev', 'To change the content of this page, edit: %s.<br />
156
To change its layout, edit: %s.<br />
157
You can also add some CSS styles for your pages at: %s.',
158
	'APP/View/Pages/home.ctp', 'APP/View/Layouts/default.ctp', 'APP/webroot/css');
159
?>
160
</p>
161
 
162
<h3><?php echo __d('cake_dev', 'Getting Started'); ?></h3>
163
<p>
164
	<?php
165
		echo $this->Html->link(
166
			sprintf('<strong>%s</strong> %s', __d('cake_dev', 'New'), __d('cake_dev', 'CakePHP 2.0 Docs')),
167
			'http://book.cakephp.org/2.0/en/',
168
			array('target' => '_blank', 'escape' => false)
169
		);
170
	?>
171
</p>
172
<p>
173
	<?php
174
		echo $this->Html->link(
175
			__d('cake_dev', 'The 15 min Blog Tutorial'),
176
			'http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html',
177
			array('target' => '_blank', 'escape' => false)
178
		);
179
	?>
180
</p>
181
 
182
<h3><?php echo __d('cake_dev', 'Official Plugins'); ?></h3>
183
<p>
184
<ul>
185
	<li>
186
		<?php echo $this->Html->link('DebugKit', 'https://github.com/cakephp/debug_kit') ?>:
187
		<?php echo __d('cake_dev', 'provides a debugging toolbar and enhanced debugging tools for CakePHP applications.'); ?>
188
	</li>
189
	<li>
190
		<?php echo $this->Html->link('Localized', 'https://github.com/cakephp/localized') ?>:
191
		<?php echo __d('cake_dev', 'contains various localized validation classes and translations for specific countries'); ?>
192
	</li>
193
</ul>
194
</p>
195
 
196
<h3><?php echo __d('cake_dev', 'More about CakePHP'); ?></h3>
197
<p>
198
<?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.'); ?>
199
</p>
200
<p>
201
<?php echo __d('cake_dev', 'Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.'); ?>
202
</p>
203
 
204
<ul>
205
	<li><a href="http://cakephp.org">CakePHP</a>
206
	<ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>
207
	<li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a>
208
	<ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>
209
	<li><a href="http://api.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>
210
	<ul><li><?php echo __d('cake_dev', 'Quick API Reference'); ?></li></ul></li>
211
	<li><a href="http://bakery.cakephp.org"><?php echo __d('cake_dev', 'The Bakery'); ?> </a>
212
	<ul><li><?php echo __d('cake_dev', 'Everything CakePHP'); ?></li></ul></li>
213
	<li><a href="http://plugins.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Plugins'); ?> </a>
214
	<ul><li><?php echo __d('cake_dev', 'A comprehensive list of all CakePHP plugins created by the community'); ?></li></ul></li>
215
	<li><a href="http://community.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Community Center'); ?> </a>
216
	<ul><li><?php echo __d('cake_dev', 'Everything related to the CakePHP community in one place'); ?></li></ul></li>
217
	<li><a href="https://groups.google.com/group/cake-php"><?php echo __d('cake_dev', 'CakePHP Google Group'); ?> </a>
218
	<ul><li><?php echo __d('cake_dev', 'Community mailing list'); ?></li></ul></li>
219
	<li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
220
	<ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li>
221
	<li><a href="https://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a>
222
	<ul><li><?php echo __d('cake_dev', 'Find the CakePHP code on GitHub and contribute to the framework'); ?></li></ul></li>
223
	<li><a href="https://github.com/cakephp/cakephp/issues"><?php echo __d('cake_dev', 'CakePHP Issues'); ?> </a>
224
	<ul><li><?php echo __d('cake_dev', 'CakePHP Issues'); ?></li></ul></li>
225
	<li><a href="https://github.com/cakephp/cakephp/wiki#roadmaps"><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?> </a>
226
	<ul><li><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?></li></ul></li>
227
	<li><a href="http://training.cakephp.org"><?php echo __d('cake_dev', 'Training'); ?> </a>
228
	<ul><li><?php echo __d('cake_dev', 'Join a live session and get skilled with the framework'); ?></li></ul></li>
229
	<li><a href="http://cakefest.org"><?php echo __d('cake_dev', 'CakeFest'); ?> </a>
230
	<ul><li><?php echo __d('cake_dev', 'Don\'t miss our annual CakePHP conference'); ?></li></ul></li>
231
	<li><a href="http://cakefoundation.org"><?php echo __d('cake_dev', 'Cake Software Foundation'); ?> </a>
232
	<ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>
233
</ul>