2014-03-31 Miguel de Dios <miguel.dedios@artica.es>
* godmode/servers/plugin.php: fixed the plugins server without parameters. Incident: #703 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9683 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b1f963e9bb
commit
78761727d7
|
@ -1,3 +1,10 @@
|
||||||
|
2014-03-31 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/servers/plugin.php: fixed the plugins server without
|
||||||
|
parameters.
|
||||||
|
|
||||||
|
Incident: #703
|
||||||
|
|
||||||
2014-03-31 Miguel de Dios <miguel.dedios@artica.es>
|
2014-03-31 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/agent_conf_gis.php,
|
* godmode/agentes/agent_conf_gis.php,
|
||||||
|
|
|
@ -134,6 +134,8 @@ if ($filemanager) {
|
||||||
// END FILEMANAGER
|
// END FILEMANAGER
|
||||||
// =====================================================================
|
// =====================================================================
|
||||||
|
|
||||||
|
|
||||||
|
// =====================================================================
|
||||||
// SHOW THE FORM
|
// SHOW THE FORM
|
||||||
// =====================================================================
|
// =====================================================================
|
||||||
|
|
||||||
|
@ -147,9 +149,11 @@ if (($create != "") OR ($view != "")) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($create != "")
|
if ($create != "")
|
||||||
ui_print_page_header (__('Plugin creation'), "images/gm_servers.png", false, "plugin_definition", true);
|
ui_print_page_header(__('Plugin creation'),
|
||||||
|
"images/gm_servers.png", false, "plugin_definition", true);
|
||||||
else {
|
else {
|
||||||
ui_print_page_header (__('Plugin update'), "images/gm_servers.png", false, "plugin_definition", true);
|
ui_print_page_header(__('Plugin update'),
|
||||||
|
"images/gm_servers.png", false, "plugin_definition", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -438,7 +442,7 @@ else {
|
||||||
$plugin_max_retries = get_parameter ("form_max_retries", "");
|
$plugin_max_retries = get_parameter ("form_max_retries", "");
|
||||||
$plugin_execute = get_parameter ("form_execute", "");
|
$plugin_execute = get_parameter ("form_execute", "");
|
||||||
$plugin_plugin_type = get_parameter ("form_plugin_type", "0");
|
$plugin_plugin_type = get_parameter ("form_plugin_type", "0");
|
||||||
$plugin_parameters = get_parameter ("form_parameters", "0");
|
$plugin_parameters = get_parameter ("form_parameters", "");
|
||||||
|
|
||||||
// Get macros
|
// Get macros
|
||||||
$i = 1;
|
$i = 1;
|
||||||
|
@ -513,7 +517,8 @@ else {
|
||||||
echo "<th>" . __('Name') . "</th>";
|
echo "<th>" . __('Name') . "</th>";
|
||||||
echo "<th>" . __('Type') . "</th>";
|
echo "<th>" . __('Type') . "</th>";
|
||||||
echo "<th>" . __('Command') . "</th>";
|
echo "<th>" . __('Command') . "</th>";
|
||||||
echo "<th style='width:70px;'>" . '<span title="Operations">' . __('Op.') . '</span>' . "</th>";
|
echo "<th style='width:70px;'>" .
|
||||||
|
'<span title="Operations">' . __('Op.') . '</span>' . "</th>";
|
||||||
$color = 0;
|
$color = 0;
|
||||||
|
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
|
@ -562,7 +567,6 @@ ui_require_javascript_file('pandora_modules');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
function update_preview() {
|
function update_preview() {
|
||||||
var command = $('#form_execute').val();
|
var command = $('#form_execute').val();
|
||||||
|
@ -576,7 +580,9 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('#text-field'+i+'_value').val() != '') {
|
if ($('#text-field'+i+'_value').val() != '') {
|
||||||
parameters = parameters.replace('_field'+i+'_',$('#text-field'+i+'_value').val());
|
parameters = parameters
|
||||||
|
.replace('_field' + i + '_',
|
||||||
|
$('#text-field' + i + '_value').val());
|
||||||
}
|
}
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
@ -602,5 +608,4 @@ if($locked) {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue