This file has been truncated, but you can view the full file.
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
1 79145005372 | |
1 79243813706 | |
1 79375116869 | |
1 79667239494 | |
1 79286203616 | |
1 79644666994 | |
1 700080604 | |
1 79022319145 | |
1 79241180241 | |
1 79043275023 |
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 | |
require_once "vendor/autoload.php"; | |
try { | |
$json = json_decode(file_get_contents("php://input"), true); | |
$bot = new \TelegramBot\Api\BotApi('TOKEN_HERE'); | |
$incomingMessage = \TelegramBot\Api\Types\Message::fromResponse($json['message']); | |
if (in_array($incomingMessage->getText(), ['/devanswer', '/devanswer@DevAnswerBot'])) { |
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> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<meta http-equiv="refresh" content="2"> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> | |
<style type="text/css"> | |
.chat-body { | |
margin-bottom: 10px; |
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 mymodule_menu() { | |
$items = array(); | |
$items['api/%node'] = array( | |
'page callback' => 'mymodule_api_get_node', | |
'page arguments' => array(1), | |
'access callback' => TRUE, // тут аутефикацию можно прикрутить, openid или еще что-нибудь | |
'type' => MENU_CALLBACK |
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
[dev-2-dev] | |
;prefix = /path/to/pools/$pool | |
user = web | |
group = web | |
listen = 127.0.0.1:9001 | |
; Default Value: 128 (-1 on FreeBSD and OpenBSD) | |
;listen.backlog = 128 | |
;listen.owner = www-data | |
;listen.group = www-data |
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
document.hasFocus = function(){return true} // for click without focus | |
setInterval(function() { | |
var t=CoffeeCup.calcBytesPerClick(); | |
localStats.byteCount+=t; | |
popManager.newPop("btn-addMem","+"+NumUtils.byteConvert(t,2)); | |
},45); | |
setInterval(function() { | |
// auto drip |
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
jQuery("#edit-field-phone-und-0-value").keypress ( | |
function(event) | |
{ | |
var key, keyChar; | |
if(!event) var event = window.event; | |
if (event.keyCode) key = event.keyCode; | |
else if(event.which) key = event.which; | |
/* |
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 ExchangeRatesCBRF { | |
var $rates; | |
function __construct($date = null) { | |
//В PHP версии ниже 5 это метод объекта следует переименовать в ExchangeRatesCBRF | |
$client = new SoapClient("http://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx?WSDL"); | |
if(!isset($date)) | |
$date = date("Y-m-d"); |
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
inputs = jQuery("#gi-budget-add-form input[type='text']:not(:disabled)"); | |
inputs.keypress (function(event) { | |
var key, keyChar; | |
if(!event) var event = window.event; | |
key = event.keyCode || event.which; | |
/* | |
если нажата одна из следующих клавиш: enter, tab, backspace, del, стрекла влево, стрелка вправо | |
тогда на этом завершаем работу функции, т..к эти клавиши нужны для нормальной работы с полями форм | |
*/ |