1 Commits

Author SHA1 Message Date
ae63ceac52 FIXED ANDROID DEAD SCREENS. PIZDEC 2026-04-27 23:49:19 +05:00
7 changed files with 120 additions and 5 deletions

View File

@@ -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",

View File

@@ -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

View File

@@ -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
)
)

View File

@@ -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

View File

@@ -20,7 +20,8 @@ body {
}
>article#rofls {
z-index: 50;
z-index: 4000;
position: relative;
width: 100vw;
height: 32px;
display: flex;

View File

@@ -12,8 +12,6 @@ main {
align-items: center;
transition: 0s;
overflow-x: hidden;
overflow-y: scroll;
overscroll-behavior: none;
&:not(:has(*)) {
display: none;

View File

@@ -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); */