adding example apps, fixing powerup issues
[feisty_meow.git] / production / example_apps / shared_calendar / src / Template / Pages / home.ctp
1 <?php
2 /**
3  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5  *
6  * Licensed under The MIT License
7  * For full copyright and license information, please see the LICENSE.txt
8  * Redistributions of files must retain the above copyright notice.
9  *
10  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11  * @link          http://cakephp.org CakePHP(tm) Project
12  * @since         0.10.0
13  * @license       http://www.opensource.org/licenses/mit-license.php MIT License
14  */
15 use Cake\Cache\Cache;
16 use Cake\Core\Configure;
17 use Cake\Core\Plugin;
18 use Cake\Datasource\ConnectionManager;
19 use Cake\Error\Debugger;
20 use Cake\Network\Exception\NotFoundException;
21
22 $this->layout = false;
23
24 if (! Configure::read ( 'debug' )) :
25         throw new NotFoundException ( 'Please replace src/Template/Pages/home.ctp with your own version.' );
26 endif;
27
28 $cakeDescription = 'CakePHP: the rapid development PHP framework';
29 ?>
30 <!DOCTYPE html>
31 <html>
32 <head>
33     <?= $this->Html->charset() ?>
34     <meta name="viewport"
35         content="width=device-width, initial-scale=1.0">
36 <title>
37         <?= $cakeDescription ?>
38     </title>
39
40     <?= $this->Html->meta('icon') ?>
41     <?= $this->Html->css('base.css') ?>
42     <?= $this->Html->css('cake.css') ?>
43     <?= $this->Html->css('home.css') ?>
44     <link
45         href="https://fonts.googleapis.com/css?family=Raleway:500i|Roboto:300,400,700|Roboto+Mono"
46         rel="stylesheet">
47 </head>
48 <body class="home">
49
50
51
52         <header class="row">
53                 <div class="header-image"><?= $this->Html->image('cake.logo.svg') ?></div>
54                 <div class="header-title">
55                         <h1>Welcome to CakePHP <?= Configure::version() ?> Red Velvet. Build fast. Grow solid.</h1>
56                 </div>
57         </header>
58
59         <div class="fredmenu">
60                 <ul>
61
62                         <li>Stored Authorizations <a href="/users">OAuth Users</a>
63                         </li>
64                 </ul>
65         </div>
66
67
68
69         <div class="row">
70                 <div class="columns large-12">
71                         <div class="ctp-warning alert text-center">
72                                 <p>Please be aware that this page will not be shown if you turn off
73                                         debug mode unless you replace src/Template/Pages/home.ctp with your
74                                         own version.</p>
75                         </div>
76                         <div id="url-rewriting-warning" class="alert url-rewriting">
77                                 <ul>
78                                         <li class="bullet problem">URL rewriting is not properly configured
79                                                 on your server.<br /> 1) <a target="_blank"
80                                                 href="http://book.cakephp.org/3.0/en/installation.html#url-rewriting">Help
81                                                         me configure it</a><br /> 2) <a target="_blank"
82                                                 href="http://book.cakephp.org/3.0/en/development/configuration.html#general-configuration">I
83                                                         don't / can't use URL rewriting</a>
84                                         </li>
85                                 </ul>
86                         </div>
87         <?php Debugger::checkSecurityKeys(); ?>
88     </div>
89         </div>
90
91         <div class="row">
92                 <div class="columns large-6">
93                         <h4>Environment</h4>
94                         <ul>
95         <?php if (version_compare(PHP_VERSION, '5.6.0', '>=')): ?>
96             <li class="bullet success">Your version of PHP is 5.6.0 or higher (detected <?= PHP_VERSION ?>).</li>
97         <?php else: ?>
98             <li class="bullet problem">Your version of PHP is too low. You need PHP 5.6.0 or higher to use CakePHP (detected <?= PHP_VERSION ?>).</li>
99         <?php endif; ?>
100
101         <?php if (extension_loaded('mbstring')): ?>
102             <li class="bullet success">Your version of PHP has the
103                                         mbstring extension loaded.</li>
104         <?php else: ?>
105             <li class="bullet problem">Your version of PHP does NOT have
106                                         the mbstring extension loaded.</li>;
107         <?php endif; ?>
108
109         <?php if (extension_loaded('openssl')): ?>
110             <li class="bullet success">Your version of PHP has the
111                                         openssl extension loaded.</li>
112         <?php elseif (extension_loaded('mcrypt')): ?>
113             <li class="bullet success">Your version of PHP has the
114                                         mcrypt extension loaded.</li>
115         <?php else: ?>
116             <li class="bullet problem">Your version of PHP does NOT have
117                                         the openssl or mcrypt extension loaded.</li>
118         <?php endif; ?>
119
120         <?php if (extension_loaded('intl')): ?>
121             <li class="bullet success">Your version of PHP has the intl
122                                         extension loaded.</li>
123         <?php else: ?>
124             <li class="bullet problem">Your version of PHP does NOT have
125                                         the intl extension loaded.</li>
126         <?php endif; ?>
127         </ul>
128                 </div>
129                 <div class="columns large-6">
130                         <h4>Filesystem</h4>
131                         <ul>
132         <?php if (is_writable(TMP)): ?>
133             <li class="bullet success">Your tmp directory is writable.</li>
134         <?php else: ?>
135             <li class="bullet problem">Your tmp directory is NOT
136                                         writable.</li>
137         <?php endif; ?>
138
139         <?php if (is_writable(LOGS)): ?>
140             <li class="bullet success">Your logs directory is writable.</li>
141         <?php else: ?>
142             <li class="bullet problem">Your logs directory is NOT
143                                         writable.</li>
144         <?php endif; ?>
145
146         <?php $settings = Cache::config('_cake_core_'); ?>
147         <?php if (!empty($settings)): ?>
148             <li class="bullet success">The <em><?= $settings['className'] ?>Engine</em>
149                                         is being used for core caching. To change the config edit
150                                         config/app.php
151                                 </li>
152         <?php else: ?>
153             <li class="bullet problem">Your cache is NOT working. Please
154                                         check the settings in config/app.php</li>
155         <?php endif; ?>
156         </ul>
157                 </div>
158                 <hr />
159         </div>
160
161         <div class="row">
162                 <div class="columns large-6">
163                         <h4>Database</h4>
164         <?php
165                                                                 try {
166                                                                         $connection = ConnectionManager::get ( 'default' );
167                                                                         $connected = $connection->connect ();
168                                                                 } catch ( Exception $connectionError ) {
169                                                                         $connected = false;
170                                                                         $errorMsg = $connectionError->getMessage ();
171                                                                         if (method_exists ( $connectionError, 'getAttributes' )) :
172                                                                                 $attributes = $connectionError->getAttributes ();
173                                                                                 if (isset ( $errorMsg ['message'] )) :
174                                                                                         $errorMsg .= '<br />' . $attributes ['message'];
175                 endif;
176             endif;
177                                                                                 
178                                                                         
179                                                                 }
180                                                                 ?>
181         <ul>
182         <?php if ($connected): ?>
183             <li class="bullet success">CakePHP is able to connect to the
184                                         database.</li>
185         <?php else: ?>
186             <li class="bullet problem">CakePHP is NOT able to connect to
187                                         the database.<br /><?= $errorMsg ?></li>
188         <?php endif; ?>
189         </ul>
190                 </div>
191                 <div class="columns large-6">
192                         <h4>DebugKit</h4>
193                         <ul>
194         <?php if (Plugin::loaded('DebugKit')): ?>
195             <li class="bullet success">DebugKit is loaded.</li>
196         <?php else: ?>
197             <li class="bullet problem">DebugKit is NOT loaded. You need
198                                         to either install pdo_sqlite, or define the "debug_kit" connection
199                                         name.</li>
200         <?php endif; ?>
201         </ul>
202                 </div>
203                 <hr />
204         </div>
205
206         <div class="row">
207                 <div class="columns large-6">
208                         <h3>Editing this Page</h3>
209                         <ul>
210                                 <li class="bullet cutlery">To change the content of this page, edit:
211                                         src/Template/Pages/home.ctp.</li>
212                                 <li class="bullet cutlery">You can also add some CSS styles for your
213                                         pages at: webroot/css/.</li>
214                         </ul>
215                 </div>
216                 <div class="columns large-6">
217                         <h3>Getting Started</h3>
218                         <ul>
219                                 <li class="bullet book"><a target="_blank"
220                                         href="http://book.cakephp.org/3.0/en/">CakePHP 3.0 Docs</a></li>
221                                 <li class="bullet book"><a target="_blank"
222                                         href="http://book.cakephp.org/3.0/en/tutorials-and-examples/bookmarks/intro.html">The
223                                                 15 min Bookmarker Tutorial</a></li>
224                                 <li class="bullet book"><a target="_blank"
225                                         href="http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/blog.html">The
226                                                 15 min Blog Tutorial</a></li>
227                         </ul>
228                         <p>
229                 
230                 </div>
231         </div>
232
233         <div class="row">
234                 <div class="columns large-12 text-center">
235                         <h3 class="more">More about Cake</h3>
236                         <p>
237                                 CakePHP is a rapid development framework for PHP which uses commonly
238                                 known design patterns like Front Controller and MVC.<br /> Our
239                                 primary goal is to provide a structured framework that enables PHP
240                                 users at all levels to rapidly develop robust web applications,
241                                 without any loss to flexibility.
242                         </p>
243                 </div>
244                 <hr />
245         </div>
246
247         <div class="row">
248                 <div class="columns large-4">
249                         <i class="icon support">P</i>
250                         <h3>Help and Bug Reports</h3>
251                         <ul>
252                                 <li class="bullet cutlery"><a href="irc://irc.freenode.net/cakephp">irc.freenode.net
253                                                 #cakephp</a>
254                                         <ul>
255                                                 <li>Live chat about CakePHP</li>
256                                         </ul></li>
257                                 <li class="bullet cutlery"><a
258                                         href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
259                                         <ul>
260                                                 <li>CakePHP issues and pull requests</li>
261                                         </ul></li>
262                                 <li class="bullet cutlery"><a href="http://discourse.cakephp.org/">CakePHP
263                                                 Forum</a>
264                                         <ul>
265                                                 <li>CakePHP official discussion forum</li>
266                                         </ul></li>
267                                 <li class="bullet cutlery"><a
268                                         href="https://groups.google.com/group/cake-php">CakePHP Google
269                                                 Group</a>
270                                         <ul>
271                                                 <li>Community mailing list</li>
272                                         </ul></li>
273                         </ul>
274                 </div>
275                 <div class="columns large-4">
276                         <i class="icon docs">r</i>
277                         <h3>Docs and Downloads</h3>
278                         <ul>
279                                 <li class="bullet cutlery"><a href="http://api.cakephp.org/3.0/">CakePHP
280                                                 API</a>
281                                         <ul>
282                                                 <li>Quick Reference</li>
283                                         </ul></li>
284                                 <li class="bullet cutlery"><a href="http://book.cakephp.org/3.0/en/">CakePHP
285                                                 Documentation</a>
286                                         <ul>
287                                                 <li>Your Rapid Development Cookbook</li>
288                                         </ul></li>
289                                 <li class="bullet cutlery"><a href="http://bakery.cakephp.org">The
290                                                 Bakery</a>
291                                         <ul>
292                                                 <li>Everything CakePHP</li>
293                                         </ul></li>
294                                 <li class="bullet cutlery"><a href="http://plugins.cakephp.org">CakePHP
295                                                 plugins repo</a>
296                                         <ul>
297                                                 <li>A comprehensive list of all CakePHP plugins created by the
298                                                         community</li>
299                                         </ul></li>
300                                 <li class="bullet cutlery"><a href="https://github.com/cakephp/">CakePHP
301                                                 Code</a>
302                                         <ul>
303                                                 <li>For the Development of CakePHP Git repository, Downloads</li>
304                                         </ul></li>
305                                 <li class="bullet cutlery"><a
306                                         href="https://github.com/FriendsOfCake/awesome-cakephp">CakePHP
307                                                 Awesome List</a>
308                                         <ul>
309                                                 <li>A curated list of amazingly awesome CakePHP plugins, resources
310                                                         and shiny things.</li>
311                                         </ul></li>
312                                 <li class="bullet cutlery"><a href="http://www.cakephp.org">CakePHP</a>
313                                         <ul>
314                                                 <li>The Rapid Development Framework</li>
315                                         </ul></li>
316                         </ul>
317                 </div>
318                 <div class="columns large-4">
319                         <i class="icon training">s</i>
320                         <h3>Training and Certification</h3>
321                         <ul>
322                                 <li class="bullet cutlery"><a href="http://cakefoundation.org/">Cake
323                                                 Software Foundation</a>
324                                         <ul>
325                                                 <li>Promoting development related to CakePHP</li>
326                                         </ul></li>
327                                 <li class="bullet cutlery"><a href="http://training.cakephp.org/">CakePHP
328                                                 Training</a>
329                                         <ul>
330                                                 <li>Learn to use the CakePHP framework</li>
331                                         </ul></li>
332                                 <li class="bullet cutlery"><a
333                                         href="http://certification.cakephp.org/">CakePHP Certification</a>
334                                         <ul>
335                                                 <li>Become a certified CakePHP developer</li>
336                                         </ul></li>
337                         </ul>
338                 </div>
339         </div>
340
341 </body>
342 </html>