Project

General

Profile

« Previous | Next » 

Revision 1428

Added by Dietmar over 13 years ago

update Argostheme to version 1.5 (Tks to Argos)
validation fixes
call edit_full_area on the fly

View differences:

sections.php
48 48
	exit();
49 49
}
50 50
*/
51
/*
52
urlencode function and rawurlencode are mostly based on RFC 1738.
53
However, since 2005 the current RFC in use for URIs standard is RFC 3986.
54
Here is a function to encode URLs according to RFC 3986.
55
*/
56
function url_encode($string) {
57
    $string = html_entity_decode($string,ENT_QUOTES,'UTF-8');
58
    $entities = array('%20', '%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');
59
    $replacements = array(' ','!', '*', "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");
60
    return str_replace($entities, $replacements, rawurlencode($string));
61
}
51 62

  
52 63
// Check if we are supposed to add or delete a section
53 64
if(isset($_GET['section_id']) && is_numeric($_GET['section_id']))
......
471 482
// Insert language text and messages
472 483
$template->set_var(array(
473 484
					'TEXT_MANAGE_SECTIONS' => $HEADING['MANAGE_SECTIONS'],
474
					'TEXT_ARE_YOU_SURE' => $TEXT['ARE_YOU_SURE'],
485
					'TEXT_ARE_YOU_SURE' => url_encode($TEXT['ARE_YOU_SURE']),
475 486
					'TEXT_TYPE' => $TEXT['TYPE'],
476 487
					'TEXT_ADD' => $TEXT['ADD'],
477 488
					'TEXT_SAVE' =>  $TEXT['SAVE'],

Also available in: Unified diff