<?php

$config = array(
    'mandatory'     => true,
    'description'   => 'Administrator section.',
    'navButtonLabel'=> /*T*/'Admin'/*/T*/,
    'versions'      => array(
                              '1.0'              => array(true, false),
                              '1.03'             => array(true, false),
                              '1.04'             => array(true, false),
                              '1.05'             => array(true, false),
                              '1.09'             => array(true, false),
                              '1.091'            => array(true, false),
                              '1.092'            => array(true, false),
                              '1.093'            => array(true, false),
                              '1.094'            => array(true, false),
                              '1.095'            => array(true, false),
                              '1.096'            => array(true, true),
                              '1.097'            => array(true, true),
                              '1.098'            => array(true, false),
                              '1.1'              => array(true, true),
                              '1.1.1'            => array(true, false),
                              '1.2'              => array(true, false),
                              '2.0'              => array(true, true),
                              '2.1'              => array(true, false),
                              '2.2.1'            => array(true, true),
                              '2.2.2'            => array(true, true),
                              '2.2.3'            => array(true, false),
                              '2.2.4'            => array(true, false),
                              '2.2.5'            => array(true, false),
                              '2.2.6'            => array(true, false),
                              '2.3'              => array(true, false),
                              '2.3.1'            => array(true, false),
                              '2.4'              => array(true, false),
                              '2.4.9__2.5beta2'  => array(true, true),
                              '2.4.9__2.5beta3'  => array(true, false),
                              '2.4.9__2.5beta4'  => array(true, false),
                              '2.5.0'            => array(true, false),
                              '2.5.1'            => array(true, false),
                              '2.5.2'            => array(true, false),
                              '2.5.9__2.6beta1'  => array(true, false),
                              '2.5.9__2.6beta2'  => array(true, false),
                              '2.5.9__2.6rc1'    => array(true, false),
                              '2.6.0'            => array(true, false),
                              '2.6.1'            => array(true, true),
                              '2.6.2'            => array(true, false),
                              '2.7.0 beta1'      => array(true, true),
                              '2.7.0 beta2'      => array(true, false),
                              '2.7.0 RC1'        => array(true, false),
                              '2.7.0'            => array(true, false),
                              '2.7.1'            => array(true, false),
                              '2.7.2'            => array(true, false),
                              '2.7.3'            => array(true, false),
                              '2.7.4 beta1'      => array(true, true),
                              '2.7.4 beta2'      => array(true, false),
                              '2.7.4'            => array(true, false),
                              '2.7.5'            => array(true, false),
                              '2.7.6'            => array(true, false),
                              '2.8.0 beta1'      => array(true, false),
                              '2.8.0 beta2'      => array(true, false),
                              '2.8.0'            => array(true, true),
                              '2.8.1'            => array(true, false),
                              '2.8.2'            => array(true, false),
                              '2.8.3'            => array(true, true),
                              '2.8.4'            => array(true, false),
                              '3.0.0 alpha1'     => array(true, true),
                              '3.0.0 beta1'      => array(false, false),
                              '3.0.0 beta2'      => array(false, false),
                              '3.0.0 beta3'      => array(true, true),
                              '3.0.0 beta4'      => array(false, false),
                              '3.0.0 PR1'        => array(true, false),
                              '3.0.0 PR2'        => array(true, true),
                              '3.0.0'            => array(true, true),
                              '3.0.1'            => array(false, false),
                              '3.0.2'            => array(false, true),
                              '3.1.0 beta1'      => array(true, true),
                              '3.1.0 beta2'      => array(true, false),
                              '3.1.0 beta3'      => array(true, true),
                              '3.1.0 beta4'      => array(true, true),
                              '3.1.0 RC1'        => array(false, false),
                              '3.1.0'            => array(false, false),
                              '3.1.1'            => array(false, false),
                        ),
    'dependencies'  => array('newedge' => '3.1.1'),
    'hasSchemaFile' => true,
    'hasInitialData'=> true,
    'hasUninstallSQLScript' => false,
    'hasUninstallPHPScript' => false,
    'order'         => 8,
    'defaultView'   => 'AccountSettings',
    'actions'       => array(
        'Login'                             =>  '',
        'AddAnnouncement'                   =>  'admin_edit_announcements',
        'UpdateSettings'                    =>  'admin_view',   // permission handled inside class
        'SetShowAllSettings'                =>  'admin_edit_settings',
        'ExecuteService'                    =>  '', // permission handled inside class (need anonymous access when run from cron)
        'UpdateServer'                      =>  'admin_edit_servers',
        'SaveNewAdmin'                      =>  'admin_view',   // permission handled inside class (only allows superadmin)
        'UpdateAdmin'                       =>  'admin_view',   // permission handled inside class
        'DeleteAdminAccount'                =>  'admin_view',   // permission handled inside class (only allows superadmin)
        'DeletePassphraseInfo'              =>  'admin_edit_passphrase',
        'SaveNewServer'                     =>  'admin_edit_servers',
        'SnapinsUpdatePermission'           =>  'admin_edit_snapins_settings',
        'SaveCoupon'                        =>  'admin_edit_coupons',
        'DeleteCoupons'                     =>  'admin_edit_coupons',
        'SavePackageAddon'                  =>  'admin_edit_packagetypes',
        'DeleteAddon'                       =>  'admin_edit_packagetypes',
        'AddEditPackage'                    =>  'admin_edit_packagetypes',
        'DeletePackage'                     =>  'admin_edit_packagetypes',
        'ImportWelcomeEmail'                =>  'admin_edit_packagetypes',
        'ImportPackage'                     =>  'admin_edit_packagetypes',
        'UpdateAddonsOrder'                 =>  'admin_edit_packagetypes',
        'AddEditPlan'                       =>  'admin_edit_packagetypes',
        'DeletePlan'                        =>  'admin_edit_packagetypes',
        'UpdatePlanOrder'                   =>  'admin_edit_packagetypes',
        'AddTypeToSignup'                   =>  'admin_edit_packagetypes',
        'RemoveTypeToSignup'                =>  'admin_edit_packagetypes',
        'DeleteCurrency'                    =>  'admin_show_currency_overview',
        'SetDefaultCurrency'                =>  'admin_show_currency_overview',
        'AddEditCurrency'                   =>  'admin_show_currency_overview',
        'TldManager'                        =>  'admin_show_tld_overview',
        'AddTaxRules'                       =>  'admin_show_tax_overview',
        'DeleteTaxRules'                    =>  'admin_show_tax_overview',
        'CustomFieldsManager'               =>  'admin_show_custom_fields',
        'PipeEmail'                         =>  '',
        'DeleteServer'                      =>  'admin_edit_servers',
        'DeleteIPPool'                      =>  'admin_edit_servers',
        'SetServerDefault'                  =>  'admin_edit_servers',
        'MakeGatewayDefault'                =>  'admin_edit_settings',
        'DeleteNameServer'                  =>  'admin_edit_servers',
        'MakeRegistrarDefault'              =>  'admin_edit_settings',
        'PackageAddonsSetStyle'             =>  'admin_edit_packagetypes',
        'EditAnnouncement'                  =>  'admin_edit_announcements',
        'UpdatePublishAnnouncement'         =>  'admin_edit_announcements',
        'Signup_VerifyPhoneCode'            =>  '',
        'RequestPassword'                   =>  '',
        'ConfirmPasswordLost'               =>  '',
        'EncryptDomainPasswords'            =>  '',
        'StoreColumnSelected_Async'         =>  '',
        'ArchiveCoupons_Async'              =>  '',
        'UnArchiveCoupons_Async'            =>  '',
        'SaveCustomerGroup'                 =>  'admin_edit_customergroups',
        'DeleteCustomerGroup'               =>  'admin_edit_customergroups',
        'ImportData'                        =>  'admin_import',
        'ToggleMenu'                        =>  '', // handled inside class (user must be logged-in)
        'SaveGeneralGroup'                  =>  '', // handled inside class (must be superadmin)
        'DeleteGeneralGroup'                =>  '', // handled inside class (must be superadmin)
    ),
    'views'         => array(
        'AccountSettings'                   =>  'admin_view',
        'Login'                             =>  '',
        'PublicSection_Login'               =>  '',
        'PublicSection_ForgotPassword'      =>  '',
        'ViewAnnouncements'                 =>  'admin_edit_announcements',
        'ShowEditAnnouncement'              =>  'admin_edit_announcements',
        'ShowAddAnnouncement'               =>  'admin_edit_announcements',
        'TableAnnouncements'                =>  'admin_edit_announcements',
        'PublicAnnouncements'               =>  '',
        'RssAnnouncements'                  =>  '',
        'ThirdPartyBilling'                 =>  'admin_manage_plugins',
        'ViewSettings'                      =>  'admin_edit_settings',
        'Fraud'                             =>  'admin_manage_plugins',
        'PhoneVerification'                 =>  'admin_manage_plugins',
        'Registrars'                        =>  'admin_manage_plugins',
        'Services'                          =>  'admin_manage_plugins',
        'Affiliates'                        =>  'admin_manage_plugins',
        'Signup_0_ShowPackages'             =>  '',
        'Signup_1_DomainNameForm'           =>  '',
        'Signup_2_OrderForm'                =>  '',
        'Signup_3_Validation'               =>  '',
        'Signup_3b_PhoneVerification'       =>  '',
        'Signup_4_CreateAccounts'           =>  '',
        'Signup_5_ProcessBilling'           =>  '',
        'Signup_6_Finish'                   =>  '',
        'Snapins'                           =>  '',     // permision handled inside class (only allows non-anonymous)
        'ViewServers'                       =>  'admin_edit_servers',
        'ShowAddNewServer'                  =>  'admin_edit_servers',
        'SnapinSettings'                    =>  'admin_edit_snapins_settings',
        'ShowAddAdmin'                      =>  'admin_view',     // permission handled inside class (only allows superadmin)
        'ViewAdminList'                     =>  'admin_view',     // permission handled inside class (only allows superadmin)
        'DisplayPassphraseInfo'             =>  'admin_edit_passphrase',
        'EditAddAdminAccount'               =>  'admin_view',     // permission handled inside class (only allows superadmin)
        'RunChangePassPhrasePopup'          =>  'admin_edit_passphrase',
        'UpdatePassphraseDoesNotMatch'      =>  'admin_edit_passphrase',
        'CompletedUpdatePassphrase'         =>  'admin_edit_passphrase',
        'PlanSettings'                      =>  'admin_view_packagetypes',
        'AddPlan'                           =>  'admin_edit_packagetypes',
        'EditPackage'                       =>  'admin_edit_packagetypes',
        'EditPackageAddon'                  =>  'admin_edit_packagetypes',
        'ListCoupons'                       =>  'admin_view_coupons',
        'AddCoupon'                         =>  'admin_edit_coupons',
        'EditCoupon'                        =>  'admin_edit_coupons',
        'RecurringSettings'                 =>  'billing_generate_invoices',
        'RunningRecurringActions'           =>  'billing_generate_invoices',
        'RunBatchPaymentsPopup'             =>  'billing_generate_invoices',
        'CompletedRunningRecurringActions'  =>  'billing_generate_invoices',
        'RefreshAddonsList'                 =>  'admin_view_packagetypes',
        'ImportAddon'                       =>  'admin_view_packagetypes',
        'ShowCurrencyOverview'              =>  'admin_show_currency_overview',
        'ShowEditCurrency'                  =>  'admin_show_currency_overview',
        'ShowAddCurrency'                   =>  'admin_show_currency_overview',
        'ShowTldOverview'                   =>  'admin_show_tld_overview',
        'ShowTaxOverview'                   =>  'admin_show_tax_overview',
        'ShowAddTaxRules'                   =>  'admin_show_tax_overview',
        'ShowDatabaseOptions'               =>  'admin_show_database_options',
        'ProcessQuery'                      =>  'admin_show_database_options',
        'ShowCustomFields'                  =>  'admin_show_custom_fields',
        'DecryptSQLDump'                    =>  'admin_edit_settings',
        'Services_DashboardTab'             =>  'admin_view_services_status',
        'AddonSettings'                     =>  'admin_edit_snapins_settings',
        'ViewGeneralGroups'                 =>  '', // permission checked inside the class
        'AddEditGeneralGroup'               =>  '', // permission checked inside the class
        'DisplayEncryptDomainPasswords'     =>  '',
        'ArchivedCoupons'                   =>  '',   
        'ViewCustomerGroups'                =>  'admin_show_customergroups',
        'AddEditCustomerGroup'              =>  'admin_edit_customergroups',
        'ViewImportPlugins'                 =>  'admin_import',
    ),
    'hooks'         => array(
        'Menu'          => 'Admin_menu',
        'Settings'      => array(   'General_Settings'  => array(
                                                                'internalName'      => 'general',
                                                                'tabLabel'          => /*T*/'Global'/*/T*/,
                                                                'order'             => 1,
                                                                'intSettingsType'   => 1
                                                                ),
                                    'Style_Settings'    => array(
                                                                'internalName'      => 'style',
                                                                'tabLabel'          => /*T*/'Style'/*/T*/,
                                                                'order'             => 3,
                                                                'intSettingsType'   => 2
                                                                ),
                                    'Email_Settings'    => array(
                                                                'internalName'      => 'mailsettings',
                                                                'tabLabel'          => /*T*/'E-mail Settings'/*/T*/,
                                                                'order'             => 4,
                                                                'intSettingsType'   => 3
                                                                ),
                                    'EmailTemplatesBilling_Settings' => array(
                                                                'internalName'      => 'emailtemplatesbilling',
                                                                'tabLabel'          => /*T*/'Billing E-mail Templates'/*/T*/,
                                                                'order'             => 7,
                                                                'intSettingsType'   => 7
                                                                ),
                                    'EmailTemplatesSupport_Settings' => array(
                                                                'internalName'      => 'emailtemplatessupport',
                                                                'tabLabel'          => /*T*/'Support E-mail Templates'/*/T*/,
                                                                'order'             => 7,
                                                                'intSettingsType'   => 7
                                                                ),
                                    'EmailTemplatesOther_Settings' => array(
                                                                'internalName'      => 'emailtemplatesother',
                                                                'tabLabel'          => /*T*/'Other E-mail Templates'/*/T*/,
                                                                'order'             => 7,
                                                                'intSettingsType'   => 7
                                                                ),
                                    'Signup_Settings'         => array(
                                                                'internalName'      => 'signup',
                                                                'tabLabel'          => /*T*/'Signup'/*/T*/,
                                                                'order'             => 8,
                                                                'intSettingsType'   => 10
                                                                ),
                                    'PasswordsStrength_Settings' => array(
                                                                'internalName'      => 'passwords_strength',
                                                                'tabLabel'          => /*T*/'Passwords strength'/*/T*/,
                                                                'order'             => 6,
                                                                'intSettingsType'   => 12
                                                                ),
                            ),
        'DashboardTabs' => array('Services_DashboardTab' => array(
                                                                'internalName'  => 'servicesstats',
                                                                'tabLabel'      => /*T*/'Services Status'/*/T*/,
                                                                'order'         => 2,
                                                                'ajaxOnly'      => true,
                                                            ),
                            ),
    ),
);

?>
