Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/syn.corals.io/Corals/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/syn.corals.io/Corals/modules/ModulesServiceProvider.php
<?php

namespace Corals\Modules;

use Illuminate\Support\ServiceProvider;

class ModulesServiceProvider extends ServiceProvider
{
    protected $defer = true;

    /**
     * Bootstrap the application events.
     *
     * @return void
     */
    public function boot()
    {
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        try {
            $module = null;

            $modules = app('db')->select("SELECT provider,id,code FROM modules where enabled=1 and provider is not null and type <> 'core' order by load_order");

            foreach ($modules as $module) {
                $provider = $module->provider;
                if ($provider && class_exists($provider)) {
                    $this->app->register($provider);
                }
            }
        } catch (\Exception $exception) {
            if (isset($module)) {
                app('db')->update('UPDATE modules set enabled=0 , notes= ? where id = ?', [$exception->getMessage(), $module->id]);
                flash('There was an error when loading module: ' . $module->code . "; module has been disabled")->warning();
            }

        }
    }
}

Spamworldpro Mini