Файл: monst/core/pag/group/group_delete.php
Строк: 9
<?
$leader = 0;
if ( $GROUP['leader_id'] == $user['id'] ) {
$leader = 1;
if ( isset($_GET['group_delete']) ) {
if ( !isset($_GET['yes']) ) {
?>
<div style='text-align: center;'>
<?=$lang['group.php']['delete_confirm']?><br/>
<a href='/group?group_delete&yes'><div class='bt_black'><?=$lang['group.php']['yes']?></div></a>
<a href='/group'><div class='bt_black'><?=$lang['group.php']['cancel']?></div></a>
</div>
<br/>
<br/>
<br/>
<?
} else {
for ( $i = 1; $i <= 5; $i++ ) {
if ( isset($GROUP['data'][$i]) AND !empty($GROUP['data'][$i])) {
$_users -> update(
[
'id' => $GROUP['data'][$i]
],
[
'$set' => [
'group_id' => 0
]
]
);
}
}
$_group -> remove(
[
'id' => $GROUP['id']
]
);
g('/main');
}
}
}