403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.139.235.100
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/book24.ng/modules/Booking/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/book24.ng/modules/Booking/SettingClass.php
<?php
namespace  Modules\Booking;

use Modules\Core\Abstracts\BaseSettingsClass;

class SettingClass extends BaseSettingsClass
{
    public static function getSettingPages()
    {
        $keys = [
            'currency_main',
            'currency_format',
            'currency_decimal',
            'currency_thousand',
            'currency_no_decimal',
            'extra_currency'
        ];
        $all = get_payment_gateways();
        $languages = \Modules\Language\Models\Language::getActive();
        if (!empty($all)) {
            foreach ($all as $k => $gateway) {
                if (!class_exists($gateway))
                    continue;
                $obj = new $gateway($k);
                $options = $obj->getOptionsConfigs();
                if (!empty($options)) {
                    foreach ($options as $option) {
                        $keys[] = 'g_' . $k . '_' . $option['id'];
                        if( !empty($option['multi_lang']) && !empty($languages) && setting_item('site_enable_multi_lang') && setting_item('site_locale')){
                            foreach($languages as $language){
                                if( setting_item('site_locale') == $language->locale) continue;
                                $keys[] = 'g_' . $k . '_' . $option['id'].'_'.$language->locale;
                            }
                        }
                        if ($option['type'] == 'textarea' && $option['type'] == 'editor') {
                            $htmlKeys[] = 'g_' . $k . '_' . $option['id'];
                        }
                    }
                }
            }
        }

        return [
            [
                'id'   => 'booking',
                'title' => __("Booking Settings"),
                'position'=>40,
                'view'=>"Booking::admin.settings.booking",
                "keys"=>[
                    'booking_enable_recaptcha',
                    'booking_term_conditions',
                    'email_footer',
                    'email_header',

                    'logo_invoice_id',
                    'invoice_company_info',
                    'booking_guest_checkout'
                ],
                'html_keys'=>[

                ],
                'filter_demo_mode'=>[
                    'booking_term_conditions',
                    'email_footer',
                    'email_header',
                    'invoice_company_info',
                ]
            ],
            [
                'id'   => 'payment',
                'title' => __("Payment Settings"),
                'position'=>60,
                'view'=>"Booking::admin.settings.payment",
                "keys"=>$keys,
                'html_keys'=>[

                ]
            ],
            [
                'id'   => 'enquiry',
                'title' => __("Enquiry Settings"),
                'position'=>41,
                'view'=>"Booking::admin.settings.enquiry",
                "keys"=>[
                    'booking_enquiry_for_hotel',
                    'booking_enquiry_for_tour',
                    'booking_enquiry_for_space',
                    'booking_enquiry_for_car',
                    'booking_enquiry_for_event',
                    'booking_enquiry_for_boat',

                    'booking_enquiry_type',

                    'booking_enquiry_enable_mail_to_vendor',
                    'booking_enquiry_mail_to_vendor_content',

                    'booking_enquiry_enable_mail_to_admin',
                    'booking_enquiry_mail_to_admin_content',
                    'booking_enquiry_enable_recaptcha',
                ],
                'html_keys'=>[

                ],
                'filter_demo_mode'=>[
                    'booking_enquiry_mail_to_vendor_content',
                    'booking_enquiry_mail_to_admin_content',
                ]
            ]
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit