Сегодня: 19:04:2026
С добрым утром!
Страниц (117): « 1 2 3 [4] 5 6 7 8 9 ... » В конец
Найдено сообщений: 1170 |
| NordWest |
Отправлено: 23 сентября 2022 — 17:05 • Тема: Список IP для блокировки • Форум: Всё подряд |
Ответов: 12 Просмотров: 4892
 |
Осталось понять виндовый файрвол с маской подсети айпишник переварит? Нужно будет этот вопрос провентилировать... |
| NordWest |
Отправлено: 8 сентября 2022 — 11:48 • Тема: Отпуск в Белоруссии • Форум: Всё подряд |
Ответов: 5 Просмотров: 4030
 |
Перезалил, что нашел. Часть фоток где-то затерялась в файлопомойке.  |
| NordWest |
Отправлено: 6 сентября 2022 — 12:32 • Тема: Список IP для блокировки • Форум: Всё подряд |
Ответов: 12 Просмотров: 4892
 |
Цитата от Marych: А что там может пойти не так? Сейчас уже не помню - по моему служба отказалась запускаться... Может это решение только для серверных осей и на обычную 32 разрядную семерку оно не катит.  |
| NordWest |
Отправлено: 6 сентября 2022 — 03:57 • Тема: Отпуск в Белоруссии • Форум: Всё подряд |
Ответов: 5 Просмотров: 4030
 |
Да все никак себе картиночный менеджер к форуму прицепить времени не найду. Готовые решения есть, но всегда что-то не нравится. Все думаю вот переработаю под себя и тогда уже... Лет пять уже перерабатываю.
Фотки днем перезалью... |
| NordWest |
Отправлено: 6 сентября 2022 — 03:52 • Тема: Список IP для блокировки • Форум: Всё подряд |
Ответов: 12 Просмотров: 4892
 |
Цитата: Если ещё короче - поставь на винду IPBan Пробовал, но что-то пошло не так как ожидалось - в итоге забил. В принципе меня не напрягает раз в сутки зайти и посмотреть логи. Ну и дописать айпишник руками в файрвол если что. |
| NordWest |
Отправлено: 5 сентября 2022 — 10:24 • Тема: Список IP для блокировки • Форум: Всё подряд |
Ответов: 12 Просмотров: 4892
 |
Если кратко - есть смешной домашний сервер. RDP порт открыт для доступа из внешней сети. Периодически антивирус фиксирует попытки подбора пароля. Если вижу такую настойчивую активность в логах - блокирую IP умника через файрвол. За время сформировался небольшой список...
Список IP (Показать)5.62.19.53
5.62.19.67
31.43.185.3
31.43.185.8
31.43.185.9
31.43.185.31
45.15.19.130
45.141.84.116
45.141.84.119
45.141.87.11
45.141.87.18
45.141.87.21
45.143.201.62
62.122.195.56
82.202.247.37
88.86.83.25
89.189.163.19
91.122.194.239
91.240.242.15
91.240.242.16
92.114.153.67
92.255.85.163
92.255.85.181
92.255.85.201
92.255.85.202
92.255.85.225
95.68.242.38
109.107.166.13
152.89.196.21
162.215.219.217
176.96.230.91
176.96.230.110
176.111.173.77
178.176.229.24
179.43.167.210
185.156.72.25
185.156.72.27
185.156.72.29
185.156.72.31
185.176.220.106
193.56.146.191
193.142.146.209
193.142.147.7
194.26.29.40
194.26.29.48 |
| NordWest |
Отправлено: 2 июля 2022 — 12:29 • Тема: Система "хуков" • Форум: SMF Community |
Ответов: 10 Просмотров: 4839
 |
Internal functions
integrate_buffer
Called from: Subs.php, during obExit, used to add functions to be run on the content prior to it being sent to the user, in the spirit of last-minute widespread content changes.
Purpose: To allow you to modify the content globally before sending to the user, for example SimpleSEF uses this hook to actually replace links.
Accepts: 1 function name.
Sends: $buffer, a string representing the page as a whole.
Unlike other functions, this hook explicitly requires a return value - not all other hook functions handle return values. The return value is the buffer contents.
integrate_exit
Called from: Subs.php, during obExit, used when finally leaving the theme system either in the event of normal execution or fatal errors (i.e. any time a full page is generated that isn't a redirect/attachment)
Purpose: To allow you to do final shutdown on external apps, close connections, free resources. Can also be used with portals or other output handling functions.
Accepts: 1 function name.
Sends: boolean value whether the footer should be output (i.e. footer should be done and not in wireless template)
integrate_fix_url
Called from: News.php, during fix_possible_url().
Purpose: To allow the RSS feeds to have adjustments made for queryless style URLs - and any other URL changes that may be required.
Accepts: 1 function name.
Sends: $val, the original URL
integrate_magic_quotes
This one isn't actually a function, it's a setting that's relevant. PHP's idea of magic quoting is one of the most irritating ideas it has ever had, to attempt to automatically be able to quote values that are incoming from userland. Unfortunately its behavior is somewhat unpredictable and therefore unreliable.
In the process of sanitizing $_GET, SMF does its own clean-up of magic quotes, handling the various types that may be incoming, but other systems do not do this and rely on default PHP behavior. This setting overrides SMF's behavior and returns it to the default.
integrate_redirect
Called from: Subs.php, during redirectexit(), immediately prior to physically issuing redirect headers.
Purpose: To allow code to modify the destination or duration before redirect, potentially of any redirect issued in the forum.
Accepts: 1 function name.
Sends: $setLocation, $refresh
$setLocation - the final URL it should redirect to, as a full URL.
$refresh - boolean, whether to send a Refresh header, or more preferably a Location header. |
| NordWest |
Отправлено: 2 июля 2022 — 12:26 • Тема: Система "хуков" • Форум: SMF Community |
Ответов: 10 Просмотров: 4839
 |
Profile
integrate_profile_areas
Called from: Profile.php, just after the definition of the default profile areas (i.e. the menu entries for the profile section)
Purpose: allows add or modify the menu in the profile area
Accepts: 1 function name.
Sends: $profile_areas
Admin panel
integrate_admin_areas
Called from: Admin.php, during AdminMain(), immediately after the default SMF admin areas have been defined.
Purpose: To allow code to modify the admin menu, adding or removing areas, sections or subsections from it.
Accepts: 1 function name.
Sends: $admin_areas that is the array of admin areas.
integrate_core_features
Called from ManageSettings.php at the beginning of the function ModifyCoreFeatures, just after the $core_features has been populated with the default SMF's Core Features.
Purpose Allows adding new features to the Core Features list in the administration panel.
Accepts 1 function name
Sends $core_features
integrate_general_mod_settings
Called from: ManageSettings.php, at the beginning of the function ModifyGeneralModSettings
Purpose: allows add new settings for mods to the page Modification Settings
Accepts: 1 function name.
Sends: $config_vars
integrate_modify_modifications
Called from: ManageSettings.php, at the beginning of the function ModifyModSettings
Purpose: allows add new pages for mod settings to the Modification Settings section.
Accepts: 1 function name.
Sends: $subActions, an array where the key is the subaction and the value is the name of the function to be called for the corresponding subaction
$subActions = array(
'general' => 'ModifyGeneralModSettings',
);
To add a new subaction a mod using this hook should contain:
$subActions['mysubaction'] = 'mysubaction_function'; |
| NordWest |
Отправлено: 2 июля 2022 — 12:24 • Тема: Система "хуков" • Форум: SMF Community |
Ответов: 10 Просмотров: 4839
 |
Posting and Personal Messages
integrate_bbc_buttons
Called from: Subs-Editor.php, during create_control_richedit(), just after the $context['bbc_tags'] array has been filled with the information regarding bbcode buttons.
Purpose: allows modify the appearance of the bbcode buttons in the rich editor (i.e. the editor with all the controls)
Accepts: 1 function name.
Sends: $context['bbc_tags']
integrate_bbc_codes
Called from: Subs.php, after all the information regarding the default bbcode tags are loaded in the $codes array
Purpose: allows easily add or remove or change the behaviour of bbcode tags.
Accepts: 1 function name.
Sends: $codes
integrate_create_topic
Called from: Subs-Post.php, if a post creates a new topic, once all other SMF processing has been done (like stats updates)
Purpose: Allows you to add topics to a CMS once they are posted. It would likely be better for something such as the Twitter mod to use this as a point to call, rather than modifying the code itself.
Accepts: 1 function name.
Sends: $msgOptions, $topicOptions, $posterOptions - the same three variables used to actually create a topic (see the Function Database for createPost for more), once the changes have been applied, so $topicOptions['id'] is the topic's id, $msgOptions['id'] is the id of its message, for example.
integrate_outgoing_email
Called from: Subs-Post.php, once an email has been assembled, just before it is inserted into the master email queue.
Purpose: Allows you to process or otherwise do something with any email before it is actually sent out.
Accepts: 1 function name.
Sends: $subject, $message, $headers
$subject - listing the email's subject
$message - its main message
$headers - the headers (which includes who it's to, who it's from, date, return path and other things)
integrate_personal_message
Called from: Subs-Post.php, sendpm() once the post is sanitized.
Purpose: To allow you to send or otherwise preprocess personal messages, you could export them to a third party CMS or similar.
Accepts: 1 function name.
Sends: $recipients, $from['username'], $subject, $message
$recipients - an array containing potentially two elements, 'to' and 'bcc', each of which will be an array of membernames that the message is going to
$from['username'] - the username sending the message
$subject - PM's subject
$message - message body |
|
Страниц (117): « 1 2 3 [4] 5 6 7 8 9 ... » В конец
|
|