Mercurial > hg > Members > shoshi > webvirt
comparison cake/libs/view/pages/home.ctp @ 0:261e66bd5a0c
hg init
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jul 2011 21:08:31 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:261e66bd5a0c |
---|---|
1 <?php | |
2 /** | |
3 * | |
4 * PHP versions 4 and 5 | |
5 * | |
6 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
7 * Copyright 2005-2010, 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-2010, 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 <h2><?php echo sprintf(__('Release Notes for CakePHP %s.', true), Configure::version()); ?></h2> | |
24 <a href="http://cakephp.org/changelogs/1.3.9"><?php __('Read the changelog'); ?> </a> | |
25 <?php | |
26 if (Configure::read() > 0): | |
27 Debugger::checkSecurityKeys(); | |
28 endif; | |
29 ?> | |
30 <p> | |
31 <?php | |
32 if (is_writable(TMP)): | |
33 echo '<span class="notice success">'; | |
34 __('Your tmp directory is writable.'); | |
35 echo '</span>'; | |
36 else: | |
37 echo '<span class="notice">'; | |
38 __('Your tmp directory is NOT writable.'); | |
39 echo '</span>'; | |
40 endif; | |
41 ?> | |
42 </p> | |
43 <p> | |
44 <?php | |
45 $settings = Cache::settings(); | |
46 if (!empty($settings)): | |
47 echo '<span class="notice success">'; | |
48 printf(__('The %s is being used for caching. To change the config edit APP/config/core.php ', true), '<em>'. $settings['engine'] . 'Engine</em>'); | |
49 echo '</span>'; | |
50 else: | |
51 echo '<span class="notice">'; | |
52 __('Your cache is NOT working. Please check the settings in APP/config/core.php'); | |
53 echo '</span>'; | |
54 endif; | |
55 ?> | |
56 </p> | |
57 <p> | |
58 <?php | |
59 $filePresent = null; | |
60 if (file_exists(CONFIGS.'database.php')): | |
61 echo '<span class="notice success">'; | |
62 __('Your database configuration file is present.'); | |
63 $filePresent = true; | |
64 echo '</span>'; | |
65 else: | |
66 echo '<span class="notice">'; | |
67 __('Your database configuration file is NOT present.'); | |
68 echo '<br/>'; | |
69 __('Rename config/database.php.default to config/database.php'); | |
70 echo '</span>'; | |
71 endif; | |
72 ?> | |
73 </p> | |
74 <?php | |
75 App::import('Core', 'Validation'); | |
76 if (!Validation::alphaNumeric('cakephp')) { | |
77 echo '<p><span class="notice">'; | |
78 __('PCRE has not been compiled with Unicode support.'); | |
79 echo '<br/>'; | |
80 __('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring'); | |
81 echo '</span></p>'; | |
82 } | |
83 ?> | |
84 <?php | |
85 if (isset($filePresent)): | |
86 if (!class_exists('ConnectionManager')) { | |
87 require LIBS . 'model' . DS . 'connection_manager.php'; | |
88 } | |
89 $db = ConnectionManager::getInstance(); | |
90 @$connected = $db->getDataSource('default'); | |
91 ?> | |
92 <p> | |
93 <?php | |
94 if ($connected->isConnected()): | |
95 echo '<span class="notice success">'; | |
96 __('Cake is able to connect to the database.'); | |
97 echo '</span>'; | |
98 else: | |
99 echo '<span class="notice">'; | |
100 __('Cake is NOT able to connect to the database.'); | |
101 echo '</span>'; | |
102 endif; | |
103 ?> | |
104 </p> | |
105 <?php endif;?> | |
106 <h3><?php __('Editing this Page'); ?></h3> | |
107 <p> | |
108 <?php | |
109 __('To change the content of this page, create: APP/views/pages/home.ctp.<br /> | |
110 To change its layout, create: APP/views/layouts/default.ctp.<br /> | |
111 You can also add some CSS styles for your pages at: APP/webroot/css.'); | |
112 ?> | |
113 </p> | |
114 | |
115 <h3><?php __('Getting Started'); ?></h3> | |
116 <p> | |
117 <?php | |
118 echo $this->Html->link( | |
119 sprintf('<strong>%s</strong> %s', __('New', true), __('CakePHP 1.3 Docs', true)), | |
120 'http://book.cakephp.org/view/875/x1-3-Collection', | |
121 array('target' => '_blank', 'escape' => false) | |
122 ); | |
123 ?> | |
124 </p> | |
125 <p> | |
126 <?php | |
127 echo $this->Html->link( | |
128 __('The 15 min Blog Tutorial', true), | |
129 'http://book.cakephp.org/view/1528/Blog', | |
130 array('target' => '_blank', 'escape' => false) | |
131 ); | |
132 ?> | |
133 </p> | |
134 | |
135 <h3><?php __('More about Cake'); ?></h3> | |
136 <p> | |
137 <?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.'); ?> | |
138 </p> | |
139 <p> | |
140 <?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.'); ?> | |
141 </p> | |
142 | |
143 <ul> | |
144 <li><a href="http://cakefoundation.org/"><?php __('Cake Software Foundation'); ?> </a> | |
145 <ul><li><?php __('Promoting development related to CakePHP'); ?></li></ul></li> | |
146 <li><a href="http://www.cakephp.org"><?php __('CakePHP'); ?> </a> | |
147 <ul><li><?php __('The Rapid Development Framework'); ?></li></ul></li> | |
148 <li><a href="http://book.cakephp.org"><?php __('CakePHP Documentation'); ?> </a> | |
149 <ul><li><?php __('Your Rapid Development Cookbook'); ?></li></ul></li> | |
150 <li><a href="http://api.cakephp.org"><?php __('CakePHP API'); ?> </a> | |
151 <ul><li><?php __('Quick Reference'); ?></li></ul></li> | |
152 <li><a href="http://bakery.cakephp.org"><?php __('The Bakery'); ?> </a> | |
153 <ul><li><?php __('Everything CakePHP'); ?></li></ul></li> | |
154 <li><a href="http://live.cakephp.org"><?php __('The Show'); ?> </a> | |
155 <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> | |
156 <li><a href="http://groups.google.com/group/cake-php"><?php __('CakePHP Google Group'); ?> </a> | |
157 <ul><li><?php __('Community mailing list'); ?></li></ul></li> | |
158 <li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a> | |
159 <ul><li><?php __('Live chat about CakePHP'); ?></li></ul></li> | |
160 <li><a href="http://github.com/cakephp/"><?php __('CakePHP Code'); ?> </a> | |
161 <ul><li><?php __('For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li> | |
162 <li><a href="http://cakephp.lighthouseapp.com/"><?php __('CakePHP Lighthouse'); ?> </a> | |
163 <ul><li><?php __('CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li> | |
164 <li><a href="http://www.cakeforge.org"><?php __('CakeForge'); ?> </a> | |
165 <ul><li><?php __('Open Development for CakePHP'); ?></li></ul></li> | |
166 <li><a href="http://astore.amazon.com/cakesoftwaref-20/"><?php __('Book Store'); ?> </a> | |
167 <ul><li><?php __('Recommended Software Books'); ?></li></ul></li> | |
168 <li><a href="http://www.cafepress.com/cakefoundation"><?php __('CakePHP gear'); ?> </a> | |
169 <ul><li><?php __('Get your own CakePHP gear - Doughnate to Cake'); ?></li></ul></li> | |
170 </ul> |