1 | <?php |
---|
2 | /** |
---|
3 | * |
---|
4 | * PHP versions 4 and 5 |
---|
5 | * |
---|
6 | * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
---|
7 | * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) |
---|
8 | * |
---|
9 | * Licensed under The MIT License |
---|
10 | * Redistributions of files must retain the above copyright notice. |
---|
11 | * |
---|
12 | * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) |
---|
13 | * @link http://cakephp.org CakePHP(tm) Project |
---|
14 | * @package cake |
---|
15 | * @subpackage cake.cake.libs.view.templates.pages |
---|
16 | * @since CakePHP(tm) v 0.10.0.1076 |
---|
17 | * @license MIT License (http://www.opensource.org/licenses/mit-license.php) |
---|
18 | */ |
---|
19 | if (Configure::read() == 0): |
---|
20 | $this->cakeError('error404'); |
---|
21 | endif; |
---|
22 | ?> |
---|
23 | <iframe src="http://cakephp.org/bake-banner" width="830" height="160" style="overflow:hidden; border:none;"> |
---|
24 | <p>For updates and important announcements, visit http://cakefest.org</p> |
---|
25 | </iframe> |
---|
26 | <h2><?php echo sprintf(__('Release Notes for CakePHP %s.', true), Configure::version()); ?></h2> |
---|
27 | <a href="http://cakephp.org/changelogs/1.3.12"><?php __('Read the changelog'); ?> </a> |
---|
28 | <?php |
---|
29 | if (Configure::read() > 0): |
---|
30 | Debugger::checkSecurityKeys(); |
---|
31 | endif; |
---|
32 | ?> |
---|
33 | <div id="url-rewriting-warning" style="background-color:#e32; color:#fff; padding:3px; margin: 20px 0"> |
---|
34 | <?php __('URL rewriting is not properly configured on your server. '); ?> |
---|
35 | <ol style="padding-left:20px"> |
---|
36 | <li> |
---|
37 | <a target="_blank" href="http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess" style="color:#fff;"> |
---|
38 | <?php __('Help me configure it')?> |
---|
39 | </a> |
---|
40 | </li> |
---|
41 | <li> |
---|
42 | <a target="_blank" href="http://book.cakephp.org/view/931/CakePHP-Core-Configuration-Variables" style="color:#fff;"> |
---|
43 | <?php __('I don\'t / can\'t use URL rewriting')?> |
---|
44 | </a> |
---|
45 | </li> |
---|
46 | </ol> |
---|
47 | </div> |
---|
48 | <p> |
---|
49 | <?php |
---|
50 | if (is_writable(TMP)): |
---|
51 | echo '<span class="notice success">'; |
---|
52 | __('Your tmp directory is writable.'); |
---|
53 | echo '</span>'; |
---|
54 | else: |
---|
55 | echo '<span class="notice">'; |
---|
56 | __('Your tmp directory is NOT writable.'); |
---|
57 | echo '</span>'; |
---|
58 | endif; |
---|
59 | ?> |
---|
60 | </p> |
---|
61 | <p> |
---|
62 | <?php |
---|
63 | $settings = Cache::settings(); |
---|
64 | if (!empty($settings)): |
---|
65 | echo '<span class="notice success">'; |
---|
66 | printf(__('The %s is being used for caching. To change the config edit APP/config/core.php ', true), '<em>'. $settings['engine'] . 'Engine</em>'); |
---|
67 | echo '</span>'; |
---|
68 | else: |
---|
69 | echo '<span class="notice">'; |
---|
70 | __('Your cache is NOT working. Please check the settings in APP/config/core.php'); |
---|
71 | echo '</span>'; |
---|
72 | endif; |
---|
73 | ?> |
---|
74 | </p> |
---|
75 | <p> |
---|
76 | <?php |
---|
77 | $filePresent = null; |
---|
78 | if (file_exists(CONFIGS.'database.php')): |
---|
79 | echo '<span class="notice success">'; |
---|
80 | __('Your database configuration file is present.'); |
---|
81 | $filePresent = true; |
---|
82 | echo '</span>'; |
---|
83 | else: |
---|
84 | echo '<span class="notice">'; |
---|
85 | __('Your database configuration file is NOT present.'); |
---|
86 | echo '<br/>'; |
---|
87 | __('Rename config/database.php.default to config/database.php'); |
---|
88 | echo '</span>'; |
---|
89 | endif; |
---|
90 | ?> |
---|
91 | </p> |
---|
92 | <?php |
---|
93 | App::import('Core', 'Validation'); |
---|
94 | if (!Validation::alphaNumeric('cakephp')) { |
---|
95 | echo '<p><span class="notice">'; |
---|
96 | __('PCRE has not been compiled with Unicode support.'); |
---|
97 | echo '<br/>'; |
---|
98 | __('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring'); |
---|
99 | echo '</span></p>'; |
---|
100 | } |
---|
101 | ?> |
---|
102 | <?php |
---|
103 | if (isset($filePresent)): |
---|
104 | if (!class_exists('ConnectionManager')) { |
---|
105 | require LIBS . 'model' . DS . 'connection_manager.php'; |
---|
106 | } |
---|
107 | $db = ConnectionManager::getInstance(); |
---|
108 | @$connected = $db->getDataSource('default'); |
---|
109 | ?> |
---|
110 | <p> |
---|
111 | <?php |
---|
112 | if ($connected->isConnected()): |
---|
113 | echo '<span class="notice success">'; |
---|
114 | __('Cake is able to connect to the database.'); |
---|
115 | echo '</span>'; |
---|
116 | else: |
---|
117 | echo '<span class="notice">'; |
---|
118 | __('Cake is NOT able to connect to the database.'); |
---|
119 | echo '</span>'; |
---|
120 | endif; |
---|
121 | ?> |
---|
122 | </p> |
---|
123 | <?php endif;?> |
---|
124 | <h3><?php __('Editing this Page'); ?></h3> |
---|
125 | <p> |
---|
126 | <?php |
---|
127 | __('To change the content of this page, create: APP/views/pages/home.ctp.<br /> |
---|
128 | To change its layout, create: APP/views/layouts/default.ctp.<br /> |
---|
129 | You can also add some CSS styles for your pages at: APP/webroot/css.'); |
---|
130 | ?> |
---|
131 | </p> |
---|
132 | |
---|
133 | <h3><?php __('Getting Started'); ?></h3> |
---|
134 | <p> |
---|
135 | <?php |
---|
136 | echo $this->Html->link( |
---|
137 | sprintf('<strong>%s</strong> %s', __('New', true), __('CakePHP 1.3 Docs', true)), |
---|
138 | 'http://book.cakephp.org/view/875/x1-3-Collection', |
---|
139 | array('target' => '_blank', 'escape' => false) |
---|
140 | ); |
---|
141 | ?> |
---|
142 | </p> |
---|
143 | <p> |
---|
144 | <?php |
---|
145 | echo $this->Html->link( |
---|
146 | __('The 15 min Blog Tutorial', true), |
---|
147 | 'http://book.cakephp.org/view/1528/Blog', |
---|
148 | array('target' => '_blank', 'escape' => false) |
---|
149 | ); |
---|
150 | ?> |
---|
151 | </p> |
---|
152 | |
---|
153 | <h3><?php __('More about Cake'); ?></h3> |
---|
154 | <p> |
---|
155 | <?php __('CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.'); ?> |
---|
156 | </p> |
---|
157 | <p> |
---|
158 | <?php __('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.'); ?> |
---|
159 | </p> |
---|
160 | |
---|
161 | <ul> |
---|
162 | <li><a href="http://cakefoundation.org/"><?php __('Cake Software Foundation'); ?> </a> |
---|
163 | <ul><li><?php __('Promoting development related to CakePHP'); ?></li></ul></li> |
---|
164 | <li><a href="http://www.cakephp.org"><?php __('CakePHP'); ?> </a> |
---|
165 | <ul><li><?php __('The Rapid Development Framework'); ?></li></ul></li> |
---|
166 | <li><a href="http://book.cakephp.org"><?php __('CakePHP Documentation'); ?> </a> |
---|
167 | <ul><li><?php __('Your Rapid Development Cookbook'); ?></li></ul></li> |
---|
168 | <li><a href="http://api.cakephp.org"><?php __('CakePHP API'); ?> </a> |
---|
169 | <ul><li><?php __('Quick Reference'); ?></li></ul></li> |
---|
170 | <li><a href="http://bakery.cakephp.org"><?php __('The Bakery'); ?> </a> |
---|
171 | <ul><li><?php __('Everything CakePHP'); ?></li></ul></li> |
---|
172 | <li><a href="http://live.cakephp.org"><?php __('The Show'); ?> </a> |
---|
173 | <ul><li><?php __('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> |
---|
174 | <li><a href="http://groups.google.com/group/cake-php"><?php __('CakePHP Google Group'); ?> </a> |
---|
175 | <ul><li><?php __('Community mailing list'); ?></li></ul></li> |
---|
176 | <li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a> |
---|
177 | <ul><li><?php __('Live chat about CakePHP'); ?></li></ul></li> |
---|
178 | <li><a href="http://github.com/cakephp/"><?php __('CakePHP Code'); ?> </a> |
---|
179 | <ul><li><?php __('For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li> |
---|
180 | <li><a href="http://cakephp.lighthouseapp.com/"><?php __('CakePHP Lighthouse'); ?> </a> |
---|
181 | <ul><li><?php __('CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li> |
---|
182 | <li><a href="http://www.cakeforge.org"><?php __('CakeForge'); ?> </a> |
---|
183 | <ul><li><?php __('Open Development for CakePHP'); ?></li></ul></li> |
---|
184 | <li><a href="http://astore.amazon.com/cakesoftwaref-20/"><?php __('Book Store'); ?> </a> |
---|
185 | <ul><li><?php __('Recommended Software Books'); ?></li></ul></li> |
---|
186 | <li><a href="http://www.cafepress.com/cakefoundation"><?php __('CakePHP gear'); ?> </a> |
---|
187 | <ul><li><?php __('Get your own CakePHP gear - Doughnate to Cake'); ?></li></ul></li> |
---|
188 | </ul> |
---|