2013-01-28 Miguel de Dios <miguel.dedios@artica.es>

* godmode/agentes/module_manager.php: fixed the PHP notices in the
	policy module editor.
	
	Fixes: #3602272




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7531 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-01-28 11:01:07 +00:00
parent 32a70eea6b
commit 632ad8faae
2 changed files with 25 additions and 16 deletions

View File

@ -1,3 +1,10 @@
2013-01-28 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager.php: fixed the PHP notices in the
policy module editor.
Fixes: #3602272
2013-01-28 Junichi Satoh <junichi@rworks.jp> 2013-01-28 Junichi Satoh <junichi@rworks.jp>
* include/help/ja/help_events_replication.php, * include/help/ja/help_events_replication.php,

View File

@ -82,22 +82,24 @@ if (strstr($sec2, "enterprise/godmode/policies/policies") !== false) {
unset($modules['predictionserver']); unset($modules['predictionserver']);
} }
if(check_acl ($config['id_user'], $agent['id_grupo'], "AW")) { if (isset($agent)) {
// Create module/type combo if (check_acl ($config['id_user'], $agent['id_grupo'], "AW")) {
echo '<form id="create_module_type" method="post" action="'.$url.'">'; // Create module/type combo
html_print_select ($modules, 'moduletype', '', '', '', '', false, false, false, '', false, 'max-width:300px;' ); echo '<form id="create_module_type" method="post" action="'.$url.'">';
html_print_input_hidden ('edit_module', 1); html_print_select ($modules, 'moduletype', '', '', '', '', false, false, false, '', false, 'max-width:300px;' );
echo '</td>'; html_print_input_hidden ('edit_module', 1);
echo '<td class="datos">'; echo '</td>';
echo '<input align="right" name="updbutton" type="submit" class="sub next" value="'.__('Create').'">'; echo '<td class="datos">';
echo '</td>'; echo '<input align="right" name="updbutton" type="submit" class="sub next" value="'.__('Create').'">';
echo '<td class="datos" style="text-align:center;">'; echo '</td>';
echo "<strong>"; echo '<td class="datos" style="text-align:center;">';
echo "<a style='color: #004A1B;' target='_blank' href='http://pandorafms.com/Library/Library/'>".__("Get more modules in Pandora FMS Library")."</a>"; echo "<strong>";
echo "</strong>"; echo "<a style='color: #004A1B;' target='_blank' href='http://pandorafms.com/Library/Library/'>".__("Get more modules in Pandora FMS Library")."</a>";
echo '</td>'; echo "</strong>";
echo '</tr>'; echo '</td>';
echo "</form>"; echo '</tr>';
echo "</form>";
}
} }
echo "</table>"; echo "</table>";