Fixed syntax typo.
[fa-stable.git] / applications / setup.php
index 6050b3ad32778cce06d448662c8c2d2a2ff1f261..771851a56c2e300d1350d22f614999c0565e2fa2 100644 (file)
@@ -1,31 +1,30 @@
 <?php
 /**********************************************************************
     Copyright (C) FrontAccounting, LLC.
-       Released under the terms of the GNU Affero General Public License,
-       AGPL, as published by the Free Software Foundation, either version 
-       of the License, or (at your option) any later version.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       include_once("./modules/installed_modules.php");
        class setup_app extends application
        {
                function setup_app()
                {
                        global $installed_modules;
-                       $this->application("system",_("Setup"));
+                       $this->application("system",_("S&etup"));
 
                        $this->add_module(_("Company Setup"));
                        $this->add_lapp_function(0, _("&Company Setup"),"admin/company_preferences.php?");
-                       $this->add_lapp_function(0, _("&User Accounts Setup"),"admin/users.php?", 15);
-                       $this->add_lapp_function(0, "","");
+                       $this->add_lapp_function(0, _("&User Accounts Setup"),"admin/users.php?", 'SA_USERS');
+                       $this->add_lapp_function(0, _("&Access Setup"),"admin/security_roles.php?", 'SA_SECROLES');
                        $this->add_lapp_function(0, _("&Display Setup"),"admin/display_prefs.php?");
                        $this->add_lapp_function(0, _("&Forms Setup"),"admin/forms_setup.php?");
                        $this->add_rapp_function(0, _("&Taxes"),"taxes/tax_types.php?");
                        $this->add_rapp_function(0, _("Tax &Groups"),"taxes/tax_groups.php?");
-                       $this->add_rapp_function(0, "","");
+                       $this->add_rapp_function(0, _("Item Ta&x Types"),"taxes/item_tax_types.php?");
                        $this->add_rapp_function(0, _("System and &General GL Setup"),"admin/gl_setup.php?");
                        $this->add_rapp_function(0, _("&Fiscal Years"),"admin/fiscalyears.php?");
                        $this->add_rapp_function(0, _("&Print Profiles"),"admin/print_profiles.php?");
                        $this->add_rapp_function(1, _("&Points of Sale"),"sales/manage/sales_points.php?");
                        $this->add_rapp_function(1, _("&Printers"),"admin/printers.php?");
 
-                       $this->add_module(_("Maintanance"));
+                       $this->add_module(_("Maintenance"));
                        $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);
+                       $this->add_rapp_function(2, _("&Backup and Restore"),"admin/backups.php?", 'SA_BACKUP');
+                       $this->add_rapp_function(2, _("Create/Update &Companies"),"admin/create_coy.php?", 'SA_CREATECOMPANY');
+                       $this->add_rapp_function(2, _("Install/Update &Languages"),"admin/inst_lang.php?", 'SA_CREATELANGUAGE');
+                       $this->add_rapp_function(2, _("Install/Update &Modules"),"admin/inst_module.php?", 'SA_CREATEMODULES');
+                       $this->add_rapp_function(2, _("Software &Upgrade"),"admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE');
                        if (count($installed_modules) > 0)
                        {
                                foreach ($installed_modules as $mod)