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