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\">';
|
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
|
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\">';
|
|
|
|
echo __('Cake is able to connect to the database.');
|
|
|
|
echo '</span>';
|
|
|
|
else:
|
|
|
|
echo '<span class=\"notice\">';
|
|
|
|
echo __('Cake is NOT able to connect to the database.');
|
|
|
|
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\">';
|
|
|
|
__('PCRE has not been compiled with Unicode support.');
|
|
|
|
echo '<br/>';
|
|
|
|
__('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
|
|
|
|
echo '</span></p>';
|
|
|
|
}
|
|
|
|
?>\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";
|
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";
|
2009-07-24 19:18:37 +00:00
|
|
|
?>
|