create-berna-stencil 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eleventy.js +1 -1
- package/bin/create.js +1 -1
- package/package.json +5 -5
- package/src/api/.htaccess +11 -5
- package/src/api/core/.htaccess +2 -0
- package/src/api/{init.php → core/init.php} +7 -2
- package/src/api/endpoints/protected/secret.php +1 -1
- package/src/api/endpoints/public/ping.php +1 -1
- package/src/api/index.php +4 -2
- package/src/api/endpoints/protected/send-mail.php +0 -75
- /package/src/api/{composer.json → core/composer.json} +0 -0
- /package/src/api/{composer.lock → core/composer.lock} +0 -0
- /package/src/api/{modules → core/modules}/Response.php +0 -0
- /package/src/api/{vendor → core/vendor}/autoload.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/ClassLoader.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/InstalledVersions.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/composer/autoload_classmap.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/autoload_files.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/autoload_namespaces.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/autoload_psr4.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/autoload_real.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/autoload_static.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/installed.json +0 -0
- /package/src/api/{vendor → core/vendor}/composer/installed.php +0 -0
- /package/src/api/{vendor → core/vendor}/composer/platform_check.php +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.gitattributes +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/CONTRIBUTING.md +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/FUNDING.yml +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/SECURITY.md +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/workflows/stale.yml +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/workflows/tests.yml +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/CHANGELOG.md +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/phpunit.xml.dist +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/src/Error.php +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/src/Result.php +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/src/Success.php +0 -0
- /package/src/api/{vendor → core/vendor}/graham-campbell/result-type/tests/ResultTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.codecov.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.editorconfig +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.gitattributes +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/FUNDING.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/actions/build-docs/Dockerfile +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/actions/build-docs/entrypoint.sh +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/dependabot.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/workflows/docs.yaml +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/workflows/scorecards.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/workflows/tests.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.phan/config.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/COMMITMENT +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/SECURITY.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/SMTPUTF8.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/UPGRADING.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/VERSION +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/changelog.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/docs/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/DKIM_gen_keys.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/DKIM_sign.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/azure_xoauth2.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/callback.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contactform-ajax.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contactform.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contents.html +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/contentsutf8.html +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/exceptions.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/extending.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/gmail.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/gmail_xoauth.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.afdesign +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.png +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.svg +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/phpmailer.png +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/phpmailer_mini.png +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/mail.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/mailing_list.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/pop_before_smtp.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/send_file_upload.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/send_multiple_file_upload.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/sendmail.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/sendoauth2.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/simple_contact_form.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smime_signed_mail.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp_check.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp_low_memory.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/smtp_no_auth.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/ssl_options.phps +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/get_oauth_token.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-af.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-as.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-az.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ba.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-be.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-bg.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-bn.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-cs.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-da.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-el.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-eo.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fa.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-gl.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-he.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hi.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hr.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-hy.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-id.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ka.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ko.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ku.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-lt.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-lv.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-mg.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-mn.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ms.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-nb.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-pt.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-si.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sl.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sr.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sv.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-tl.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-uk.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-ur.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-vi.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/phpcs.xml.dist +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/phpdoc.dist.xml +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/phpunit.xml.dist +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/DSNConfigurator.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/Exception.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/OAuth.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/OAuthTokenProvider.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/PHPMailer.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/POP3.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/src/SMTP.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/DebugLogTestListener.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/accessible.txt +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/inaccessible.txt +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-fr.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-nl.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xa_scri_cc.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xb_scri.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xc_cc.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_cc.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_scri.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xe.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xx.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yy.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yz.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-zz.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Language/TranslationCompletenessTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/OAuth/OAuthTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddEmbeddedImageTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddStringAttachmentTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddStringEmbeddedImageTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AddrFormatTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/AuthCRAMMD5Test.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/CustomHeaderTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/DKIMTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/DKIMWithoutExceptionsTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/DSNConfiguratorTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/EncodeQTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/EncodeStringTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/FileIsAccessibleTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/FilenameToTypeTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/GenerateIdTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/GetLastMessageIDTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/HasLineLongerThanMaxTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/Html2TextTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ICalTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/IsPermittedPathTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/IsValidHostTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/LocalizationTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/MailTransportTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/MbPathinfoTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/MimeTypesTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/NormalizeBreaksTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/PHPMailerTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ParseAddressesTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/PunyencodeAddressTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/QuotedStringTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ReplyToGetSetClearTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetErrorTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetFromTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/SetWordWrapTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/Utf8CharBoundaryTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ValidateAddressCustomValidatorTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/ValidateAddressTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/WrapTextTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PHPMailer/XMailerTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/POP3/PopBeforeSmtpTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/PreSendTestCase.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/Security/DenialOfServiceVectorsTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/SendTestCase.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/TestCase.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/fakepopserver.sh +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/fakesendmail.sh +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/runfakepopserver.sh +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/testbootstrap-dist.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/test/validators.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.gitattributes +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/CONTRIBUTING.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/FUNDING.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/SECURITY.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/workflows/static.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/.github/workflows/tests.yml +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/Makefile +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/phpstan-baseline.neon +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/phpstan.neon.dist +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/phpunit.xml.dist +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/LazyOption.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/None.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/Option.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/src/PhpOption/Some.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/tests/bootstrap.php +0 -0
- /package/src/api/{vendor → core/vendor}/phpoption/phpoption/vendor-bin/phpstan/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/Ctype.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/bootstrap.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/bootstrap80.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-ctype/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Mbstring.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/bootstrap.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/bootstrap80.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-mbstring/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Php80.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/PhpToken.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/Attribute.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/PhpToken.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/Stringable.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/Resources/stubs/ValueError.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/bootstrap.php +0 -0
- /package/src/api/{vendor → core/vendor}/symfony/polyfill-php80/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.editorconfig +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.gitattributes +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/CONTRIBUTING.md +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/FUNDING.yml +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/SECURITY.md +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/workflows/static.yml +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/.github/workflows/tests.yml +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/LICENSE +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/Makefile +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/README.md +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/UPGRADING.md +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/composer.json +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/phpstan-baseline.neon +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/phpstan.neon.dist +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/phpunit.xml.dist +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Dotenv.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/InvalidFileException.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/InvalidPathException.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Exception/ValidationException.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Loader/Loader.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Loader/LoaderInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Loader/Resolver.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Entry.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/EntryParser.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Lexer.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Lines.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Parser.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/ParserInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Parser/Value.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/AdapterRepository.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/File/Paths.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/File/Reader.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/FileStore.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/StoreBuilder.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/StoreInterface.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Store/StringStore.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Util/Regex.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Util/Str.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/src/Validator.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/assertions.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/booleans.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/commented.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/empty.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/example.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/exported.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/immutable.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/integers.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/large.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/multiline.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/multiple.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/mutable.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/nested.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/quoted.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/tests/fixtures/env/windows.env +0 -0
- /package/src/api/{vendor → core/vendor}/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +0 -0
package/.eleventy.js
CHANGED
package/bin/create.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-berna-stencil",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Eleventy boilerplate with per-page SCSS/JS pipeline, esbuild bundling, multi-framework CSS support and a built-in page management CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eleventy",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"sass": "^1.77.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
|
-
"build:css": "sass src/scss:out/css --no-source-map --style=compressed --quiet",
|
|
62
|
-
"build:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=out/js/pages --minify",
|
|
61
|
+
"build:css": "sass src/scss:c:/laragon/www/Berna-Stencil-out/css --no-source-map --style=compressed --quiet",
|
|
62
|
+
"build:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=c:/laragon/www/Berna-Stencil-out/js/pages --minify",
|
|
63
63
|
"build:11ty": "eleventy",
|
|
64
64
|
"build": "npm run build:css && npm run build:js && npm run build:11ty",
|
|
65
|
-
"serve:css": "sass --watch src/scss:out/css --no-source-map --quiet",
|
|
66
|
-
"serve:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=out/js/pages --watch",
|
|
65
|
+
"serve:css": "sass --watch src/scss:c:/laragon/www/Berna-Stencil-out/css --no-source-map --quiet",
|
|
66
|
+
"serve:js": "esbuild \"src/js/pages/*.js\" --bundle --outdir=c:/laragon/www/Berna-Stencil-out/js/pages --watch",
|
|
67
67
|
"serve:11ty": "eleventy --serve --quiet",
|
|
68
68
|
"clean": "node _tools/cleanOutput.js",
|
|
69
69
|
"serve": "npm run clean && concurrently \"npm run serve:11ty\" \"npm run serve:css\" \"npm run serve:js\"",
|
package/src/api/.htaccess
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
RewriteEngine On
|
|
3
3
|
RewriteBase /api/
|
|
4
4
|
|
|
5
|
-
#
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
# 1. Proteggi i file sensibili (come .env o file di log)
|
|
6
|
+
<FilesMatch "^\.env|composer\.(json|lock)$">
|
|
7
|
+
Require all denied
|
|
8
|
+
</FilesMatch>
|
|
9
9
|
|
|
10
|
-
#
|
|
10
|
+
# 2. Impedisce l'accesso diretto alla cartella core e endpoints
|
|
11
|
+
# Se qualcuno cerca di navigare in queste cartelle, becca un 403
|
|
12
|
+
RewriteRule ^(core|endpoints|modules)($|/) - [F,L]
|
|
13
|
+
|
|
14
|
+
# 3. Regola standard per il routing verso il motore
|
|
15
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
|
16
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
|
11
17
|
RewriteRule ^(.*)$ index.php [QSA,L]
|
|
12
18
|
</IfModule>
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
declare(strict_types=1);
|
|
4
4
|
|
|
5
|
+
if (!defined('CORE_ACCESS')) {
|
|
6
|
+
http_response_code(403);
|
|
7
|
+
die('Accesso diretto non consentito.');
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
6
11
|
require_once __DIR__ . '/modules/Response.php';
|
|
7
12
|
|
|
@@ -21,9 +26,9 @@ set_error_handler(function ($severity, $message, $file, $line) {
|
|
|
21
26
|
});
|
|
22
27
|
|
|
23
28
|
// --- CARICAMENTO DOTENV ---
|
|
24
|
-
// dirname(__DIR__,
|
|
29
|
+
// dirname(__DIR__, 2) sale di un livello (da api/ a Berna-Stencil-out/)
|
|
25
30
|
try {
|
|
26
|
-
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__,
|
|
31
|
+
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__, 2));
|
|
27
32
|
$dotenv->load();
|
|
28
33
|
} catch (Exception $e) {
|
|
29
34
|
Response::error("Impossibile caricare il file .env. Assicurati che esista nella root e si chiami esattamente .env", 500);
|
package/src/api/index.php
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
declare(strict_types=1);
|
|
4
4
|
|
|
5
|
+
define('CORE_ACCESS', true);
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* Caricamento delle dipendenze e configurazione iniziale.
|
|
7
9
|
*/
|
|
8
|
-
require_once __DIR__ . '/init.php';
|
|
9
|
-
require_once __DIR__ . '/modules/Response.php';
|
|
10
|
+
require_once __DIR__ . '/core/init.php';
|
|
11
|
+
require_once __DIR__ . '/core/modules/Response.php';
|
|
10
12
|
|
|
11
13
|
// =====================================================
|
|
12
14
|
// 1. ANALISI DELLA RICHIESTA (REQUEST PARSING)
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
declare(strict_types=1);
|
|
4
|
-
|
|
5
|
-
use PHPMailer\PHPMailer\PHPMailer;
|
|
6
|
-
use PHPMailer\PHPMailer\Exception;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* NOTA: Non serve require 'vendor/autoload.php' o 'init.php'
|
|
10
|
-
* perché questo file viene incluso da index.php che ha già caricato tutto.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
// 1. Controllo Metodo (Vogliamo solo POST)
|
|
14
|
-
if ($method !== 'POST') {
|
|
15
|
-
Response::error('Method not allowed', 405);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// 2. Funzioni di Sanitizzazione (Locali o spostabili in un helper)
|
|
19
|
-
$clean = fn($v) => htmlspecialchars(trim((string)($v ?? '')), ENT_QUOTES, 'UTF-8');
|
|
20
|
-
$safeNum = fn($v) => filter_var($v ?? '', FILTER_SANITIZE_NUMBER_INT);
|
|
21
|
-
|
|
22
|
-
// 3. Recupero Dati (supporta sia $_POST standard che JSON)
|
|
23
|
-
$input = $_POST;
|
|
24
|
-
if (empty($input)) {
|
|
25
|
-
$input = json_decode(file_get_contents('php://input'), true) ?? [];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
$formType = $clean($input['formType'] ?? 'Contatto Generico');
|
|
29
|
-
$name = $clean($input['name'] ?? '');
|
|
30
|
-
$phoneNumber = $safeNum($input['phoneNumber'] ?? '');
|
|
31
|
-
|
|
32
|
-
// Validazione minima
|
|
33
|
-
if (empty($name)) {
|
|
34
|
-
Response::error('Il campo nome è obbligatorio');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// 4. Configurazione PHPMailer
|
|
38
|
-
$mail = new PHPMailer(true);
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
// Usiamo le variabili d'ambiente caricate da init.php
|
|
42
|
-
$mail->isSMTP();
|
|
43
|
-
$mail->Host = $_ENV['MAIL_HOST'];
|
|
44
|
-
$mail->SMTPAuth = true;
|
|
45
|
-
$mail->Username = $_ENV['MAIL_USERNAME'];
|
|
46
|
-
$mail->Password = $_ENV['MAIL_PASSWORD'];
|
|
47
|
-
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
|
|
48
|
-
$mail->Port = (int)$_ENV['MAIL_PORT'];
|
|
49
|
-
$mail->CharSet = 'UTF-8';
|
|
50
|
-
|
|
51
|
-
$mail->setFrom($_ENV['MAIL_USERNAME'], $_ENV['MAIL_FROM_NAME'] ?? 'API Robot');
|
|
52
|
-
$mail->addAddress($_ENV['MAIL_TO_ADDRESS'], $_ENV['MAIL_TO_NAME'] ?? 'Admin');
|
|
53
|
-
|
|
54
|
-
$mail->isHTML(true);
|
|
55
|
-
$mail->Subject = "Nuovo invio modulo: {$formType}";
|
|
56
|
-
|
|
57
|
-
// Costruzione Body
|
|
58
|
-
$htmlBody = "<h2>Dettagli Richiesta</h2>";
|
|
59
|
-
$htmlBody .= "<p><strong>Nome:</strong> {$name}</p>";
|
|
60
|
-
if (!empty($phoneNumber)) {
|
|
61
|
-
$htmlBody .= "<p><strong>Telefono:</strong> {$phoneNumber}</p>";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
$mail->Body = $htmlBody;
|
|
65
|
-
$mail->AltBody = strip_tags(str_replace(['<br>', '</p>'], ["\n", "\n\n"], $htmlBody));
|
|
66
|
-
|
|
67
|
-
$mail->send();
|
|
68
|
-
|
|
69
|
-
// Risposta JSON di successo
|
|
70
|
-
Response::success(['message' => 'Email inviata con successo']);
|
|
71
|
-
|
|
72
|
-
} catch (Exception $e) {
|
|
73
|
-
// Risposta JSON di errore
|
|
74
|
-
Response::error("Errore nell'invio della mail: {$mail->ErrorInfo}", 500);
|
|
75
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/workflows/stale.yml
RENAMED
|
File without changes
|
/package/src/api/{vendor → core/vendor}/graham-campbell/result-type/.github/workflows/tests.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/ISSUE_TEMPLATE/bug_report.md
RENAMED
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/actions/build-docs/Dockerfile
RENAMED
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/actions/build-docs/entrypoint.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/.github/workflows/scorecards.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.png
RENAMED
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/PHPMailer card logo.svg
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/images/phpmailer_mini.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/send_multiple_file_upload.phps
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/examples/simple_contact_form.phps
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/api/{vendor → core/vendor}/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|