Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP8 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 8.1.0.9
- * @ Author : DeZender
- * @ Release on : 27.10.2023
- * @ Official site : http://DeZender.Net
- *
- */
- function bot($method, $datas = [])
- {
- $url = 'https://api.telegram.org/bot' . TOKEN . '/' . $method;
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($datas));
- $res = curl_exec($ch);
- if (curl_error($ch)) {
- var_dump(curl_error($ch));
- }
- else {
- return json_decode($res);
- }
- }
- function excerpt($phrase, $parts)
- {
- $pieces = explode(' ', $phrase);
- return implode(' ', array_splice($pieces, 0, $parts));
- }
- function get_web_page($url)
- {
- $options = [CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => '', CURLOPT_USERAGENT => 'spider', CURLOPT_AUTOREFERER => true, CURLOPT_CONNECTTIMEOUT => 120, CURLOPT_TIMEOUT => 120, CURLOPT_MAXREDIRS => 10];
- $ch = curl_init($url);
- curl_setopt_array($ch, $options);
- $content = curl_exec($ch);
- curl_close($ch);
- return $content;
- }
- function isAdmin()
- {
- global $userid;
- $admins = file_get_contents('admins.php');
- if (preg_match('/' . $userid . '/', $admins)) {
- return true;
- }
- else {
- return false;
- }
- }
- function sendlcmsg($token, $msg, $url)
- {
- $keyboard = [];
- $keyboard[] = [
- ['text' => '✅ثبت کد لایسنس', 'url' => $url]
- ............................................................................
- .............................................
- ..................
Advertisement
Add Comment
Please, Sign In to add comment