diff --git a/RELEASE b/RELEASE index 21c29ead7..f7d18d5c4 100644 --- a/RELEASE +++ b/RELEASE @@ -1 +1 @@ -1.4.7 rev 9156 +1.4.7 rev 9157 diff --git a/content/updates/configs/1.4.7.ini b/content/updates/configs/1.4.7.ini index f8442a47c..fa6bec087 100644 --- a/content/updates/configs/1.4.7.ini +++ b/content/updates/configs/1.4.7.ini @@ -1,3 +1,6 @@ [alter] OLTSEL_SEARCHBL=0 SIGNAL_IN_PROFILE_COMPACT=0 + +[userstats] +AFU_URL="" \ No newline at end of file diff --git a/userstats/config/userstats.ini b/userstats/config/userstats.ini index 8f66865a9..ed456252b 100755 --- a/userstats/config/userstats.ini +++ b/userstats/config/userstats.ini @@ -440,4 +440,8 @@ WA_NAME="" WA_ICON_192="" WA_ICON_512="" +;Custom AFU supporting URL, something like https://savelife.in.ua/donate/ or https://ubilling.net.ua/rds/defense/ (default) +AFU_URL="" +;disables defense donations reminder +IM_JUST_PIDAR=0 diff --git a/userstats/languages/russian/lang.php b/userstats/languages/russian/lang.php index 8e4c6b709..0fcc57a9f 100755 --- a/userstats/languages/russian/lang.php +++ b/userstats/languages/russian/lang.php @@ -467,3 +467,4 @@ $lang['def']['Wrong reply received'] = 'Получен неверный ответ'; $lang['def']['Aerial alert'] = 'Воздушная тревога'; $lang['def']['since'] = 'с'; +$lang['def']['Support AFU'] = 'Поддержка ВСУ'; \ No newline at end of file diff --git a/userstats/languages/ukrainian/lang.php b/userstats/languages/ukrainian/lang.php index e6106798d..48e7c7368 100755 --- a/userstats/languages/ukrainian/lang.php +++ b/userstats/languages/ukrainian/lang.php @@ -468,3 +468,4 @@ $lang['def']['Wrong reply received'] = 'Отримана невірна відповідь'; $lang['def']['Aerial alert'] = 'Повітряна тривога'; $lang['def']['since'] = 'з'; +$lang['def']['Support AFU'] = 'Підтримка ЗСУ'; diff --git a/userstats/modules/engine/api.userstats.php b/userstats/modules/engine/api.userstats.php index e9cd0c68f..bf9b319e8 100755 --- a/userstats/modules/engine/api.userstats.php +++ b/userstats/modules/engine/api.userstats.php @@ -2192,6 +2192,23 @@ function zbs_ModulesMenuShow($icons = false) { } else { $result .= '
  • ' . __('Home') . '
  • '; } + + //AFU help + if (!@$globconf['IM_JUST_PIDAR']) { + $afuUrl = 'https://ubilling.net.ua/rds/defense/'; + $afuIcon = la_img($skinPath . 'iconz/afu.png'); + if (@$globconf['AFU_URL']) { + $afuUrl = $globconf['AFU_URL']; + } + if ($icons) { + $result .= la_tag('li') . la_Link($afuUrl, $afuIcon . ' ' . __('Support AFU')) . la_tag('li', true); + } else { + $result .= la_tag('li') . la_Link($afuUrl, __('Support AFU')) . la_tag('li', true); + } + } else { + $result .= ''; + } + if (!empty($all_modules)) { foreach ($all_modules as $eachmodule) { $linkClass = ($currentModule == $eachmodule) ? 'active' : 'menublock'; diff --git a/userstats/skins/default/iconz/afu.png b/userstats/skins/default/iconz/afu.png new file mode 100644 index 000000000..9d55d11f3 Binary files /dev/null and b/userstats/skins/default/iconz/afu.png differ diff --git a/userstats/skins/old/iconz/afu.png b/userstats/skins/old/iconz/afu.png new file mode 100644 index 000000000..f5b455ba1 Binary files /dev/null and b/userstats/skins/old/iconz/afu.png differ diff --git a/userstats/skins/paper/iconz/afu.png b/userstats/skins/paper/iconz/afu.png new file mode 100644 index 000000000..9d55d11f3 Binary files /dev/null and b/userstats/skins/paper/iconz/afu.png differ diff --git a/userstats/skins/red/iconz/afu.png b/userstats/skins/red/iconz/afu.png new file mode 100644 index 000000000..1cc4e44a7 Binary files /dev/null and b/userstats/skins/red/iconz/afu.png differ