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 Demo | |
{ | |
static public $var; | |
public $a; | |
public function __construct() | |
{ | |
$this->a = function() | |
{ |
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 | |
if( isset($_GET) && isset($_GET['test']) && $_GET['test'] === 'phalcon') | |
{ | |
$di = new \Phalcon\Di\FactoryDefault(); | |
usleep( 100000 ); | |
exit; | |
} | |
$ch1 = curl_init(); |
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
$di = \Phalcon\Di::getDefault(); | |
echo "<pre><p><hr></p>"; | |
if( isset($di) ) | |
{ | |
echo '<strong>di</strong>: <strong style="color:lime">Found</strong>'; | |
} else { | |
echo '<strong>di</strong>: <strong style="color:red">Not Found</strong>'; | |
} |
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 | |
namespace _htrouter_php; | |
class htRouter | |
{ | |
static public $uri = '', $ext = '', $fullFilePath = ''; | |
static public $mimeTypes = [ | |
'css'=>'text/css', | |
'js'=>'application/javascript', |
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
class MicroCollectionHandler | |
{ | |
public $collection,$handlerIndex; | |
public function __construct($collection,$handlerIndex) | |
{ | |
$this->collection = $collection; | |
$this->handlerIndex = $handlerIndex; | |
} | |
public function via($methods) |
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
var Adapter, Discord, DiscordBot, EnterMessage, LeaveMessage, Robot, TextChannel, TextMessage, TopicMessage, User, currentlyPlaying, prequire, ref, ref1, | |
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, | |
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | |
hasProp = {}.hasOwnProperty, | |
slice = [].slice; | |
try { | |
ref = require('hubot'), Robot = ref.Robot, Adapter = ref.Adapter, EnterMessage = ref.EnterMessage, LeaveMessage = ref.LeaveMessage, TopicMessage = ref.TopicMessage, TextMessage = ref.TextMessage, User = ref.User; | |
} catch (_error) { | |
prequire = require('parent-require'); |