<?php
$arr = [
'max_cards' => 4,
'messages_spam_count' => 10,
'messages_per_page' => 50,
'min_password_length' => 5,
'max_password_length' => 42,
'min_login_length' => 2,
'max_login_length' => 255,
'mailer_address' => 'noreply@onliner.by',
// Mark as spam
'spam_notification_to' => array('tigra@onliner.by'),
'spam_notification_subject' => 'Блокировка за спам',
'spam_notification_user_subject' => 'Ваша учетная запись на сайте Onliner.by заблокирована',
'spam_notification_by_users_request' => 'Следующие пользователи заблокированны из-за жалоб других пользователей:<br />%s',
'spam_notification_user_text' => 'Ваша учетная запись была автоматически заблокирована из-за многочисленных жалоб о рассылке спама.
Если считаете, что вас заблокировали незаслуженно, то обратитесь в службу технической поддержки нашего сайта —
<a href="http://support.onliner.by">support.onliner.by</a>',
'spam_autoban_notification' => 'Следующие пользователи заблокированы при попытке массовой рассылки за короткий промежуток времени:<br />%s',
'spam_autoban_max_messages' => 10,
'spam_autoban_check_interval' => 60, // seconds,
'cookies' => [
'regions' => [
'gomel' => [
'onl_region' => 'gomel',
'catalog_region_select' => 'gomel',
'region' => 'region=304',
'pogoda_region' => 33041,
]
]
],
'papi' => [
'url' => 'http://user.papi.onliner.',
]
];
$arr = (object) $arr;
var_dump($arr->cookies->regions);
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Warning: Attempt to read property "regions" on array in /in/v3sPL on line 41
NULL
- Output for 7.2.5 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
- Notice: Trying to get property 'regions' of non-object in /in/v3sPL on line 41
NULL
- Output for 7.3.32 - 7.3.33
- NULL
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
- Notice: Trying to get property of non-object in /in/v3sPL on line 41
NULL
- Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected '[' in /in/v3sPL on line 2
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected '[' in /in/v3sPL on line 2
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/v3sPL on line 2
Process exited with code 255.
preferences:
237.67 ms | 401 KiB | 385 Q