mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
Replace with get('groups')
This commit is contained in:
parent
fddb18d412
commit
613b710d29
@ -94,7 +94,7 @@ else if (isset($_REQUEST['search'])) {
|
|||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php
|
<?php
|
||||||
$groups = new OTS_Groups_List();
|
$groups = app()->get('groups');
|
||||||
if ($id > 0) {
|
if ($id > 0) {
|
||||||
$account = new OTS_Account();
|
$account = new OTS_Account();
|
||||||
$account->load($id);
|
$account->load($id);
|
||||||
|
@ -25,7 +25,7 @@ if (!hasFlag(FLAG_CONTENT_PAGES) && !superAdmin()) {
|
|||||||
header('X-XSS-Protection:0');
|
header('X-XSS-Protection:0');
|
||||||
|
|
||||||
$name = $p_title = null;
|
$name = $p_title = null;
|
||||||
$groups = new OTS_Groups_List();
|
$groups = app()->get('groups');
|
||||||
|
|
||||||
$php = false;
|
$php = false;
|
||||||
$enable_tinymce = true;
|
$enable_tinymce = true;
|
||||||
|
@ -71,7 +71,7 @@ else if (isset($_REQUEST['search'])) {
|
|||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php
|
<?php
|
||||||
$groups = new OTS_Groups_List();
|
$groups = app()->get('groups');
|
||||||
if ($id > 0) {
|
if ($id > 0) {
|
||||||
$player = new OTS_Player();
|
$player = new OTS_Player();
|
||||||
$player->load($id);
|
$player->load($id);
|
||||||
|
@ -58,7 +58,7 @@ if ($db->hasTable('players')) {
|
|||||||
$player_used = &$player_db;
|
$player_used = &$player_db;
|
||||||
}
|
}
|
||||||
|
|
||||||
$groups = new OTS_Groups_List();
|
$groups = app()->get('groups');
|
||||||
$player_used->setGroupId($groups->getHighestId());
|
$player_used->setGroupId($groups->getHighestId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ if(isset($_REQUEST['redirect']))
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$groups = new OTS_Groups_List();
|
$groups = app()->get('groups');
|
||||||
|
|
||||||
$freePremium = isset($config['lua']['freePremium']) && getBoolean($config['lua']['freePremium']) || $account_logged->getPremDays() == OTS_Account::GRATIS_PREMIUM_DAYS;
|
$freePremium = isset($config['lua']['freePremium']) && getBoolean($config['lua']['freePremium']) || $account_logged->getPremDays() == OTS_Account::GRATIS_PREMIUM_DAYS;
|
||||||
$dayOrDays = $account_logged->getPremDays() == 1 ? 'day' : 'days';
|
$dayOrDays = $account_logged->getPremDays() == 1 ? 'day' : 'days';
|
||||||
|
@ -17,7 +17,7 @@ if(!$canEdit) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$groupsList = new OTS_Groups_List();
|
$groupsList = app()->get('groups');
|
||||||
$groups = [
|
$groups = [
|
||||||
['id' => 0, 'name' => 'Guest'],
|
['id' => 0, 'name' => 'Guest'],
|
||||||
];
|
];
|
||||||
|
@ -50,7 +50,7 @@ if(isset($posts[0]['player_id'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$lookaddons = $db->hasColumn('players', 'lookaddons');
|
$lookaddons = $db->hasColumn('players', 'lookaddons');
|
||||||
$groups = new OTS_Groups_List();
|
$groups = app()->get('groups');
|
||||||
foreach($posts as &$post) {
|
foreach($posts as &$post) {
|
||||||
$post['player'] = new OTS_Player();
|
$post['player'] = new OTS_Player();
|
||||||
$player = $post['player'];
|
$player = $post['player'];
|
||||||
|
@ -14,7 +14,7 @@ $title = 'Support in game';
|
|||||||
if(setting('core.account_country'))
|
if(setting('core.account_country'))
|
||||||
require SYSTEM . 'countries.conf.php';
|
require SYSTEM . 'countries.conf.php';
|
||||||
|
|
||||||
$groups = new OTS_Groups_List();
|
$groups = app()->get('groups');
|
||||||
if(!$groups->count())
|
if(!$groups->count())
|
||||||
{
|
{
|
||||||
echo 'Error while reading groups.xml';
|
echo 'Error while reading groups.xml';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user