Skip to content

Instantly share code, notes, and snippets.

View vkdg's full-sized avatar
🧭
stay tuned

Denis M vkdg

🧭
stay tuned
  • Sinergium, G2R Company LTD., Brandomatic and Others
  • Earth, Eastern Europe
View GitHub Profile
@vkdg
vkdg / _mixins.scss
Last active April 27, 2016 07:31
Mixins Build by Hardenberg
/**
* Mixins by vkdg.ru
*/
/* Clearfix */
@mixin clear {
/**
* Example
*
* @include clear();
@vkdg
vkdg / emoji.js
Created September 2, 2016 05:22 — forked from derekr/emoji.js
emoji.js
;(function() {
function emoji(){}
// settings
emoji.img_path = 'emoji/';
emoji.sheet_path = 'sheet_64.png';
emoji.use_css_imgs = false;
emoji.text_mode = false;
emoji.include_title = false;
@vkdg
vkdg / flags.scss
Created June 1, 2017 05:21
Файл со стилями для локализационных флагов
// Africa, Middle East, and India
.flag-am { background-image: url('../img/flags/am-30.png'); } .flag-am-x2 { background-image: url('../img/flags/am-60.png'); } // Armenia
.flag-bh { background-image: url('../img/flags/bh-30.png'); } .flag-bg-x2 { background-image: url('../img/flags/bh-60.png'); } // Bahrain
.flag-bw { background-image: url('../img/flags/bw-30.png'); } .flag-bw-x2 { background-image: url('../img/flags/bw-60.png'); } // Botswana
.flag-cm { background-image: url('../img/flags/cm-30.png'); } .flag-cm-x2 { background-image: url('../img/flags/cm-60.png'); } // Cameroun
.flag-cf { background-image: url('../img/flags/cf-30.png'); } .flag-cf-x2 { background-image: url('../img/flags/cf-60.png'); } // République Centrafricaine
.flag-ci { background-image: url('../img/flags/ci-30.png'); } .flag-ci-x2 { background-image: url('../img/flags/ci-60.png'); } // Côte d'Ivoire
.flag-eg { background-image: url('../img/flags/eg-30.png'); } .flag-eg-x2 { background-image: url('../img/flags/eg-60.png'); } // Egypt
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;