- $this->add_module(_("Maintanance"));
- $this->add_lapp_function(2, _("&Void a Transaction"),"admin/void_transaction.php?");
- $this->add_lapp_function(2, _("View or &Print Transactions"),"admin/view_print_transaction.php?");
- $this->add_lapp_function(2, _("&Attach Documents"),"admin/attachments.php?filterType=20");
- $this->add_rapp_function(2, _("&Backup and Restore"),"admin/backups.php?", 15);
- $this->add_rapp_function(2, _("Create/Update &Companies"),"admin/create_coy.php?", 14);
- $this->add_rapp_function(2, _("Install/Update &Languages"),"admin/inst_lang.php?", 14);
- $this->add_rapp_function(2, _("Install/Update &Modules"),"admin/inst_module.php?", 15);
- $this->add_rapp_function(2, _("Software &Upgrade"),"admin/inst_upgrade.php?", 15);
- if (count($installed_modules) > 0)
- {
- foreach ($installed_modules as $mod)
- {
- if ($mod["tab"] == "system")
- $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
- }
- }
- }
+ $this->add_module(_("Maintenance"));
+ $this->add_lapp_function(2, _("&Void a Transaction"),
+ "admin/void_transaction.php?", 'SA_VOIDTRANSACTION', MENU_MAINTENANCE);
+ $this->add_lapp_function(2, _("View or &Print Transactions"),
+ "admin/view_print_transaction.php?", 'SA_VIEWPRINTTRANSACTION', MENU_MAINTENANCE);
+ $this->add_lapp_function(2, _("&Attach Documents"),
+ "admin/attachments.php?filterType=20", 'SA_ATTACHDOCUMENT', MENU_MAINTENANCE);
+ $this->add_lapp_function(2, _("System &Diagnostics"),
+ "admin/system_diagnostics.php?", 'SA_SOFTWAREUPGRADE', MENU_SYSTEM);
+
+ $this->add_rapp_function(2, _("&Backup and Restore"),
+ "admin/backups.php?", 'SA_BACKUP', MENU_SYSTEM);
+ $this->add_rapp_function(2, _("Create/Update &Companies"),
+ "admin/create_coy.php?", 'SA_CREATECOMPANY', MENU_UPDATE);
+ $this->add_rapp_function(2, _("Install/Update &Languages"),
+ "admin/inst_lang.php?", 'SA_CREATELANGUAGE', MENU_UPDATE);
+ $this->add_rapp_function(2, _("Install/Activate &Extensions"),
+ "admin/inst_module.php?", 'SA_CREATEMODULES', MENU_UPDATE);
+ $this->add_rapp_function(2, _("Install/Activate &Themes"),
+ "admin/inst_theme.php?", 'SA_CREATEMODULES', MENU_UPDATE);
+ $this->add_rapp_function(2, _("Install/Activate &Chart of Accounts"),
+ "admin/inst_chart.php?", 'SA_CREATEMODULES', MENU_UPDATE);
+ $this->add_rapp_function(2, _("Software &Upgrade"),
+ "admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE', MENU_UPDATE);
+
+ $this->add_extensions();