Skip to content

Instantly share code, notes, and snippets.

View werdender's full-sized avatar

Vladislav K werdender

  • Russia, Abakan
View GitHub Profile
<?php
include 'crypt.php';
include 'db.php';
if( ! empty($_POST['phone']) && ! empty($_POST['email'])) {
$key = $_POST['email'];
$crypt = new Crypt();
RewriteEngine On
RewriteBase /
RewriteRule ^files/(.*).exe$ download.php [NC]
<?php
// $array - our array
$map = array();
$res = null;
foreach($array as $value) {
if(isset($map[$value])) {
$res = $value;
@werdender
werdender / gist:5472782
Last active December 16, 2015 17:49 — forked from wilk/gist:5472503
/* --------------------------------- */
Ext.define ('My.observable.Object', {
mixins: {
observable: 'Ext.util.Observable'
} ,
constructor: function (cfg) {
var me = this;
me.initConfig (cfg);
me.mixins.observable.constructor.call (me, cfg);