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
2011-03-16 03:48:51 +00:00
App::uses('Debugger', 'Utility');
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\">';
2011-06-12 21:24:42 +00:00
echo __d('cake_dev', 'Your tmp directory is writable.');
2009-07-01 04:24:20 +00:00
echo '</span>';
else:
echo '<span class=\"notice\">';
2011-06-12 21:24:42 +00:00
echo __d('cake_dev', '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\">';
2011-06-12 21:24:42 +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>');
2009-07-01 04:24:20 +00:00
echo '</span>';
else:
echo '<span class=\"notice\">';
2011-06-12 21:24:42 +00:00
echo __d('cake_dev', '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;
2011-04-17 11:13:02 +00:00
if (file_exists(APP . 'Config' . DS . 'database.php')):
2009-07-01 04:24:20 +00:00
echo '<span class=\"notice success\">';
2011-06-12 21:24:42 +00:00
echo __d('cake_dev', 'Your database configuration file is present.');
2009-07-01 04:24:20 +00:00
\$filePresent = true;
echo '</span>';
else:
echo '<span class=\"notice\">';
2011-06-12 21:24:42 +00:00
echo __d('cake_dev', 'Your database configuration file is NOT present.');
2009-07-01 04:24:20 +00:00
echo '<br/>';
2011-06-25 14:08:41 +00:00
echo __d('cake_dev', 'Rename APP/Config/database.php.default to APP/Config/database.php');
2009-07-01 04:24:20 +00:00
echo '</span>';
endif;
?>
</p>
<?php
2011-03-16 03:48:51 +00:00
if (isset(\$filePresent)):
App::uses('ConnectionManager', 'Model');
try {
\$connected = ConnectionManager::getDataSource('default');
} catch (Exception \$e) {
\$connected = false;
2009-07-23 20:53:37 +00:00
}
2009-07-01 04:24:20 +00:00
?>
<p>
2011-03-16 03:48:51 +00:00
<?php
if (\$connected && \$connected->isConnected()):
echo '<span class=\"notice success\">';
2011-06-12 21:24:42 +00:00
echo __d('cake_dev', 'Cake is able to connect to the database.');
2011-03-16 03:48:51 +00:00
echo '</span>';
else:
echo '<span class=\"notice\">';
2011-06-12 21:24:42 +00:00
echo __d('cake_dev', 'Cake is NOT able to connect to the database.');
2011-03-16 03:48:51 +00:00
echo '</span>';
endif;
?>
</p>
<?php endif;?>
2009-07-01 04:24:20 +00:00
<?php
2011-03-16 03:48:51 +00:00
App::uses('Validation', 'Utility');
if (!Validation::alphaNumeric('cakephp')) {
echo '<p><span class=\"notice\">';
2011-06-12 21:24:42 +00:00
__d('cake_dev', 'PCRE has not been compiled with Unicode support.');
2011-03-16 03:48:51 +00:00
echo '<br/>';
2011-06-12 21:24:42 +00:00
__d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
2011-03-16 03:48:51 +00:00
echo '</span></p>';
}
?>\n";
2011-06-12 21:24:42 +00:00
$output .= "<h3><?php echo __d('cake_dev', 'Editing this Page') ?></h3>\n";
2009-07-01 04:24:20 +00:00
$output .= "<p>\n";
$output .= "<?php\n";
2011-06-12 21:24:42 +00:00
$output .= "\techo __d('cake_dev', '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";
2011-05-13 07:45:04 +00:00
$output .= "\t\tAPP . 'View' . DS . 'Pages' . DS . 'home.ctp.<br />', APP . 'View' . DS . 'Layouts' . DS . 'default.ctp.<br />', APP . 'webroot' . DS . 'css');\n";
2009-07-01 04:24:20 +00:00
$output .= "?>\n";
$output .= "</p>\n";
2011-04-17 11:13:02 +00:00
?>