This file contains hidden or 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 | |
/** | |
* @param {string} $search | |
* @param {array} $datas | |
* @return {array} | |
*/ | |
public function search($search, $datas){ | |
$response = []; | |
This file contains hidden or 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
function isES6Supported() { | |
try { | |
new Function("(a = 0) => a"); // Testa a existência de arrow functions | |
return true; | |
} catch (exception) { | |
return false; | |
} | |
} |
This file contains hidden or 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
function TypingMessage(){ | |
if(typeof(window.Typing) == 'undefined' || window.Typing == null){ | |
console.log("Dispara Evento Escrevendo"); | |
window.Typing = new TypingTimer(function(){ | |
console.log("Dispara Evento Escrevendo"); | |
This file contains hidden or 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 | |
/* | |
Dependencies: https://www.php.net/manual/pt_BR/mongodb.tutorial.library.php | |
*/ | |
define("ACCESS_KEY", "cBeISKzsafdrSeISKzpmOOaJ8t8WISKzpYEOOE"); //Define your access key to send | |
if(!isset($_GET['key'], $_POST['owner']) OR $_GET['key'] !== ACCESS_KEY){ | |
http_response_code(500); |
This file contains hidden or 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 | |
public function ConvertAudio($b64){ | |
try{ | |
if(!$this->CheckBase64($b64)){ | |
return false; | |
}elseif(!$this->CheckSizeBase64($b64, 500, false)){ | |
return false; |
This file contains hidden or 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 remove_array_key($key, &$array){ | |
$result = array_key_exists($key, $array); | |
if($result){ | |
unset($array[$key]); | |
return $array; | |
} |
This file contains hidden or 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
Mozilla/5.0 (Linux; Android 9; SM-J330FN Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/337.0.0.32.118;] | |
Mozilla/5.0 (Linux; Android 7.0; FRD-L09 Build/HUAWEIFRD-L09; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/227.0.0.43.158;] | |
Mozilla/5.0 (iPhone; CPU iPhone OS 14_7 like Mac OS X) WebKit/8611 (KHTML, like Gecko) Mobile/18G69 [FBAN/FBIOS;FBDV/iPhone10,3;FBMD/iPhone;FBSN/iOS;FBSV/14.7;FBSS/3;FBID/phone;FBLC/en_US;FBOP/5] | |
Mozilla/5.0 (Linux; Android 10; HRY-LX1T Build/HONORHRY-LX1T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/93.0.4577.62 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/333.0.0.30.119;] | |
Mozilla/5.0 (Linux; Android 10; JSN-L21 Build/HONORJSN-L21; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.71 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/325.0.0.36.170;] | |
Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) |
This file contains hidden or 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 | |
//bancos brasileiros com índice referente ao código do banco | |
$bancos = array( | |
'001' => 'Banco do Brasil', | |
'003' => 'Banco da Amazônia', | |
'004' => 'Banco do Nordeste', | |
'021' => 'Banestes', | |
'025' => 'Banco Alfa', | |
'027' => 'Besc', | |
'029' => 'Banerj', |