FAST CODER | PHP TEAM
269 subscribers
278 photos
72 videos
783 files
671 links
🏁Dasturlashga qadam ❗️

💣Backend

💻PHP bo'yicha bepul darslar❗️

👨🏻‍💻 @Rustam_Hikmatullayev

🌐Dasturlashda:
📊5 yillik tajriba
👥50+ shogirt
🤝100+ hamkor
Download Telegram
reklama1.php
19.7 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
rek va prostrmotr.php
21.1 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
Referal.php
16.3 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
QULAYUZ_BOT.php
45.1 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
pul ishla .php
45 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
pul ishlaymiz.php
45 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
ProstmotrBot ].php
93.9 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
pechat.php
5.8 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
onlineee.php
781 B
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
Online test bot .php
24.3 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
Online Magazin .php
3.1 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
online soat.php
1 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
olmos.php
19.6 KB
Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
 <?php
// _______________________________///
// ÷÷÷÷÷÷÷ FAST CODER ÷÷÷÷÷÷÷÷ ///
// ÷÷÷÷÷÷÷÷ PHP TEAM ÷÷÷÷÷÷÷÷ ///
// ÷÷÷÷÷÷÷ @Fast_Coder ÷÷÷÷÷÷÷ ///
// ÷÷÷ @Rustam_Hikmatullayev ÷÷÷ ///
// ______________________________///





ob_start();
define('API_KEY','1218646174:AAFF_bfHkyimSk4BlbAQw7zDlR4ijdaV5_w');
$admin = "554834550";
function up($ch){
return bot('sendChatAction', [
'chat_id' => $ch,
'action' => 'upload_photo',
]);
}
function ty($ch){
return bot('sendChatAction', [
'chat_id' => $ch,
'action' => 'typing',
]);
}
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot".API_KEY."/".$method;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{
return json_decode($res);
}
}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$mid = $message->message_id;
$cid = $message->chat->id;
$tx = $message->text;
$photo_id=$message->photo[1]->file_id;

$joy = file_get_contents("pechat/$cid.joy");
$step = file_get_contents("pechat/$cid.step");

$button = json_encode([
'resize_keyboard'=>true,
'keyboard'=>[
[['text'=>"↖️"],['text'=>"⬆️"],['text'=>"↗️"],],
[['text'=>"↙️"],['text'=>"⬇️"],['text'=>"↘️"],],
]
]);

if($tx == "/start" or $tx == "/help"){
ty($cid);
mkdir("pechat");
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"😊**Salom**, men sizga suratlarga o'z pechatingizni qo'yishizga yordam beraman. Buning uchun oldin sozlab oling...\nIltimos o'z pechat logotipizni fayl ko'rinishida yuboring, rasm emas fayl ko'rinishida!",
'parse_mode'=>'markdown',
]);
file_put_contents("pechat/$cid.step", "logo");
$baza = file_get_contents("pechat.dat");
if(mb_stripos($baza, $cid) !== false){
}else{
file_put_contents("pechat.dat", "$baza\n$cid");
}
}

$doc=$message->document;
$doc_id=$doc->file_id;
if(isset($message->document) and $step == "logo"){
ty($cid);
$url = json_decode(file_get_contents('https://api.telegram.org/bot'.API_KEY.'/getFile?file_id='.$doc_id),true);
$path=$url['result']['file_path'];
$file = 'https://api.telegram.org/file/bot'.API_KEY.'/'.$path;
$type = strtolower(strrchr($file,'.'));
$type=str_replace('.','',$type);
$okey = file_put_contents("pechat/$cid.ph.$type",file_get_contents($file));
if($okey){
file_put_contents("pechat/$cid.step", "joy");
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"**Fayl** yuklab olindi. Endi logotip joylashuvini tanlang.",
'parse_mode'=>'markdown',
'reply_markup'=>$button,
]);
}else{
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"Xatolik #1. Iltimos shu xabarni @UzbekGuy'ga yuboring!",
]);
}
}

if($step == "joy"){
if($tx == "Ortga"){
}else{
ty($cid);
$tx = str_replace("↖️","1",$tx);
$tx = str_replace("⬆️","2",$tx);
$tx = str_replace("↗️","3",$tx);
$tx = str_replace("↙️","4",$tx);
$tx = str_replace("⬇️","5",$tx);
$tx = str_replace("↘️","6",$tx);
file_put_contents("pechat/$cid.joy", $tx);
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"👍Endi bemalol rasmlarni yuborishni boshlashingiz mumkin!",
'parse_mode'=>'markdown',
]);
unlink("pechat/$cid.step");
}
}

if(isset($message->photo) and $joy){
$url = json_decode(file_get_contents('https://api.telegram.org/bot'.API_KEY.'/getFile?file_id='.$photo_id),true);
$path=$url['result']['file_path'];
$file = 'https://api.telegram.org/file/bot'.API_KEY.'/'.$path;
$okey = file_put_contents("pechat/$cid.pic.png",file_get_contents($file));
$type = strtolower(strrchr($file,'.'));
$type=str_replace('.','',$type);
if($okey){
if($type == "jpg") $image = imagecreatefromjpeg("pechat/$cid.pic.png");
else if($type == "png") $image = imagecreatefrompng("pechat/$cid.pic.png");
$image_width = imagesx($image);
$image_height = imagesy($image);
$get = glob("poster/$cid.ph.*");
$tyu= strtolower(strrchr($get[0],'.'));
$tyu=str_replace('.','',$tyu);
if($tyu == "jpg") $logo = imagecreatefromjpeg("pechat/$cid.ph.jpg");
else if($tyu == "png") $logo = imagecreatefrompng("pech
at/$cid.ph.png");
$logo_width = imagesx($logo);
$logo_height = imagesy($logo);
$p = file_get_contents("pechat/$cid.joy");
if($p == "1"){
// tep o'rta
$image_y = $image_height / 100 - 10;
$image_x = $image_width / 2 - 50;
}
else if($p == "2"){
// pas o'rta
$image_x = $image_width / 2 - 50;
$image_y = $image_height - $logo_height;
}
else if($p == "3"){
// chap pas
$image_y = $image_height - $logo_height;
$image_x = 0;
}
else if($p == "4"){
// chap tepa
$image_y = 0;
$image_x = $image_width /100;
}
else if($p == "5"){
// o'ng tepa
$image_y = 0;
$image_x = $image_width - $logo_width;
}
else if($p == "6"){
// o'ng pas
$image_y = $image_height - $logo_height;
$image_x = $image_width - $logo_width;
}
$logo_boyi = $logo_width*2/3+10;
$logo_uzun = $logo_height*2/3+10;
imagecopy($image, $logo, $image_x, $image_y, 0, 0, $logo_boyi, $logo_uzun);
imagedestroy($logo);
imagejpeg($image, "pechat/$cid.pic.png");
imagedestroy($image);
up($cid);
bot('sendPhoto',[
'chat_id'=>$cid,
'photo'=>new CURLFile("pechat/$cid.pic.png"),
'caption'=>"$type 😊Bizni do'stlaringizga taklif qiling. Ze'ro ularga ham bu botni foydasi tegsin!",
]);
unlink("pechat/$cid.pic.png");
unlink("pechat/$cid.step");
}else{
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"Xatolik #2. Iltimos shu xabarni @UzbekGuy'ga yuboring!",
]);
}
}

if($text1 == "/stat"){
$baza = file_get_contents("pechat.dat");
$obsh = substr_count($baza,"\n");
$gruppa = substr_count($baza,"-");
$lichka = $obsh - $gruppa;

bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"📈Bot foydalanuvchilari:\n👤 $lichka odamlar,\n👥 $gruppa guruxlar.\n🕵️Hammasi bo'lib: $obsh\n\n".date("Y-m-d H:i:s", strtotime('5 hour'))."\n\n©2017-".date("Y"),
'parse_mode'=>'markdown',
]);
}
?>

Каналга уланиб олинг:
👉
https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA
<?php
// _______________________________///
// ÷÷÷÷÷÷÷ FAST CODER ÷÷÷÷÷÷÷÷ ///
// ÷÷÷÷÷÷÷÷ PHP TEAM ÷÷÷÷÷÷÷÷ ///
// ÷÷÷÷÷÷÷ @Fast_Coder ÷÷÷÷÷÷÷ ///
// ÷÷÷ @Rustam_Hikmatullayev ÷÷÷ ///
// ______________________________///





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();
$time=date("H:i",strtotime("5 hour"));
$MadelineProto->account->updateProfile(['first_name'=>"$time Coder",'about'=>"👨‍💻Bizning Aniq Vaqt:⌚️ $time "]);
$Bool = $MadelineProto->account->updateStatus(['offline' => false ]);
?>
Forwarded from TTYESI - ТИТЛП - TITLI (A'zamjonova Saodat) via @like
Media is too big
VIEW IN TELEGRAM