Sontop funksiyasi.php
11.5 KB
Bu funksiya o'yin funksiyasi bitta son beradi uni qaysi sondan qancha kichikligi yoki kattaligini aytadi va siz u sonni topishingiz kerak
#reaksiya bosingla
Please open Telegram to view this post
VIEW IN TELEGRAM
π8β€βπ₯2π2
$odam = file_get_contents("referal/$fid.txt");
if($data == "baraban"){
bot('editMessageText',[
'chat_id'=>$ccid,
'message_id'=>$cmid,
'text'=>"<b>π Baraban</b>
<i>Bir marta aylantirish narxi - 7500 so'm (Asosiy balansdan sarflanadi). Yutib olgan pullaringiz asosiy balansingizga tushadi!</i>
<b>π° Asosiy balansingiz: $odam so'm </b>
<b>Barabandagi yutuqlar:</b>
0 so'm | 0 so'm | 0 so'm | 7500 so'm | 15000 so'm",
'parse_mode'=>'html',
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"π Baraban aylantirish - 7500 so'm",'callback_data'=>"baraban75"]],
[['text'=>"βοΈ Orqaga",'callback_data'=>"pulishlaymiza"]],
]
])
]);
}
if($data == "baraban75"){
$rand = array('0','0','0','7500','15000');
$ra = array_rand($rand, 1);
$sum= file_get_contents("referal/$ccid.txt");
if($sum>"7500") {
bot('editMessageText',[
'chat_id'=>$ccid,
'message_id'=>$cmid,
'text'=>"*π Baraban aylantirildi
Siz $rand[$ra] so'm yutib oldingiz va ushbu pullar asosiy balansingizga qo'shildi!*",//Manba @WebCoder_Team
'parse_mode'=>"Markdown",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"βοΈ Orqaga",'callback_data'=>"baraban"]],
]
])
]);
$gett = file_get_contents("referal/$cid2.txt");
$gett -= 7500;
file_put_contents("referal/$cid2.txt", $gett);
$yut = file_get_contents("referal/$cid2.txt");
$yut += $rand[$ra];
file_put_contents("referal/$cid2.txt", $yut);
}else{
bot('editMessageText',[
'chat_id'=>$ccid,
'message_id'=>$cmid,
'text'=>"*π Kechirasiz, hisobingizda yetarli mablag' mavjud emas.*",
'parse_mode'=>"Markdown",
'reply_markup'=>$back_menu
]);
}
}
π #games #function Baraban OΚ»yin Funksiyasi
β οΈ Manba @WebCoder_Team
if($data == "baraban"){
bot('editMessageText',[
'chat_id'=>$ccid,
'message_id'=>$cmid,
'text'=>"<b>π Baraban</b>
<i>Bir marta aylantirish narxi - 7500 so'm (Asosiy balansdan sarflanadi). Yutib olgan pullaringiz asosiy balansingizga tushadi!</i>
<b>π° Asosiy balansingiz: $odam so'm </b>
<b>Barabandagi yutuqlar:</b>
0 so'm | 0 so'm | 0 so'm | 7500 so'm | 15000 so'm",
'parse_mode'=>'html',
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"π Baraban aylantirish - 7500 so'm",'callback_data'=>"baraban75"]],
[['text'=>"βοΈ Orqaga",'callback_data'=>"pulishlaymiza"]],
]
])
]);
}
if($data == "baraban75"){
$rand = array('0','0','0','7500','15000');
$ra = array_rand($rand, 1);
$sum= file_get_contents("referal/$ccid.txt");
if($sum>"7500") {
bot('editMessageText',[
'chat_id'=>$ccid,
'message_id'=>$cmid,
'text'=>"*π Baraban aylantirildi
Siz $rand[$ra] so'm yutib oldingiz va ushbu pullar asosiy balansingizga qo'shildi!*",//Manba @WebCoder_Team
'parse_mode'=>"Markdown",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"βοΈ Orqaga",'callback_data'=>"baraban"]],
]
])
]);
$gett = file_get_contents("referal/$cid2.txt");
$gett -= 7500;
file_put_contents("referal/$cid2.txt", $gett);
$yut = file_get_contents("referal/$cid2.txt");
$yut += $rand[$ra];
file_put_contents("referal/$cid2.txt", $yut);
}else{
bot('editMessageText',[
'chat_id'=>$ccid,
'message_id'=>$cmid,
'text'=>"*π Kechirasiz, hisobingizda yetarli mablag' mavjud emas.*",
'parse_mode'=>"Markdown",
'reply_markup'=>$back_menu
]);
}
}
Please open Telegram to view this post
VIEW IN TELEGRAM
π4π1
Forwarded from Black Coders || Jamoasi (κ―π€κ―|κ―β’|κ― Ξ±ΡΟΞ±ΠΌ ΡΟ
ΡΟΞ±Ξ·ΡΠΊΡ κ―|β’κ―|κ―π₯κ―|κ―β’)
<?php
// Kanal rasmini avtomatik oluvchi funksiya
function fetchChannelImage($channelUrl) {
$html =
file_get_contents($channelUrl); // Kanal sahifasini yuklash
if ($html !== false) {
$doc = new DOMDocument();
libxml_use_internal_errors(true); // Xatolarni o'qishni o'chirish
if ($doc->loadHTML($html)) {
$xpath = new DOMXPath($doc);
$imageSrc = $xpath->query('//meta[@property="og:image"]')->item(0)->getAttribute('content');
return $imageSrc; // Kanal rasmini qaytarish
} else {
return "Xatolik: Sahifa yuklanmadi.";
}
} else {
return "Xatolik: Sahifa yuklanmadi.";
}
}
// Kanal URL manzilini o'zgartiring
$channelUrl = 'https://t.me/QoraCoders_Uz';
$channelImage = fetchChannelImage($channelUrl);
if ($channelImage !== false) {
echo "Kanal rasmi: <img src='$channelImage' alt='Channel Image'>";
} else {
echo "Rasm topilmadi yoki yuklanmadi.";
}
?>
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
QoraCoders Uz | </>
βοΈΔΈanalΞΉΠΌΞΉzga Ρ
Ο
ΡΠ½ ΔΈelΞΉΠ²ΡΞΉz!
π₯Π²ΞΉzda Ρo'ngΞΉ va ΡarqalΠΌagan ΔΈodlar!
============================
π€ Bu kanaldagi super php kodlar har 2-3 haftada kanalga joylanadi!
============================
πΊπΏCreator @Mengaliyev_Adxam
π₯Π²ΞΉzda Ρo'ngΞΉ va ΡarqalΠΌagan ΔΈodlar!
============================
π€ Bu kanaldagi super php kodlar har 2-3 haftada kanalga joylanadi!
============================
πΊπΏCreator @Mengaliyev_Adxam
π5