commit 4ef095d72c84457454f519c9df0b07b6869cc0e8 Author: Jacek Pyziak Date: Wed Nov 20 08:16:18 2024 +0100 first commit diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..b4c193c1 --- /dev/null +++ b/.htaccess @@ -0,0 +1,85 @@ +# ~~startcookiesplus~~ Cookies Plus module - Do not remove this comment + +RewriteRule .* - [E=Cache-Vary:cookiesplus] + +# ~~endcookiesplus~~ Cookies Plus module - Do not remove this comment + +# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again +# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution +# https://www.prestashop.com - https://www.prestashop.com/forums + + + +SetEnv HTTP_MOD_REWRITE On + + +RewriteEngine on + + +#Domain: masimmo.pl.pagedev.pl +RewriteRule . - [E=REWRITEBASE:/] +RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] +RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L] + +# Images +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] +RewriteCond %{HTTP_HOST} ^masimmo.pl.pagedev.pl$ +RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] +# AlphaImageLoader for IE and fancybox +RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] + +# Dispatcher +RewriteCond %{REQUEST_FILENAME} -s [OR] +RewriteCond %{REQUEST_FILENAME} -l [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule ^.*$ - [NC,L] +RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] + + +AddType application/vnd.ms-fontobject .eot +AddType font/ttf .ttf +AddType font/otf .otf +AddType application/font-woff .woff +AddType font/woff2 .woff2 + + + Header set Access-Control-Allow-Origin "*" + + + + Header set Content-Disposition "Attachment" + Header set X-Content-Type-Options "nosniff" + + + + + # Apache 2.2 + + Order deny,allow + Deny from all + + + # Apache 2.4 + + Require all denied + + +#If rewrite mod isn't enabled +ErrorDocument 404 /index.php?controller=404 + +# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again \ No newline at end of file diff --git a/.vscode/ftp-kr.json b/.vscode/ftp-kr.json new file mode 100644 index 00000000..dffdc069 --- /dev/null +++ b/.vscode/ftp-kr.json @@ -0,0 +1,17 @@ +{ + "host": "dedyk8.cyber-folks.pl", + "username": "www@masimmo.pl", + "password": "(Q-ot*a-kx!3ZeK3", + "remotePath": "/public_html", + "protocol": "ftp", + "port": 0, + "fileNameEncoding": "utf8", + "autoUpload": true, + "autoDelete": false, + "autoDownload": false, + "ignoreRemoteModification": true, + "ignore": [ + ".git", + "/.vscode" + ] +} \ No newline at end of file diff --git a/.vscode/ftp-kr.sync.cache.json b/.vscode/ftp-kr.sync.cache.json new file mode 100644 index 00000000..802a8af2 --- /dev/null +++ b/.vscode/ftp-kr.sync.cache.json @@ -0,0 +1,171 @@ +{ + "ftp://dedyk8.cyber-folks.pl@www@masimmo.pl": { + "public_html": { + "admin264x7t1sv": {}, + "app": {}, + "autoload.php": { + "type": "-", + "size": 1316, + "lmtime": 0, + "modified": false + }, + "bck": {}, + "bin": {}, + "bridge_bW9IlgH3.php": { + "type": "-", + "size": 171555, + "lmtime": 0, + "modified": false + }, + "cache": {}, + "-cart_default.jpg": { + "type": "-", + "size": 3683, + "lmtime": 0, + "modified": false + }, + "classes": {}, + "composer.lock": { + "type": "-", + "size": 429111, + "lmtime": 0, + "modified": false + }, + "config": {}, + "controllers": {}, + "docs": {}, + "download": {}, + "error500.html": { + "type": "-", + "size": 2506, + "lmtime": 0, + "modified": false + }, + "fileType": { + "type": "-", + "size": 3, + "lmtime": 0, + "modified": false + }, + "-home_default.jpg": { + "type": "-", + "size": 9320, + "lmtime": 0, + "modified": false + }, + ".htaccess": { + "type": "-", + "size": 3676, + "lmtime": 1732025220000, + "modified": false + }, + "images.inc.php": { + "type": "-", + "size": 4830, + "lmtime": 0, + "modified": false + }, + "img": {}, + "import-drewmax.php": { + "type": "-", + "size": 10919, + "lmtime": 0, + "modified": false + }, + "index.php": { + "type": "-", + "size": 1169, + "lmtime": 1732014720000, + "modified": false + }, + "init.php": { + "type": "-", + "size": 1256, + "lmtime": 0, + "modified": false + }, + "INSTALL.txt": { + "type": "-", + "size": 5127, + "lmtime": 0, + "modified": false + }, + ".jpg": { + "type": "-", + "size": 626142, + "lmtime": 0, + "modified": false + }, + "js": {}, + "komplet-produktow-3.xml": { + "type": "-", + "size": 32163016, + "lmtime": 0, + "modified": false + }, + "-large_default.jpg": { + "type": "-", + "size": 64102, + "lmtime": 0, + "modified": false + }, + "LICENSES": { + "type": "-", + "size": 186018, + "lmtime": 0, + "modified": false + }, + "localization": {}, + "mails": {}, + "Makefile": { + "type": "-", + "size": 88, + "lmtime": 0, + "modified": false + }, + "-medium_default.jpg": { + "type": "-", + "size": 23382, + "lmtime": 0, + "modified": false + }, + "modules": {}, + "override": {}, + "pdf": {}, + "phpstan.neon.dist": { + "type": "-", + "size": 1580, + "lmtime": 0, + "modified": false + }, + "robots.txt": { + "type": "-", + "size": 3154, + "lmtime": 0, + "modified": false + }, + "-small_default.jpg": { + "type": "-", + "size": 2570, + "lmtime": 0, + "modified": false + }, + "src": {}, + "themes": {}, + "tmp": {}, + "tools": {}, + "translations": {}, + "upload": {}, + "var": {}, + "vendor": {}, + "webservice": {}, + "XMLFeed.cache": { + "type": "-", + "size": 3172, + "lmtime": 0, + "modified": false + } + } + }, + "$version": 1 +} \ No newline at end of file diff --git a/.vscode/sftp.json b/.vscode/sftp.json new file mode 100644 index 00000000..1595b84a --- /dev/null +++ b/.vscode/sftp.json @@ -0,0 +1,12 @@ +{ + "name": "dedyk8.cyber-folks.pl", + "host": "dedyk8.cyber-folks.pl", + "protocol": "ftp", + "port": 21, + "username": "www@masimmo.pl", + "password": "(Q-ot*a-kx!3ZeK3", + "remotePath": "/public_html", + "uploadOnSave": false, + "useTempFile": false, + "openSsh": false +} diff --git a/index.php b/index.php new file mode 100644 index 00000000..b08bc1ba --- /dev/null +++ b/index.php @@ -0,0 +1,28 @@ + + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) + */ + +require dirname(__FILE__).'/config/config.inc.php'; +Dispatcher::getInstance()->dispatch();