This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Jamshidbek Akhlidinov | |
* 18 - 6 2025 16:42:43 | |
* https://ustadev.uz | |
* https://github.com/JamshidbekAkhlidinov | |
*/ | |
namespace app\modules\admin\controllers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sana | |
DATE=$(date +"%Y-%m-%d") | |
# Papkalar | |
BACKUP_DIR="/mnt/OSPanel/domains/backups" | |
DB_NAME="dbname" | |
DB_USER="ustadev" | |
DB_PASS="ustadev" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!file_exists('madeline.php')) { | |
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); | |
} | |
include 'madeline.php'; | |
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); | |
$MadelineProto->start(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TerminalColors | |
{ | |
// Matn ranglari | |
public const TEXT_BLACK = "\033[30m"; | |
public const TEXT_RED = "\033[31m"; | |
public const TEXT_GREEN = "\033[32m"; | |
public const TEXT_YELLOW = "\033[33m"; | |
public const TEXT_BLUE = "\033[34m"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
private function checkChannel() | |
{ | |
$channels = KinoBotChannel::find() | |
->andWhere([ | |
'status' => StatusEnum::ACTIVE | |
]) | |
->all(); | |
$channel_arr_status = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function clearBetweenOnText($text) | |
{ | |
$array = explode(" ", $text); | |
$ClearArray = array_filter($array, function ($value) { | |
return !empty(trim($value)); | |
}); | |
$arrayValues = array_values($ClearArray); | |
return implode(" ", $arrayValues); |