2009-05-27 Esteban Sanchez <estebans@artica.es>
* general/header.php: Added code to ignored parameters. Fixes #2779381 * include/functions_ui.php: Ignore form operations on get_url_refresh() git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1712 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1ca3064760
commit
b74dfad95b
|
@ -1,3 +1,9 @@
|
||||||
|
2009-05-27 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
|
* general/header.php: Added code to ignored parameters. Fixes #2779381
|
||||||
|
|
||||||
|
* include/functions_ui.php: Ignore form operations on get_url_refresh()
|
||||||
|
|
||||||
2009-05-27 Esteban Sanchez <estebans@artica.es>
|
2009-05-27 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/configurar_agente.php: Use pandora functions to
|
* godmode/agentes/configurar_agente.php: Use pandora functions to
|
||||||
|
|
|
@ -70,7 +70,7 @@ echo "</a>";
|
||||||
// Third column
|
// Third column
|
||||||
// Autorefresh
|
// Autorefresh
|
||||||
echo '</td><td width="20%">';
|
echo '</td><td width="20%">';
|
||||||
$ignored_params = array ('agent_config' => false);
|
$ignored_params = array ('agent_config' => false, 'code' => false);
|
||||||
if ($config["refr"]) {
|
if ($config["refr"]) {
|
||||||
$ignored_params['refr'] = 0;
|
$ignored_params['refr'] = 0;
|
||||||
echo '<a id="autorefresh" class="white_grey_bold" href="'.get_url_refresh ($ignored_params).'"><img src="images/page_refresh.png" class="bot" alt="lightning" /> '. __('Autorefresh');
|
echo '<a id="autorefresh" class="white_grey_bold" href="'.get_url_refresh ($ignored_params).'"><img src="images/page_refresh.png" class="bot" alt="lightning" /> '. __('Autorefresh');
|
||||||
|
|
|
@ -1179,6 +1179,14 @@ function get_url_refresh ($params = false, $relative = true, $add_post = true) {
|
||||||
foreach ($_GET as $key => $value) {
|
foreach ($_GET as $key => $value) {
|
||||||
if (isset ($params[$key]))
|
if (isset ($params[$key]))
|
||||||
continue;
|
continue;
|
||||||
|
if (strstr ($key, 'create'))
|
||||||
|
continue;
|
||||||
|
if (strstr ($key, 'update'))
|
||||||
|
continue;
|
||||||
|
if (strstr ($key, 'new'))
|
||||||
|
continue;
|
||||||
|
if (strstr ($key, 'delete'))
|
||||||
|
continue;
|
||||||
$url .= $key.'='.$value.'&';
|
$url .= $key.'='.$value.'&';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1186,6 +1194,14 @@ function get_url_refresh ($params = false, $relative = true, $add_post = true) {
|
||||||
foreach ($_POST as $key => $value) {
|
foreach ($_POST as $key => $value) {
|
||||||
if (isset ($params[$key]))
|
if (isset ($params[$key]))
|
||||||
continue;
|
continue;
|
||||||
|
if (strstr ($key, 'create'))
|
||||||
|
continue;
|
||||||
|
if (strstr ($key, 'update'))
|
||||||
|
continue;
|
||||||
|
if (strstr ($key, 'new'))
|
||||||
|
continue;
|
||||||
|
if (strstr ($key, 'delete'))
|
||||||
|
continue;
|
||||||
$url .= $key.'='.$value.'&';
|
$url .= $key.'='.$value.'&';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue