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
// Make sure user has card on file. | |
if (empty($user['cclastfour'])) { | |
$config['vars']['nocard'] = true; | |
$config['vars']['error'] = 'You do not have any payment methods on file'; | |
return $config; | |
} | |
$payment = localAPI('capturepayment', ['invoiceid' => $invoice_id], 'admin'); | |
if ($payment['result'] === 'success') { | |
$config['vars']['payment']['success'] = sprintf('Payment succeeded'); |
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 gulp = require("gulp"), | |
sftp = require("gulp-sftp"), | |
path = require("path"), | |
changed = require("gulp-changed"), | |
rename = require("gulp-rename"), | |
tap = require("gulp-tap"), | |
notify = require("gulp-notify"), | |
remoteBaseDir = "/base/dir/on/server", | |
watchedFilesToUpload = ["css/**/*.css", "js/**/*.js"]; |
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
private function __sandbox() | |
{ | |
set_error_handler(array($this, 'handleError'), E_WARNING | E_NOTICE); | |
$this->getStack()->push(clone $this); | |
//Extract the data in local scope | |
extract($this->_data, EXTR_SKIP); | |
// Capturing output into a buffer | |
ob_start(); |
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
(function (global, undefined) { | |
"use strict"; | |
var document = global.document, | |
Alertify; | |
function getStyleRuleValue(style, selector, sheet) { | |
var sheets = typeof sheet !== "undefined" ? [sheet] : document.styleSheets; | |
for (var i = 0, l = sheets.length; i < l; i++) { | |
sheet = sheets[i]; |
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
[xdebug] | |
xdebug.remote_enable=1 | |
xdebug.remote_connect_back=1 | |
xdebug.idekey=PHPSTORM | |
xdebug.max_nesting_level=200 |
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
#!/bin/sh | |
git clone --depth=1 git://github.com/phalcon/cphalcon.git | |
cd cphalcon/build | |
sudo ./install | |
echo 'extension=phalcon.so' | sudo tee --append /etc/php5/mods-available/phalcon.ini > /dev/null | |
sudo ln -s /etc/php5/mods-available/phalcon.ini /etc/php5/cli/conf.d/30-phalcon.ini | |
sudo ln -s /etc/php5/mods-available/phalcon.ini /etc/php5/apache2/conf.d/30-phalcon.ini | |
sudo service apache2 restart |
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
function script(url) { | |
if(Array.isArray(url)) { | |
var self = this, prom = []; | |
url.forEach(function(item) { | |
prom.push(self.script(item)); | |
}); | |
return Promise.all(prom); | |
} |
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 | |
/** | |
* LICENSE: ##LICENSE## | |
* | |
* @category Anahita | |
* @package Plugins | |
* @author Arash Sanieyan <[email protected]> | |
* @author Rastin Mehr <[email protected]> | |
* @copyright 2008 - 2010 rmdStudio Inc./Peerglobe Technology Inc |
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 | |
/** | |
* @version $Id: request.php 4628 2012-05-06 19:56:43Z johanjanssens $ | |
* @package Koowa_Request | |
* @copyright Copyright (C) 2007 - 2012 Johan Janssens. All rights reserved. | |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> | |
* @link http://www.nooku.org | |
*/ | |
// Filename: /vendor/anahita/anahita/vendor/nooku/libraries/koowa/request/request.php |
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
// File anahita/anahita/src/plugins/system/anahita.php | |
/** | |
* Remebers handling | |
* | |
* @return void | |
*/ | |
public function onAfterInitialise() | |
{ |