Ejemplo n.º 1
0
                require public_path() . "/addons/{$addon->addon_name}/func.php";
            }
            $namespace = $addon->addon_name;
            $path = public_path() . "/addons/{$addon->addon_name}/lang";
            Lang::addNamespace($namespace, $path);
        } else {
            $addonsNotInstalled[] = $addon->addon_name;
        }
    }
    Config::set("cms.addons.data", $addons);
    Config::set("cms.addons.installed", $addonsInstalled);
    Config::set("cms.addons.not_installed", $addonsNotInstalled);
    if (Session::has('currlang')) {
        Config::set('cms.currlang', Session::get('currlang'));
    } else {
        $lang = Languages::where("code", "=", Config::get('cms.currlang'))->first();
        Config::set('cms.currlang', array('code' => $lang->code, 'title' => $lang->title, 'image' => $lang->image));
    }
});
App::after(function ($request, $response) {
    //
});
/*
|--------------------------------------------------------------------------
| Authentication Filters
|--------------------------------------------------------------------------
|
| The following filters are used to verify that the user of the current
| session is logged into this application. The "basic" filter easily
| integrates HTTP Basic authentication for quick, simple checking.
|