2009-07-01 04:24:20 +00:00
|
|
|
<?php
|
2009-07-28 20:01:42 +00:00
|
|
|
$output = "<h2>Sweet, \"" . Inflector::humanize($app) . "\" got Baked by CakePHP!</h2>\n";
|
2009-07-01 04:24:20 +00:00
|
|
|
$output .="
|
|
|
|
<?php
|
2010-12-27 05:06:07 +00:00
|
|
|
App::import('Core', 'Debugger');
|
2009-07-01 04:24:20 +00:00
|
|
|
if (Configure::read() > 0):
|
2010-01-15 21:56:26 +00:00
|
|
|
Debugger::checkSecurityKeys();
|
2009-07-01 04:24:20 +00:00
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
if (is_writable(TMP)):
|
|
|
|
echo '<span class=\"notice success\">';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Your tmp directory is writable.');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class=\"notice\">';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Your tmp directory is NOT writable.');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
\$settings = Cache::settings();
|
|
|
|
if (!empty(\$settings)):
|
|
|
|
echo '<span class=\"notice success\">';
|
2010-12-05 01:37:13 +00:00
|
|
|
echo __('The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. \$settings['engine'] . 'Engine</em>');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class=\"notice\">';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Your cache is NOT working. Please check the settings in APP/config/core.php');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
\$filePresent = null;
|
|
|
|
if (file_exists(CONFIGS . 'database.php')):
|
|
|
|
echo '<span class=\"notice success\">';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Your database configuration file is present.');
|
2009-07-01 04:24:20 +00:00
|
|
|
\$filePresent = true;
|
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class=\"notice\">';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Your database configuration file is NOT present.');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '<br/>';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Rename config/database.php.default to config/database.php');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
<?php
|
|
|
|
if (!empty(\$filePresent)):
|
2009-07-23 20:53:37 +00:00
|
|
|
if (!class_exists('ConnectionManager')) {
|
|
|
|
require LIBS . 'model' . DS . 'connection_manager.php';
|
|
|
|
}
|
2009-07-01 04:24:20 +00:00
|
|
|
\$db = ConnectionManager::getInstance();
|
|
|
|
\$connected = \$db->getDataSource('default');
|
|
|
|
?>
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
if (\$connected->isConnected()):
|
|
|
|
echo '<span class=\"notice success\">';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Cake is able to connect to the database.');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class=\"notice\">';
|
2010-04-15 15:43:39 +00:00
|
|
|
echo __('Cake is NOT able to connect to the database.');
|
2009-07-01 04:24:20 +00:00
|
|
|
echo '</span>';
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</p>\n";
|
|
|
|
$output .= "<?php endif;?>\n";
|
2010-04-15 15:43:39 +00:00
|
|
|
$output .= "<h3><?php echo __('Editing this Page') ?></h3>\n";
|
2009-07-01 04:24:20 +00:00
|
|
|
$output .= "<p>\n";
|
|
|
|
$output .= "<?php\n";
|
2010-12-05 01:37:13 +00:00
|
|
|
$output .= "\techo __('To change the content of this page, edit: %s\n";
|
2009-07-01 04:24:20 +00:00
|
|
|
$output .= "\t\tTo change its layout, edit: %s\n";
|
2010-12-05 01:37:13 +00:00
|
|
|
$output .= "\t\tYou can also add some CSS styles for your pages at: %s',\n";
|
2009-07-01 04:24:20 +00:00
|
|
|
$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";
|
|
|
|
$output .= "</p>\n";
|
2009-07-24 19:18:37 +00:00
|
|
|
?>
|