| 964 |
lars |
1 |
<?php
|
|
|
2 |
|
| 992 |
lars |
3 |
use App\Http\Controllers\BackendController;
|
| 964 |
lars |
4 |
use Illuminate\Support\Facades\Route;
|
|
|
5 |
|
| 980 |
lars |
6 |
$_SESSION["jquery_js"] = "/js/jquery-1.7.2.min.js";
|
|
|
7 |
$_SESSION["jquery_ui_js"] = "/js/jquery-ui-1.8.23.custom.min.js";
|
|
|
8 |
$_SESSION["jquery_style"] = "/css/start/jquery-ui.custom.css";
|
|
|
9 |
|
|
|
10 |
$_SESSION["jquery_new"] = "/css/start_new/jquery.min.js";
|
|
|
11 |
$_SESSION["jquery_ui_new"] = "/css/start_new/jquery-ui.min.js";
|
|
|
12 |
$_SESSION["jquery_style_new"] = "/css/start_new/jquery-ui.custom.css";
|
|
|
13 |
|
|
|
14 |
$_SESSION["loadingGif"] = "/images/navigation/loading.gif";
|
|
|
15 |
|
|
|
16 |
/*if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "/jquery-ui.custom.css" ) )
|
|
|
17 |
{
|
|
|
18 |
$_SESSION["jquery_style"] = "/css/" . $site . "/jquery-ui.custom.css";
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "/images/loading.gif" ) )
|
|
|
22 |
{
|
|
|
23 |
$_SESSION["loadingGif"] = "/css/" . $site . "/images/loading.gif";
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
if ( file_Exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/jquery.min.js" ) )
|
|
|
27 |
{
|
|
|
28 |
$_SESSION["jquery_new"] = "/css/" . $site . "_new/jquery.min.js";
|
|
|
29 |
$_SESSION["jquery_ui_new"] = "/css/" . $site . "_new/jquery-ui.min.js";
|
|
|
30 |
$_SESSION["jquery_style_new"] = "/css/" . $site . "_new/jquery-ui.custom.css";
|
|
|
31 |
}
|
|
|
32 |
if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/images/loading.gif" ) )
|
|
|
33 |
{
|
|
|
34 |
$_SESSION["loadingGif"] = "/css/" . $site . "_new/images/loading.gif";
|
|
|
35 |
}*/
|
|
|
36 |
|
| 971 |
lars |
37 |
Route::view( '/admin/login', "admin/login" )->name( 'login' );
|
| 992 |
lars |
38 |
Route::post( '/admin/login', [ BackendController::class, 'store' ] );
|
| 998 |
lars |
39 |
Route::prefix( 'admin' )->middleware( 'auth:admin' )->group( function ()
|
| 964 |
lars |
40 |
{
|
| 1054 |
lars |
41 |
$bc = new BackendController();
|
|
|
42 |
$user_rechte = $bc->getUserRechte();
|
| 1050 |
lars |
43 |
\View::share( "user_rechte", $user_rechte );
|
| 1027 |
lars |
44 |
Route::get( '/logout', [ BackendController::class, 'destroy' ] )->name( 'logout' );
|
| 1041 |
lars |
45 |
Route::view( "/index", "admin/index" );
|
| 965 |
lars |
46 |
} );
|