From d2e5b50ef1bf3ba6429be7a0874ec5de7d4c16bf Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Sat, 28 Mar 2026 12:06:51 +0100 Subject: [PATCH] update --- admin/index.php | 8 - admin/templates/components/form-edit.php | 3 +- admin/templates/site/unlogged-layout.php | 3 +- admin/templates/users/user-2fa.php | 2 + autoload/Domain/Article/ArticleRepository.php | 2 + autoload/Domain/CronJob/CronJobRepository.php | 14 +- autoload/Domain/CronJob/CronJobType.php | 14 + .../Domain/Integrations/ApiloRepository.php | 567 ++++++++++++++++++ .../Integrations/IntegrationsRepository.php | 526 +--------------- autoload/Domain/Order/OrderAdminService.php | 12 +- autoload/Domain/Order/OrderRepository.php | 6 +- .../PaymentMethod/PaymentMethodRepository.php | 5 +- autoload/Domain/Product/ProductRepository.php | 8 +- autoload/Shared/Security/CsrfToken.php | 26 + autoload/admin/App.php | 14 +- .../Controllers/IntegrationsController.php | 17 +- .../ShopPaymentMethodController.php | 5 + .../Support/Forms/FormRequestHandler.php | 7 + .../Controllers/ShopBasketController.php | 165 ++++- cron.php | 102 +++- index.php | 8 - .../_partials/product-custom-fields.php | 68 ++- templates/shop-basket/basket-details.php | 3 +- templates/shop-basket/basket.php | 100 +++ templates/shop-basket/summary-view.php | 7 +- templates/shop-order/order-details.php | 10 +- templates/shop-product/product.php | 10 +- .../_partials/product-custom-fields.php | 63 +- templates_user/shop-basket/basket-details.php | 3 +- templates_user/shop-basket/basket.php | 102 +++- templates_user/shop-basket/summary-view.php | 7 +- templates_user/shop-order/order-details.php | 10 +- templates_user/shop-product/product.php | 6 +- 33 files changed, 1255 insertions(+), 648 deletions(-) create mode 100644 autoload/Domain/Integrations/ApiloRepository.php create mode 100644 autoload/Shared/Security/CsrfToken.php diff --git a/admin/index.php b/admin/index.php index fcd897d..8affdba 100644 --- a/admin/index.php +++ b/admin/index.php @@ -31,17 +31,9 @@ function __autoload_my_classes( $classname ) spl_autoload_register( '__autoload_my_classes' ); require_once '../config.php'; require_once '../libraries/medoo/medoo.php'; -require_once '../libraries/rb.php'; require_once '../libraries/phpmailer/class.phpmailer.php'; require_once '../libraries/phpmailer/class.smtp.php'; -define( 'REDBEAN_MODEL_PREFIX', '' ); -\R::setup( 'mysql:host=' . $database['host'] . ';dbname=' . $database['name'], $database['user'], $database['password'] ); -\R::ext( 'xdispense', function ( $type ) -{ - return R::getRedBean() -> dispense( $type ); -} ); - date_default_timezone_set( 'Europe/Warsaw' ); $mdb = new medoo( [ diff --git a/admin/templates/components/form-edit.php b/admin/templates/components/form-edit.php index 1ed2713..d9b04c0 100644 --- a/admin/templates/components/form-edit.php +++ b/admin/templates/components/form-edit.php @@ -78,7 +78,8 @@ $_SESSION['can_use_rfm'] = true; action="action) ?>" enctype="multipart/form-data"> - + + hiddenFields as $name => $value): ?> diff --git a/admin/templates/site/unlogged-layout.php b/admin/templates/site/unlogged-layout.php index fbd1eb6..f1cebd2 100644 --- a/admin/templates/site/unlogged-layout.php +++ b/admin/templates/site/unlogged-layout.php @@ -37,12 +37,13 @@ ?>
- +
+