2011-03-19 17:52:43 +00:00
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
if (is_writable(TMP)):
|
|
|
|
echo '<span class="notice success">';
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'Your tmp directory is writable.');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class="notice">';
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'Your tmp directory is NOT writable.');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
$settings = Cache::settings();
|
|
|
|
if (!empty($settings)):
|
|
|
|
echo '<span class="notice success">';
|
2011-03-20 15:35:43 +00:00
|
|
|
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>');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class="notice">';
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/config/core.php');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
2008-05-30 11:40:08 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-03-19 17:52:43 +00:00
|
|
|
<?php
|
|
|
|
$filePresent = null;
|
2011-12-16 06:52:07 +00:00
|
|
|
if (file_exists(APP . 'Config' . DS . 'database.php')):
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '<span class="notice success">';
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'Your database configuration file is present.');
|
2011-03-19 17:52:43 +00:00
|
|
|
$filePresent = true;
|
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class="notice">';
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'Your database configuration file is NOT present.');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '<br/>';
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'Rename config/database.php.default to config/database.php');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</p>
|
2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
2011-03-19 17:52:43 +00:00
|
|
|
if (isset($filePresent)):
|
|
|
|
App::uses('ConnectionManager', 'Model');
|
|
|
|
try {
|
|
|
|
$connected = ConnectionManager::getDataSource('default');
|
|
|
|
} catch (Exception $e) {
|
|
|
|
$connected = false;
|
|
|
|
}
|
2008-05-30 11:40:08 +00:00
|
|
|
?>
|
2011-03-19 17:52:43 +00:00
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
if ($connected && $connected->isConnected()):
|
|
|
|
echo '<span class="notice success">';
|
2013-06-09 19:01:01 +00:00
|
|
|
echo __d('cake_dev', 'Cake is able to connect to the database.');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class="notice">';
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'Cake is NOT able to connect to the database.');
|
2011-03-19 17:52:43 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
2008-05-30 11:40:08 +00:00
|
|
|
</p>
|
2012-05-19 14:48:15 +00:00
|
|
|
<?php endif; ?>
|
2011-03-20 15:35:43 +00:00
|
|
|
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
|
2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
2011-03-20 15:35:43 +00:00
|
|
|
echo __d('cake_dev', 'To change the content of this page, create: APP/views/pages/home.ctp.<br />
|
2011-03-19 17:52:43 +00:00
|
|
|
To change its layout, create: APP/views/layouts/default.ctp.<br />
|
|
|
|
You can also add some CSS styles for your pages at: APP/webroot/css.');
|