Added option for Manual Revaluation of Currency Accounts
[fa-stable.git] / applications / setup.php
index ac392123329281284e40f076559df9f8bb17457c..9e681d24d4ab1d60f094ac21e19ed23aedc23d52 100644 (file)
@@ -13,7 +13,6 @@ class setup_app extends application
 {
        function setup_app()
        {
-               global $installed_extensions;
                $this->application("system", _($this->help_context = "S&etup"));
 
                $this->add_module(_("Company Setup"));
@@ -57,6 +56,9 @@ class setup_app extends application
                        "admin/view_print_transaction.php?", 'SA_VIEWPRINTTRANSACTION');
                $this->add_lapp_function(2, _("&Attach Documents"),
                        "admin/attachments.php?filterType=20", 'SA_ATTACHDOCUMENT');
+               $this->add_lapp_function(2, _("System &Diagnostics"),
+                       "admin/system_diagnostics.php?", 'SA_OPEN');
+
                $this->add_rapp_function(2, _("&Backup and Restore"),
                        "admin/backups.php?", 'SA_BACKUP');
                $this->add_rapp_function(2, _("Create/Update &Companies"),
@@ -65,18 +67,12 @@ class setup_app extends application
                        "admin/inst_lang.php?", 'SA_CREATELANGUAGE');
                $this->add_rapp_function(2, _("Install/Activate &Extensions"),
                        "admin/inst_module.php?", 'SA_CREATEMODULES');
+               $this->add_rapp_function(2, _("Install/Activate &Themes"),
+                       "admin/inst_theme.php?", 'SA_CREATEMODULES');
                $this->add_rapp_function(2, _("Software &Upgrade"),
                        "admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE');
-               if (count($installed_extensions) > 0)
-               {
-                       foreach ($installed_extensions as $mod)
-                       {
-                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "system")
-                                       $this->add_rapp_function(2, $mod["title"], 
-                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                       }
-               }
+
+               $this->add_extensions();
        }
 }