From fd36f0f4bff7b6617844e02b2be44a88a0a8e489 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Mon, 3 Feb 2025 12:03:51 -0500 Subject: [PATCH] hfkfhkfhgjkuhgfkjfghkj --- .gitattribute | 16 + .gitignore | 67 ++ .gitlab-ci.yml | 74 ++ app/classes/admin_controller.php | 34 + app/classes/api_controller.php | 137 ++++ app/classes/config.php | 115 +++ app/classes/controller.php | 43 + app/classes/database_model.php | 144 ++++ app/classes/email.php | 212 +++++ app/classes/forms.php | 692 ++++++++++++++++ app/classes/installer.php | 645 +++++++++++++++ app/classes/permissions.php | 258 ++++++ app/classes/plugin.php | 498 ++++++++++++ app/classes/preferences.php | 385 +++++++++ app/config/constants.php | 139 ++++ app/controllers/admin/admin.php | 48 ++ app/controllers/admin/composer.php | 64 ++ app/controllers/admin/errors.php | 54 ++ app/controllers/admin/groups.php | 126 +++ app/controllers/admin/home.php | 88 +++ app/controllers/admin/images.php | 368 +++++++++ app/controllers/admin/logins.php | 54 ++ app/controllers/admin/logs.php | 33 + app/controllers/admin/plugins.php | 136 ++++ app/controllers/admin/routes.php | 101 +++ app/controllers/admin/send_mail.php | 109 +++ app/controllers/admin/settings.php | 48 ++ app/controllers/admin/tokens.php | 88 +++ app/controllers/admin/users.php | 209 +++++ app/controllers/api/auth.php | 40 + app/controllers/api/login.php | 52 ++ app/controllers/api/users.php | 45 ++ app/controllers/error.php | 27 + app/controllers/home.php | 115 +++ app/controllers/libraries.php | 125 +++ app/controllers/register.php | 148 ++++ app/controllers/usercp.php | 157 ++++ app/css/debug.css | 74 ++ app/css/main-dark.css | 158 ++++ app/css/main.css | 322 ++++++++ app/css/wysiwyg.css | 218 +++++ app/functions/common.php | 119 +++ app/images/ttp-github.png | Bin 0 -> 57520 bytes app/images/ttp-install.png | Bin 0 -> 17684 bytes app/images/ttp.png | Bin 0 -> 45727 bytes app/js/main.js | 189 +++++ app/js/wysiwyg.js | 233 ++++++ app/models/group.php | 297 +++++++ app/models/log.php | 200 +++++ app/models/routes.php | 161 ++++ app/models/sessions.php | 274 +++++++ app/models/token.php | 207 +++++ app/models/user.php | 744 ++++++++++++++++++ app/plugins/blog/controllers/admin/blog.php | 102 +++ app/plugins/blog/controllers/blog.php | 186 +++++ app/plugins/blog/forms.php | 81 ++ app/plugins/blog/models/posts.php | 356 +++++++++ app/plugins/blog/plugin.php | 49 ++ app/plugins/blog/templates/blog.inc.php | 39 + app/plugins/blog/templates/blog.tpl | 139 ++++ app/plugins/blog/templates/rss.inc.php | 19 + app/plugins/blog/templates/rss.tpl | 11 + app/plugins/blog/views/admin/create.html | 55 ++ app/plugins/blog/views/admin/dashboard.html | 30 + app/plugins/blog/views/admin/edit.html | 55 ++ app/plugins/blog/views/admin/list.html | 48 ++ app/plugins/blog/views/admin/preview.html | 40 + app/plugins/blog/views/admin/view.html | 14 + app/plugins/blog/views/largeFeature.html | 7 + app/plugins/blog/views/list.html | 15 + app/plugins/blog/views/post.html | 18 + app/plugins/blog/views/rss.html | 10 + app/plugins/blog/views/searchResults.html | 3 + app/plugins/blog/views/smallFeature.html | 31 + app/plugins/blog/views/widgets/about.html | 11 + app/plugins/blog/views/widgets/archive.html | 17 + app/plugins/blog/views/widgets/recent.html | 20 + app/plugins/blog/views/widgets/search.html | 18 + .../bugreport/controllers/admin/bugreport.php | 63 ++ .../bugreport/controllers/bugreport.php | 52 ++ app/plugins/bugreport/forms.php | 51 ++ app/plugins/bugreport/models/bugreport.php | 100 +++ app/plugins/bugreport/plugin.php | 65 ++ app/plugins/bugreport/views/admin/list.html | 45 ++ app/plugins/bugreport/views/admin/view.html | 69 ++ app/plugins/bugreport/views/create.html | 61 ++ .../comments/controllers/admin/comments.php | 83 ++ .../comments/controllers/moderator.php | 36 + app/plugins/comments/css/comments.css | 6 + app/plugins/comments/forms.php | 69 ++ app/plugins/comments/models/comments.php | 184 +++++ app/plugins/comments/plugin.php | 154 ++++ .../comments/views/admin/dashboard.html | 28 + app/plugins/comments/views/admin/edit.html | 25 + app/plugins/comments/views/admin/list.html | 45 ++ app/plugins/comments/views/control.html | 8 + app/plugins/comments/views/create.html | 14 + app/plugins/comments/views/list.html | 39 + app/plugins/comments/views/moderator.html | 7 + .../contact/controllers/admin/contact.php | 56 ++ app/plugins/contact/controllers/contact.php | 47 ++ app/plugins/contact/forms.php | 56 ++ app/plugins/contact/models/contact.php | 83 ++ app/plugins/contact/plugin.php | 60 ++ .../contact/views/admin/dashboard.html | 29 + app/plugins/contact/views/admin/list.html | 45 ++ app/plugins/contact/views/admin/view.html | 61 ++ app/plugins/contact/views/create.html | 47 ++ app/plugins/messages/controllers/messages.php | 121 +++ app/plugins/messages/models/message.php | 454 +++++++++++ app/plugins/messages/plugin.php | 57 ++ app/plugins/messages/views/badge.html | 1 + app/plugins/messages/views/create.html | 73 ++ app/plugins/messages/views/inbox.html | 40 + app/plugins/messages/views/index.html | 10 + app/plugins/messages/views/message.html | 53 ++ .../views/nav/recentMessagesDropdown.html | 46 ++ app/plugins/messages/views/outbox.html | 37 + app/plugins/messages/views/reply.html | 18 + app/plugins/messages/views/unreadBadge.html | 1 + .../controllers/admin/notifications.php | 85 ++ .../controllers/notifications.php | 79 ++ app/plugins/notifications/forms.php | 41 + .../notifications/models/notification.php | 146 ++++ app/plugins/notifications/plugin.php | 64 ++ .../notifications/views/admin/send.html | 61 ++ app/plugins/notifications/views/badge.html | 1 + app/plugins/notifications/views/list.html | 41 + .../nav/recentNotificationsDropdown.html | 41 + .../notifications/views/unseenBadge.html | 1 + .../controllers/admin/subscriptions.php | 65 ++ .../subscribe/controllers/subscribe.php | 79 ++ app/plugins/subscribe/forms.php | 73 ++ app/plugins/subscribe/models/subscribe.php | 97 +++ app/plugins/subscribe/plugin.php | 47 ++ app/plugins/subscribe/views/admin/add.html | 24 + app/plugins/subscribe/views/admin/list.html | 40 + app/plugins/subscribe/views/footer/right.html | 11 + app/plugins/subscribe/views/subscribe.html | 5 + app/plugins/subscribe/views/unsubscribe.html | 5 + app/resources/config/config.example.json | 179 +++++ app/resources/config/install.example.json | 162 ++++ app/resources/config/permissions.example.json | 34 + app/resources/config/prefrences.example.json | 78 ++ app/resources/controllers/example.php | 54 ++ app/resources/nginx-main.conf | 44 ++ app/resources/nodels/example.php | 20 + app/resources/plugin.php | 99 +++ app/resources/templates/example.tpl | 80 ++ app/resources/templates/exanple.inc.php | 34 + app/resources/views/complex.html | 3 + app/resources/views/example.html | 141 ++++ app/resources/views/simple.html | 1 + app/templates/admin/admin.inc.php | 54 ++ app/templates/admin/admin.tpl | 94 +++ app/templates/api/api.inc.php | 21 + app/templates/api/api.tpl | 1 + app/templates/default/default.inc.php | 87 ++ app/templates/default/default.tpl | 109 +++ app/views/about.html | 27 + app/views/admin/contact.html | 69 ++ app/views/admin/dashboard/dash.html | 45 ++ app/views/admin/dashboard/users.html | 28 + app/views/admin/groups/create.html | 26 + app/views/admin/groups/edit.html | 26 + app/views/admin/groups/list.html | 42 + app/views/admin/groups/list_members.html | 43 + app/views/admin/groups/view.html | 31 + app/views/admin/images/list/combined.html | 30 + app/views/admin/images/rename.html | 35 + app/views/admin/images/upload.html | 29 + app/views/admin/images/view.html | 66 ++ app/views/admin/logs/admin.html | 56 ++ app/views/admin/logs/admin_list.html | 43 + app/views/admin/logs/error.html | 66 ++ app/views/admin/logs/error_list.html | 43 + app/views/admin/logs/login.html | 56 ++ app/views/admin/logs/login_list.html | 45 ++ app/views/admin/modules/dependencies.html | 30 + app/views/admin/modules/plugins/disable.html | 13 + app/views/admin/modules/plugins/enable.html | 13 + app/views/admin/modules/plugins/install.html | 12 + app/views/admin/modules/plugins/list.html | 38 + .../admin/modules/plugins/uninstall.html | 12 + app/views/admin/modules/plugins/view.html | 80 ++ app/views/admin/routes/create.html | 51 ++ app/views/admin/routes/edit.html | 52 ++ app/views/admin/routes/list.html | 48 ++ app/views/admin/routes/view.html | 42 + app/views/admin/settings.html | 18 + app/views/admin/tokens/create.html | 40 + app/views/admin/tokens/edit.html | 41 + app/views/admin/tokens/list.html | 33 + app/views/admin/tokens/view.html | 53 ++ app/views/admin/users/create.html | 74 ++ app/views/admin/users/edit.html | 78 ++ app/views/admin/users/list.html | 44 ++ app/views/admin/users/view.html | 78 ++ app/views/api/error.html | 1 + app/views/api/response.html | 1 + app/views/auth/confirmation.html | 15 + app/views/auth/confirmation_resend.html | 10 + app/views/auth/forgot.html | 13 + app/views/auth/login.html | 55 ++ app/views/auth/password_reset.html | 18 + app/views/auth/password_reset_code.html | 14 + app/views/auth/register.html | 67 ++ app/views/auth/terms.html | 47 ++ app/views/changes/bedrock.html | 311 ++++++++ app/views/changes/canary.html | 185 +++++ app/views/changes/hermes.html | 121 +++ app/views/changes/houdini.html | 280 +++++++ app/views/changes/ttp.html | 482 ++++++++++++ app/views/deps/bedrock.html | 41 + app/views/deps/canary.html | 41 + app/views/deps/hermes.html | 41 + app/views/deps/houdini.html | 41 + app/views/deps/index.html | 58 ++ app/views/deps/ttp.html | 40 + app/views/email/foot.html | 15 + app/views/email/head.html | 37 + app/views/email/template.html | 203 +++++ app/views/email/unsubscribe.html | 2 + app/views/errors/533.html | 21 + app/views/errors/autoload.html | 19 + app/views/errors/generic.html | 3 + app/views/errors/upload404.html | 3 + app/views/faq.html | 67 ++ app/views/footer/center.html | 8 + app/views/footer/container.html | 25 + app/views/footer/copy.html | 3 + app/views/footer/left.html | 11 + app/views/footer/right.html | 7 + app/views/footer/social.html | 29 + app/views/forms/colorSelect.html | 17 + app/views/forms/folderSelect.html | 17 + app/views/forms/folderSelectChild.html | 6 + app/views/forms/folderSelectParent.html | 14 + app/views/forms/iconSelect.html | 51 ++ app/views/index.html | 145 ++++ app/views/install/adminUser.html | 35 + app/views/install/agreement.html | 16 + app/views/install/check.html | 23 + app/views/install/complete.html | 32 + app/views/install/configure.html | 44 ++ app/views/install/models.html | 37 + app/views/install/nav.html | 12 + app/views/install/plugins.html | 45 ++ app/views/install/resources.html | 16 + app/views/install/routing.html | 18 + app/views/install/start.html | 13 + app/views/install/terms.html | 16 + app/views/install/user.html | 35 + app/views/install/verify.html | 23 + app/views/install/welcome.html | 17 + app/views/issues/error.html | 5 + app/views/issues/info.html | 5 + app/views/issues/notice.html | 5 + app/views/issues/success.html | 5 + app/views/landing.html | 146 ++++ app/views/nav/admin.html | 10 + app/views/nav/adminSub.html | 6 + app/views/nav/adminTop.html | 13 + app/views/nav/main.html | 13 + app/views/nav/pagination.html | 5 + app/views/nav/statusLoggedIn.html | 16 + app/views/nav/statusLoggedOut.html | 49 ++ app/views/nav/usercp.html | 5 + app/views/privacy.html | 319 ++++++++ app/views/profilePage.html | 77 ++ app/views/start.html | 26 + app/views/termsPage.html | 11 + app/views/user_cp/email_change.html | 22 + app/views/user_cp/password_change.html | 26 + app/views/user_cp/profile.html | 75 ++ app/views/user_cp/settings.html | 15 + bin/autoload.php | 175 ++++ bin/tempus_project.php | 721 +++++++++++++++++ composer.json | 68 ++ composer.lock | 539 +++++++++++++ images/bedrock.jpg | Bin 0 -> 7995 bytes images/canary.jpg | Bin 0 -> 8435 bytes images/darkMobile.png | Bin 0 -> 24811 bytes images/defaultAvatar.png | Bin 0 -> 24903 bytes images/facebook.png | Bin 0 -> 1218 bytes images/favicon.ico | Bin 0 -> 1150 bytes images/github.png | Bin 0 -> 1586 bytes images/hermes.jpg | Bin 0 -> 12058 bytes images/houdini.jpg | Bin 0 -> 10581 bytes images/imageNotFound.png | Bin 0 -> 26091 bytes images/lightMobile.png | Bin 0 -> 23366 bytes images/logo.png | Bin 0 -> 31307 bytes images/logo128.png | Bin 0 -> 13409 bytes images/logoLarge.jpg | Bin 0 -> 58088 bytes images/logoWhite.png | Bin 0 -> 28873 bytes images/logoWhite128.png | Bin 0 -> 12624 bytes images/pixel.png | Bin 0 -> 150 bytes images/twitter.png | Bin 0 -> 1569 bytes index.php | 65 ++ install.php | 407 ++++++++++ manifest.webmanifest | 7 + vendor/.gitignore | 2 + 302 files changed, 22625 insertions(+) create mode 100644 .gitattribute create mode 100755 .gitignore create mode 100755 .gitlab-ci.yml create mode 100755 app/classes/admin_controller.php create mode 100755 app/classes/api_controller.php create mode 100755 app/classes/config.php create mode 100755 app/classes/controller.php create mode 100755 app/classes/database_model.php create mode 100755 app/classes/email.php create mode 100755 app/classes/forms.php create mode 100755 app/classes/installer.php create mode 100755 app/classes/permissions.php create mode 100755 app/classes/plugin.php create mode 100755 app/classes/preferences.php create mode 100755 app/config/constants.php create mode 100755 app/controllers/admin/admin.php create mode 100755 app/controllers/admin/composer.php create mode 100755 app/controllers/admin/errors.php create mode 100755 app/controllers/admin/groups.php create mode 100755 app/controllers/admin/home.php create mode 100644 app/controllers/admin/images.php create mode 100755 app/controllers/admin/logins.php create mode 100755 app/controllers/admin/logs.php create mode 100755 app/controllers/admin/plugins.php create mode 100755 app/controllers/admin/routes.php create mode 100755 app/controllers/admin/send_mail.php create mode 100755 app/controllers/admin/settings.php create mode 100755 app/controllers/admin/tokens.php create mode 100755 app/controllers/admin/users.php create mode 100755 app/controllers/api/auth.php create mode 100755 app/controllers/api/login.php create mode 100755 app/controllers/api/users.php create mode 100755 app/controllers/error.php create mode 100755 app/controllers/home.php create mode 100644 app/controllers/libraries.php create mode 100755 app/controllers/register.php create mode 100755 app/controllers/usercp.php create mode 100755 app/css/debug.css create mode 100755 app/css/main-dark.css create mode 100755 app/css/main.css create mode 100755 app/css/wysiwyg.css create mode 100755 app/functions/common.php create mode 100755 app/images/ttp-github.png create mode 100755 app/images/ttp-install.png create mode 100755 app/images/ttp.png create mode 100755 app/js/main.js create mode 100755 app/js/wysiwyg.js create mode 100755 app/models/group.php create mode 100755 app/models/log.php create mode 100755 app/models/routes.php create mode 100755 app/models/sessions.php create mode 100755 app/models/token.php create mode 100755 app/models/user.php create mode 100755 app/plugins/blog/controllers/admin/blog.php create mode 100755 app/plugins/blog/controllers/blog.php create mode 100755 app/plugins/blog/forms.php create mode 100755 app/plugins/blog/models/posts.php create mode 100755 app/plugins/blog/plugin.php create mode 100755 app/plugins/blog/templates/blog.inc.php create mode 100755 app/plugins/blog/templates/blog.tpl create mode 100755 app/plugins/blog/templates/rss.inc.php create mode 100755 app/plugins/blog/templates/rss.tpl create mode 100755 app/plugins/blog/views/admin/create.html create mode 100755 app/plugins/blog/views/admin/dashboard.html create mode 100755 app/plugins/blog/views/admin/edit.html create mode 100755 app/plugins/blog/views/admin/list.html create mode 100755 app/plugins/blog/views/admin/preview.html create mode 100755 app/plugins/blog/views/admin/view.html create mode 100755 app/plugins/blog/views/largeFeature.html create mode 100755 app/plugins/blog/views/list.html create mode 100755 app/plugins/blog/views/post.html create mode 100755 app/plugins/blog/views/rss.html create mode 100644 app/plugins/blog/views/searchResults.html create mode 100755 app/plugins/blog/views/smallFeature.html create mode 100644 app/plugins/blog/views/widgets/about.html create mode 100644 app/plugins/blog/views/widgets/archive.html create mode 100644 app/plugins/blog/views/widgets/recent.html create mode 100644 app/plugins/blog/views/widgets/search.html create mode 100755 app/plugins/bugreport/controllers/admin/bugreport.php create mode 100755 app/plugins/bugreport/controllers/bugreport.php create mode 100755 app/plugins/bugreport/forms.php create mode 100755 app/plugins/bugreport/models/bugreport.php create mode 100755 app/plugins/bugreport/plugin.php create mode 100755 app/plugins/bugreport/views/admin/list.html create mode 100755 app/plugins/bugreport/views/admin/view.html create mode 100755 app/plugins/bugreport/views/create.html create mode 100755 app/plugins/comments/controllers/admin/comments.php create mode 100755 app/plugins/comments/controllers/moderator.php create mode 100755 app/plugins/comments/css/comments.css create mode 100755 app/plugins/comments/forms.php create mode 100755 app/plugins/comments/models/comments.php create mode 100755 app/plugins/comments/plugin.php create mode 100755 app/plugins/comments/views/admin/dashboard.html create mode 100755 app/plugins/comments/views/admin/edit.html create mode 100755 app/plugins/comments/views/admin/list.html create mode 100755 app/plugins/comments/views/control.html create mode 100755 app/plugins/comments/views/create.html create mode 100755 app/plugins/comments/views/list.html create mode 100755 app/plugins/comments/views/moderator.html create mode 100755 app/plugins/contact/controllers/admin/contact.php create mode 100755 app/plugins/contact/controllers/contact.php create mode 100755 app/plugins/contact/forms.php create mode 100755 app/plugins/contact/models/contact.php create mode 100755 app/plugins/contact/plugin.php create mode 100644 app/plugins/contact/views/admin/dashboard.html create mode 100755 app/plugins/contact/views/admin/list.html create mode 100755 app/plugins/contact/views/admin/view.html create mode 100755 app/plugins/contact/views/create.html create mode 100755 app/plugins/messages/controllers/messages.php create mode 100755 app/plugins/messages/models/message.php create mode 100755 app/plugins/messages/plugin.php create mode 100755 app/plugins/messages/views/badge.html create mode 100755 app/plugins/messages/views/create.html create mode 100755 app/plugins/messages/views/inbox.html create mode 100644 app/plugins/messages/views/index.html create mode 100755 app/plugins/messages/views/message.html create mode 100755 app/plugins/messages/views/nav/recentMessagesDropdown.html create mode 100755 app/plugins/messages/views/outbox.html create mode 100755 app/plugins/messages/views/reply.html create mode 100755 app/plugins/messages/views/unreadBadge.html create mode 100755 app/plugins/notifications/controllers/admin/notifications.php create mode 100755 app/plugins/notifications/controllers/notifications.php create mode 100755 app/plugins/notifications/forms.php create mode 100755 app/plugins/notifications/models/notification.php create mode 100755 app/plugins/notifications/plugin.php create mode 100755 app/plugins/notifications/views/admin/send.html create mode 100755 app/plugins/notifications/views/badge.html create mode 100755 app/plugins/notifications/views/list.html create mode 100755 app/plugins/notifications/views/nav/recentNotificationsDropdown.html create mode 100755 app/plugins/notifications/views/unseenBadge.html create mode 100755 app/plugins/subscribe/controllers/admin/subscriptions.php create mode 100755 app/plugins/subscribe/controllers/subscribe.php create mode 100755 app/plugins/subscribe/forms.php create mode 100755 app/plugins/subscribe/models/subscribe.php create mode 100755 app/plugins/subscribe/plugin.php create mode 100755 app/plugins/subscribe/views/admin/add.html create mode 100755 app/plugins/subscribe/views/admin/list.html create mode 100755 app/plugins/subscribe/views/footer/right.html create mode 100755 app/plugins/subscribe/views/subscribe.html create mode 100755 app/plugins/subscribe/views/unsubscribe.html create mode 100755 app/resources/config/config.example.json create mode 100755 app/resources/config/install.example.json create mode 100755 app/resources/config/permissions.example.json create mode 100755 app/resources/config/prefrences.example.json create mode 100755 app/resources/controllers/example.php create mode 100755 app/resources/nginx-main.conf create mode 100755 app/resources/nodels/example.php create mode 100755 app/resources/plugin.php create mode 100755 app/resources/templates/example.tpl create mode 100755 app/resources/templates/exanple.inc.php create mode 100755 app/resources/views/complex.html create mode 100755 app/resources/views/example.html create mode 100755 app/resources/views/simple.html create mode 100755 app/templates/admin/admin.inc.php create mode 100755 app/templates/admin/admin.tpl create mode 100755 app/templates/api/api.inc.php create mode 100755 app/templates/api/api.tpl create mode 100755 app/templates/default/default.inc.php create mode 100755 app/templates/default/default.tpl create mode 100755 app/views/about.html create mode 100755 app/views/admin/contact.html create mode 100755 app/views/admin/dashboard/dash.html create mode 100755 app/views/admin/dashboard/users.html create mode 100755 app/views/admin/groups/create.html create mode 100755 app/views/admin/groups/edit.html create mode 100755 app/views/admin/groups/list.html create mode 100755 app/views/admin/groups/list_members.html create mode 100755 app/views/admin/groups/view.html create mode 100644 app/views/admin/images/list/combined.html create mode 100644 app/views/admin/images/rename.html create mode 100644 app/views/admin/images/upload.html create mode 100644 app/views/admin/images/view.html create mode 100755 app/views/admin/logs/admin.html create mode 100755 app/views/admin/logs/admin_list.html create mode 100755 app/views/admin/logs/error.html create mode 100755 app/views/admin/logs/error_list.html create mode 100755 app/views/admin/logs/login.html create mode 100755 app/views/admin/logs/login_list.html create mode 100755 app/views/admin/modules/dependencies.html create mode 100755 app/views/admin/modules/plugins/disable.html create mode 100755 app/views/admin/modules/plugins/enable.html create mode 100755 app/views/admin/modules/plugins/install.html create mode 100755 app/views/admin/modules/plugins/list.html create mode 100755 app/views/admin/modules/plugins/uninstall.html create mode 100755 app/views/admin/modules/plugins/view.html create mode 100755 app/views/admin/routes/create.html create mode 100755 app/views/admin/routes/edit.html create mode 100755 app/views/admin/routes/list.html create mode 100755 app/views/admin/routes/view.html create mode 100755 app/views/admin/settings.html create mode 100755 app/views/admin/tokens/create.html create mode 100755 app/views/admin/tokens/edit.html create mode 100755 app/views/admin/tokens/list.html create mode 100755 app/views/admin/tokens/view.html create mode 100755 app/views/admin/users/create.html create mode 100755 app/views/admin/users/edit.html create mode 100755 app/views/admin/users/list.html create mode 100755 app/views/admin/users/view.html create mode 100755 app/views/api/error.html create mode 100755 app/views/api/response.html create mode 100755 app/views/auth/confirmation.html create mode 100755 app/views/auth/confirmation_resend.html create mode 100755 app/views/auth/forgot.html create mode 100755 app/views/auth/login.html create mode 100755 app/views/auth/password_reset.html create mode 100755 app/views/auth/password_reset_code.html create mode 100755 app/views/auth/register.html create mode 100755 app/views/auth/terms.html create mode 100755 app/views/changes/bedrock.html create mode 100755 app/views/changes/canary.html create mode 100755 app/views/changes/hermes.html create mode 100755 app/views/changes/houdini.html create mode 100644 app/views/changes/ttp.html create mode 100755 app/views/deps/bedrock.html create mode 100755 app/views/deps/canary.html create mode 100755 app/views/deps/hermes.html create mode 100755 app/views/deps/houdini.html create mode 100755 app/views/deps/index.html create mode 100644 app/views/deps/ttp.html create mode 100755 app/views/email/foot.html create mode 100755 app/views/email/head.html create mode 100755 app/views/email/template.html create mode 100755 app/views/email/unsubscribe.html create mode 100755 app/views/errors/533.html create mode 100755 app/views/errors/autoload.html create mode 100755 app/views/errors/generic.html create mode 100755 app/views/errors/upload404.html create mode 100755 app/views/faq.html create mode 100755 app/views/footer/center.html create mode 100755 app/views/footer/container.html create mode 100755 app/views/footer/copy.html create mode 100755 app/views/footer/left.html create mode 100755 app/views/footer/right.html create mode 100755 app/views/footer/social.html create mode 100755 app/views/forms/colorSelect.html create mode 100644 app/views/forms/folderSelect.html create mode 100644 app/views/forms/folderSelectChild.html create mode 100644 app/views/forms/folderSelectParent.html create mode 100755 app/views/forms/iconSelect.html create mode 100755 app/views/index.html create mode 100755 app/views/install/adminUser.html create mode 100755 app/views/install/agreement.html create mode 100755 app/views/install/check.html create mode 100755 app/views/install/complete.html create mode 100755 app/views/install/configure.html create mode 100755 app/views/install/models.html create mode 100755 app/views/install/nav.html create mode 100755 app/views/install/plugins.html create mode 100755 app/views/install/resources.html create mode 100755 app/views/install/routing.html create mode 100755 app/views/install/start.html create mode 100644 app/views/install/terms.html create mode 100644 app/views/install/user.html create mode 100644 app/views/install/verify.html create mode 100644 app/views/install/welcome.html create mode 100755 app/views/issues/error.html create mode 100755 app/views/issues/info.html create mode 100755 app/views/issues/notice.html create mode 100755 app/views/issues/success.html create mode 100644 app/views/landing.html create mode 100755 app/views/nav/admin.html create mode 100755 app/views/nav/adminSub.html create mode 100644 app/views/nav/adminTop.html create mode 100755 app/views/nav/main.html create mode 100755 app/views/nav/pagination.html create mode 100755 app/views/nav/statusLoggedIn.html create mode 100755 app/views/nav/statusLoggedOut.html create mode 100755 app/views/nav/usercp.html create mode 100755 app/views/privacy.html create mode 100755 app/views/profilePage.html create mode 100755 app/views/start.html create mode 100755 app/views/termsPage.html create mode 100755 app/views/user_cp/email_change.html create mode 100755 app/views/user_cp/password_change.html create mode 100755 app/views/user_cp/profile.html create mode 100755 app/views/user_cp/settings.html create mode 100755 bin/autoload.php create mode 100755 bin/tempus_project.php create mode 100755 composer.json create mode 100755 composer.lock create mode 100755 images/bedrock.jpg create mode 100755 images/canary.jpg create mode 100644 images/darkMobile.png create mode 100755 images/defaultAvatar.png create mode 100755 images/facebook.png create mode 100755 images/favicon.ico create mode 100755 images/github.png create mode 100755 images/hermes.jpg create mode 100755 images/houdini.jpg create mode 100755 images/imageNotFound.png create mode 100644 images/lightMobile.png create mode 100755 images/logo.png create mode 100755 images/logo128.png create mode 100755 images/logoLarge.jpg create mode 100755 images/logoWhite.png create mode 100755 images/logoWhite128.png create mode 100755 images/pixel.png create mode 100755 images/twitter.png create mode 100755 index.php create mode 100755 install.php create mode 100755 manifest.webmanifest create mode 100755 vendor/.gitignore diff --git a/.gitattribute b/.gitattribute new file mode 100644 index 0000000..d664430 --- /dev/null +++ b/.gitattribute @@ -0,0 +1,16 @@ +# Force LF for all text files +* text=auto eol=lf + +# Ensure specific file types always use LF +*.sh text eol=lf +*.js text eol=lf +*.php text eol=lf +*.html text eol=lf +*.css text eol=lf +*.json text eol=lf +*.md text eol=lf + +# Keep binary files untouched +*.png binary +*.jpg binary +*.gif binary diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..2c74cbb --- /dev/null +++ b/.gitignore @@ -0,0 +1,67 @@ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# OSX +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# keep specific directories +!uploads/images/.gitignore +!bin/cli/.gitignore + +# keep main directories +!css/.gitignore +!vendor/.gitignore + +# SublimeText +*.sublime-project +*.sublime-workspace + +# TheTempusProject Specific +.htaccess +app/config/* +!app/config/constants.php +uploads/images/* +logs/* +.vscode/ +mail.log +vendor/canary/logs/* +.env +components/* +mailhog.log +uploads/* diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100755 index 0000000..2952fb1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,74 @@ +stages: + - prepare + - build + - test + - update + - deploy + +variables: + TIMEZONE: "America/New_York" # For the system in general + DATE_TIMEZONE: ${TIMEZONE} # For PHP + + GIT_DEPTH: 1 + GITLAB_API_URL: ${CI_API_V4_URL} + TARGET_BRANCH: ${CI_COMMIT_REF_NAME} # This is the branch chosen in the `Pipeline Schedule` + TARGET_REMOTE: "https://${GITLAB_USERNAME}:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}.git" + + # These could/should be overridden in an extending job: + UPDATE_BRANCH_PREFIX: "update_PHP_deps_" # Used for the update branch name, it will be followed by the datetime + GIT_USER: "DependBot" # Used for the update commit + GIT_EMAIL: "webmaster@thetempusproject.com" # Used for the update commit + GITLAB_USERNAME: "root" # Used for pushing the new branch and opening the MR + GITLAB_ACCESS_TOKEN: "glpat-PKEmivGtBfbz4DVPdhzk" # Used for pushing the new branch and opening the MR + MERGE_IF_SUCCESSFUL: "true" # Set to true, to merge automatically if the pipeline succeeds + SECONDS_BETWEEN_POOLING: 10 # Nbr of seconds between checking if the MR pipeline is successful, so then it will merge + JOB_GIT_FLAGS: "" + JOB_CURL_FLAGS: "" + JOB_COMPOSER_FLAGS: "" + +composer_update: + stage: update + rules: + - if: '$CI_COMMIT_BRANCH == "main"' + image: composer:latest + interruptible: true # allows to stop the job if a newer pipeline starts, saving resources and allowing new jobs to start because job concurrency is limited + script: + - git ${JOB_GIT_FLAGS} fetch origin ${TARGET_BRANCH} + - git ${JOB_GIT_FLAGS} checkout ${TARGET_BRANCH} + - git reset --hard origin/main + - git pull --allow-unrelated-histories + - export DATE_TIME="$(date '+%Y%m%d%H%M%S')" + - export MR_BRANCH="${UPDATE_BRANCH_PREFIX}${DATE_TIME}" + - git ${JOB_GIT_FLAGS} checkout -b "${MR_BRANCH}" + - composer update ${JOB_COMPOSER_FLAGS} + - if [ "$(git diff)" == "" ]; then echo "No updates needed!"; exit 0; fi + - export TITLE="Update PHP dependencies [${DATE_TIME}]" + - git ${JOB_GIT_FLAGS} commit -a -m "${TITLE}" + - git ${JOB_GIT_FLAGS} push "${TARGET_REMOTE}" "${MR_BRANCH}" + artifacts: + paths: + - vendor/ + cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - vendor/ + +prepare: + stage: prepare + script: + - echo "Preparing environment..." + +build: + stage: build + script: + - echo "Building the project..." + +test: + stage: test + script: + - echo "Running tests..." + +deploy: + stage: deploy + script: + - echo "Deploying the project..." \ No newline at end of file diff --git a/app/classes/admin_controller.php b/app/classes/admin_controller.php new file mode 100755 index 0000000..7dbc312 --- /dev/null +++ b/app/classes/admin_controller.php @@ -0,0 +1,34 @@ + + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +namespace TheTempusProject\Classes; + +use TheTempusProject\Houdini\Classes\Template; +use TheTempusProject\Houdini\Classes\Filters; +use TheTempusProject\Houdini\Classes\Issues; +use TheTempusProject\TheTempusProject as App; +use TheTempusProject\Hermes\Functions\Redirect; +use TheTempusProject\Bedrock\Functions\Session; + +class AdminController extends Controller { + public function __construct() { + parent::__construct(); + if ( !App::$isAdmin ) { + Session::flash( 'error', 'You do not have permission to view this page.' ); + return Redirect::home(); + } + Template::noFollow(); + Template::noIndex(); + Template::setTemplate( 'admin' ); + Filters::add( 'logMenu', '#