File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Live Server: Coming soon!
15
15
Require PHP >= 7.3+
16
16
Require MySQLi >= 5.5+
17
17
18
- ![ Free ] ( https://www.gnu.org/graphics/agplv3-155x51 .png )
18
+ ![ General Public License v3 ] ( https://www.gnu.org/graphics/gplv3-with-text-136x68 .png )
19
19
20
20
## How to get XG Proyect?
21
21
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ private function buildPage(): void
222
222
'v_host ' => '' ,
223
223
'v_user ' => '' ,
224
224
'v_db ' => '' ,
225
- 'v_prefix ' => '' ,
225
+ 'v_prefix ' => 'xgp_ ' ,
226
226
],
227
227
$ this ->langs ->language
228
228
)
Original file line number Diff line number Diff line change 11
11
*/
12
12
namespace application \libraries ;
13
13
14
+ use application \core \enumerators \AllianceRanksEnumerator as AllianceRanks ;
15
+ use application \core \enumerators \SwitchIntEnumerator as SwitchInt ;
14
16
use application \core \Language ;
15
17
use application \core \Template ;
18
+ use application \libraries \alliance \Ranks ;
16
19
use application \libraries \FunctionsLib as Functions ;
17
20
use application \libraries \TimingLibrary as Timing ;
18
21
@@ -122,12 +125,12 @@ public function deleteUser($user_id)
122
125
$ alliance = $ this ->Users_Model ->getAllianceDataByAllianceId ($ user_data ['user_ally_id ' ]);
123
126
124
127
if ($ alliance ['ally_members ' ] > 1 && (isset ($ alliance ['alliance_ranks ' ]) && !is_null ($ alliance ['alliance_ranks ' ]))) {
125
- $ ranks = unserialize ($ alliance ['alliance_ranks ' ]);
128
+ $ ranks = new Ranks ($ alliance ['alliance_ranks ' ]);
126
129
$ userRank = null ;
127
130
128
131
// search for an user that has permission to receive the alliance.
129
- foreach ($ ranks as $ id => $ rank ) {
130
- if ($ rank ['rechtehand ' ] == 1 ) {
132
+ foreach ($ ranks-> getAllRanksAsArray () as $ id => $ rank ) {
133
+ if (isset ( $ rank ['rights ' ][AllianceRanks::right_hand]) && $ rank [ ' rights ' ][AllianceRanks::right_hand] == SwitchInt::on ) {
131
134
$ userRank = $ id ;
132
135
break ;
133
136
}
You can’t perform that action at this time.
0 commit comments