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 WebWork extends Threaded { | |
private $dates; | |
public function __construct($dates) { | |
$this->complete = false; | |
$this->dates = $dates; | |
} |
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
SearchForm.AgentHotelForm = { | |
currentFormSelector: '.searchFormHotels:visible', | |
currentCountryDataRequest: null, | |
init: function() { | |
$(".search_form.main_form.dark .scroll-box").mCustomScrollbar({ | |
callbacks:{ | |
onScroll: function() { | |
ui = $(this); | |
if(ui.hasClass('pagination') && this.mcs.topPct > 60) { | |
SearchForm.AgentHotelForm[ui.data('paginatefunc')](ui); |
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
'urlManager' => [ | |
'enablePrettyUrl' => true, | |
'enableStrictParsing' => false, | |
'showScriptName' => false, | |
'rules' => [ | |
[ | |
'class' => 'yii\rest\UrlRule', | |
'controller' => [ 'v1/referal', 'v1/traffic-source', 'v1/affiliate', 'v1/campaign', 'v1/news', | |
'v1/transactions-statistic', 'v1/payout', 'tickets/partner', 'tickets/manager', | |
'rotator/banner', 'rotator/config', 'v1/widgets', 'v1/rtb-container', 'v1/domains-parking', |
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 App | |
{ | |
public static $app; | |
} | |
class Site | |
{ | |
private $components; | |
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 LitresXmlCommand extends CConsoleCommand | |
{ | |
public $file; | |
public $covers_path; | |
private $message = ""; | |
public function 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
var mapBox = null, | |
markersData = {}, | |
infoWindow = null; | |
var bounds = new google.maps.LatLngBounds(); | |
function deleteMarkers() { | |
for (var key in markersData) { | |
markersData[key].setMap(null); | |
markersData[key].setVisible(false); | |
} |
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 | |
require_once realpath ( dirname ( __FILE__ ) . '/../cli.php' ); | |
error_reporting(E_ERROR); | |
set_time_limit(0); | |
ini_set('memory_limit', '128M'); | |
class TezLV extends Tez_Db_Mixed | |
{ | |
private $url = 'http://www.teztour.lv/?controller=hotel_out&l=1'; |
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 SearchForm = { | |
_phrases: { | |
returnTicketNotNeeded: 'Return ticket is not needed', | |
allResorts: 'Все курорты', | |
allHotels: 'Все отели', | |
chooseTime: 'Указать время', | |
}, | |
setPhrase: function (id, text) { | |
this._phrases[id] = text; | |
return this; |
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
SearchForm.AgentHotelForm = { | |
currentFormSelector: '.searchFormHotels:visible', | |
init: function() { | |
$(".search_form.main_form.dark .scroll-box").mCustomScrollbar(); | |
SearchForm.AgentHotelForm.bindCallbackChooseRegions(); | |
SearchForm.AgentHotelForm.bindCallbackChooseHotels(); | |
$('.star-rating a').click(function(e) { | |
e.preventDefault(); | |
$(this).addClass('active'); | |
$('.star-rating a').not($(this)).removeClass('active'); |
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
jQuery.fn.existsWithValue = function(val) { | |
return this.length && this.val().length && this.val()===val; | |
}; | |
var TourSearchLoader = (function() { | |
'use strict'; | |
var currentData = false; | |
var filtersJson = false; | |
var filtersUrl = false; | |
var proceedUrl = false; |