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
Le porte di ascolto del fcgi per gestire le differenti versioni di PHP, devono essere impostate nel file php-fpm.conf di ogni versione. | |
esempio: /usr/local/etx/php/5.6/php-fpm.conf | |
listen = 127.0.0.1:9055 |
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
var selects = {'517111':{'201656473':{'disable':0, 'name': 'Room Only'}, '201988116':{'disable':0, 'name': 'Standalone'}}, '200003625':{'201988124':{'disable':0, 'name': 'Standard Room'}}}; | |
var previous = []; | |
$.each($('.roomExpedia, .rateplanExpedia'), function(key, select) { | |
previous[this.id] = select.value; | |
}); | |
$('.roomExpedia').change(function(){ | |
var roomId = $(this).val(); | |
var $this = $(this); |
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
<select class="roomExpedia"> | |
<option value="">--</option> | |
<option value="12345" class="">RoomStandard 1</option> | |
<option value="12346" class="">RoomStandard 2</option> | |
<option value="12347" class="">RoomStandard 3</option> | |
</select> | |
<select class="rateplanExpedia"> | |
<option value="">--</option> | |
<option value="12345" class="">RatePlanStandard 1</option> |
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
var XEditable = (function () { | |
var settings = { | |
undo: <?php echo ($undo) ? 'true' : 'false' ?>, | |
error: <?php echo $error ?> | |
}; | |
var noAvailability = function(error) { | |
var msg = 'Alguns quartos não estão disponíveis<br>para esse período:<br><br><ul>'; | |
jQuery.each(error, function(index, value) { | |
msg += '<li>' + value + '</li>'; |
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 | |
// If you aren't using composer, register Pheanstalk class loader | |
//require_once 'Vendors/Pheanstalk/pheanstalk_init.php'; | |
require_once 'vendor/autoload.php'; | |
Class Log { | |
static function out($message, $newline = true) { | |
echo $message . ($newline ? '<br/>': ' '); | |
} |
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
Crea nuovo branch, fa il checkout e importa la branch remota: | |
git checkout -b test origin/test | |
-------------- | |
Resetta il repo ad un certo commit (elimina lo storico precedente e gli eventuali uncommit) | |
git reset --hard <hash> |
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
Array | |
( | |
[166] => Array | |
( | |
[id] => 166 | |
[hotel_id] => 93 | |
[model] => Hotel | |
[foreign_key] => 93 | |
[parent_id] => | |
[name] => Quarto Individual |