303 Commits (d8076abc381381caf640b58966482a5d77775e64)

Author SHA1 Message Date
Igor Scheller 4582f808f0 Added version to credits and metrics page 6 years ago
Igor Scheller b25924e868 Allow nested rules (not and optional) 6 years ago
Igor Scheller 6743106d9a Replaced validation with `respect/validation` 6 years ago
Igor Scheller 6d5ada2522 Added validation to AuthController 6 years ago
Igor Scheller 7414f9b23d Implemented Validation for controllers 6 years ago
Igor Scheller 508695efb2 Replaced gettext translation with package
This allows to check if no translation is available
6 years ago
Igor Scheller f90ab26fee Moved translation helpers to sub namespace 6 years ago
Igor Scheller e9f157ec5c Renderer: Added shared data 6 years ago
Igor Scheller bcce2625a8 Implemented AuthController for login
* Moved /login functionality to AuthController
* Refactored password handling logic to use the Authenticator
6 years ago
Igor Scheller da804fe720 Metrics: Added scrape memory usage 6 years ago
Igor Scheller e06affae17 Added tests to HomeController 6 years ago
Luca 9232513831 Fix caching issue for '/' route 6 years ago
Igor Scheller 6ed891fc04 Added logout via AuthController 6 years ago
Igor Scheller 2e51fbff9d Added / route with redirects 6 years ago
Igor Scheller e948091066 Replaced old /api endpoint with ApiController 6 years ago
Igor Scheller 93e578e555 Added html content sniffer 6 years ago
Igor Scheller 236197faf8 Upgraded external components 6 years ago
Igor Scheller 819677c902 Use self references and fix class naming 6 years ago
Igor Scheller 8da8805f5d Replaced functions with mb_* equivalents 6 years ago
Igor Scheller 79c92da8c1 Formatting
```bash
php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/]
```
6 years ago
Igor Scheller c74fa7955d phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
6 years ago
Igor Scheller 58ca7113f3 PSR-7: Replaced implementation with `Nyholm\Psr7` 6 years ago
Igor Scheller d9f898a0bb Bugfix: Replaced Diactoros with Symfony PsrHttpFactory to use PhpExtended\HttpMessage implementation
Prevents warnings that get converted to errors when run in dev mode
6 years ago
Janne Heß afa4506e11 Support alternative home sites 6 years ago
Igor Scheller 491ee37651 Don't save sessions permanently on api and metrics paths
closes #530 (Session on API calls)
6 years ago
msquare db26412e6c fixes #549: fill missing arrival dates and prevent setting arrival by admin-user instead of admin-arrive 6 years ago
Igor Scheller 26f58b8156 metrics: Fix users stats 6 years ago
Igor Scheller 330356043d credits: Allow customization 6 years ago
Igor Scheller 393db49294 Renderer: Added twig extension for markdown rendering 6 years ago
Igor Scheller b3f059ad04 metrics: Added vouchers and tshirts 6 years ago
Igor Scheller 9a2f246511 metrics: Added more stats 6 years ago
Igor Scheller c5621b82cf Implemented /metrics endpoint and reimplemented /stats
closes #418 (/metrics endpoint)

Usage:
```yaml
scrape_configs:
  - job_name: 'engelsystem'
    static_configs:
    - targets: ['engelsystem.example.com:80']
```
6 years ago
Igor Scheller 3c8d0eeb44 ErrorHandler: Don't wrap the response if a content-type is defined 6 years ago
Igor Scheller 2570418e9f Translation: Enforce LC_NUMERIC for numeric conversions 6 years ago
Igor Scheller 3cd70773d8 Authenticator: Use id from user object
Closes #519 (iCal/JSON export only works when logged in)
6 years ago
Igor Scheller c9d7e88cc7 Implemented controller permissions 6 years ago
Igor Scheller 55beca95cd Refactoring: Throw HttpAuthExpired on csrf token mismatch 6 years ago
Igor Scheller 9788c5095a Implemented HttpException 6 years ago
Igor Scheller c33940f64a Moved permission checks to Authenticator class 6 years ago
Igor Scheller 720b46f60f Models: Added DocBlocks 6 years ago
Igor Scheller f845a5ab8b Added caching for templating and routing
See #486 (Implement caching)
6 years ago
Igor Scheller 944c29b964 Require POST for sending forms
* Ensure that the form is submitted with a post request
* Replaced several links with forms

Closes #494 (Security Vulnerability)
6 years ago
Igor Scheller fd37c9d60e Added additional headers 6 years ago
Igor Scheller 23c0fae36f Added csrf middleware 6 years ago
Igor Scheller a2aaba9cab User: Bugfixes & code cleanup 6 years ago
Igor Scheller 57932be428 Moved arrival_date to state 6 years ago
Igor Scheller 4e09ee3eb2 Replaced more user related stuff
(Contains some buggy stuff too...)
6 years ago
Igor Scheller 89e62c95a7 Changed more functions 🎉 6 years ago
Igor Scheller 2dcb7cc2de Replaced some global `$user` variables 6 years ago
Igor Scheller d15946df2d Changed `src/` code and templates to use the new user model 6 years ago
Igor Scheller 8e62c4c52c Added new user models 6 years ago
Igor Scheller b443b53919 Translation: added pluralization support 6 years ago
Igor Scheller 90e1a94962 Make application name configurable
* Added app_name configuration option
* Extended `EngelsystemMailer` to prepend the application name to all mails

Closes #426
6 years ago
Igor Scheller 7f61dc95be EventConfig: Merge event configuration from database to global config 6 years ago
Igor Scheller 63d1292bf8 Added EventConfig model 6 years ago
Igor Scheller c4867811e2 BaseModel: Added findOrNew 6 years ago
Igor Scheller 8f519a69e9 Removed `shifts_json_export_all` reference 6 years ago
Igor Scheller d985d493a3 Migrations: Added namespace 6 years ago
Igor Scheller b46207f911 Merge remote-tracking branch 'MyIgel/session' 6 years ago
Igor Scheller 6187eed3bb Merge remote-tracking branch 'MyIgel/mailing' 6 years ago
Igor Scheller aa2124f655 RouteDispatcher: Allow installation into sub directory 6 years ago
Igor Scheller 0b0890f425 Session: Added DatabaseHandler, replaces Symfony PdoSessionHandler 6 years ago
Igor Scheller 66038eda14 Merge branch 'twig-templates' 6 years ago
Igor Scheller 104e4f4c43 Session: Added Symfony PDO backend 6 years ago
Igor Scheller edeab5e75f Added Database class as a replacement for Db, fixed naming 6 years ago
Igor Scheller 0734807eef Merge remote-tracking branch 'MyIgel/logentry-model' 6 years ago
Igor Scheller d0abc27c07 Merge remote-tracking branch 'MyIgel/translations' 6 years ago
Igor Scheller d36de2d26f Quickfix for problems with the SmtpTransport 6 years ago
Igor Scheller 8456a3cf6f Moved emojis to assets 6 years ago
Igor Scheller c1a1180d1f Moved frontend, templates and lang to resources 6 years ago
Igor Scheller 4bf3a68f43 Fixed assets rendering 6 years ago
Igor Scheller 222c9fed7d Merge remote-tracking branch 'MyIgel/templating' 6 years ago
Igor Scheller 01e9c22695 Implemented mailing abstraction
Closes #434
6 years ago
Igor Scheller b52444af8a Merge remote-tracking branch 'MyIgel/routing' 6 years ago
Igor Scheller 36dafdb68a Merge remote-tracking branch 'MyIgel/rebuild-psr7' 6 years ago
Igor Scheller 9d34f371cb Added CreditsController 6 years ago
Igor Scheller 9e217d87c0 Template refactoring to use twig 6 years ago
Igor Scheller ac48332166 Models: Added LogEntry model 6 years ago
Igor Scheller 8257864829 Added translation support for twig templates
See https://twig-extensions.readthedocs.io/en/latest/i18n.html for documentation
6 years ago
Bot e8f8fc7f5f Replaced gettext translation `_()` with `__()` that uses the Translator class 6 years ago
Igor Scheller a2c47304d8 Added generic error pages 6 years ago
Igor Scheller 3a11641647 Updated LegacyMiddleware to use Translator class 6 years ago
Igor Scheller 427315195b Moved translation/internationalization to Helpers\Translator class 6 years ago
Igor Scheller df6360044b Added Twig template functions 6 years ago
Igor Scheller bb3d16d273 Added Twig template renderer, closes #338 6 years ago
Igor Scheller 175c335810 Db::selectOne() should return null if result is empty 6 years ago
Igor Scheller a1bc763a16 Added nikic/fast-route as routing dispatcher 6 years ago
Igor Scheller 73c9d923e7 Renamed RoutingServiceProvider to Http\UrlGeneratorServiceProvider 6 years ago
Igor Scheller d6c8f1a614 Merge branch 'master' to 'rebuild-database' 6 years ago
Igor Scheller b0e7bc0df2 Made Engelsystem\Http\Request PSR-7 ServerRequestInterface compatible 6 years ago
Igor Scheller bf6efe532c Added trusted proxies 6 years ago
Igor Scheller 5427ee385d Made Engelsystem\Http\Request PSR-7 RequestInterface compatible 6 years ago
Igor Scheller 18fd73a899 Moved middleware to application config 6 years ago
Igor Scheller f3b3b6683c Added middleware tests 6 years ago
Igor Scheller f3f05f6cc4 Make Engelsystem\Http\Response PSR-7 compatible 6 years ago
Igor Scheller 20c03a155d Implemented PSR-15 middleware handler 6 years ago
Igor Scheller 92c26718fd exceptions: implemented error rendering return 6 years ago
Igor Scheller d243090fea config: allow renaming of config.default.php to config.php
Closes #444 (Problems after installation)
6 years ago
Igor Scheller f46e921b71 Use domain for links to '/' to fix assets URLs on subdirectories 6 years ago
Igor Scheller 3c08829205 Added Http\Response and Psr7{Request,Response} 6 years ago
msquare 2832fe48ee rename some params (codestyle) 6 years ago
msquare 9496e35711 added comments and renamed short method to url generators 6 years ago
msquare 86b2937078 added comments and renamed short method to url generators 6 years ago
Igor Scheller 6962c2b790 Legacy URL Support 6 years ago
Igor Scheller 46e7fc89b4 Fixed tests after #431: Hotfix php7 syntax error 6 years ago
Jens Brandt 4a5ef5f98a rename hotfix to camelCase 7 years ago
Jens Brandt cfc2493bb5 rename hotfix to english 7 years ago
Jens Brandt 28fadbd19d Hotfix php7 syntax error 7 years ago
Igor Scheller 235266ec53 Added basic database migration functionality 7 years ago
Igor Scheller 78cddecef3 DatabaseServiceProvider: Added unit tests 7 years ago
Igor Scheller fe58e4f422 database: updated checks for selectOne 7 years ago
Igor Scheller 0e8cc2f0a7 database: integrated illuminate/database do Db class, removed unused methods 7 years ago
Igor Scheller d4b36e9bad Added Illuminate/Database 7 years ago
Igor Scheller e0b58d2a7d Added illuminate/support and Fluent Interface to Config 7 years ago
Bot 952c7892f3 Formatting & Docstrings 7 years ago
Igor Scheller 25e434bce4 Refactored ExceptionHandler 7 years ago
Igor Scheller 6eea072376 Added ExceptionHandler Interface 7 years ago
msquare 0ee7df4883 change behaviour of HTTP/Request get 7 years ago
msquare f8807c4efb fix behaviour of HTTP/Request get 7 years ago
Igor Scheller ad948bdd32 Added RequestServiceProvider and SessionServiceProvider 7 years ago
Igor Scheller 60fd72cd1a Added service providers 7 years ago
Igor Scheller 449e2cdd00 Added env function, added GitLab CI code coverage config 7 years ago
Igor Scheller d49e49c364 Implemented service provider functionality 7 years ago
Igor Scheller 783c58611a Added app path to container 7 years ago
Igor Scheller 212760d4c9 Changed Container to Illuminate/Container
@see https://laravel.com/docs/5.5/container
@see https://davejamesmiller.com/2017/06/15/laravel-illuminate-container-in-depth
7 years ago
Igor Scheller 31414905d7 Fixed exceptionHandler to catch PdoExceptions, formatting 7 years ago
Igor Scheller 86c0713baa Added helpers unit test 7 years ago
Igor Scheller 1e267ce3b1 Added Renderer unit test 7 years ago
Igor Scheller 2cb636b651 Added Container unit test 7 years ago
Igor Scheller e6ed8a3017 Changed LogEntries table: Use log level instead of nick name 7 years ago
Igor Scheller b3b65743cd Added Logger 7 years ago
Igor Scheller 0ac9818764 Added Application 7 years ago
Igor Scheller 8c81adc8e8 Implemented container 7 years ago
Igor Scheller 2bd127c011 Use symfony session 7 years ago
Bot a473a56f1d Formatting 7 years ago
Igor Scheller d0074cf006 Merge remote-tracking branch 'engelsystem/feature-igel-rewrite'
# Conflicts:
#	includes/controller/angeltypes_controller.php
#	includes/pages/admin_groups.php
#	includes/pages/user_settings.php
#	includes/sys_page.php
#	src/Exceptions/Handler.php
#	src/Http/Request.php
7 years ago
Igor Scheller cc01c906ba #336: Integration of symfony/http-foundation request 7 years ago
Igor Scheller 73175e2b64 #337: Added routing 7 years ago
msquare 26515d7582 forgott to include query bindings into selectOne 8 years ago
msquare f82e5456d2 dried code by introducing selectOne for select queries with only one result line expected 8 years ago
msquare 440ed74cd7 exception handler should handle throwables instead of exceptions 8 years ago
msquare 5794c4cab8 clear delete queries from false resuls 8 years ago
msquare 144b453bc6 fix unreadable exception 8 years ago
msquare 2b834ba7f1 fix problem where empty string is not recognized as get value 8 years ago
msquare 908f5712cc fix problem where 0 is not recognized as get value 8 years ago
msquare a157004f4a handle failed db queries in Db class 8 years ago
Igor Scheller e1762e7764 replaced template_render with dynamic renderer class 8 years ago
Igor Scheller ec45216899 Merge remote-tracking branch 'engelsystem/feature-igel-rewrite' 8 years ago
msquare e93dd774a5 fix small issues on checking success of a db query 8 years ago
Igor Scheller 3a1e460249 Changed $_GET, $_POST and $_REQUEST to use the Request object 8 years ago
Igor Scheller 8506d6d27e Refactoring: Config cleanup / moved to class 8 years ago
Igor Scheller 9a3ad88834 Changed from mysqli to PDO, some refactorings, faster sql queries 8 years ago
Igor Scheller f7c09cb7ff Added exception handler 8 years ago