Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 11 additions & 11 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# https://editorconfig.org
root = true

# --- Базові налаштування для всіх файлів ---
# --- Базовые настройки для всех файлов ---
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf # Важливо для Docker/DDEV! Примусово ставимо Linux-переклади рядків.
insert_final_newline = true # Git любить порожній рядок наприкінці файлу
trim_trailing_whitespace = true # Видаляє зайві пробіли в кінці рядків під час збереження
end_of_line = lf # Важно для Docker/DDEV! Принудительно ставим Linux-переводы строк.
insert_final_newline = true # Git любит пустую строку в конце файла
trim_trailing_whitespace = true # Удаляет лишние пробелы в конце строк при сохранении

# --- Налаштування для WEB (Frontend) ---
# Для JSON, YAML, JS, HTML часто зручніше 2 пробіли (економить місце на екрані ноутбука)
# --- Настройки для WEB (Frontend) ---
# Для JSON, YAML, JS, HTML часто удобнее 2 пробела (экономит место на экране ноутбука)
[*.{json,yaml,yml,js,css,scss,html}]
indent_size = 2

# --- Налаштування для PHP (Backend) ---
# Стандарт PSR-12 вимагає 4 пробіли
# --- Настройки для PHP (Backend) ---
# Стандарт PSR-12 требует 4 пробела
[*.php]
indent_size = 4

# --- Налаштування для Smarty ---
# Зазвичай у CMS використовують 4 пробіли (як у PHP) або таби.
# Ставимо 4 пробіли для сумісності.
# --- Настройки для Smarty ---
# Обычно в CMS используют 4 пробела (как в PHP) или табы.
# Ставим 4 пробела для совместимости.
[*.{tpl,tpl.php}]
indent_size = 4

Expand Down
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ about: Створіть звіт, щоб допомогти нам покращ

## Повідомлення про проблему

> **Проблема безпеки?** Не публікуйте вразливості, секрети або дані користувачів у відкритому issue. Надішліть чутливий звіт через [приватний канал GitHub Security Advisories](https://github.com/MAX-IT-Tech/OkayCMS/security/advisories/new).

### Опис

Короткий опис проблеми.
Expand All @@ -27,4 +29,4 @@ about: Створіть звіт, щоб допомогти нам покращ

### Оточення

Версія OkayCMS, версія php, версія mysql, версія Apache/Nginx, браузер тощо. Будь-яка корисна інформація.
Версія OkayCMS, версія php, версія mysql, версія Apache/Nginx, браузер тощо. Будь-яка корисна інформація.
26 changes: 16 additions & 10 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@ name: Security Scan
on:
push:
branches:
- develop
- main
- "fix/**"
- "feat/**"
- "test/**"
- "chore/**"
- "**"
pull_request:
branches:
- develop
- main
- master
- "**"
workflow_dispatch:

permissions:
Expand All @@ -25,6 +18,8 @@ jobs:
runs-on: ubuntu-latest
env:
GITLEAKS_VERSION: "8.30.1"
PUBLIC_BASE_TAG: "4.6.0"
PUBLIC_BASE_SHA: "bd959404593aaa80d488c03dc128b9364bca1b57"

steps:
- name: Checkout code
Expand All @@ -45,7 +40,18 @@ jobs:
sudo install -m 0755 /tmp/gitleaks /usr/local/bin/gitleaks
gitleaks version

- name: Scan for secrets
- name: Verify public baseline
if: github.repository == 'MAX-IT-Tech/OkayCMS'
run: |
git fetch --no-tags origin "refs/tags/${PUBLIC_BASE_TAG}:refs/tags/${PUBLIC_BASE_TAG}"
test "$(git rev-parse "${PUBLIC_BASE_TAG}^{commit}")" = "${PUBLIC_BASE_SHA}"

- name: Scan commits since public baseline
if: github.repository == 'MAX-IT-Tech/OkayCMS'
run: gitleaks git --redact --verbose --log-opts="--full-history ${PUBLIC_BASE_TAG}..HEAD" .

- name: Scan full private history
if: github.repository != 'MAX-IT-Tech/OkayCMS'
run: gitleaks detect --source . --redact --verbose

semgrep:
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
/vendor/
/cache/
!/cache/**/.keep_folder
# DDEV: track .ddev/config.yaml and commands/; ignore generated files via .ddev/.gitignore
/.devcontainer/
.phpunit.result.cache
/var/phpstan
/var/release-packages/
# PHPStan probe config (dev/scripts/phpstan-without-ign-mig-01.sh)
/phpstan.neon.probe.*
# Local PHPStan / probe scratch under var/ (not part of app data)
/var/phpstan-probe-*.json
Expand All @@ -24,10 +22,10 @@
# Ignoring local configuration files
/config/config.local.php
/design/*/lang/local.*.php
.cursor/mcp.json
#design/*/css/theme-settings.css
# /robots.txt - Usually kept in Git, uncomment if it's unique to the dev
# Ignoring all modules
/Okay/Modules/*
!/Okay/Modules/AGENTS.md
# Excluding native core modules
!/Okay/Modules/OkayCMS/
# Ignoring all log contents
Expand All @@ -37,8 +35,10 @@
!/Okay/log/**/
# Ignoring userfiles inside backend/files subfolders
/backend/files/*/*
###backend/files/*/*.*
# Keeping placeholder folders for structure preservation
!/backend/files/*/.keep_folder
###!backend/files/*/.keep_folder
# Ignoring user files (frontend)
# Closing all frontend files
/files/*
Expand Down Expand Up @@ -68,6 +68,7 @@
!*.gitignore
backend/files/export/export.csv
var/phpstan/resultCache.php

### macOS specific ignores ###
# General
.DS_Store
Expand Down
1 change: 0 additions & 1 deletion .prodignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

.codex/
.cursor/
.ddev/
.devcontainer/
.github/
.history/
Expand Down
8 changes: 1 addition & 7 deletions .semgrepignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,5 @@ design/okay_shop/js/jquery-*.js
design/okay_shop/js/select2*.js
design/okay_shop/js/swiper*.js

# Local environment state
.claude/
.codex/
.compound-engineering/
.cursor/
.ddev/
.devcontainer/
# Local test state
.phpunit.cache/
5 changes: 3 additions & 2 deletions 1DB_changes/okay_clean.sql
Original file line number Diff line number Diff line change
Expand Up @@ -140764,6 +140764,7 @@ INSERT INTO `ok_settings` (`setting_id`, `param`, `value`) VALUES
(115, 'watermark_offset_y', '50'),
(120, 'comparison_count', '5'),
(121, 'is_preorder', '1'),
(122, 'use_backorder_status', '0'),
(132, 'posts_num', '8'),
(133, 'image_sizes', '200x200|60x60|50x50|219x172|162x77|183x183|35x35|400x300|100x100|1000x1000|800x600|300x300|87x72|330x300|77x77|165x90|150x150|300x120|55x55|250x250|75x75|70x70|360x360|1170x390|465x265|250x100|420x250|160x65|1170x420|120x60|50x40|420x260|420x245|420x225|420x220|26x26|32x32|30x30|80x80|180x180|150x130|120x100|40x30|40x25|20x20|24x24|160x60|90x90|23x23|120x75|480x220|120x80|120x70|120x65|100x60|100x50|1170x380|1170x360|1170x400|900x320|1170x700|1200x700|900x700|500x320|22x22|1067x400|400x350|65x65|80x25|80x30|1100x600|800x800|450x240|320x500|340x240|380x240|330x330'),
(134, 'products_image_sizes', '200x200|50x50|1800x1200w|600x340|75x75|330x300|800x600|55x55|300x120|35x35|300x200|150x150|110x150|110x130|100x100|70x70|65x65|800x600w|80x80|200x150|40x40|800x550|300x180|800x500|125x125|120x120|1200x1000w|60x60|180x150|300x150|1800x1800w|600x800|700x800'),
Expand All @@ -140788,8 +140789,8 @@ INSERT INTO `ok_settings` (`setting_id`, `param`, `value`) VALUES
(166, 'site_favicon_version', '001'),
(167, 'site_logo_version', '014'),
(168, 'multilang_logo', '0'),
(169, 'social_share_theme', 'flat'),
(170, 'sj_shares', 'a:4:{i:0;s:7:\"twitter\";i:1;s:8:\"facebook\";i:2;s:10:\"googleplus\";i:3;s:8:\"linkedin\";}'),
(169, 'social_share_theme', 'default'),
(170, 'sj_shares', 'a:4:{i:0;s:8:\"copy_url\";i:1;s:8:\"facebook\";i:2;s:9:\"x-twitter\";i:3;s:8:\"linkedin\";}'),
(197, 'site_email', 'support@okay-cms.com'),
(198, 'site_phones', 'a:1:{i:0;s:16:\"+380 44 290 3833\";}'),
(199, 'site_social_links', 'a:2:{i:0;s:28:\"https://facebook.com/okaycms\";i:1;s:27:\"https://twitter.com/okaycms\";}'),
Expand Down
Loading