mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding warning message on homepage for misconfigured URL rewriting. Closes #1577
This commit is contained in:
parent
600609cc87
commit
6b7dbcdd1c
2 changed files with 10 additions and 0 deletions
|
@ -533,3 +533,8 @@ div.code-coverage-results span.result-ok {
|
|||
div.code-coverage-results span.result-good {
|
||||
color: #0a0;
|
||||
}
|
||||
|
||||
/** Elements **/
|
||||
#url-rewriting-warning {
|
||||
display: none;
|
||||
}
|
|
@ -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)):
|
||||
|
|
Loading…
Add table
Reference in a new issue