Created
July 26, 2011 11:56
-
-
Save leonardosapiras/1106582 to your computer and use it in GitHub Desktop.
url string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 | |
$vars = array('plugin' => $this->name, 'subject' => 'show_page', 'action' => 'show_databases_extension'); | |
$url = value_url(noEscape(url('plugin.php', $vars)), $vars); | |
#2 | |
$link = array ( | |
'url' => 'plugin.php', | |
'urlvars' => array ( | |
'plugin' => $this->name, | |
'subject' => 'show_page', | |
'action' => 'show_databases_extension' | |
), | |
); | |
$navlinks[] = array ( | |
'attr'=> array('href' => html_entity_decode($misc->printActionUrl($link, $_REQUEST))), | |
'content' => html_entity_decode($this->lang['strdbext']) | |
); | |
#3 The fouth parameter in printActionUrl will be used to not escape the url. | |
$link = array ( | |
'url' => 'plugin.php', | |
'urlvars' => array ( | |
'plugin' => $this->name, | |
'subject' => 'show_page', | |
'action' => 'show_databases_extension' | |
), | |
); | |
$navlinks[] = array ( | |
'attr'=> array('href' => $misc->printActionUrl($link, $_REQUEST, null, false)), | |
'content' => html_entity_decode($this->lang['strdbext']) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment