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 .="
|
|
|
|
<?php Debugger::checkSessionKey(); ?>
|
|
|
|
<p>
|
|
|
|
<span class=\"notice\">
|
|
|
|
<?php
|
|
|
|
__('Your tmp directory is ');
|
2007-06-20 06:15:35 +00:00
|
|
|
if (is_writable(TMP)):
|
2007-05-04 19:32:05 +00:00
|
|
|
__('writable.');
|
|
|
|
else:
|
|
|
|
__('NOT writable.');
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
2007-01-10 22:56:16 +00:00
|
|
|
<span class=\"notice\">
|
|
|
|
<?php
|
2007-05-04 19:32:05 +00:00
|
|
|
__('Your cache is ');
|
|
|
|
if (Cache::isInitialized()):
|
|
|
|
__('set up and initialized properly.');
|
|
|
|
\$settings = Cache::settings();
|
|
|
|
echo '<p>' . \$settings['class'];
|
|
|
|
__(' is being used to cache, to change this edit config/core.php ');
|
|
|
|
echo '</p>';
|
2007-05-18 21:20:56 +00:00
|
|
|
|
2007-05-04 19:32:05 +00:00
|
|
|
echo 'Settings: <ul>';
|
2007-05-18 21:20:56 +00:00
|
|
|
foreach (\$settings as \$name => \$value):
|
2007-05-04 19:32:05 +00:00
|
|
|
echo '<li>' . \$name . ': ' . \$value . '</li>';
|
|
|
|
endforeach;
|
|
|
|
echo '</ul>';
|
2007-05-18 21:20:56 +00:00
|
|
|
|
2007-05-04 19:32:05 +00:00
|
|
|
else:
|
|
|
|
__('NOT working.');
|
|
|
|
echo '<br />';
|
2007-06-20 06:15:35 +00:00
|
|
|
if (is_writable(TMP)):
|
2007-05-18 21:20:56 +00:00
|
|
|
__('Edit: config/core.php to insure you have the newset version of this file and the variable \$cakeCache set properly');
|
|
|
|
endif;
|
2007-05-04 19:32:05 +00:00
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<span class=\"notice\">
|
|
|
|
<?php
|
|
|
|
__('Your database configuration file is ');
|
2007-01-10 22:56:16 +00:00
|
|
|
\$filePresent = null;
|
2007-06-20 06:15:35 +00:00
|
|
|
if (file_exists(CONFIGS.'database.php')):
|
2007-05-04 19:32:05 +00:00
|
|
|
__('present.');
|
2007-01-10 22:56:16 +00:00
|
|
|
\$filePresent = true;
|
|
|
|
else:
|
2007-05-04 19:32:05 +00:00
|
|
|
__('NOT present.');
|
|
|
|
echo '<br/>';
|
|
|
|
__('Rename config/database.php.default to config/database.php');
|
2007-01-10 22:56:16 +00:00
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</span>
|
|
|
|
</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>
|
|
|
|
<span class=\"notice\">
|
2007-05-04 19:32:05 +00:00
|
|
|
<?php
|
|
|
|
__('Cake');
|
2007-06-20 06:15:35 +00:00
|
|
|
if (\$connected->isConnected()):
|
2007-05-04 19:32:05 +00:00
|
|
|
__(' is able to ');
|
2007-01-10 22:56:16 +00:00
|
|
|
else:
|
2007-05-04 19:32:05 +00:00
|
|
|
__(' is NOT able to ');
|
2007-01-10 22:56:16 +00:00
|
|
|
endif;
|
2007-05-04 19:32:05 +00:00
|
|
|
__('connect to the database.');
|
2007-01-10 22:56:16 +00:00
|
|
|
?>
|
|
|
|
</span>
|
|
|
|
</p>\n";
|
2007-05-04 19:32:05 +00:00
|
|
|
$output .= "<?php endif;?>\n";
|
2007-01-10 22:56:16 +00:00
|
|
|
$output .= "<h3>Editing this Page</h3>\n";
|
2006-05-09 02:15:47 +00:00
|
|
|
$output .= "<p>\n";
|
2007-01-09 07:36:27 +00:00
|
|
|
$output .= "To change the content of this page, edit: ".$dir.DS."views".DS."pages".DS."home.ctp.<br />\n";
|
|
|
|
$output .= "To change its layout, edit: ".$dir.DS."views".DS."layouts".DS."default.ctp.<br />\n";
|
2006-05-09 02:15:47 +00:00
|
|
|
$output .= "You can also add some CSS styles for your pages at: ".$dir.DS."webroot/css/.\n";
|
|
|
|
$output .= "</p>\n";
|
|
|
|
?>
|