π PHP CODERS UZB π
Photo
Π‘Π΅Π³ΠΎΠ΄Π½Ρ ΠΌΠΎΠΉ Π΄Π΅Π½Ρ ΡΠΎΠΆΠ΄Π΅Π½ΠΈΡ π
<?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();
$ricon = array('01d'=>'π','02d'=>'π€','03d'=>'βοΈ','04d'=>'π₯','09d'=>'π¦','10d'=>'π§','11d'=>'β','13d'=>'βοΈ','50d'=>'π¨','01n'=>'π','02n'=>'βοΈ','03n'=>'βοΈ','04n'=>'π©','09n'=>'π§','10n'=>'π§','11n'=>'β','13n'=>'βοΈ','50n'=>'π¨');
$obuhavo = json_decode(file_get_contents("http://api.openweathermap.org/data/2.5/weather?q=Qarshi,UZ&units=metric&appid=a9d86a9dc54f8caf39ac424735ffc2e6"),true);
$temp = $obuhavo['main']['temp'];
$icon = $obuhavo['weather'][0]['icon'];
$time = date("H:i",strtotime("2 hour"));
$soat = date("H:i",strtotime("2 hour"));
$kun = date("d.m.Y",strtotime("2 hour"));
$kunm=date("d",strtotime("2 hour"));
$yil = date("Y",strtotime("2 hour"));
$kunlar = date("d",strtotime("2 hour"));
$kun = str_replace(["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"], $kun);
$soat= str_replace('1', 'βΆ', $soat);
$soat = str_replace('2', 'β·', $soat);
$soat = str_replace('3', 'βΈ', $soat);
$soat = str_replace('4', 'βΉ', $soat);
$soat = str_replace('5', 'βΊ', $soat);
$soat = str_replace('6', 'β»', $soat);
$soat = str_replace('7', 'βΌ', $soat);
$soat = str_replace('8', 'β½', $soat);
$soat = str_replace('9', 'βΎ', $soat);
$soat = str_replace('0', 'βΏ', $soat);
$kunr = date('z',strtotime('0 hour'));
$i = 112;
$m2 = $i-$kunr;
$yil = str_replace(["2020","2021","2022","2023","2024","2025"],["2020","2021","2022","2023","2024","2025"], $yil);
$kunlar = str_replace(["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"], $kunlar);
$okun=date("n");
$oynoms = "1Yanvar1 2Fevral2 3Mart3 4Aprel4 5May5 6Iyun6 7Iyul7 8Avgust8 9Sentabr9 10Oktabr10 11Noyabr11 12Dekabr12";
$ex7 = explode("$okun",$oynoms);
$oy = "$ex7[1]";
$input = ["Π’ΡΡΠ΄Π½ΡΠ΅ Π΄ΠΎΡΠΎΠ³ΠΈ ΡΠ°ΡΡΠΎ Π²Π΅Π΄ΡΡ ΠΊ ΠΏΡΠ΅ΠΊΡΠ°ΡΠ½ΡΠΌ ΠΌΠ΅ΡΡΠ°ΠΌ...π€ | $soat"];
$rand=array_rand($input);
$bio="$input[$rand]";
$nik = ["Κα΄xα΄ΙͺΚα΄Κ | $soat"];
$nikrand=array_rand($nik);
$niktxt="$nik[$nikrand]";
$MadelineProto->account->updateProfile(['first_name'=>"
$niktxt ",'about'=>"$bio "]);
$Bool = $MadelineProto->account->updateStatus(['offline' => false ]);
$vaqt = date('H:i', strtotime('2 hour'));
$logo = [""];
$logorand=array_rand($logo);
$logopic="$logo[$logorand]";
file_put_contents("photo.jpg",file_get_contents($logopic));
$Rasm = $MadelineProto->photos->updateProfilePhoto(['file' => "photo.jpg" ]);
if($Rasm){
$info = $MadelineProto->get_full_info('me');
$inputPhoto = ['_' => 'inputPhoto', 'id' => $info['User']['photo']['photo_id'], 'access_hash' => $info['User']['access_hash'], 'file_reference' => 'bytes'];
$deletePhoto = $MadelineProto->photos->deletePhotos(['id'=>[$inputPhoto]]);
}
?>
@phpcodersuzb
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();
$ricon = array('01d'=>'π','02d'=>'π€','03d'=>'βοΈ','04d'=>'π₯','09d'=>'π¦','10d'=>'π§','11d'=>'β','13d'=>'βοΈ','50d'=>'π¨','01n'=>'π','02n'=>'βοΈ','03n'=>'βοΈ','04n'=>'π©','09n'=>'π§','10n'=>'π§','11n'=>'β','13n'=>'βοΈ','50n'=>'π¨');
$obuhavo = json_decode(file_get_contents("http://api.openweathermap.org/data/2.5/weather?q=Qarshi,UZ&units=metric&appid=a9d86a9dc54f8caf39ac424735ffc2e6"),true);
$temp = $obuhavo['main']['temp'];
$icon = $obuhavo['weather'][0]['icon'];
$time = date("H:i",strtotime("2 hour"));
$soat = date("H:i",strtotime("2 hour"));
$kun = date("d.m.Y",strtotime("2 hour"));
$kunm=date("d",strtotime("2 hour"));
$yil = date("Y",strtotime("2 hour"));
$kunlar = date("d",strtotime("2 hour"));
$kun = str_replace(["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"], $kun);
$soat= str_replace('1', 'βΆ', $soat);
$soat = str_replace('2', 'β·', $soat);
$soat = str_replace('3', 'βΈ', $soat);
$soat = str_replace('4', 'βΉ', $soat);
$soat = str_replace('5', 'βΊ', $soat);
$soat = str_replace('6', 'β»', $soat);
$soat = str_replace('7', 'βΌ', $soat);
$soat = str_replace('8', 'β½', $soat);
$soat = str_replace('9', 'βΎ', $soat);
$soat = str_replace('0', 'βΏ', $soat);
$kunr = date('z',strtotime('0 hour'));
$i = 112;
$m2 = $i-$kunr;
$yil = str_replace(["2020","2021","2022","2023","2024","2025"],["2020","2021","2022","2023","2024","2025"], $yil);
$kunlar = str_replace(["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"], $kunlar);
$okun=date("n");
$oynoms = "1Yanvar1 2Fevral2 3Mart3 4Aprel4 5May5 6Iyun6 7Iyul7 8Avgust8 9Sentabr9 10Oktabr10 11Noyabr11 12Dekabr12";
$ex7 = explode("$okun",$oynoms);
$oy = "$ex7[1]";
$input = ["Π’ΡΡΠ΄Π½ΡΠ΅ Π΄ΠΎΡΠΎΠ³ΠΈ ΡΠ°ΡΡΠΎ Π²Π΅Π΄ΡΡ ΠΊ ΠΏΡΠ΅ΠΊΡΠ°ΡΠ½ΡΠΌ ΠΌΠ΅ΡΡΠ°ΠΌ...π€ | $soat"];
$rand=array_rand($input);
$bio="$input[$rand]";
$nik = ["Κα΄xα΄ΙͺΚα΄Κ | $soat"];
$nikrand=array_rand($nik);
$niktxt="$nik[$nikrand]";
$MadelineProto->account->updateProfile(['first_name'=>"
$niktxt ",'about'=>"$bio "]);
$Bool = $MadelineProto->account->updateStatus(['offline' => false ]);
$vaqt = date('H:i', strtotime('2 hour'));
$logo = [""];
$logorand=array_rand($logo);
$logopic="$logo[$logorand]";
file_put_contents("photo.jpg",file_get_contents($logopic));
$Rasm = $MadelineProto->photos->updateProfilePhoto(['file' => "photo.jpg" ]);
if($Rasm){
$info = $MadelineProto->get_full_info('me');
$inputPhoto = ['_' => 'inputPhoto', 'id' => $info['User']['photo']['photo_id'], 'access_hash' => $info['User']['access_hash'], 'file_reference' => 'bytes'];
$deletePhoto = $MadelineProto->photos->deletePhotos(['id'=>[$inputPhoto]]);
}
?>
@phpcodersuzb
π PHP CODERS UZB π
https://dostonbek.app.tc
Hamma uchun tekin xosting xizmati goo tezda kiramiz π€
π2
π PHP CODERS UZB π
https://dostonbek.app.tc
π Bu shunchaki xostingni frontend qismi. Bu faqat ko'rinish uchun. Albbatta yuqorida hazillashgan edim.
β Ro'yxatdan o'tib ham bo'lmaydi!
Qaley zor qilibmanmi π€£
β Ro'yxatdan o'tib ham bo'lmaydi!
Qaley zor qilibmanmi π€£
π560β€βπ₯1
Uploader.Files.php
4.3 KB
Audio β
(.mp3 .m4a)
Voice β (.opus .oga .ogg)
Photo β (.png .jpg)
Video β (.mp4 .mkv)
Video Note β (.mp4)
Sticker β (.webm .png)
Animatsion β (.gif .mp4)
Document β (.php & boshqalar)
Quyidagidan Maximum 20MB'Gacha BoΚ»lgan Fayllarni Hostga Yuklab Beruvchi Kodlari Foydasi Tegib Qolar Dep OΚ»ylayman
@phpcodersuzb
Voice β (.opus .oga .ogg)
Photo β (.png .jpg)
Video β (.mp4 .mkv)
Video Note β (.mp4)
Sticker β (.webm .png)
Animatsion β (.gif .mp4)
Document β (.php & boshqalar)
Quyidagidan Maximum 20MB'Gacha BoΚ»lgan Fayllarni Hostga Yuklab Beruvchi Kodlari Foydasi Tegib Qolar Dep OΚ»ylayman
@phpcodersuzb
@AloneCoders πΊ