2021-09-27 16:40:58
$carlos = json_decode(file_get_contents("data/carlos.json"),1);
$Devs = $carlos['Devcarlos'];
$Devcarlos = $carlos['carlos'];
$carloss = $carlos['carloss'];
$Dev = array("1918338620", "1918338620" );
if($text=="نقل الملكية" and $re){
if(in_array($from_id,$Dev)){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
☆︙عزيزي ← [$name](tg://user?id=$from_id)
☆︙تم تعين المطور الاساسي
",
'reply_to_message_id'=>$message->message_id,
'parse_mode'=>"MarkDown",
]);
$carlos['Devcarlos'] = $re_id;
file_put_contents("data/carlos.json",json_encode($carlos));
exit();
}
}
if($text=="نقل الملكية" or $text=="꙳. نقل الملكية"){
if(in_array($from_id,$Dev)){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
☆︙عزيزي ← [$name](tg://user?id=$from_id)
☆︙الان قم بأرسال ايدي المطور
",
'reply_to_message_id'=>$message->message_id,
'parse_mode'=>"MarkDown",
]);
$carlos['carlos'] = "ok_carlos";
$carlos['carloss'] = "$from_id";
file_put_contents("data/carlos.json",json_encode($carlos));
}
}
if($text and preg_match('/([0-9])/i',$text) and $Devcarlos == "ok_carlos" and $carloss == $from_id){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
☆︙بواسطة ← [$name](tg://user?id=$from_id)
☆︙تم تعين المطور جديد بنجاح
",
'reply_to_message_id'=>$message->message_id,
'parse_mode'=>"MarkDown",
]);
$carlos['Devcarlos'] = $text;
$carlos['carlos'] = "on";
file_put_contents("data/carlos.json",json_encode($carlos));
}
if($text=="حذف المالك الثاني" or $text=="꙳. حذف المالك الثاني"){
if(in_array($from_id,$Dev)){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
☆︙عزيزي ← [$name](tg://user?id=$from_id)
☆︙تم حذف المطور
☆︙تم اعادة المطور الاساسي
",
'reply_to_message_id'=>$message->message_id,
'parse_mode'=>"MarkDown",
]);
$carlos['Devcarlos'] = null;
file_put_contents("data/carlos.json",json_encode($carlos));
}
}
- كود : نقل الملكية
- كتابة : #ءبوايهاب
- المصدر : @C3_CR
- متغير الي يستلم الملكية $Devs
- تخلي
$Dev = array("ايديك", "$Devs" );
متغيرات الازمه
- تغير حقوق يعطل الكود لاتجي تكلي مو شغال
735 viewsedited 13:40