Revision 1475
Added by Luisehahne over 14 years ago
| index.php | ||
|---|---|---|
| 28 | 28 |
?> |
| 29 | 29 |
<script type="text/javascript" src="<?php print ADMIN_URL; ?>/pages/eggsurplus.js"></script> |
| 30 | 30 |
<?php |
| 31 |
/* |
|
| 32 |
urlencode function and rawurlencode are mostly based on RFC 1738. |
|
| 33 |
However, since 2005 the current RFC in use for URIs standard is RFC 3986. |
|
| 34 |
Here is a function to encode URLs according to RFC 3986. |
|
| 35 |
*/ |
|
| 36 |
function url_encode($string) {
|
|
| 37 |
$string = html_entity_decode($string,ENT_QUOTES,'UTF-8'); |
|
| 38 |
$entities = array('%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');
|
|
| 39 |
$replacements = array('!', '*', "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");
|
|
| 40 |
return str_replace($entities, $replacements, rawurlencode($string)); |
|
| 41 |
} |
|
| 31 |
|
|
| 42 | 32 |
// fixes A URI contains impermissible characters or quotes around the URI are not closed. |
| 43 | 33 |
$MESSAGE['PAGES_DELETE_CONFIRM'] = url_encode( $MESSAGE['PAGES_DELETE_CONFIRM'] ); |
| 44 | 34 |
|
| ... | ... | |
| 607 | 597 |
|
| 608 | 598 |
// Print admin |
| 609 | 599 |
$admin->print_footer(); |
| 610 |
|
|
| 611 |
?> |
|
Also available in: Unified diff
! security fixes media, groups, users, sections
! reworked add sections in pages
! fix set empty href in show_menu2
! set show_menu2 version to 4.9.6
! reworked Droplet LoginBox, add redirect query
- remove unneeded folder js
! set Droplet to version 1.1.0
+ add checkboxes to change frontend absolute url to relative urls
! set output_filter version to 0.2