mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-16 11:58:25 +00:00
5ccea91b91
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5943 3807eeeb-6ff5-0310-8944-8be069107fe0
83 lines
2.2 KiB
PHP
83 lines
2.2 KiB
PHP
<?php
|
|
$output = "<h2>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h2>\n";
|
|
$output .="
|
|
<?php
|
|
if(Configure::read() > 0):
|
|
Debugger::checkSessionKey();
|
|
endif;
|
|
?>
|
|
<p>
|
|
<?php
|
|
if (is_writable(TMP)):
|
|
echo '<span class=\"notice success\">';
|
|
__('Your tmp directory is writable.');
|
|
echo '</span>';
|
|
else:
|
|
echo '<span class=\"notice\">';
|
|
__('Your tmp directory is NOT writable.');
|
|
echo '</span>';
|
|
endif;
|
|
?>
|
|
</p>
|
|
<p>
|
|
<?php
|
|
\$settings = Cache::settings();
|
|
if (!empty(\$settings)):
|
|
echo '<div class=\"notice success\">';
|
|
echo '<p>';
|
|
echo sprintf(__('The %s is being used for caching. To change the config edit APP/config/core.php ', true), '<em>'. \$settings['engine'] . 'Engine</em>');
|
|
echo '</p>';
|
|
echo '</div>';
|
|
else:
|
|
echo '<div class=\"notice\">';
|
|
echo '<p>';
|
|
__('Your cache is NOT working. Please check the settings in APP/config/core.php');
|
|
echo '</p>';
|
|
echo '</div>';
|
|
endif;
|
|
?>
|
|
</p>
|
|
<p>
|
|
<?php
|
|
\$filePresent = null;
|
|
if (file_exists(CONFIGS . 'database.php')):
|
|
echo '<span class=\"notice success\">';
|
|
__('Your database configuration file is present.');
|
|
\$filePresent = true;
|
|
echo '</span>';
|
|
else:
|
|
echo '<span class=\"notice\">';
|
|
__('Your database configuration file is NOT present.');
|
|
echo '<br/>';
|
|
__('Rename config/database.php.default to config/database.php');
|
|
echo '</span>';
|
|
endif;
|
|
?>
|
|
</p>
|
|
<?php
|
|
if (!empty(\$filePresent)):
|
|
uses('model' . DS . 'connection_manager');
|
|
\$db = ConnectionManager::getInstance();
|
|
\$connected = \$db->getDataSource('default');
|
|
?>
|
|
<p>
|
|
<?php
|
|
if (\$connected->isConnected()):
|
|
echo '<span class=\"notice success\">';
|
|
__('Cake is able to connect to the database.');
|
|
echo '</span>';
|
|
else:
|
|
echo '<span class=\"notice\">';
|
|
__('Cake is NOT able to connect to the database.');
|
|
echo '</span>';
|
|
endif;
|
|
?>
|
|
</p>\n";
|
|
$output .= "<?php endif;?>\n";
|
|
$output .= "<h3><?php __('Editing this Page') ?></h3>\n";
|
|
$output .= "<p>\n";
|
|
$output .= "<?php __('To change the content of this page, edit: ".$dir."pages".DS."home.ctp.<br />\n";
|
|
$output .= "To change its layout, edit: ".$dir."layouts".DS."default.ctp.<br />\n";
|
|
$output .= "You can also add some CSS styles for your pages at: ".$dir."webroot".DS."css.\n') ?>";
|
|
$output .= "</p>\n";
|
|
?>
|