/* slide when not active/center*/ .slick-slide[aria-hidden="true"]:not(.slick-cloned) ~ .slick-cloned[aria-hidden="true"] {
transform: translate(0px, 50px);
}
/* slide when active/center */
.slick-slide[aria-hidden="true"]:not([tabindex="-1"]) + .slick-cloned[aria-hidden="true"] {
transform: translate(0px, 0px);
}
/* slide when active (when play first to last) */
.slick-slide[aria-hidden="true"] + .slick-cloned[aria-hidden="true"] {
transform: translate(0px, 0px);
}
<?
$secret = 'DquEn!lw4j3k98SMS#sfud'; // придумываем ключ
$key1 = microtime(true);
$key2 = md5($key1.$secret);
$sendData = array(
'name' => $sUserName,
'phone' => $sUserPhone,
'station' => $sStationName,
'key1' => $key1,
'key2' => $key2,
);
$oCurl = curl_init();
curl_setopt($oCurl, CURLOPT_URL, "https://site.ru/request.php");
curl_setopt($oCurl, CURLOPT_POST, true);
curl_setopt($oCurl, CURLOPT_HEADER, false);
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, false);
curl_setopt($oCurl, CURLOPT_POSTFIELDS, $sendData);
$result = curl_exec($oCurl);
curl_close($oCurl);
?>
<?
$secret = 'DquEn!lw4j3k98SMS#sfud';
$key1 = $_POST['key1'];
$key2 = $_POST['key2'];
if(microtime(true) - $key1 > 300) die('Неверные ключи');
if($key2 != md5($key1.$secret)) die('Неверные ключи');
$name = strip_tags($_POST['name']);
$name = str_replace("\n", '', $name);
$name = str_replace(";", '', $name);
$name = trim($name);
$phone = strip_tags($_POST['phone']);
$phone = str_replace("\n", '', $phone);
$phone = str_replace(";", '', $phone);
$phone = trim($phone);
$station = strip_tags($_POST['station']);
$station = str_replace("\n", '', $station);
$station = str_replace(";", '', $station);
$station = trim($station);
<?php
echo date("Y-m-j" ." ". "H:m:s");
[[!pdoResources:default=`<div style="float: left; width: 100%; color: #5a5a5a; text-align: center; font-size: 15px; line-height: 18px;">Нет ближайших мероприятий</div>`?
&tpl=`ImmediateEvent`
&includeTVs=`1`
&parents=`8`
&includeContent=`1`
&includeTVs=`EventImage, EventDate`
&processTVs=`1`
&limit=`4444`
&where=`["EventDate >= NOW()"]`
]]
TestApp.controller('MainCtrl', ['$scope','$http', function ($scope,$http) {
$http.post('test.php')
.success(function(data){
console.log(data.message)
})
.error(function(data,status){
console.log('error');
})
}])
<?php
echo '{"message":false}';
?>
TestApp.controller('MainCtrl', ['$scope','$http', function ($scope,$http) {
$http.post('test.php')
.success(function(data){
console.log(data)
})
.error(function(data,status){
console.log('error');
})
}])
<?php
echo 'false';
?>
$.ajax({
url: "./form/formprocessor.php",
type: 'POST',
data: payload,
dataType: 'json',
crossDomain: true,
success: function(done) {
data.success = done.success;
data.captchaError = done.captchaError;
afterSubmit(data);
},
error: function() {
afterSubmit(data);
}
});
}
echo '{
"success" : true,
"CaptchaError" : false
}';