-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom.list.php
38 lines (36 loc) · 1.62 KB
/
room.list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
$count = (int)shell_exec(getcwd() . '/room.count.sh');
$x = 0;
while ($x < $count): $room = (int)shell_exec(getcwd() . '/room.name.sh ' . escapeshellarg(++$x)); ?>
<div class="col">
<div class="card room" id="room-<?php echo $room; ?>" data-room="<?php echo $room; ?>">
<div class="card-header">
<div class="d-flex align-items-center">
<div class="flex-grow-1 ext-name">
<h5><?php echo $room; ?></h5>
</div>
<form class="room-kick" action="room.kick.php" method="post">
<input type="hidden" name="room" value="<?php echo $room; ?>">
<button class="btn btn-danger btn-sm" type="submit" title="<?php echo $i18n['room.kick']; ?>">
<i class="fas fa-xmark fa-fw"></i>
</button>
</form>
</div>
</div>
<div class="card-body" id="users-<?php echo $room; ?>" data-users="<?php echo $room; ?>"></div>
<div class="card-footer">
<form class="user-kick" action="user.kick.php" method="post">
<input type="hidden" name="room" value="<?php echo $room; ?>">
<div class="input-group">
<input class="form-control" type="number" name="user" min="1" step="1"
placeholder="<?php echo $i18n['user.kick.placeholder']; ?>"
aria-label="<?php echo $i18n['user.id']; ?>" required>
<button class="btn btn-outline-danger" type="submit" title="<?php echo $i18n['user.kick']; ?>">
<i class="fas fa-user-xmark fa-fw"></i>
</button>
</div>
</form>
</div>
</div>
</div>
<?php endwhile; ?>