Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.119.135.231
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/Event/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/book24.ng/modules/Event/ModuleProvider.php
<?php
namespace Modules\Event;
use Modules\Core\Helpers\SitemapHelper;
use Modules\Event\Models\Event;
use Modules\ModuleServiceProvider;
use Modules\News\Models\News;

class ModuleProvider extends ModuleServiceProvider
{

    public function boot(SitemapHelper $sitemapHelper){

        $this->loadMigrationsFrom(__DIR__ . '/Migrations');

        if(is_installed() and Event::isEnable()){

            $sitemapHelper->add("event",[app()->make(Event::class),'getForSitemap']);
        }
    }
    /**
     * Register bindings in the container.
     *
     * @return void
     */
    public function register()
    {
        $this->app->register(RouterServiceProvider::class);
    }

    public static function getAdminMenu()
    {
        if(!Event::isEnable()) return [];
        return [
            'event'=>[
                "position"=>50,
                'url'        => route('event.admin.index'),
                'title'      => __('Event'),
                'icon'       => 'ion-ios-calendar',
                'permission' => 'event_view',
                'children'   => [
                    'add'=>[
                        'url'        => route('event.admin.index'),
                        'title'      => __('All Events'),
                        'permission' => 'event_view',
                    ],
                    'create'=>[
                        'url'        => route('event.admin.create'),
                        'title'      => __('Add new Event'),
                        'permission' => 'event_create',
                    ],
                    'attribute'=>[
                        'url'        => route('event.admin.attribute.index'),
                        'title'      => __('Attributes'),
                        'permission' => 'event_manage_attributes',
                    ],
                    'availability'=>[
                        'url'        => route('event.admin.availability.index'),
                        'title'      => __('Availability'),
                        'permission' => 'event_create',
                    ],
                    'recovery'=>[
                        'url'        => route('event.admin.recovery'),
                        'title'      => __('Recovery'),
                        'permission' => 'event_view',
                    ],
                ]
            ]
        ];
    }

    public static function getBookableServices()
    {
        if(!Event::isEnable()) return [];
        return [
            'event'=>Event::class
        ];
    }

    public static function getMenuBuilderTypes()
    {
        if(!Event::isEnable()) return [];
        return [
            'event'=>[
                'class' => Event::class,
                'name'  => __("Event"),
                'items' => Event::searchForMenu(),
                'position'=>51
            ]
        ];
    }

    public static function getUserMenu()
    {
        if(!Event::isEnable()) return [];
        return [
            'event' => [
                'url'   => route('event.vendor.index'),
                'title'      => __("Manage Event"),
                'icon'       => Event::getServiceIconFeatured(),
                'position'   => 34,
                'permission' => 'event_view',
                'children' => [
                    [
                        'url'   => route('event.vendor.index'),
                        'title'  => __("All Events"),
                    ],
                    [
                        'url'   => route('event.vendor.create'),
                        'title'      => __("Add Event"),
                        'permission' => 'event_create',
                    ],
                    'availability'=>[
                        'url'        => route('event.vendor.availability.index'),
                        'title'      => __('Availability'),
                        'permission' => 'event_create',
                    ],
                    [
                        'url'   => route('event.vendor.recovery'),
                        'title'      => __("Recovery"),
                        'permission' => 'event_create',
                    ],
                ]
            ],
        ];
    }

    public static function getTemplateBlocks(){
        if(!Event::isEnable()) return [];
        return [
            'form_search_event'=>"\\Modules\\Event\\Blocks\\FormSearchEvent",
            'list_event'=>"\\Modules\\Event\\Blocks\\ListEvent",
            'event_term_featured_box'=>"\\Modules\\Event\\Blocks\\EventTermFeaturedBox",
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit