| 16591 |
anikendra |
1 |
<p>
|
|
|
2 |
<?php
|
|
|
3 |
if (is_writable(TMP)):
|
|
|
4 |
echo '<span class="notice success">';
|
|
|
5 |
echo __d('cake_dev', 'Your tmp directory is writable.');
|
|
|
6 |
echo '</span>';
|
|
|
7 |
else:
|
|
|
8 |
echo '<span class="notice">';
|
|
|
9 |
echo __d('cake_dev', 'Your tmp directory is NOT writable.');
|
|
|
10 |
echo '</span>';
|
|
|
11 |
endif;
|
|
|
12 |
?>
|
|
|
13 |
</p>
|
|
|
14 |
<p>
|
|
|
15 |
<?php
|
|
|
16 |
$settings = Cache::settings();
|
|
|
17 |
if (!empty($settings)):
|
|
|
18 |
echo '<span class="notice success">';
|
|
|
19 |
echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
|
|
|
20 |
echo '</span>';
|
|
|
21 |
else:
|
|
|
22 |
echo '<span class="notice">';
|
|
|
23 |
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/config/core.php');
|
|
|
24 |
echo '</span>';
|
|
|
25 |
endif;
|
|
|
26 |
?>
|
|
|
27 |
</p>
|
|
|
28 |
<p>
|
|
|
29 |
<?php
|
|
|
30 |
$filePresent = null;
|
|
|
31 |
if (file_exists(APP . 'Config' . DS . 'database.php')):
|
|
|
32 |
echo '<span class="notice success">';
|
|
|
33 |
echo __d('cake_dev', 'Your database configuration file is present.');
|
|
|
34 |
$filePresent = true;
|
|
|
35 |
echo '</span>';
|
|
|
36 |
else:
|
|
|
37 |
echo '<span class="notice">';
|
|
|
38 |
echo __d('cake_dev', 'Your database configuration file is NOT present.');
|
|
|
39 |
echo '<br/>';
|
|
|
40 |
echo __d('cake_dev', 'Rename config/database.php.default to config/database.php');
|
|
|
41 |
echo '</span>';
|
|
|
42 |
endif;
|
|
|
43 |
?>
|
|
|
44 |
</p>
|
|
|
45 |
<?php
|
|
|
46 |
if (isset($filePresent)):
|
|
|
47 |
App::uses('ConnectionManager', 'Model');
|
|
|
48 |
try {
|
|
|
49 |
$connected = ConnectionManager::getDataSource('default');
|
|
|
50 |
} catch (Exception $e) {
|
|
|
51 |
$connected = false;
|
|
|
52 |
}
|
|
|
53 |
?>
|
|
|
54 |
<p>
|
|
|
55 |
<?php
|
|
|
56 |
if ($connected && $connected->isConnected()):
|
|
|
57 |
echo '<span class="notice success">';
|
|
|
58 |
echo __d('cake_dev', 'Cake is able to connect to the database.');
|
|
|
59 |
echo '</span>';
|
|
|
60 |
else:
|
|
|
61 |
echo '<span class="notice">';
|
|
|
62 |
echo __d('cake_dev', 'Cake is NOT able to connect to the database.');
|
|
|
63 |
echo '</span>';
|
|
|
64 |
endif;
|
|
|
65 |
?>
|
|
|
66 |
</p>
|
|
|
67 |
<?php endif; ?>
|
|
|
68 |
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
|
|
|
69 |
<?php
|
|
|
70 |
echo __d('cake_dev', 'To change the content of this page, create: APP/views/pages/home.ctp.<br />
|
|
|
71 |
To change its layout, create: APP/views/layouts/default.ctp.<br />
|
|
|
72 |
You can also add some CSS styles for your pages at: APP/webroot/css.');
|