Skip to content

Instantly share code, notes, and snippets.

@leonardosapiras
Created July 26, 2011 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonardosapiras/1106582 to your computer and use it in GitHub Desktop.
Save leonardosapiras/1106582 to your computer and use it in GitHub Desktop.
url string
#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