From 5f1f5e847d2b5f6d6a0215c839cde80ed123a93d Mon Sep 17 00:00:00 2001 From: tracer Date: Fri, 25 Nov 2022 11:46:00 +0100 Subject: [PATCH] changed dir structure to handle second version of the book --- LICENSE => Vanilla/LICENSE | 0 README.md => Vanilla/README.md | 0 addressbook.sql => Vanilla/addressbook.sql | 0 Vanilla/config.json | 7 +++++++ config.json.sample => Vanilla/config.json.sample | 0 {public => Vanilla/public}/.htaccess | 0 {public => Vanilla/public}/assets/js/functions.js | 0 {public => Vanilla/public}/assets/styles/main.css | 0 {public => Vanilla/public}/index.php | 0 .../src}/Controller/AddressBookAdminController.php | 0 {src => Vanilla/src}/Controller/AddressBookController.php | 0 {src => Vanilla/src}/Controller/SecurityController.php | 0 {src => Vanilla/src}/Entity/AddressBookEntry.php | 0 {src => Vanilla/src}/Entity/Route.php | 0 {src => Vanilla/src}/Entity/User.php | 0 {src => Vanilla/src}/Enums/UserAuth.php | 0 {src => Vanilla/src}/Repository/AddressRepository.php | 0 {src => Vanilla/src}/Repository/UserRepository.php | 0 {src => Vanilla/src}/Service/Config.php | 0 {src => Vanilla/src}/Service/Container.php | 0 {src => Vanilla/src}/Service/DatabaseConnection.php | 0 {src => Vanilla/src}/Service/Router.php | 0 {src => Vanilla/src}/Service/Template.php | 0 {src => Vanilla/src}/bootstrap.php | 0 {templates => Vanilla/templates}/_footer.html.php | 0 {templates => Vanilla/templates}/_header.html.php | 0 .../templates}/addressbook/add_address.html.php | 0 {templates => Vanilla/templates}/admin/index.html.php | 0 {templates => Vanilla/templates}/admin/users.html.php | 0 {templates => Vanilla/templates}/admin/users_add.html.php | 0 {templates => Vanilla/templates}/admin/users_edit.html.php | 0 {templates => Vanilla/templates}/index.html.php | 0 {templates => Vanilla/templates}/security/login.html.php | 0 {templates => Vanilla/templates}/status/403.html.php | 0 {templates => Vanilla/templates}/status/404.html.php | 0 35 files changed, 7 insertions(+) rename LICENSE => Vanilla/LICENSE (100%) rename README.md => Vanilla/README.md (100%) rename addressbook.sql => Vanilla/addressbook.sql (100%) create mode 100644 Vanilla/config.json rename config.json.sample => Vanilla/config.json.sample (100%) rename {public => Vanilla/public}/.htaccess (100%) rename {public => Vanilla/public}/assets/js/functions.js (100%) rename {public => Vanilla/public}/assets/styles/main.css (100%) rename {public => Vanilla/public}/index.php (100%) rename {src => Vanilla/src}/Controller/AddressBookAdminController.php (100%) rename {src => Vanilla/src}/Controller/AddressBookController.php (100%) rename {src => Vanilla/src}/Controller/SecurityController.php (100%) rename {src => Vanilla/src}/Entity/AddressBookEntry.php (100%) rename {src => Vanilla/src}/Entity/Route.php (100%) rename {src => Vanilla/src}/Entity/User.php (100%) rename {src => Vanilla/src}/Enums/UserAuth.php (100%) rename {src => Vanilla/src}/Repository/AddressRepository.php (100%) rename {src => Vanilla/src}/Repository/UserRepository.php (100%) rename {src => Vanilla/src}/Service/Config.php (100%) rename {src => Vanilla/src}/Service/Container.php (100%) rename {src => Vanilla/src}/Service/DatabaseConnection.php (100%) rename {src => Vanilla/src}/Service/Router.php (100%) rename {src => Vanilla/src}/Service/Template.php (100%) rename {src => Vanilla/src}/bootstrap.php (100%) rename {templates => Vanilla/templates}/_footer.html.php (100%) rename {templates => Vanilla/templates}/_header.html.php (100%) rename {templates => Vanilla/templates}/addressbook/add_address.html.php (100%) rename {templates => Vanilla/templates}/admin/index.html.php (100%) rename {templates => Vanilla/templates}/admin/users.html.php (100%) rename {templates => Vanilla/templates}/admin/users_add.html.php (100%) rename {templates => Vanilla/templates}/admin/users_edit.html.php (100%) rename {templates => Vanilla/templates}/index.html.php (100%) rename {templates => Vanilla/templates}/security/login.html.php (100%) rename {templates => Vanilla/templates}/status/403.html.php (100%) rename {templates => Vanilla/templates}/status/404.html.php (100%) diff --git a/LICENSE b/Vanilla/LICENSE similarity index 100% rename from LICENSE rename to Vanilla/LICENSE diff --git a/README.md b/Vanilla/README.md similarity index 100% rename from README.md rename to Vanilla/README.md diff --git a/addressbook.sql b/Vanilla/addressbook.sql similarity index 100% rename from addressbook.sql rename to Vanilla/addressbook.sql diff --git a/Vanilla/config.json b/Vanilla/config.json new file mode 100644 index 0000000..2bea89b --- /dev/null +++ b/Vanilla/config.json @@ -0,0 +1,7 @@ +{ + "dbHost": "localhost", + "dbPort": 3306, + "dbDatabase": "tracer_addressbook", + "dbUser": "tracer_addressbook", + "dbPassword": "SKTh_6#YM?%q" +} \ No newline at end of file diff --git a/config.json.sample b/Vanilla/config.json.sample similarity index 100% rename from config.json.sample rename to Vanilla/config.json.sample diff --git a/public/.htaccess b/Vanilla/public/.htaccess similarity index 100% rename from public/.htaccess rename to Vanilla/public/.htaccess diff --git a/public/assets/js/functions.js b/Vanilla/public/assets/js/functions.js similarity index 100% rename from public/assets/js/functions.js rename to Vanilla/public/assets/js/functions.js diff --git a/public/assets/styles/main.css b/Vanilla/public/assets/styles/main.css similarity index 100% rename from public/assets/styles/main.css rename to Vanilla/public/assets/styles/main.css diff --git a/public/index.php b/Vanilla/public/index.php similarity index 100% rename from public/index.php rename to Vanilla/public/index.php diff --git a/src/Controller/AddressBookAdminController.php b/Vanilla/src/Controller/AddressBookAdminController.php similarity index 100% rename from src/Controller/AddressBookAdminController.php rename to Vanilla/src/Controller/AddressBookAdminController.php diff --git a/src/Controller/AddressBookController.php b/Vanilla/src/Controller/AddressBookController.php similarity index 100% rename from src/Controller/AddressBookController.php rename to Vanilla/src/Controller/AddressBookController.php diff --git a/src/Controller/SecurityController.php b/Vanilla/src/Controller/SecurityController.php similarity index 100% rename from src/Controller/SecurityController.php rename to Vanilla/src/Controller/SecurityController.php diff --git a/src/Entity/AddressBookEntry.php b/Vanilla/src/Entity/AddressBookEntry.php similarity index 100% rename from src/Entity/AddressBookEntry.php rename to Vanilla/src/Entity/AddressBookEntry.php diff --git a/src/Entity/Route.php b/Vanilla/src/Entity/Route.php similarity index 100% rename from src/Entity/Route.php rename to Vanilla/src/Entity/Route.php diff --git a/src/Entity/User.php b/Vanilla/src/Entity/User.php similarity index 100% rename from src/Entity/User.php rename to Vanilla/src/Entity/User.php diff --git a/src/Enums/UserAuth.php b/Vanilla/src/Enums/UserAuth.php similarity index 100% rename from src/Enums/UserAuth.php rename to Vanilla/src/Enums/UserAuth.php diff --git a/src/Repository/AddressRepository.php b/Vanilla/src/Repository/AddressRepository.php similarity index 100% rename from src/Repository/AddressRepository.php rename to Vanilla/src/Repository/AddressRepository.php diff --git a/src/Repository/UserRepository.php b/Vanilla/src/Repository/UserRepository.php similarity index 100% rename from src/Repository/UserRepository.php rename to Vanilla/src/Repository/UserRepository.php diff --git a/src/Service/Config.php b/Vanilla/src/Service/Config.php similarity index 100% rename from src/Service/Config.php rename to Vanilla/src/Service/Config.php diff --git a/src/Service/Container.php b/Vanilla/src/Service/Container.php similarity index 100% rename from src/Service/Container.php rename to Vanilla/src/Service/Container.php diff --git a/src/Service/DatabaseConnection.php b/Vanilla/src/Service/DatabaseConnection.php similarity index 100% rename from src/Service/DatabaseConnection.php rename to Vanilla/src/Service/DatabaseConnection.php diff --git a/src/Service/Router.php b/Vanilla/src/Service/Router.php similarity index 100% rename from src/Service/Router.php rename to Vanilla/src/Service/Router.php diff --git a/src/Service/Template.php b/Vanilla/src/Service/Template.php similarity index 100% rename from src/Service/Template.php rename to Vanilla/src/Service/Template.php diff --git a/src/bootstrap.php b/Vanilla/src/bootstrap.php similarity index 100% rename from src/bootstrap.php rename to Vanilla/src/bootstrap.php diff --git a/templates/_footer.html.php b/Vanilla/templates/_footer.html.php similarity index 100% rename from templates/_footer.html.php rename to Vanilla/templates/_footer.html.php diff --git a/templates/_header.html.php b/Vanilla/templates/_header.html.php similarity index 100% rename from templates/_header.html.php rename to Vanilla/templates/_header.html.php diff --git a/templates/addressbook/add_address.html.php b/Vanilla/templates/addressbook/add_address.html.php similarity index 100% rename from templates/addressbook/add_address.html.php rename to Vanilla/templates/addressbook/add_address.html.php diff --git a/templates/admin/index.html.php b/Vanilla/templates/admin/index.html.php similarity index 100% rename from templates/admin/index.html.php rename to Vanilla/templates/admin/index.html.php diff --git a/templates/admin/users.html.php b/Vanilla/templates/admin/users.html.php similarity index 100% rename from templates/admin/users.html.php rename to Vanilla/templates/admin/users.html.php diff --git a/templates/admin/users_add.html.php b/Vanilla/templates/admin/users_add.html.php similarity index 100% rename from templates/admin/users_add.html.php rename to Vanilla/templates/admin/users_add.html.php diff --git a/templates/admin/users_edit.html.php b/Vanilla/templates/admin/users_edit.html.php similarity index 100% rename from templates/admin/users_edit.html.php rename to Vanilla/templates/admin/users_edit.html.php diff --git a/templates/index.html.php b/Vanilla/templates/index.html.php similarity index 100% rename from templates/index.html.php rename to Vanilla/templates/index.html.php diff --git a/templates/security/login.html.php b/Vanilla/templates/security/login.html.php similarity index 100% rename from templates/security/login.html.php rename to Vanilla/templates/security/login.html.php diff --git a/templates/status/403.html.php b/Vanilla/templates/status/403.html.php similarity index 100% rename from templates/status/403.html.php rename to Vanilla/templates/status/403.html.php diff --git a/templates/status/404.html.php b/Vanilla/templates/status/404.html.php similarity index 100% rename from templates/status/404.html.php rename to Vanilla/templates/status/404.html.php