From dc05153a15ad6a08d143fcec5dd4fe767ce307d9 Mon Sep 17 00:00:00 2001 From: KIMB-technologies Date: Fri, 16 Nov 2018 21:42:39 +0100 Subject: [PATCH] Final Fixes --- README.md | 3 +-- core/sysinit.php | 3 +++ data/config.json | 13 +++++++------ data/poll_MfNnwiFpyo.json | 21 --------------------- data/pollsub_MfNnwiFpyo.json | 14 -------------- 5 files changed, 11 insertions(+), 43 deletions(-) delete mode 100644 data/poll_MfNnwiFpyo.json delete mode 100644 data/pollsub_MfNnwiFpyo.json diff --git a/README.md b/README.md index 5d8a45a..7f2a671 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,11 @@ > Small tool to coordinate volunteers and meetings. -> > **Under Development** > > Having PHP 7 installed, one can start a dev-session by executing > `php -S localhost:8000` in the respository folder. - [Development ToDo](https://github.com/KIMB-technologies/KIMB-Forms-Project/wiki) - [Issues and Planned Features](https://github.com/KIMB-technologies/KIMB-Forms-Project/issues) - - [Installation Instructions](https://github.com/KIMB-technologies/KIMB-Forms-Project/blob/master/INSTALL.md) +- [Installation Instructions](https://github.com/KIMB-technologies/KIMB-Forms-Project/blob/master/INSTALL.md) diff --git a/core/sysinit.php b/core/sysinit.php index 06c0513..f91e131 100644 --- a/core/sysinit.php +++ b/core/sysinit.php @@ -25,4 +25,7 @@ else if( constant( 'KIMB-FORMS-PROJECT' ) === 'API'){ //load as API Request (AJAX, etc.) require_once( __DIR__ . '/api/api.php' ); } +else{ + die('Invalid Endpoint!'); +} ?> \ No newline at end of file diff --git a/data/config.json b/data/config.json index 83bf7dc..80e9781 100644 --- a/data/config.json +++ b/data/config.json @@ -6,12 +6,13 @@ }, "captcha": { "poll": false, - "new": false + "new": true }, "texts": { - "enablePoll": false, - "enableNew": false, - "textPoll": "Poll ok Text", - "textNew": "New ok Text" - } + "enablePoll": true, + "enableNew": true, + "textPoll": "Ich bin mit den Datenschutzrichlinien ... einverstanden!", + "textNew": "Ich bin mit den AGB des Anbieters einverstanden!" + }, + "version" : "1.0.0alpha" } \ No newline at end of file diff --git a/data/poll_MfNnwiFpyo.json b/data/poll_MfNnwiFpyo.json deleted file mode 100644 index f58d440..0000000 --- a/data/poll_MfNnwiFpyo.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "code": { - "admin": "ckizzaqtzi052cbd06z9", - "poll": "MfNnwiFpyo" - }, - "pollname": "Beispiel", - "formtype": "person", - "description": "Ein Text\r\n\r\n## Wichtig\r\n\r\n- Eine\r\n- *tolle*\r\n- **Liste**", - "termine": [ - { - "bez": "Termin A", - "anz": 2, - "des": "**Bla**" - }, - { - "bez": "Termin B", - "anz": 4, - "des": "" - } - ] -} \ No newline at end of file diff --git a/data/pollsub_MfNnwiFpyo.json b/data/pollsub_MfNnwiFpyo.json deleted file mode 100644 index 6113f6a..0000000 --- a/data/pollsub_MfNnwiFpyo.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - [ - { - "name": "Bla", - "mail": "blubb", - "time": 1234 - }, - { - "name": "Blaasdf", - "mail": "blubb", - "time": 1234 - } - ] -] \ No newline at end of file