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
if(!is_array($location)){ | |
if ($widthScale > $heightScale) { | |
$src_w = round($width * $heightScale); | |
// Position horizontally in the middle | |
if ($location === self::CENTER) { | |
$src_x = round(($baseWidth / 2) - (($width / 2) * $heightScale)); | |
// Position at the far right | |
} else if ($location === self::RIGHT || $location === self::BOTTOM) { |
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
if(!empty($this->data['Image']['img_src_x1'])){ | |
$options['transforms']['thumb']['location'] = array_values($this->data['Image']); | |
} | |
return $options; |
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
// ==UserScript== | |
// @name Pro Workflow modifications | |
// @namespace https://proworkflow6.net/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match https://proworkflow6.net/Merge/* | |
// @copyright 2012+, You | |
// ==/UserScript== | |
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
<VirtualHost *:80> | |
ServerAdmin template.email | |
ServerName template.url | |
DocumentRoot template.webroot | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
# Possible values include: debug, info, notice, warn, error, crit, |
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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
require.config({ | |
baseUrl:'/js/Dash', | |
shim: { | |
backbone: { | |
deps: [ | |
"underscore", | |
"jquery" | |
], | |
exports: "Backbone" | |
}, |
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
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> | |
<merchantAuthentication> | |
<name></name> | |
<transactionKey></transactionKey> | |
</merchantAuthentication> | |
<transactionRequest> | |
<transactionType>authOnlyTransaction</transactionType> | |
<amount>1563.00</amount> | |
<payment> | |
<creditCard> |
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
$query = new EntityFieldQuery(); | |
$query->entityCondition('entity_type', $content['field_parent']['#entity_type']); | |
$query->entityCondition('bundle', $content['field_parent']['#bundle']); | |
$query->fieldCondition('field_parent', render($content['field_parent'])); | |
$result = $query->execute(); |
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
public function __construct($id = false, $table = null, $ds = null) { | |
parent::__construct($id, $table, $ds); | |
$activities = new ActivityListener(); | |
$this->getEventManager()->attach($activities); | |
} |
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
AuthType Basic | |
AuthName "Testing-- Please Identify Yourself" | |
AuthUserFile /srv/auth/.htpasswd | |
Require valid-user | |
<Limit GET POST> | |
Require all denied | |
Require host 111.111.111.111 | |
Require valid-user | |
</Limit> |
OlderNewer