IF((`mf`.`ID` IS NOT NULL AND `a`.`Price` > 0), 1, 0) DESC
<?php
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = @$_SERVER['REMOTE_ADDR'];
if(filter_var($client, FILTER_VALIDATE_IP)) $ip = $client;
elseif(filter_var($forward, FILTER_VALIDATE_IP)) $ip = $forward;
else $ip = $remote;
echo $ip;
?>
((const|var|let)\s+)?([\w]+)\s*=\s*("[^"]+");?
((const|var|let)\s+)?([\w]+)\s*=\s*("[^"]+"|'[^']+');?
((const|var|let)\s+)?([\w]+)\s*=\s*(".*"|'.*');$
function changeBackground(){
var h = (new Date()).getHours();
var b = document.body;
if (h > 0 && h < 6) {
// ночь
img = 'https://images.wallpaperscraft.com/image/moon_branch_night_clouds_48105_1920x1080.jpg';
} else if (h >=6 && h < 10) {
// утро
img = 'https://i.artfile.me/wallpaper/11-09-2012/1920x1080/priroda-voshody-zakaty-lug-voshod-utro-t-660656.jpg';
} else if (h >= 10 && h < 19) {
// день
img = 'https://get.wallhere.com/photo/sunlight-nature-grass-sky-field-horizon-cloud-grassland-meadow-plain-1920x1080-px-prairie-computer-wallpaper-cumulus-573793.jpg';
} else if (h >= 19) {
// вечер
img = 'https://www.bmwunstoppable.com/wp-content/uploads/2017/03/5nXkqs.jpg';
}
b.style = 'background-image: url('+img+')';
setTimeout(changeBackground, 60000);
}
changeBackground();
el.style = 'background-image: url('+img+')';
cell.textContent
cell.children[0].value
<hmtl>
<style>
body {
background: #20262E;
padding: 20px;
font-family: Helvetica;
}
#app {
background: #fff;
border-radius: 4px;
padding: 20px;
transition: all 0.2s;
text-align: center;
}
</style>
<body>
<div id="app"></div>
<table>
<tr data-new="1" data-id="1">
<td data-name="cell_11"><input type="text" value="11"></td>
<td data-name="cell_12"><input type="text" value="12"></td>
</tr>
<tr data-new="2" data-id="2">
<td data-name="cell_21"><input type="text" value="21"></td>
<td data-name="cell_22"><input type="text" value="22"></td>
</tr>
</table>
<script>
var x = {};
[].forEach.call(document.querySelectorAll("tr"), function(el) {
if (+el.getAttribute("data-new") >= 0) {
let inn = (x[el.getAttribute("data-id")] = {});
[].forEach.call(el.children, function(cell) {
inn[cell.getAttribute("data-name")] = cell.children[0].value;
});
}
});
var dataJSON = JSON.stringify(x)
document.querySelector("#app").innerHTML = dataJSON;
</script>
</body>
</hmtl>
cell.getElementsByTagName("input")[0].value
sh -c "sleep 5 && echo 'pass' | sshfs username@server:/home/user/folder /media/server -o password_stdin -o ServerAliveInterval=300 -o reconnect"
document.getElementsByClassName("my-class1")[0].className="my-class2"
document.getElementsByClassName("my-class1")[0].style="font-family: 'PT Sans';font-style: normal;"
function checkMyFirstBlock(el){
if(el.className.indexOf("my-class1-2") == -1) {
// не найдено "my-class1-2"
document.getElementsByClassName("my-class2")[0].style = "background-color:red";
} else {
// найдено
document.getElementsByClassName("my-class2")[0].style = "background-color:white";
}
}
div onclick='img(this)'
<html>
<script>
function img(el) {
el.style.backgroundImage = "url(https://img3.goodfon.ru/original/1920x1080/6/a4/krasivaya-devushka-amber-heard.jpg)"
}
</script>
<body>
<div onclick='img(this)' style='width:100%;height:100%;margin-bottom: 20px; background-image: url(https://vdudvdud.ru/wa-data/public/shop/products/30/00/30/images/296/296.970.jpg);'></div>
</body>
</html>
document.body.children[0].children[0].style.backgroundImage = document.body.children[0].children[1].children[0].style.backgroundImage;
<html>
<style>
.bigimage {
width:100%;
height:75%;
margin-bottom: 20px;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
.thumbnail {
float:left;
width:19%;
height:20%;
border-style: solid;
border-width: 1px;
border-color: #333390;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
</style>
<script>
window.onload = function () {
document.body.children[0].children[0].style.backgroundImage = document.body.children[0].children[1].children[0].style.backgroundImage;
}
function img(el) {
el.parentElement.parentElement.children[0].style.backgroundImage = el.style.backgroundImage;
}
</script>
<body>
<div>
<div class="bigimage"></div>
<div>
<div onclick="img(this)" class="thumbnail" style="background-image:url(https://hdqwalls.com/download/willa-holland-5k-2018-tc-1920x1080.jpg)"></div>
<div onclick="img(this)" class="thumbnail" style="background-image:url(https://img3.goodfon.ru/original/1920x1080/6/a4/krasivaya-devushka-amber-heard.jpg)"></div>
<div onclick="img(this)" class="thumbnail" style="background-image:url(https://img1.goodfon.com/original/1920x1080/3/9f/anastasiya-scheglova-devushka-4354.jpg)"></div>
<div onclick="img(this)" class="thumbnail" style="background-image:url(https://img3.goodfon.ru/wallpaper/original/a/86/kira-kristina-naytli-keira.jpg)"></div>
<div onclick="img(this)" class="thumbnail" style="background-image:url(https://wallbox.ru/wallpapers/main2/201731/1501485774597edace3af7c6.85452886.jpg)"></div>
</div>
</div>
</body>
</html>
for (key in obj) {
/* ... делать что-то с obj[key] ... */
}
var obj = {
3223: {
count: 112,
popular: true,
price: 2,
id: 1,
service: "Facebook",
slug: "3223",
image: "/assets/images/serv/3223.png"
},
vkcom: {
count: 0,
popular: true,
price: 23,
id: 0,
service: "Вконтакте",
slug: "VKcom",
image: "/assets/images/serv/vkcom.png"
},
mailru: {
count: 540,
popular: true,
price: 2,
id: 2,
service: "MailRu",
slug: "MailRu",
image: "/assets/images/serv/mailru.png"
}
}
console.log(obj[3223]["count"])
for (key in obj) {
console.log("Для key="+key+" count="+obj[key]["count"])
}
Object.keys(obj).forEach(function(key) {
console.log(key, ':', this[key]["count"]);
}, obj);
dd if=/dev/sda of=/path/mbr-boot-code bs=446 count=1
dd if=/path/mbr-boot-code of=/dev/sda bs=446 count=1
shutdown -s -f -t 0
ssh administrator@windowspchost shutdown -s -f -t 0