diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index b79458f3..c11cc4b5 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -41,14 +41,6 @@ class HomeController extends Controller
});
}
- /**
- * Debug Page
- */
- public function debug()
- {
- return view('debug');
- }
-
/**
* Create a new object in the LDAP server
*
@@ -451,22 +443,6 @@ class HomeController extends Controller
->with('ldif',htmlspecialchars($x));
}
- public function import_frame()
- {
- return view('frames.import');
- }
-
- /**
- * LDAP Server INFO
- *
- * @return \Illuminate\View\View
- */
- public function info(): \Illuminate\View\View
- {
- return view('frames.info')
- ->with('s',config('server'));
- }
-
/**
* For any incoming request, work out the command and DN involved
*
diff --git a/app/Http/Middleware/ApplicationSession.php b/app/Http/Middleware/ApplicationSession.php
index 00d0a2cf..a57f6877 100644
--- a/app/Http/Middleware/ApplicationSession.php
+++ b/app/Http/Middleware/ApplicationSession.php
@@ -25,6 +25,7 @@ class ApplicationSession
{
Config::set('server',new Server);
+ view()->share('server', Config::get('server'));
view()->share('user', auth()->user() ?: new User);
return $next($request);
diff --git a/resources/themes/architect/views/auth/login.blade.php b/resources/themes/architect/views/auth/login.blade.php
index eeda31be..8337bf11 100644
--- a/resources/themes/architect/views/auth/login.blade.php
+++ b/resources/themes/architect/views/auth/login.blade.php
@@ -22,7 +22,7 @@
- @lang('Sign in to') {{ config('server')->name }}
+ @lang('Sign in to') {{ $server->name }}
diff --git a/resources/themes/architect/views/layouts/partials/sidebarmenu.blade.php b/resources/themes/architect/views/layouts/partials/sidebarmenu.blade.php
index a2ec3de7..57172080 100644
--- a/resources/themes/architect/views/layouts/partials/sidebarmenu.blade.php
+++ b/resources/themes/architect/views/layouts/partials/sidebarmenu.blade.php
@@ -32,7 +32,7 @@