mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-16 11:58:25 +00:00
50fb02cb17
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5121 3807eeeb-6ff5-0310-8944-8be069107fe0
86 lines
No EOL
2.1 KiB
PHP
86 lines
No EOL
2.1 KiB
PHP
<?php
|
|
$output = "<h2>Sweet, \"".Inflector::humanize($app)."\" got Baked by CakePHP!</h2>\n";
|
|
$output .="
|
|
<?php Debugger::checkSessionKey(); ?>
|
|
<p>
|
|
<span class=\"notice\">
|
|
<?php
|
|
__('Your tmp directory is ');
|
|
if(is_writable(TMP)):
|
|
__('writable.');
|
|
else:
|
|
__('NOT writable.');
|
|
endif;
|
|
?>
|
|
</span>
|
|
</p>
|
|
<p>
|
|
<span class=\"notice\">
|
|
<?php
|
|
__('Your cache is ');
|
|
if (Cache::isInitialized()):
|
|
__('set up and initialized properly.');
|
|
\$settings = Cache::settings();
|
|
echo '<p>' . \$settings['class'];
|
|
__(' is being used to cache, to change this edit config/core.php ');
|
|
echo '</p>';
|
|
|
|
echo 'Settings: <ul>';
|
|
foreach (\$settings as \$name => \$value):
|
|
echo '<li>' . \$name . ': ' . \$value . '</li>';
|
|
endforeach;
|
|
echo '</ul>';
|
|
|
|
else:
|
|
__('NOT working.');
|
|
echo '<br />';
|
|
if(is_writable(TMP)):
|
|
__('Edit: config/core.php to insure you have the newset version of this file and the variable \$cakeCache set properly');
|
|
endif;
|
|
endif;
|
|
?>
|
|
</span>
|
|
</p>
|
|
<p>
|
|
<span class=\"notice\">
|
|
<?php
|
|
__('Your database configuration file is ');
|
|
\$filePresent = null;
|
|
if(file_exists(CONFIGS.'database.php')):
|
|
__('present.');
|
|
\$filePresent = true;
|
|
else:
|
|
__('NOT present.');
|
|
echo '<br/>';
|
|
__('Rename config/database.php.default to config/database.php');
|
|
endif;
|
|
?>
|
|
</span>
|
|
</p>
|
|
<?php
|
|
if (!empty(\$filePresent)):
|
|
uses('model' . DS . 'connection_manager');
|
|
\$db = ConnectionManager::getInstance();
|
|
\$connected = \$db->getDataSource('default');
|
|
?>
|
|
<p>
|
|
<span class=\"notice\">
|
|
<?php
|
|
__('Cake');
|
|
if(\$connected->isConnected()):
|
|
__(' is able to ');
|
|
else:
|
|
__(' is NOT able to ');
|
|
endif;
|
|
__('connect to the database.');
|
|
?>
|
|
</span>
|
|
</p>\n";
|
|
$output .= "<?php endif;?>\n";
|
|
$output .= "<h3>Editing this Page</h3>\n";
|
|
$output .= "<p>\n";
|
|
$output .= "To change the content of this page, edit: ".$dir.DS."views".DS."pages".DS."home.ctp.<br />\n";
|
|
$output .= "To change its layout, edit: ".$dir.DS."views".DS."layouts".DS."default.ctp.<br />\n";
|
|
$output .= "You can also add some CSS styles for your pages at: ".$dir.DS."webroot/css/.\n";
|
|
$output .= "</p>\n";
|
|
?>
|