1
0
generated from mirzaev/pot

3 Commits
1.0.0 ... 1.0.2

Author SHA1 Message Date
53f8f3871c fixed service 2025-03-06 05:51:16 +07:00
d2c86a6222 fixed settings 2025-03-06 05:49:58 +07:00
830ba25b8d production mode 2025-03-06 05:36:38 +07:00
6 changed files with 243 additions and 246 deletions

View File

@@ -5,7 +5,7 @@ Wants=network.target
After=syslog.target network-online.target After=syslog.target network-online.target
[Service] [Service]
ExecStart=sudo -u www-data /usr/bin/php /var/www/project/mirzaev/parser_from_interneturok/system/public/telegram.php ExecStart=sudo -u www-data /usr/bin/php /var/www/parser_from_interneturok/mirzaev/parser_from_interneturok/system/public/telegram.php
PIDFile=/var/run/php/parser_from_interneturok-telegram.pid PIDFile=/var/run/php/parser_from_interneturok-telegram.pid
RemainAfterExit=no RemainAfterExit=no
RuntimeMaxSec=3600s RuntimeMaxSec=3600s

View File

@@ -175,7 +175,7 @@ final class interneturok extends core
if (!empty($accounts)) { if (!empty($accounts)) {
// Initialized accounts // Initialized accounts
/* if (shuffle($accounts)) { */ if (shuffle($accounts)) {
// Shuffled accounts // Shuffled accounts
foreach ($accounts as $account) { foreach ($accounts as $account) {
@@ -319,7 +319,7 @@ final class interneturok extends core
continue; continue;
} }
} }
/* } */ }
} }
// Exit (fail) // Exit (fail)
@@ -642,7 +642,8 @@ final class interneturok extends core
); );
return $this->browser->sendAsync($request) return $this->browser->sendAsync($request)
->then(function ($response) use ($homework) { ->then(
function ($response) use ($homework) {
// Sended the request and received the response // Sended the request and received the response
// Initializing the lesson // Initializing the lesson
@@ -833,7 +834,8 @@ final class interneturok extends core
// Exit (fail) // Exit (fail)
return false; return false;
} }
}); }
);
} }
// Exit (fail) // Exit (fail)

View File

@@ -206,7 +206,7 @@ final class parser extends core
$parser = new interneturok(); $parser = new interneturok();
// Parsing homework files // Parsing homework files
$files = $parser->parse(subject: $subject, grade: $grade, waiting: 0); $files = $parser->parse(subject: $subject, grade: $grade, waiting: 3);
if (!empty($files)) { if (!empty($files)) {
// Initialized homework files // Initialized homework files

View File

@@ -32,9 +32,6 @@ define('VIEWS', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'view
// Initializing path to the directory of settings // Initializing path to the directory of settings
define('SETTINGS', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'settings'); define('SETTINGS', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'settings');
// Initializing system settings
require SETTINGS . DIRECTORY_SEPARATOR . 'system.php';
// Initializing path to the directory of the storage // Initializing path to the directory of the storage
define('STORAGE', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'storage'); define('STORAGE', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'storage');

View File

@@ -5,5 +5,7 @@
*/ */
return [ return [
1053489457 // Arsen Mirzaev Tatyano-Muradovich @redloser 1053489457, // Arsen Mirzaev Tatyano-Muradovich @redloser
6831961323, // @IU_K1LLER777
1142807069 // @kysakapro
]; ];

View File

@@ -1,4 +0,0 @@
<?php
// Initializing default theme for the views templater
define('THEME', 'default');