This file contains hidden or 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 | |
$this->_clients[$i]['id'] = $i; |
This file contains hidden or 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
page.10 = FLUIDTEMPLATE | |
page.10 { | |
partialRootPath = fileadmin/templates/partials/ | |
layoutRootPath = fileadmin/templates/layouts/ | |
variables { | |
siteInfoColumn < styles.content.get | |
siteInfoColumn.select.where = colPos=1 | |
content < styles.content.get |
This file contains hidden or 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 | |
public function isValid($values) | |
{ | |
if (array_key_exists('already_customer', $values) | |
&& $values['already_customer'] == 'on') { | |
$this->getElement('billingfirstname')->setRequired(false); | |
$this->getElement('billinglastname')->setRequired(false); | |
// ... | |
} | |
} |
This file contains hidden or 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
#!/bash/sh | |
find . -name "*.png" | |
while read file; | |
do | |
mv "$file" ${file%.*}"@2x.png" | |
done |
This file contains hidden or 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
# Configure throttling on port 8080 and set maximum bandwidth to 56KByte/s | |
$ sudo ipfw pipe 1 config bw 56KByte/s | |
$ sudo ipfw add 1 pipe 1 src-port 8080 | |
# Reset pipe 1: | |
$ sudo ipfw delete 1 |
This file contains hidden or 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 | |
/** | |
* YelaCMS | |
* | |
* LICENSE | |
* | |
* This file is part of YelaCMS. | |
* | |
* YelaCMS is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains hidden or 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 | |
public function __call($name, $arguments) | |
{ | |
if (preg_match('#^findBy(.*)#', $name, $matches)) { | |
$colName = strtolower($this->_filter->filter($matches[1])); | |
return $this->_returnCollection( | |
$this->_table->fetchAll(array($colName . '=?' => $arguments[0])) | |
); | |
} else { |
This file contains hidden or 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
$(this).each(function() { | |
f_el.first().after( | |
$('<label/>').addClass(_invalidFlag) | |
.attr('for', f_el.attr('id')) | |
.text($(this)[0].message) | |
); | |
}); |
This file contains hidden or 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 (_data.dialog.uri) { | |
// Open dialog with and load content stored at uri. | |
$('<div>').dialog($.extend(params, { | |
open: function () | |
{ | |
$(this).load(_data.dialog.uri); | |
} | |
})); | |
} |
This file contains hidden or 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
object(Zend_Config_Xml)#421 (9) { | |
["_skipExtends":protected] => bool(false) | |
["_allowModifications":protected] => bool(true) | |
["_index":protected] => int(0) | |
["_count":protected] => int(1) | |
["_data":protected] => array(1) { | |
["contact"] => object(Zend_Config)#425 (8) { | |
["_allowModifications":protected] => bool(true) | |
["_index":protected] => int(0) | |
["_count":protected] => int(7) |