2009-07-01 04:24:20 +00:00
<?php
2011-07-25 19:14:23 +00:00
$output = "
<iframe src=\"http://cakephp.org/bake-banner\" width=\"830\" height=\"160\" style=\"overflow:hidden; border:none;\">
<p>For updates and important announcements, visit http://cakefest.org</p>
</iframe>\n";
2011-10-02 00:58:11 +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');
2011-10-06 11:30:34 +00:00
if (Configure::read('debug') > 0):
2010-01-15 21:56:26 +00:00
Debugger::checkSecurityKeys();
2009-07-01 04:24:20 +00:00
endif;
?>
<p>
2011-10-06 11:30:34 +00:00
<?php
2011-09-24 14:41:22 +00:00
if (version_compare(PHP_VERSION, '5.2.6', '>=')):
echo '<span class=\"notice success\">';
echo __d('cake_dev', 'Your version of PHP is 5.2.6 or higher.');
echo '</span>';
else:
echo '<span class=\"notice\">';
echo __d('cake_dev', 'Your version of PHP is too low. You need PHP 5.2.6 or higher to use CakePHP.');
echo '</span>';
endif;
?>
</p>
<p>
2009-07-01 04:24:20 +00:00
<?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
?>