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 | |
// $apps = 103; | |
// getNumEnding($apps, ['приложение', 'приложения', 'приложений']); | |
function getNumEnding($number, $endingArray) | |
{ | |
$number = $number % 100; | |
if ($number >= 11 && $number <= 19) { | |
$ending = $endingArray[2]; |
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
{"63":"QIWI \u043a\u043e\u0448\u0435\u043b\u0435\u043a","45":"\u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0435\u043d\u044c\u0433\u0438","94":"VISA\/MASTERCARD RUB","116":"Bitcoin","133":"FK WALLET RUB","106":"OOOPAY RUR","87":"OOOPAY USD","109":"OOOPAY EUR","1":"WebMoney WMR","2":"WebMoney WMZ","114":"PAYEER RUB","64":"Perfect Money USD","69":"Perfect Money EUR","62":"OKPAY USD","60":"OKPAY RUB","61":"OKPAY EUR","82":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 \u041c\u0435\u0433\u0430\u0444\u043e\u043d","84":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 \u041c\u0422\u0421","132":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 Tele2","83":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u0435\u0436 \u0411\u0438\u043b\u0430\u0439\u043d","70":"PayPal","137":"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u041f\u043b\u0430\u0442\u043 |
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 | |
class VK | |
{ | |
private $token; | |
private $version; | |
private $url = "https://api.vk.com/method/"; | |
public function __construct($token, $version = "5.54") |
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
oauth.vk.com/token?grant_type=password&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&username={$login}&password={$password} |
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 | |
/** | |
* | |
* HTML Table parser | |
* github.com/nicecodergit | |
* | |
*/ | |
function getArrayFromFile( $link ) |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>parseTable</title> | |
</head> | |
<body> | |
<table> | |
<thead> | |
<tr> |