X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_module.php;h=f3c5ec63f9947b6cc2e7eb4015639a02283bc356;hb=bf00f0e16df5974ecba17b59be8bc660bdf6b8a8;hp=2dfde4b9bd5805e6e8696a182696c476c59c682f;hpb=bc426821d8ae6319bd9394ac275bb700e6394fc3;p=fa-stable.git diff --git a/admin/inst_module.php b/admin/inst_module.php index 2dfde4b9..f3c5ec63 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(); }