X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_module.php;h=622f5305395dab621790ae4a20d4c1573cd888f9;hb=30c04f9f87e74bd4201f56ce25f02d4c5d01f99b;hp=2dfde4b9bd5805e6e8696a182696c476c59c682f;hpb=bc426821d8ae6319bd9394ac275bb700e6394fc3;p=fa-stable.git
diff --git a/admin/inst_module.php b/admin/inst_module.php
index 2dfde4b9..622f5305 100644
--- a/admin/inst_module.php
+++ b/admin/inst_module.php
@@ -1,6 +1,15 @@
.
+***********************************************************************/
+$page_security = 20;
$path_to_root="..";
include_once($path_to_root . "/includes/session.inc");
@@ -130,7 +139,8 @@ function write_modules()
$msg .= "\n\n";
$msg .= "\$installed_modules = array (\n";
- $msg .= "\t0 => ";
+ if ($n > 0)
+ $msg .= "\t0 => ";
for ($i = 0; $i < $n; $i++)
{
if ($i > 0)
@@ -278,8 +288,15 @@ function display_modules()
label_cell($mods[$i]['name']);
label_cell($mods[$i]['path']);
label_cell($mods[$i]['filename']);
- edit_link_cell("selected_id=" . $i);
- label_cell("" . _("Delete") . "");
+ $edit = _("Edit");
+ $delete = _("Delete");
+ if (user_graphic_links())
+ {
+ $edit = set_icon(ICON_EDIT, $edit);
+ $delete = set_icon(ICON_DELETE, $delete);
+ }
+ label_cell("$edit");
+ label_cell("$delete");
end_row();
}
@@ -297,7 +314,7 @@ function display_module_edit($selected_id)
else
$n = count($installed_modules);
- start_form(true, true);
+ start_form(true);
echo "