892b67f2a4dbbcd1cdf2a2ea8d8bbb098ab78758
[fa-stable.git] / applications / setup.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12         class setup_app extends application
13         {
14                 function setup_app()
15                 {
16                         global $installed_extensions;
17                         $this->application("system",_("S&etup"));
18
19                         $this->add_module(_("Company Setup"));
20                         $this->add_lapp_function(0, _("&Company Setup"),"admin/company_preferences.php?");
21                         $this->add_lapp_function(0, _("&User Accounts Setup"),"admin/users.php?", 'SA_USERS');
22                         $this->add_lapp_function(0, _("&Access Setup"),"admin/security_roles.php?", 'SA_SECROLES');
23                         $this->add_lapp_function(0, _("&Display Setup"),"admin/display_prefs.php?");
24                         $this->add_lapp_function(0, _("&Forms Setup"),"admin/forms_setup.php?");
25                         $this->add_rapp_function(0, _("&Taxes"),"taxes/tax_types.php?");
26                         $this->add_rapp_function(0, _("Tax &Groups"),"taxes/tax_groups.php?");
27                         $this->add_rapp_function(0, _("Item Ta&x Types"),"taxes/item_tax_types.php?");
28                         $this->add_rapp_function(0, _("System and &General GL Setup"),"admin/gl_setup.php?");
29                         $this->add_rapp_function(0, _("&Fiscal Years"),"admin/fiscalyears.php?");
30                         $this->add_rapp_function(0, _("&Print Profiles"),"admin/print_profiles.php?");
31
32                         $this->add_module(_("Miscellaneous"));
33                         $this->add_lapp_function(1, _("Pa&yment Terms"),"admin/payment_terms.php?");
34                         $this->add_lapp_function(1, _("Shi&pping Company"),"admin/shipping_companies.php?");
35                         $this->add_rapp_function(1, _("&Points of Sale"),"sales/manage/sales_points.php?");
36                         $this->add_rapp_function(1, _("&Printers"),"admin/printers.php?");
37
38                         $this->add_module(_("Maintenance"));
39                         $this->add_lapp_function(2, _("&Void a Transaction"),"admin/void_transaction.php?");
40                         $this->add_lapp_function(2, _("View or &Print Transactions"),"admin/view_print_transaction.php?");
41                         $this->add_lapp_function(2, _("&Attach Documents"),"admin/attachments.php?filterType=20");
42                         $this->add_rapp_function(2, _("&Backup and Restore"),"admin/backups.php?", 'SA_BACKUP');
43                         $this->add_rapp_function(2, _("Create/Update &Companies"),"admin/create_coy.php?", 'SA_CREATECOMPANY');
44                         $this->add_rapp_function(2, _("Install/Update &Languages"),"admin/inst_lang.php?", 'SA_CREATELANGUAGE');
45                         $this->add_rapp_function(2, _("Install/Activate &Extensions"),"admin/inst_module.php?", 'SA_CREATEMODULES');
46                         $this->add_rapp_function(2, _("Software &Upgrade"),"admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE');
47                         if (count($installed_extensions) > 0)
48                         {
49                                 foreach ($installed_extensions as $mod)
50                                 {
51                                         if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "system")
52                                                 $this->add_rapp_function(2, $mod["title"], 
53                                                         "modules/".$mod["path"]."/".$mod["filename"]."?",
54                                                         isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
55                                 }
56                         }
57                 }
58         }
59
60
61 ?>