Commit Graph

765 Commits

Author SHA1 Message Date
Kirik 93dc90ce31 Remove consent header from form checkbox, keep only in explanations section
- Remove 'СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ' header from privacy consent checkbox in form
- Keep only 'Я выражаю своё согласие на обработку персональных данных' text
- Header remains in 'Пояснения к форме' section for clarity
- Update CHANGES.md with complete documentation of today's work
2025-11-11 09:32:44 +01:00
Kirik 2510dc9110 Update plan page: remove Moscow region, simplify conditions, update text
- Remove 'Московскую область' from trip description
- Replace intro text with 'Хотите присоединится к поездке?...'
- Remove 'Поездки без дронов' section and custom trip proposal text
- Keep only 'Дронослёты' section with 5-day deadline
- Add consent header in explanations section
2025-11-10 20:58:19 +01:00
Kirik 7bacf51dd1 Add custom file upload button with Russian label 'Выбрать файл'
- Replace standard browser file input with custom styled button
- Add blue button label 'Выбрать файл' instead of 'Choose File'
- Display selected filename with checkmark after selection
- Hide default file input element
2025-11-10 20:06:24 +01:00
Kirik 48b8bc3285 Fix December trip image URL to S3 link 2025-11-10 19:41:36 +01:00
Kirik 85d39db6bc Update plan page content with form improvements
- Change field label from 'Имя' to 'Фамилия, имя'
- Make phone field required (add * and required attribute)
- Update drone flight conditions section title to 'Дронослёты'
- Change submission deadline from 7 to 5 days
- Add detailed departure time info with location dependency
- Update BVS field label with new text for registration numbers
- Add PDF file upload for drone registration notice
- Update trip period label from 'Выберите поездку' to 'Выберите мероприятие'
- Add consent header 'СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ' in bold centered
- Update consent text for data processing privacy policy
- Add enctype multipart/form-data for file uploads
2025-11-10 19:27:39 +01:00
Kirik b08063eb1b Update December flights form and trip data
- Update form fields: Change 'Имя' to 'Фамилия, имя', add required phone field
- Add PDF upload for drone registration notice (BVS notice)
- Update trip conditions: Change 'Поездки с полетами дронов' to 'Дронослёты'
- Update submission deadline from 7 days to 5 days for drone flights
- Add detailed time departure info with location dependency
- Update privacy consent text and add centered consent header
- Hide November 2025 flights (set active: false)
- Update December 2025 flights image to winter drone photo
- Add backend validation for phone field and PDF file upload (max 5MB, PDF only)
- Update email notification function for consistent handling
2025-11-10 19:10:07 +01:00
Kirik 5a68ee77b6 Remove 'Предложить свое' option from trip selection dropdown 2025-11-05 16:43:35 +01:00
Kirik a187cd3bf3 Add 'Предложить свое' option to trip selection dropdown 2025-11-05 15:30:07 +01:00
Kirik 2f20c1652a Clean up test webhook marker from plan page 2025-11-05 15:11:29 +01:00
Kirik 6cd8708c16 Test webhook with new domain - check if auto deploy works 2025-11-05 15:02:58 +01:00
Kirik 765b9c5f9f Remove test marker 2025-11-05 14:55:19 +01:00
Kirik 120eec4f4f Test: add 11 to check if deploy is working 2025-11-05 14:52:24 +01:00
Kirik 32d69043f3 Update trips without drones section - combine submission and discussion into one line 2025-11-05 14:30:08 +01:00
Kirik 2cf7237167 Remove 'Свой вариант без БВС' option from trip selection dropdown
This option was displayed in the form dropdown, but users can still suggest custom trips through the 'bvs_number' textarea field.
2025-11-05 14:28:10 +01:00
Kirik 873c397b61 Update calendar to Nov/Dec 2025 and migrate to sleeptrip.ru
- Replace September/October trips with November/December 2025
- Update config.toml baseURL to sleeptrip.ru
- Form options will load dynamically from updated JSON
2025-10-29 00:22:02 +01:00
Kirik 92fd2c18a7 Optimize bg-winter.webp: 2.6MB → ~500KB (1920px width, quality 75) 2025-10-27 17:07:13 +01:00
Kirik 956ce4b8f9 Optimize background image and clean up test content
- Convert DESKTOP_NEW_1.jpg (4.5MB) to DESKTOP_NEW_1.webp (571KB)
- Reduce dimensions from 5418x3070 to 1920x1088
- 87% size reduction for faster page load
- Update config.toml to use optimized WebP background
- Remove test text from map.md page
2025-10-27 17:02:42 +01:00
Kirik f14437c45d Add Security Headers section to deployment guide
- Added section 3.7 with all 6 HTTP security headers
- Includes HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy
- Testing instructions and online validation tools
- Links to detailed SECURITY_HEADERS.md documentation
- Fixed .gitignore to properly allow INFO/Deployment/*.md files
2025-10-27 16:50:55 +01:00
Kirik e26c35e488 Fix ask form and improve .env parsing
- Add AJAX handler to ask.md (same as plan.md)
- Improve load_env_file() to strip inline comments and spaces
- Create ERRORS_COLLECTION.md documenting all 7 error categories
- Fixes white page/JSON display issue in ask form
2025-10-27 16:35:59 +01:00
Kirik f902109b04 Fix plan form: add AJAX submit handler binding
- Add onsubmit handler to plan form
- Form now uses JavaScript fetch instead of standard POST
- Fixes white page issue with JSON response
2025-10-27 15:42:48 +01:00
Kirik 776dbb5e76 Fix forms: return JSON instead of redirect for AJAX compatibility
- send_plan.php: replace redirect with JSON response
- send_ask.php: replace redirect with JSON response
- Fixes white page issue (fetch API doesn't follow redirects)
- Update .gitignore: allow forms folder but protect .env file
2025-10-27 15:35:46 +01:00
Kirik a34a81e0a1 Merge branch 'main' of github.com:reddragon333/ptp 2025-10-26 21:26:57 +01:00
Kirik 2d7ffb9e72 Major updates:
- Fix baseURL to dev.saguaro-cactus.ru
  - Add permissions management scripts
  - Add domain migration tools
  - Fix .env path in forms
  - Update telegram_bot.py for S3 direct upload
2025-10-26 21:12:57 +01:00
Telegram Bot bec2feb35a Синхронизация репозитория 2025-10-26 22:35:55 +03:00
Telegram Bot 3d522fac92 Добавлен новый пост: Test post
🤖 Создано через Telegram бота
2025-10-26 22:27:52 +03:00
reddragon333 654d9abd1b Delete content/post/testovyy-post-20251023.md 2025-10-26 17:12:25 +01:00
Kirik c0ffaa3687 Merge branch 'main' of github.com:reddragon333/ptp 2025-10-26 16:47:26 +01:00
Kirik 60ead4e6d7 Fix forms 404: change action to /forms/ paths 2025-10-26 16:46:28 +01:00
Telegram Bot 4167e36921 Добавлен новый пост: Тестовый пост
🤖 Создано через Telegram бота
2025-10-26 18:31:55 +03:00
manager fae7636795 Test webhook 2025-10-25 12:05:14 +03:00
Kirik 6e8750fe37 Merge branch 'main' of github.com:reddragon333/ptp 2025-10-17 18:01:55 +02:00
Kirik 61a4a42cc4 Добавлен тестовый текст на страницу карты 2025-10-17 17:57:43 +02:00
www-data da2bcec6d6 Добавлен новый пост: Северный ветер
🤖 Создано через Telegram бота
2025-10-06 16:40:11 +03:00
www-data e172c50123 Добавлен новый пост: Поездка выходного дня
🤖 Создано через Telegram бота
2025-09-25 01:18:34 +03:00
www-data 6fc12f81d4 Добавлен новый пост: Дронослёт в июле 2025
🤖 Создано через Telegram бота
2025-09-25 01:13:07 +03:00
www-data f86983cb23 Добавлен новый пост: Дронослёт в июне 2025 года
🤖 Создано через Telegram бота
2025-09-12 00:14:22 +03:00
www-data 8e65c97b93 Добавлен новый пост: Заброшенные карьеры
🤖 Создано через Telegram бота
2025-09-08 23:10:35 +03:00
www-data a467a5507d Добавлен новый пост: Свято-Введенская островная пустынь
🤖 Создано через Telegram бота
2025-09-08 23:04:44 +03:00
www-data 79478eb7dd Удален пост: Свято-Введенская островная пустынь 2025-09-08 22:59:48 +03:00
www-data 24c0806d6c Добавлен новый пост: Свято-Введенская островная пустынь
🤖 Создано через Telegram бота
2025-09-08 22:56:46 +03:00
www-data 2045b08915 Удален пост: Bdhdndnd 2025-09-03 18:40:59 +03:00
www-data c73c8284d7 Удален пост: Dhdhhd 2025-09-03 18:40:52 +03:00
www-data cd5ed17acd Добавлен новый пост: Bdhdndnd
🤖 Создано через Telegram бота
2025-09-03 18:39:58 +03:00
www-data 41a25c4823 Добавлен новый пост: Dhdhhd
🤖 Создано через Telegram бота
2025-09-03 18:29:58 +03:00
Kirik 4eb7a82673 Restore full repository structure with S3 fixes
- Fixed S3 upload functionality with direct HTTP requests
- Added AWS Signature V4 authentication for REG.RU S3
- Resolved telegram bot photo upload issues
- Updated s3_helper.py with proper error handling
- Fixed forms_helper.php function calls
- Updated send_plan_simple.php to return JSON responses
2025-09-03 17:28:07 +02:00
Kirik e0eb2f61f8 Перемещен send_plan_simple.php в правильную папку
- Переместили из /static/api/ в /forms/
- Удален тестовый файл из /static/api/
- Теперь PHP файл будет в той же папке что send_ask.php на сервере
- Hugo /static/ не выполняет PHP код
2025-09-03 15:27:08 +02:00
Kirik f02f7bc27c Переделан send_plan_simple.php по образцу рабочего send_ask.php
- Убраны эмодзи из заголовков на странице plan
- Упрощена структура PHP скрипта как в send_ask.php
- Убрана вся сложная отладка и проверки
- Используется стандартный redirect с параметрами success/error
- Возвращена форма на send_plan_simple.php
2025-09-03 15:25:09 +02:00
Kirik f1e03c20f8 Добавлен тестовый PHP скрипт для диагностики
- test.php - простейший скрипт без зависимостей
- Временно переключена форма на test.php
- Покажет работает ли PHP, структуру файлов и POST данные
- Поможет диагностировать проблему с send_plan_simple.php
2025-09-03 15:19:48 +02:00
Kirik bf1c7e5d02 Улучшена отладка send_plan_simple.php
- Добавлен вывод текущей директории и списка файлов
- Более подробные сообщения об ошибках с контекстом
- Логирование в error_log для диагностики на сервере
- Помогает понять структуру файлов на VPS
2025-09-03 15:14:39 +02:00
Kirik 2957d152a6 Исправлены пути к файлам в send_plan_simple.php
- forms_helper.php и .env находятся в той же папке /api/
- Изменены пути с ../forms/ на ./
- Исправлена ошибка 'forms_helper.php не найден'
2025-09-03 13:21:07 +02:00