Adding warning message on homepage for misconfigured URL rewriting. Closes #1577

This commit is contained in:
ADmad 2011-05-26 20:35:28 +05:30
parent 600609cc87
commit 6b7dbcdd1c
2 changed files with 10 additions and 0 deletions

View file

@ -532,4 +532,9 @@ div.code-coverage-results span.result-ok {
}
div.code-coverage-results span.result-good {
color: #0a0;
}
/** Elements **/
#url-rewriting-warning {
display: none;
}

View file

@ -27,6 +27,11 @@ if (Configure::read() > 0):
Debugger::checkSecurityKeys();
endif;
?>
<div id="url-rewriting-warning" style="background-color:#e32; color:#fff; padding:3px;">
<?php __('URL rewriting is not properly configured on your server. '); ?>
1) <a target="_blank" href="http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess" style="color:#fff;">Help me configure it</a>
2) <a target="_blank" href="http://book.cakephp.org/view/931/CakePHP-Core-Configuration-Variables" style="color:#fff;">I don't / can't use URL rewriting</a>
</div>
<p>
<?php
if (is_writable(TMP)):