first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

286
apps/backend/config/app.yml Normal file
View File

@@ -0,0 +1,286 @@
# default values
# $Id$
#
all:
.list:
icon_mapping:
create: add
export: download
remove: close
delete: close
collapse: expand
default_desktop:
- stOrder
- stProduct
- stUser
- stPayment
- stNewsletterPlugin
- appProductAttributesPlugin
- stCategory
- stProducer
- stDiscountPlugin
- stPriceCompare
- stDelivery
- stGiftCardPlugin
- stBlogPlugin
- { route: "stWebpageBackend/list", label: Strony WWW, icon: stWebpagePlugin, name: stWebpageBackend }
- stReview
- stThemePlugin
- stFastCacheSymfony
- stConfigurationPlugin
- { route: "stBackend/additionalApplicationsList", label: Aplikacje, icon: apps, name: stBackend }
default_all_desktop:
- stAllegroPlugin
- stAuthUsers
- stWebApiPlugin
- stSlideBannerPlugin
- stSecurityPlugin
- stLockPlugin
- stBoxPlugin
- stCeneoPlugin
- stDelivery
- stAvailabilityPlugin
- stDotpayPlugin
- stThemePlugin
- stInvoicePlugin
- stFastCacheSymfony
- stGoogleAnalyticsPlugin
- stProductGroup
- stDiscountPlugin
- stShopInfoPlugin
- stCategory
- stUser
- stConfigurationPlugin
- stAssetImageConfiguration
- stBasket
- stCountriesPlugin
- stLukasPlugin
- stMigration
- stMoneybookersPlugin
- stNavigationPlugin
- stNewsletterPlugin
- stNokautPlugin
- stMailPlugin
- stOferciakPlugin
- stOkazjePlugin
- stOptimizationPlugin
- stPaypalPlugin
- stPlatnosciPlPlugin
- stPayment
- stPolcardPlugin
- stPriceCompare
- stAddThisPlugin
- stPositioningPlugin
- stProducer
- stProduct
- stPrzelewy24Plugin
- stRadarPlugin
- stReview
- stSocialLinksPlugin
- stSkapiecPlugin
- stSklepy24Plugin
- stTaxPlugin
- stWebpagePlugin
- stTextPlugin
- stCurrencyPlugin
- stLanguagePlugin
- stSearchPlugin
- stZakupomatPlugin
- stOrder
- stQuestionPlugin
module:
payment_type: Typy płatności
stCountriesArea: Strefy krajów
stDeliveryGroup: Dostawy - grupy kosztów
stCountriesDefine: Domyślny kraj dostawy
stWebpageGroupBackend: Grupy stron www
stWebpageBackend: Strony www
stMailSmtpProfileBackend: Profile SMTP
sfAsset: Media
Open: Zamów wersję komercyjną
generator:
efect: blind
sf_captchagd:
image_width: 172 # image width in pixels
image_height: 50 # image height in pixels
chars: "1234567890" # possible chars in captcha
length: 4 # length of captcha
font_size: 18 # font size
# possible chars colors
font_color: ["8b8787", "550707", "3526E6", "88531E"]
# chars fonts
fonts: ["molten/molten.ttf", "akbar/akbar.ttf"]
background_color: FFFFFF # image background color
border_color: CCCCCC # image border color
security:
credential_dependencies:
access:
stWebpageBackend: [stBoxBackend, stTextBackend]
sfGuardGroup: [sfGuardUser]
stPriceCompare:
- stZakupomatBackend
- stSklepy24Backend
- stSkapiecBackend
- stRadarBackend
- stOkazjeBackend
- stOferciakBackend
- stNokautBackend
- stCeneoBackend
modification:
sfGuardGroup: [sfGuardUser]
navigation_bar:
display:
orders:
view_orders: ~
view_invoices: ~
view_payments: ~
view_returns: ~
view_discount: ~
gift_cards: ~
view_allegro: ~
products:
view_products: ~
view_product_group: ~
view_categories: ~
view_producer: ~
product_attributes: ~
search: ~
clients:
view_clients: ~
view_review: ~
marketing:
view_blog: ~
view_newsletter: ~
ads_tracker_entry_reports: ~
view_google_an: ~
view_pixel_fb: ~
graphics:
banner: ~
view_boxes: ~
view_texts: ~
view_edittext: ~
view_theme: ~
configuration: []
items:
applications: { label: "Aplikacje", route: "@stBackend?action=additionalApplicationsList" }
task_scheluder: { label: "Harmonogram zadań", icon: "stTaskScheluderPlugin", route: "@stTaskScheluderBackend", i18n: stTaskScheluderBackend}
gift_group: { label: Gratisy w koszyku, icon: "stGiftGroup", route: "@stGiftGroup", i18n: stGiftGroup }
orders: { label: Sprzedaż, route: "@stOrderDefault", i18n: stOrder }
graphics: { label: Grafika }
baskets: { label: Koszyki, route: "@stBasketDefault", icon: "stBasket", i18n: stBasket }
view_orders: { label: Zamówienia, route: "@stOrderDefault", icon: "stOrder", i18n: stOrder }
view_returns: { label: Zwroty, route: "stProductReturnsBackend/list", icon: "stProductReturnsPlugin", i18n: stProductReturnsBackend }
view_question: { label: Zapytania ofertowe, route: "stQuestionBackend/index", icon: "stQuestionPlugin", i18n: stQuestionBackend }
view_invoices: { label: Faktury, route: "@stInvoicePlugin?action=confirmList", icon: "stInvoicePlugin", i18n: stInvoiceBackend }
view_payments: { label: Płatności, route: "@stPayment", icon: "stPayment", i18n: stPayment }
view_discount: { label: Rabaty, route: "stDiscountBackend/list", icon: "stDiscountPlugin", i18n: stDiscountBackend }
gift_cards: { label: Bony zakupowe, icon: "stGiftCardPlugin", route: "giftcard/index", i18n: stGiftCardBackend }
view_deliverys: { label: Dostawy, route: "stDeliveryBackend/list", icon: "stDelivery", i18n: stDeliveryBackend }
products: { label: Oferta, route: "@stProduct?action=list", i18n: stProduct }
view_products: { label: Produkty, route: "@stProduct?action=list" , icon: "stProduct", i18n: stProduct }
product_1: { label: Konfiguracja produktów, route: "stProduct/config", icon: "stProduct", i18n: stProduct }
product_2: { label: Prezentacja produktów, route: "stProduct/presentationConfig", icon: "stProductPresent", i18n: stProduct }
view_categories: { label: Kategorie, route: "@stCategory" , icon: "stCategory", i18n: stCategory }
view_product_group: { label: Grupy produktow, route: "stProductGroup/index" , icon: "stProductGroup", i18n: stProductGroup }
view_producer: { label: Producenci, route: "@stProducer?action=list" , icon: "stProducer", i18n: stProducer }
view_review: { label: Recenzje, route: "stReview/index", icon: "stReview", i18n: stReview }
view_sociallinks: { label: Linki społecznościowe, route: "stSocialLinksBackend/index", icon: "stSocialLinksPlugin", i18n: stSocialLinksBackend }
clients: { label: Społeczność, i18n: stBackend }
view_clients: { label: Klienci, route: "stUser/list", icon: "stUser", i18n: stUser }
view_newsletter: { label: Newsletter, route: "newsletterDraftMessage/list", icon: "stNewsletterPlugin", i18n: stNewsletterBackend }
marketing: { label: Marketing }
configuration: { label: Konfiguracja }
mail: { label: Obsluga poczty, route: "stMailAccountBackend/list", icon: "stMailPlugin", i18n: stMailAccountBackend }
view_edittext: { label: Strony WWW, route: "stWebpageBackend/list" , icon: stWebpagePlugin , i18n: stWebpageBackend }
view_boxes: { label: Boksy informacyjne, route: "stBoxBackend/index", icon: stBoxPlugin, i18n: stBackend }
view_texts: { label: Teksty, route: "stTextBackend", icon: stTextPlugin, i18n: stBackend}
view_blog: { label: Blog, route: "@stBlogPlugin" , icon: stBlogPlugin , i18n: stBackend }
view_price_compare: { label: Udostępnianie oferty, route: "@stConfigurationPlugin" , icon: stPriceCompare, i18n: stPriceCompare }
view_allegro: { label: Allegro, route: "@stAllegroPlugin" , icon: stAllegroPlugin, i18n: stAllegroBackend, version: 'ST_SOTESHOP_VERSION_POLISH' }
view_google_an: { label: Google Analytics, route: "stGoogleAnalyticsBackend/index" , icon: stGoogleAnalyticsPlugin}
view_pixel_fb: { label: Piksel Facebooka, route: "appFacebookRemarketingBackend/index" , icon: appFacebookRemarketingPlugin.svg}
view_configuration: { label: Konfiguracja modułów, route: "@stConfigurationPlugin", icon: "stConfigurationPlugin" , i18n: stConfigurationBackend }
view_theme: { label: Edycja grafiki, route: "stThemeBackend/index" , icon: "stThemePlugin" , i18n: stThemeBackend }
payments: { label: Płatności , i18n: stPayments }
banner: { label: Banery, route: "@stSlideBannerPlugin", icon: stSlideBannerPlugin , i18n: stBackend }
additional_apps: { label: Dodatkowe aplikacje, route: "stBackend/additionalApplicationsList", icon: addition_application, i18n: stBackend }
product_attributes: { label: Atrybuty produktów, route: "@appProductAttributesPlugin", icon: appProductAttributesPlugin, i18n: appProductAttributesPlugin }
search: { label: "Wyszukiwarka", route: "@stSearchPlugin?action=searchLinkList", icon: stSearchPlugin, i18n: stSearchBackend }
ads_tracker_entry_reports: { label: "Raporty wejść", route: "@appAdsTrackerBackend?action=adsTrackerPlatformEnteringStats", icon: appAdsTrackerPlugin, i18n: appAdsTrackerBackend }
dashboard:
version: 1
default:
title: Domyślny
layout: three_column_layout1
gadgets:
- { name: last_orders, options: { column: 1 } }
- { name: ads_tracker_entering, options: { column: 2 } }
- { name: sote_news, options: { column: 3 } }
layouts:
one_column_layout: { columns: 1 }
two_column_layout1: { columns: 2, stylesheet: on }
two_column_layout2: { columns: 2, stylesheet: on }
two_column_layout3: { columns: 2, stylesheet: on }
three_column_layout1: { columns: 3, stylesheet: on }
three_column_layout2: { columns: 3, stylesheet: on }
gadget_colors: ["6EC9BB", "A8A0C9", "E4E4E4", "FCD7A3", "C9B2A0", "F1F1F1", "7DE879", "F2AC29"]
gadget_refresh_rates:
300: { label: Co 5 minut, default: true }
900: { label: Co 15 minut }
1800: { label: Co 30 minut }
3600: { label: Co 1 godzinę }
gadget_directory:
last_orders:
category: Zamówienia
refresh: 900
thumb: stOrder
title: Zamówienia
description: Element pokazujący ostatnie zamówienia jakich dokonano w sklepie.
source: "@stDashboardGadget?action=lastOrders"
min_height: 220
recently_ordered_products:
category: Zamówienia
refresh: 900
thumb: stOrder
author: { name: SOTE, website: "http://www.sote.pl" }
title: Ostatnio sprzedane produkty
description: Element pokazujący ostatnie sprzedane produkty.
source: "@stDashboardGadget?action=recentlyOrderedProducts"
min_height: 220
last_registered_users:
category: Użytkownicy
refresh: 900
thumb: stUser
author: { name: SOTE, website: "http://www.sote.pl" }
title: Ostatnio zarejestrowani użytkownicy
description: Element pokazujący ostatnio Zarejestrowanych użytkowników w sklepie.
source: "@stDashboardGadget?action=lastRegisteredClients"
min_height: 220
sote_news:
category: Różne
credentials: {removable: [commercial]}
thumb: stBlogPlugin
refresh: 1800
author: { name: SOTE, website: "http://www.sote.pl" }
title: Nowości SOTE
description: Element pokazujący nowości dotyczące SOTE.
source: "@stDashboardGadget?action=soteNews"
min_height: 220
review_gadget:
category: Użytkownicy
thumb: stReview
refresh: 900
author: { name: SOTE, website: "http://www.sote.pl" }
title: Ostatnio dodane recenzje produktów
description: Gadżet informujący o ostatnio dodanych recenzjach produktów.
source: "@stDashboardGadget?action=reviewGadget"
min_height: 220

View File

@@ -0,0 +1,4 @@
default:
enabled: off
with_layout: false
lifetime: 31536000

View File

@@ -0,0 +1,74 @@
<?php
/**
* SOTESHOP/stBackend
*
* Ten plik należy do aplikacji stBackend opartej na licencji (Open License SOTE) Otwarta Licencja SOTE.
* Nie zmieniaj tego pliku, jeśli chcesz korzystać z automatycznych aktualizacji oprogramowania.
* Jeśli chcesz wprowadzać swoje modyfikacje do programu, zapoznaj się z dokumentacją, jak zmieniać
* oprogramowanie bez zmiany kodu bazowego http://www.sote.pl/modifications
*
* @package stBackend
* @subpackage configs
* @copyright SOTE (www.sote.pl)
* @license http://www.sote.pl/license/open (Open License SOTE) Otwarta Licencja SOTE
* @version $Id: config.php 9 2009-08-24 09:31:16Z michal $
* @author Marek Jakubowicz <marek.jakubowicz@sote.pl>
* @author Michal Prochowski <michal.prochowski@sote.pl>
*/
/**
* Odczytuje konfigurację Symfony.
*/
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
/**
* Symfony bootstraping
*
* @package stBackend
* @subpackage configs
*/
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'symfony'.DIRECTORY_SEPARATOR.'util'. DIRECTORY_SEPARATOR.'stCore.class.php');
stCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir);
/**
* Uzupelnienie funkcji lcfirst (wystepuje tylko w CVS dla php 5.2.x. Dostepna dla php 5.3.x)
*
* @author Marcin Butlak <marcin.butlak@sote.pl>
*/
if(function_exists('lcfirst') == false)
{
/**
* Make a string's first character lowercase
*
* @param string $str The input string.
* @return string The resulting string.
*/
function lcfirst($str)
{
$str[0] = strtolower($str[0]);
return $str;
}
}
/**
* Ładowanie plików z konfiguracyjnych wszystkich zainstalowanych modułów
*
* @author Michal Prochowski <michal.prochowski@sote.pl>
*/
if (!defined('ST_SYMFONY_OPTIMIZATION'))
{
foreach (stApplication::getApps() as $app => $data)
{
$dir = SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$app;
if (!ereg('Plugin',$app) && file_exists($dir))
{
$file_config = SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$app.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php';
if (file_exists($file_config))
{
include_once($file_config);
}
}
}
}
$limit = stLimits::getInstance();

View File

@@ -0,0 +1,4 @@
---
search_paths:
- apps/backend/modules/*/config/config.php

View File

@@ -0,0 +1,2 @@
modules/*/config/cache.yml:
class: stCacheConfigHandler

View File

@@ -0,0 +1,10 @@
rendering: ~
web_debug: ~
security:
class: sfGuardBasicSecurityFilter
language:
class: stLanguageBackendFilter
cache: ~
common: ~
flash: ~
execution: ~

View File

@@ -0,0 +1,7 @@
all:
default_culture: pl_PL
source: XLIFF
debug: off
cache: on
untranslated_prefix: "[T]"
untranslated_suffix: "[/T]"

View File

@@ -0,0 +1,2 @@
prod:
enabled: off

View File

@@ -0,0 +1,42 @@
###
# Backend default rules
###
check_service:
url: /check_service
param: { module: stBackend, action: checkService }
homepage:
url: /
param: {module: stDashboard, action: index}
Open:
url: /backend/Open
param: {module: stBackendMain, action: Open}
default_index:
url: /:module
param: {action: index}
requirements:
module: "[a-zA-Z0-9_]+"
stDashboard:
url: /dashboard/:action
param: {module: stDashboard, action: index}
stDashboardGadget:
url: /dashboard_gadget/:action
param: {module: stDashboardGadget, action: index}
stSoteshopNewsGadget:
url: /soteshop_news_gadget/:action
param: {module: stSoteshopNewsGadget, action: index}
stBackend:
url: /backend/:action
param: {module: stBackend, action: index}
default:
url: /:module/:action/*
requirements:
module: "[a-zA-Z0-9_]+"
action: "[a-zA-Z0-9_]+"

View File

@@ -0,0 +1,3 @@
all:
is_secure: on
credentials: [backend]

View File

@@ -0,0 +1,128 @@
all:
.settings:
rich_text_js_dir: js/tiny_mce
standard_helpers: [Partial, Cache, Form, ObjectAdmin, stPartial, I18N, stApplication, stJQueryTools, stBackend, stViewSlot, stNavigation, stText, stAdminGenerator]
enabled_modules: [default]
sf_guard_plugin:
routes_register: true
i18n: on
validation_error_prefix: ''
validation_error_suffix: ''
.actions:
login_module: sfGuardAuth
login_action: signin
secure_module: sfGuardAuth
secure_action: secure
error_404_module: stErrorBackend
error_404_action: error404
prod:
.settings:
no_script_name: off
cache: on
i18n: on
etag: off
dev:
.settings:
# E_ALL | E_STRICT = 4095
error_reporting: 4095
web_debug: on
cache: on
no_script_name: off
etag: off
disable_package_verification: on
i18n: on
test:
.settings:
# E_ALL | E_STRICT & ~E_NOTICE = 2047
error_reporting: 0
cache: off
web_debug: off
no_script_name: off
etag: off
i18n: on
use_security: off
#all:
# .actions:
# default_module: default # Default module and action to be called when
# default_action: index # A routing rule doesn't set it
#
# error_404_module: default # To be called when a 404 error is raised
# error_404_action: error404 # Or when the requested URL doesn't match any route
#
# login_module: default # To be called when a non-authenticated user
# login_action: login # Tries to access a secure page
#
# secure_module: default # To be called when a user doesn't have
# secure_action: secure # The credentials required for an action
#
# module_disabled_module: default # To be called when a user requests
# module_disabled_action: disabled # A module disabled in the module.yml
#
# unavailable_module: default # To be called when a user requests a page
# unavailable_action: unavailable # From an application disabled via the available setting below
#
# .settings:
# available: on # Enable the whole application. Switch to off to redirect all requests to the unavailable module and action.
#
# # Optional features. Deactivating unused features boots performance a bit.
# use_database: on # Enable database manager. Set to off if you don't use a database.
# use_security: on # Enable security features (login and credentials). Set to off for public applications.
# use_flash: on # Enable flash parameter feature. Set to off if you never use the set_flash() method in actions.
# i18n: off # Enable interface translation. Set to off if your application should not be translated.
# check_symfony_version: off # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
# use_process_cache: on # Enable symfony optimizations based on PHP accelerators. Set to off for tests or when you have enabled a PHP accelerator in your server but don't want symfony to use it internally.
# compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
# check_lock: off # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page.
#
# # Output escaping settings
# escaping_strategy: bc # Determines how variables are made available to templates. Accepted values: bc, both, on, off. The value off deactivates escaping completely and gives a slight boost.
# escaping_method: ESC_ENTITIES # Function or helper used for escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, ESC_JS_NO_ENTITIES.
#
# # Routing settings
# suffix: . # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on.
# no_script_name: off # Enable the front controller name in generated URLs
#
# # Validation settings, used for error generation by the Validation helper
# validation_error_prefix: ' &darr;&nbsp;'
# validation_error_suffix: ' &nbsp;&darr;'
# validation_error_class: form_error
# validation_error_id_prefix: error_for_
#
# # Cache settings
# cache: off # Enable the template cache
# etag: on # Enable etag handling
#
# # Logging and debugging settings
# web_debug: off # Enable the web debug toolbar
# error_reporting: 341 # Determines which events are logged. The default value is E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR = 341
#
# # Assets paths
# rich_text_js_dir: js/tiny_mce
# prototype_web_dir: /sf/prototype
# admin_web_dir: /sf/sf_admin
# web_debug_web_dir: /sf/sf_web_debug
#
# # Helpers included in all templates by default
# standard_helpers: [Partial, Cache, Form]
#
# # Activated modules from plugins or from the symfony core
# enabled_modules: [default]
#
# # Charset used for the response
# charset: utf-8
#
# # Miscellaneous
# strip_comments: on # Remove comments in core framework classes as defined in the core_compile.yml
# autoloading_functions: ~ # Functions called when a class is requested and this it is not already loaded. Expects an array of callables. Used by the framework bridges.
# timeout: 1800 # Session timeout, in seconds
# max_forwards: 5
# path_info_array: SERVER
# path_info_key: PATH_INFO
# url_format: PATH
#
# # ORM
# orm: propel

View File

@@ -0,0 +1,17 @@
default:
http_metas:
content-type: text/html
metas:
title: SOTESHOP - panel administracyjny
robots: index, follow
description: soteshop project
keywords: soteshop, project
language: pl
stylesheets: []
javascripts: []
has_layout: on
layout: layout