{% for result in test1 %}
{% if result.test2 == false %}
<p>Test.</p>
{% endif %}
{% endfor %}
Превратить в такое:
$iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($array)); // $array -> ваш многомерный массив
$arrOut = iterator_to_array($iterator, true); // $arrOut -> новый одномерный массив (важно, чтобы индексы не повторялись (были уникальными)
user-status
переопределить на user_status
Math.random()
- возвращает числа из диапазона [0, 1)
(, то есть, от 0 (включительно) до 1 (но не включая 1))randomItem
)if
, который проверяет ширину экрана браузера и если она менее 414, с помощью document.getElementsByClassName('.music')[ТУТ ВАШЕ ЧИСЛО, к ПРИМЕРУ 0.6108746700365573]document.getElementsByClassName('.music')[0.6108746700365573]
root@vm22433:~# grep pluto /var/log/auth.log
Sep 17 19:42:09 vm22433 ipsec_starter[12345]: # deprecated keyword 'plutodebug' in config setup
Sep 17 19:42:09 vm22433 ipsec_starter[12345]: # deprecated keyword 'plutostderrlog' in config setup
Sep 17 19:44:56 vm22433 ipsec_starter[12910]: # deprecated keyword 'plutodebug' in config setup
Sep 17 19:44:56 vm22433 ipsec_starter[12910]: # deprecated keyword 'plutostderrlog' in config setup
Sep 17 19:46:01 vm22433 ipsec_starter[13442]: # deprecated keyword 'plutodebug' in config setup
Sep 17 19:46:01 vm22433 ipsec_starter[13442]: # deprecated keyword 'plutostderrlog' in config setup
Sep 17 20:05:43 vm22433 ipsec_starter[18192]: # deprecated keyword 'plutodebug' in config setup
Sep 17 20:05:43 vm22433 ipsec_starter[18192]: # deprecated keyword 'plutostderrlog' in config setup
Sep 17 20:06:10 vm22433 ipsec_starter[18329]: # deprecated keyword 'plutodebug' in config setup
Sep 17 20:06:10 vm22433 ipsec_starter[18329]: # deprecated keyword 'plutostderrlog' in config setup
Sep 17 20:07:06 vm22433 ipsec_starter[18562]: # deprecated keyword 'plutodebug' in config setup
Sep 17 20:07:06 vm22433 ipsec_starter[18562]: # deprecated keyword 'plutostderrlog' in config setup
Sep 17 20:07:50 vm22433 ipsec_starter[18763]: # deprecated keyword 'plutodebug' in config setup
Sep 17 20:07:50 vm22433 ipsec_starter[18763]: # deprecated keyword 'plutostderrlog' in config setup
Sep 19 16:07:23 vm22433 ipsec_starter[25919]: # deprecated keyword 'plutostart' in config setup
root@vm22433:~#
root@vm22433:~# ipsec verify
Checking if IPsec got installed and started correctly:
Version check and ipsec on-path [OK]
Openswan U2.6.50.1/K4.9.0-8-amd64 (netkey)
See `ipsec --copyright' for copyright information.
Checking for IPsec support in kernel [OK]
NETKEY: Testing XFRM related proc values
ICMP default/send_redirects [OK]
ICMP default/accept_redirects [OK]
XFRM larval drop [OK]
Hardware random device check [N/A]
Two or more interfaces found, checking IP forwarding [OK]
Checking rp_filter [ENABLED]
/proc/sys/net/ipv4/conf/all/rp_filter [ENABLED]
/proc/sys/net/ipv4/conf/br-aabbce16e15a/rp_filter [ENABLED]
/proc/sys/net/ipv4/conf/default/rp_filter [ENABLED]
/proc/sys/net/ipv4/conf/docker0/rp_filter [ENABLED]
/proc/sys/net/ipv4/conf/ens3/rp_filter [ENABLED]
/proc/sys/net/ipv4/conf/veth3d5f1bd/rp_filter [ENABLED]
Checking that pluto is running [FAILED]
Checking NAT and MASQUERADEing [TEST INCOMPLETE]
Checking 'ip' command [OK]
Checking 'iptables' command [OK]