From ae63ceac52cba39ab82aa4cb0a755aafaac23db6 Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Mon, 27 Apr 2026 23:49:19 +0500 Subject: [PATCH] FIXED ANDROID DEAD SCREENS. PIZDEC --- composer.json | 2 +- kodorvan/site/system/controllers/project.php | 39 ++++++++++- kodorvan/site/system/public/damp.txt | 70 +++++++++++++++++++ kodorvan/site/system/public/requests.txt | 5 ++ .../themes/default/css/elements/rofls.css | 3 +- .../system/public/themes/default/css/main.css | 2 - .../public/themes/default/css/system.css | 4 ++ 7 files changed, 120 insertions(+), 5 deletions(-) create mode 100644 kodorvan/site/system/public/damp.txt create mode 100644 kodorvan/site/system/public/requests.txt diff --git a/composer.json b/composer.json index c195826..2a7de39 100755 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "require": { "php": "^8.5", "ext-blake3": "^0.1", - "mirzaev/minimal": "^3.8", + "mirzaev/minimal": "^3.10.4", "mirzaev/baza": "^3.4", "mirzaev/languages": "^1", "twig/twig": "^3.2", diff --git a/kodorvan/site/system/controllers/project.php b/kodorvan/site/system/controllers/project.php index cb66e86..1c53924 100755 --- a/kodorvan/site/system/controllers/project.php +++ b/kodorvan/site/system/controllers/project.php @@ -132,8 +132,15 @@ final class project extends core */ public function request(string $request): null { + // Debugging + date_default_timezone_set('Asia/Yekaterinburg'); + file_put_contents('requests.txt', '[' . date('Y.m.d H:i:s') . '] Заказ с сайта: ' . DOMAIN . "\n", FILE_APPEND); + file_put_contents('requests.txt', print_r($request, true) . "\n", FILE_APPEND); + file_put_contents('requests.txt', print_r($this->request->files, true) . "\n", FILE_APPEND); + if ($this->request->method === method::put) { // PUT + // Initializing the project identifier (temporary solution) $identifier = blake3($request, 20); @@ -141,7 +148,7 @@ final class project extends core $path = STORAGE . DIRECTORY_SEPARATOR . 'projects' . DIRECTORY_SEPARATOR . $identifier; // Initializing the project storage directory in the storage - if (!file_exists($path)) mkdir($path, 0775, true); + if (!file_exists($path)) mkdir($path, 0775, true); // Declaring the project storage files registry $files = []; @@ -197,6 +204,36 @@ final class project extends core // Sending the message $mail->send(); } catch (mail_exception $exception) { + file_put_contents('requests.txt', '[' . date('Y.m.d H:i:s') . "] ПИЗДЕЦ\n", FILE_APPEND); + file_put_contents('requests.txt', '[' . date('Y.m.d H:i:s') . ']' . $exception->getMessage() . "\n", FILE_APPEND); + + try { + // Initializing the mail server + $mail = new mail(true); + + $mail->setLanguage('ru'); + $mail->CharSet = mail::CHARSET_UTF8; + $mail->isSMTP(); + $mail->Host = MAIL['host']; + $mail->SMTPAuth = true; + $mail->Username = MAIL['sender']['mail']; + $mail->Password = MAIL['sender']['password']; + $mail->SMTPSecure = mail::ENCRYPTION_SMTPS; + $mail->Port = 465; + $mail->setFrom(MAIL['sender']['mail'], MAIL['sender']['name']); + $mail->addAddress(MAIL['receiver']['mail'], MAIL['receiver']['name']); + + // The message + $mail->isHTML(true); + $mail->Subject = empty($request['project']['name']) ? 'Заказ без документов' : 'Заказ без документов: ' . $request['project']['name']; + $mail->Body = $this->view->render('messages/request.html', $request); + + // Sending the message + $mail->send(); + } catch (mail_exception $exception) { + file_put_contents('requests.txt', '[' . date('Y.m.d H:i:s') . "] ПИЗДЕЦ БЕЗ КАРТИНОК\n", FILE_APPEND); + file_put_contents('requests.txt', '[' . date('Y.m.d H:i:s') . ']' . $exception->getMessage() . "\n", FILE_APPEND); + } } // Sending response diff --git a/kodorvan/site/system/public/damp.txt b/kodorvan/site/system/public/damp.txt new file mode 100644 index 0000000..1b8267e --- /dev/null +++ b/kodorvan/site/system/public/damp.txt @@ -0,0 +1,70 @@ +Array +( + [file_0] => Array + ( + [name] => 280a5d18823508efac9d904834abd236.jpg + [full_path] => 280a5d18823508efac9d904834abd236.jpg + [type] => image/jpeg + [tmp_name] => /tmp/phpefc1op03dpuv2Cyh9TO + [error] => 0 + [size] => 45917 + ) + +) + +Array +( + [file_0] => Array + ( + [name] => Screenshot_2025-07-27-09-18-09-856_app.revanced.android.youtube.png + [full_path] => Screenshot_2025-07-27-09-18-09-856_app.revanced.android.youtube.png + [type] => image/png + [tmp_name] => /tmp/php0q6v9gdl94r9dK4IZRI + [error] => 0 + [size] => 426274 + ) + +) + +Array +( + [file_0] => Array + ( + [name] => Screenshot_2025-07-27-09-18-09-856_app.revanced.android.youtube.png + [full_path] => Screenshot_2025-07-27-09-18-09-856_app.revanced.android.youtube.png + [type] => image/png + [tmp_name] => /tmp/php3tt2g6o82blucdzMXgO + [error] => 0 + [size] => 426274 + ) + +) + +Array +( + [file_0] => Array + ( + [name] => TXRhM8WR8gM.jpg + [full_path] => TXRhM8WR8gM.jpg + [type] => image/jpeg + [tmp_name] => /tmp/phpacgh5ki1libqfq6kxHL + [error] => 0 + [size] => 1114889 + ) + +) + +Array +( + [file_0] => Array + ( + [name] => 20250928_125222.jpg + [full_path] => 20250928_125222.jpg + [type] => image/jpeg + [tmp_name] => /tmp/php4v03e60cr1ds932BVDM + [error] => 0 + [size] => 278597 + ) + +) + diff --git a/kodorvan/site/system/public/requests.txt b/kodorvan/site/system/public/requests.txt new file mode 100644 index 0000000..59fac01 --- /dev/null +++ b/kodorvan/site/system/public/requests.txt @@ -0,0 +1,5 @@ +[2026.04.27 23:16:08] Заказ с сайта: kodorvan.tech +[2026.04.27 23:23:25] Заказ с сайта: kodorvan.tech +[2026.04.27 23:23:28] Заказ с сайта: kodorvan.tech +[2026.04.27 23:30:00] Заказ с сайта: kodorvan.tech +[2026.04.27 23:46:17] Заказ с сайта: kodorvan.tech diff --git a/kodorvan/site/system/public/themes/default/css/elements/rofls.css b/kodorvan/site/system/public/themes/default/css/elements/rofls.css index f262f20..d12cc51 100755 --- a/kodorvan/site/system/public/themes/default/css/elements/rofls.css +++ b/kodorvan/site/system/public/themes/default/css/elements/rofls.css @@ -20,7 +20,8 @@ body { } >article#rofls { - z-index: 50; + z-index: 4000; + position: relative; width: 100vw; height: 32px; display: flex; diff --git a/kodorvan/site/system/public/themes/default/css/main.css b/kodorvan/site/system/public/themes/default/css/main.css index aa92530..41e4007 100755 --- a/kodorvan/site/system/public/themes/default/css/main.css +++ b/kodorvan/site/system/public/themes/default/css/main.css @@ -12,8 +12,6 @@ main { align-items: center; transition: 0s; overflow-x: hidden; - overflow-y: scroll; - overscroll-behavior: none; &:not(:has(*)) { display: none; diff --git a/kodorvan/site/system/public/themes/default/css/system.css b/kodorvan/site/system/public/themes/default/css/system.css index 0922d21..792acfd 100755 --- a/kodorvan/site/system/public/themes/default/css/system.css +++ b/kodorvan/site/system/public/themes/default/css/system.css @@ -43,7 +43,11 @@ body { margin: unset; width: 100vw; + height: 100%; + -webkit-overflow-scrolling: touch; overflow-x: hidden; + overflow-y: scroll; + overscroll-behavior: none; /* background: var(--background-color, #fff); background: var(--background-gradient); */