This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getAdminsCount($username,$token){ | |
$html_site = file_get_contents('https://t.me/'.substr($username,1)); | |
$htm = new DOMDocument(); | |
$htm->loadHTML($html_site); | |
$finder = new DomXPath($htm); | |
$classname = 'tgme_page_extra'; | |
$nodes = $finder->query("//*[contains(@class, '$classname')]"); | |
$members = $nodes->item(0)->textContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function doCnvert($text) | |
{ | |
$text = remove_emoji($text); | |
$text = strtolower($text); | |
$result = file_get_contents("http://www.behnevis.com/php/convert.php?farsi=" . urlencode($text) . "&resulttype=json&responsetime=-1"); | |
$res = implode(" ", array_values(json_decode(preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $result), true))); | |
return $res; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// TG: t.me/Pgming | |
$r = false; | |
if(isset($_POST['sbm'])){ | |
$i1e = preg_split("/[\s,.-]+/", $_POST['i1']); | |
$i2e = preg_split("/[\s,.-]+/", $_POST['i2']); | |
$len = count($i1e); | |
$len1x = $len/2; | |
$match = 0; | |
foreach ($i1e as $f1) { |