Skip to content

Commit

Permalink
few neccessary things
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed Aug 1, 2024
1 parent 4a1abe2 commit b53aa31
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.7 rev 9156
1.4.7 rev 9157
3 changes: 3 additions & 0 deletions content/updates/configs/1.4.7.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[alter]
OLTSEL_SEARCHBL=0
SIGNAL_IN_PROFILE_COMPACT=0

[userstats]
AFU_URL=""
4 changes: 4 additions & 0 deletions userstats/config/userstats.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions userstats/languages/russian/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,4 @@
$lang['def']['Wrong reply received'] = 'Получен неверный ответ';
$lang['def']['Aerial alert'] = 'Воздушная тревога';
$lang['def']['since'] = 'с';
$lang['def']['Support AFU'] = 'Поддержка ВСУ';
1 change: 1 addition & 0 deletions userstats/languages/ukrainian/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,3 +468,4 @@
$lang['def']['Wrong reply received'] = 'Отримана невірна відповідь';
$lang['def']['Aerial alert'] = 'Повітряна тривога';
$lang['def']['since'] = 'з';
$lang['def']['Support AFU'] = 'Підтримка ЗСУ';
17 changes: 17 additions & 0 deletions userstats/modules/engine/api.userstats.php
Original file line number Diff line number Diff line change
Expand Up @@ -2192,6 +2192,23 @@ function zbs_ModulesMenuShow($icons = false) {
} else {
$result .= '<li><a href="index.php"> ' . __('Home') . '</a></li>';
}

//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 .= '<!-- pidar detected -->';
}

if (!empty($all_modules)) {
foreach ($all_modules as $eachmodule) {
$linkClass = ($currentModule == $eachmodule) ? 'active' : 'menublock';
Expand Down
Binary file added userstats/skins/default/iconz/afu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added userstats/skins/old/iconz/afu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added userstats/skins/paper/iconz/afu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added userstats/skins/red/iconz/afu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b53aa31

Please sign in to comment.