$message = file_get_contents(MAIL.'registration.php');
mail($to, $subject, $message, implode("\r\n", $headers));
$messageTest = preg_replace('|\{(.*)\}|isU', '', $message);
if (preg_match("/([a-z]{2,}|[0-9]{5,}|[@])+/i", $messageTest)) {
return array('success' => false);
}
gulp.task('bower', function() {
var mainBowerFilesArr = mainBowerFiles({
'overrides': {
'jquery': {
'main': './dist/jquery.min.js'
},
'bootstrap-grid': {
'main': './dist/bootstrap-grid.min.css'
}
}
}).map( function(path) {
return path;
});
for (var i = mainBowerFilesArr.length - 1; i >= 0; i--) {
var p = mainBowerFilesArr[i].substring(mainBowerFilesArr[i].indexOf('bower_components'));
var f = p.split('\\')[1]+'/';
gulp.src(p).pipe(gulp.dest(path.build.lib+f));
}
});
function resize(direction, indent){
var backgroundPosition = $('.active').css(direction);
var backgroundPosition_height = parseInt(backgroundPosition.replace(/([^0-9|-]+)/i, '')) + parseInt(indent);
var css = {};
css[direction] = backgroundPosition_height + 'px';
$('.active').css(css);
}
[[!getResources?
&tpl=`tplGallery`
&sortby=`RAND()`
&parents=`10`
&limit=`0`
&showHidden=`1`
]]
[[!getImageList?
&docid=`[[+id]]`
&tvname=`myMIGXtv`
&tpl=`thumbTpl`
&randomize=`1`
]]
<img src="[[+image]]" >
$('#button').on('click', function() {
var button = $(this);
var time = 5000; // Время в миллисекундах сколько кнопка не активна
button.prop('disabled', true);
setTimeout(function() {
button.prop('disabled', false);
}, time);
MyGame.startNewGame();
});
.block {
position: fixed;
z-index: 1000;
}
$(window).bind('load', function(){
$(window).on('load', function(){
$(window).load( function(){
$(window).load( function(){
setTimeout(function(){
var col = $('.bigphoto .slick-active').attr('index');
var count = $('.bigphoto .slick-slide').length;
var count_clone = $('.bigphoto .slick-cloned').length;
$("#total").text(count-count_clone);
if(count_clone > 1){
function sec() {
var col = $('.bigphoto .slick-active').attr('index');
m = Number(col) + 1;
$('#current').text(m);
}
setInterval(sec, 500); // использовать функцию
}else {
$("#counter_img").css( {"visibility":"hidden"} )
}
}, 200);
});
onclick="window.open('site.ru?addCart=<?php echo $product['product_id']; ?>')"
function $_GET(key) {
var p = window.location.search;
p = p.match(new RegExp(key + '=([^&=]+)'));
return p ? p[1] : false;
}
window.onload = function() {
cart.add($_GET('addCart'));
}