Skip to content

Commit c2dd783

Browse files
authored
Merge pull request #903 from Lan2Play/dev
Add Legacywarning (master)
2 parents c188ab9 + 0787b80 commit c2dd783

File tree

7 files changed

+78
-4
lines changed

7 files changed

+78
-4
lines changed

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
![Eventula Logo](resources/images/eventula_sample_logo.png)
22

3-
The Eventula Event Manager / ECO System is a fully featured White labeled Event Management system. The only prerequisite is `docker and/or docker-compose`. Everything is self contained. The purpose of this application is to unify Event Management (Venue, attendees, seating), Ticket Sales, Tournament Management, Shop Management and Credit Management.
3+
> **Announcement**
4+
> The development on Eventula will follow new paths in the future, since we forked off. This also means current users maybe have to take action. Read everything about it in our [related Issue](https://github.com/Lan2Play/eventula-manager/issues/842)
5+
6+
7+
The Eventula Event Manager / ECO System is a fully featured White labeled Event Management system. The only prerequisite is `docker and/or docker-compose`. Everything is self contained. The purpose of this application is to unify Event Management (Venue, attendees, seating), Ticket Sales, Tournament Management, Shop Management and Credit Management. It was initially forked off of [th0rn0`s](https://github.com/th0rn0) [lanops-manager](https://github.com/th0rn0/lanops-manager).
48

59
<!-- commented out because of the downtimes -->
610
<!-- https://eventula.com -->
@@ -16,7 +20,7 @@ If you need help with setting up or using eventula or you want to help developin
1620
<!-- If you are using this please consider signing up to eventula for event mapping. -->
1721

1822
> **Warning**
19-
> This fork of eventula manager is not 100% update compatible to the current upstream. We have intended to merge it someday, but currently there are to many changes and there is not enough time to do so. If you migrate from the upstream to our fork, please backup youre database and storage before doing so and please report any issues you encounter with the upgrade.
23+
> This fork of eventula manager is not 100% update compatible from [th0rn0`s](https://github.com/th0rn0) [lanops-manager](https://github.com/th0rn0/lanops-manager) or old versions of eventula-manager. If you migrate from one of those to our fork, please backup youre database and storage before doing so and please report any issues you encounter with the upgrade. We don't fully support this path nowadays, so expect problems to arise.
2024
2125

2226
## Usage
@@ -131,4 +135,7 @@ Hop over to our [admin documentation](https://eventula.lan2play.de/admin/getting
131135

132136
- Lan2Play - https://lan2play.de
133137
- Sund-Xplosion - https://sxlan.de
134-
- West Coast Gaming - https://lan.westcoastgaming.se
138+
- West Coast Gaming - https://lan.westcoastgaming.se
139+
140+
## Credits
141+
- [th0rn0](https://github.com/th0rn0) for the nice work on our Projects base [lanops-manager](https://github.com/th0rn0/lanops-manager)

resources/docker/root/run/docker-entrypoint.sh

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ file_env() {
2222
unset "$fileVar"
2323
}
2424

25+
if [ "$DISABLE_LEGACY_WARNING" = 'true' ];
26+
then
27+
echo 'THIS VERSION OF EVENTULA IS DEPRECATED SOON, WHICH INCLUDES SECURITY UPDATES! YOU HAVE SURPRESSED THE WARNING ON THE PAGE THAT NOTIFIES ALL ADMINS ABOUT THIS FACT !!! PLEASE UPDATE OR FORK EVENTULA LEGACY ! '
28+
fi
29+
30+
2531
# Check Variables Exist & Translate from file
2632
# Required Env Variables
2733
echo 'Required Env Variable Check:'

src/app/Http/Kernel.php

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Kernel extends HttpKernel
2929
\App\Http\Middleware\EncryptCookies::class,
3030
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
3131
\Illuminate\Session\Middleware\StartSession::class,
32+
\App\Http\Middleware\Legacywarning::class,
3233
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
3334
\App\Http\Middleware\VerifyCsrfToken::class,
3435
\Illuminate\Routing\Middleware\SubstituteBindings::class,
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace App\Http\Middleware;
4+
5+
use Closure;
6+
use Illuminate\Http\Request;
7+
use Symfony\Component\HttpFoundation\Response;
8+
use Auth;
9+
10+
11+
class Legacywarning
12+
{
13+
/**
14+
* Handle an incoming request.
15+
*
16+
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
17+
*/
18+
public function handle(Request $request, Closure $next): Response
19+
{
20+
21+
if ((Auth::check() && Auth::user()->getAdmin()) && ! config('admin.disable_legacy_warning')) {
22+
Auth::getSession()->flash('alert-warning', __('legacywarning.infotext'));
23+
}
24+
25+
26+
return $next($request);
27+
}
28+
}

src/config/admin.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
22
return [
3-
'super_danger_zone' => env('I_KNOW_WHAT_I_AM_DOING_ENABLE_SUPER_DANGER_ZONE', false)
3+
'super_danger_zone' => env('I_KNOW_WHAT_I_AM_DOING_ENABLE_SUPER_DANGER_ZONE', false),
4+
'disable_legacy_warning' => env('DISABLE_LEGACY_WARNING', false)
5+
46
];

src/lang/de/legacywarning.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Legacywarning
8+
|--------------------------------------------------------------------------
9+
|
10+
|
11+
*/
12+
13+
'infotext' => 'Diese Version von Eventula wird im Dezember in einen legacy branch verschoben und danach, auch im Falle von Sicherheitslücken, nicht mehr aktualisiert. Für alle Handlungsmöglichkeiten und Informationen zu den anstehenden Veränderungen, bitte unseren zugehörigen Github Issue https://github.com/Lan2Play/eventula-manager/issues/842 lesen. Dort ist auch beschrieben wie sich diese Meldung deaktivieren lässt. Sollte diese Instanz mit unserem lan2play/eventula-manager:latest oder lan2play/eventula-manager:dev Docker Image betrieben werden, ist keine Aktion erforderlich um zukünftig weiterhin Funktions und Sicherheitsupdates zu erhalten, die jedoch auch die bisherige Kernfunktionalität verändern werden.',
14+
15+
];

src/lang/en/legacywarning.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Legacywarning
8+
|--------------------------------------------------------------------------
9+
|
10+
|
11+
*/
12+
13+
'infotext' => 'This version of Eventula will be moved to a legacy branch in December and will no longer be updated, even in the case of security vulnerabilities. For all available actions and information about the upcoming changes, please read our corresponding Github issue at https://github.com/Lan2Play/eventula-manager/issues/842 . It also describes how to disable this message. If this instance is running with our lan2play/eventula-manager:latest or lan2play/eventula-manager:dev Docker image, no action is required to continue receiving future functional and security updates, although these updates may change the previous core functionality.',
14+
15+
];

0 commit comments

Comments
 (0)