2006-05-09 02:15:47 +00:00
<?php
2007-05-04 19:32:05 +00:00
$output = "<h2>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h2>\n";
$output .="
2007-09-10 12:41:23 +00:00
<?php
if(Configure::read() > 0):
Debugger::checkSessionKey();
endif;
?>
2007-05-04 19:32:05 +00:00
<p>
2007-11-04 07:03:57 +00:00
<?php
if (is_writable(TMP)):
echo '<span class=\"notice success\">';
__('Your tmp directory is writable.');
echo '</span>';
else:
echo '<span class=\"notice\">';
__('Your tmp directory is NOT writable.');
echo '</span>';
endif;
?>
2007-05-04 19:32:05 +00:00
</p>
<p>
2007-11-04 07:03:57 +00:00
<?php
\$settings = Cache::settings();
if (!empty(\$settings)):
2007-11-24 18:40:56 +00:00
echo '<span class=\"notice success\">';
2007-11-04 07:03:57 +00:00
echo sprintf(__('The %s is being used for caching. To change the config edit APP/config/core.php ', true), '<em>'. \$settings['engine'] . 'Engine</em>');
2007-11-24 18:40:56 +00:00
echo '</span>';
2007-11-04 07:03:57 +00:00
else:
2007-11-24 18:40:56 +00:00
echo '<span class=\"notice\">';
2007-11-04 07:03:57 +00:00
__('Your cache is NOT working. Please check the settings in APP/config/core.php');
2007-11-24 18:40:56 +00:00
echo '</span>';
2007-11-04 07:03:57 +00:00
endif;
?>
2007-05-04 19:32:05 +00:00
</p>
<p>
2007-11-04 07:03:57 +00:00
<?php
\$filePresent = null;
if (file_exists(CONFIGS . 'database.php')):
echo '<span class=\"notice success\">';
__('Your database configuration file is present.');
\$filePresent = true;
echo '</span>';
else:
echo '<span class=\"notice\">';
__('Your database configuration file is NOT present.');
echo '<br/>';
__('Rename config/database.php.default to config/database.php');
echo '</span>';
endif;
?>
2007-01-10 22:56:16 +00:00
</p>
2007-05-04 19:32:05 +00:00
<?php
if (!empty(\$filePresent)):
2007-01-10 22:56:16 +00:00
uses('model' . DS . 'connection_manager');
2007-05-04 19:32:05 +00:00
\$db = ConnectionManager::getInstance();
2007-01-10 22:56:16 +00:00
\$connected = \$db->getDataSource('default');
?>
<p>
2007-11-04 07:03:57 +00:00
<?php
if (\$connected->isConnected()):
echo '<span class=\"notice success\">';
__('Cake is able to connect to the database.');
echo '</span>';
else:
echo '<span class=\"notice\">';
__('Cake is NOT able to connect to the database.');
echo '</span>';
endif;
?>
2007-01-10 22:56:16 +00:00
</p>\n";
2007-05-04 19:32:05 +00:00
$output .= "<?php endif;?>\n";
2007-10-06 06:46:45 +00:00
$output .= "<h3><?php __('Editing this Page') ?></h3>\n";
2006-05-09 02:15:47 +00:00
$output .= "<p>\n";
2007-11-23 18:23:13 +00:00
$output .= "<?php\n";
$output .= "\techo sprintf(__('To change the content of this page, edit: %s\n";
$output .= "\t\tTo change its layout, edit: %s\n";
$output .= "\t\tYou can also add some CSS styles for your pages at: %s', true),\n";
$output .= "\t\tAPP . 'views' . DS . 'pages' . DS . 'home.ctp.<br />', APP . 'views' . DS . 'layouts' . DS . 'default.ctp.<br />', APP . 'webroot' . DS . 'css');\n";
$output .= "?>\n";
2006-05-09 02:15:47 +00:00
$output .= "</p>\n";
2007-10-06 06:46:45 +00:00
?>