Skip to content

Commit

Permalink
Merge pull request #844 from Lan2Play/feature/legacywarning
Browse files Browse the repository at this point in the history
Add Legacywarning
  • Loading branch information
Apfelwurm authored Oct 31, 2024
2 parents 8187a8c + fd1b3b8 commit 0787b80
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 4 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
![Eventula Logo](resources/images/eventula_sample_logo.png)

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.
> **Announcement**
> 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)

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).

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

> **Warning**
> 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.
> 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.

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

- Lan2Play - https://lan2play.de
- Sund-Xplosion - https://sxlan.de
- West Coast Gaming - https://lan.westcoastgaming.se
- West Coast Gaming - https://lan.westcoastgaming.se

## Credits
- [th0rn0](https://github.com/th0rn0) for the nice work on our Projects base [lanops-manager](https://github.com/th0rn0/lanops-manager)
6 changes: 6 additions & 0 deletions resources/docker/root/run/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ file_env() {
unset "$fileVar"
}

if [ "$DISABLE_LEGACY_WARNING" = 'true' ];
then
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 ! '
fi


# Check Variables Exist & Translate from file
# Required Env Variables
echo 'Required Env Variable Check:'
Expand Down
1 change: 1 addition & 0 deletions src/app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Kernel extends HttpKernel
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\App\Http\Middleware\Legacywarning::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
Expand Down
28 changes: 28 additions & 0 deletions src/app/Http/Middleware/Legacywarning.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
use Auth;


class Legacywarning
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public function handle(Request $request, Closure $next): Response
{

if ((Auth::check() && Auth::user()->getAdmin()) && ! config('admin.disable_legacy_warning')) {
Auth::getSession()->flash('alert-warning', __('legacywarning.infotext'));
}


return $next($request);
}
}
4 changes: 3 additions & 1 deletion src/config/admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
return [
'super_danger_zone' => env('I_KNOW_WHAT_I_AM_DOING_ENABLE_SUPER_DANGER_ZONE', false)
'super_danger_zone' => env('I_KNOW_WHAT_I_AM_DOING_ENABLE_SUPER_DANGER_ZONE', false),
'disable_legacy_warning' => env('DISABLE_LEGACY_WARNING', false)

];
15 changes: 15 additions & 0 deletions src/lang/de/legacywarning.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Legacywarning
|--------------------------------------------------------------------------
|
|
*/

'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.',

];
15 changes: 15 additions & 0 deletions src/lang/en/legacywarning.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Legacywarning
|--------------------------------------------------------------------------
|
|
*/

'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.',

];

0 comments on commit 0787b80

Please sign in to comment.