timezone refactor

This commit is contained in:
mercury
2023-04-10 21:44:05 +04:00
parent 7c4a4964fd
commit 29814f9d04
5 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
date_default_timezone_set(getenv('TZ'));
require __DIR__ . '/timezone.php';
// require __DIR__ . '/debug.php';
require __DIR__ . '/bot.php';
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
date_default_timezone_set(getenv('TZ'));
require __DIR__ . '/timezone.php';
// bot
require __DIR__ . '/config.php';
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
date_default_timezone_set(getenv('TZ'));
require __DIR__ . '/timezone.php';
// require __DIR__ . '/debug.php';
require __DIR__ . '/bot.php';
+3
View File
@@ -0,0 +1,3 @@
<?php
date_default_timezone_set(getenv('TZ'));
+2 -2
View File
@@ -1,7 +1,5 @@
<?php
ini_set('memory_limit', '256M');
function elzw(string $str)
{
global $text, $load;
@@ -283,6 +281,8 @@ function download($index)
file_put_contents($source[$index]['dest'], file_get_contents($source[$index]['source']));
}
ini_set('memory_limit', '256M');
require __DIR__ . '/timezone.php';
require __DIR__ . '/debug.php';
require __DIR__ . '/bot.php';
require __DIR__ . '/config.php';