-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
72 lines (71 loc) · 2.47 KB
/
index.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
//********************************************************************
//* Description: Index page of bbbadmin
//* Author: Automatix <github@unattended.ch>
//* Created at: Tue Aug 31 16:01:24 UTC 2021
//*
//* Copyright (c) 2021 Automatix All rights reserved.
//*
//********************************************************************
namespace BigBlueButton;
if (isset($_GET['sid']))
$serverid = $_GET['sid'];
if (isset($_POST['sid']))
$serverid = $_POST['sid'];
if (!isset($serverid))
$serverid = 1;
require_once('./bbb_load.php');
$server = ServerSelect($sel1, $sel2);
$cfg = $GLOBALS['cfg'];
try {
$bbb = new BigBlueButton($bbburl, $bbbsalt);
}
catch (Exception $e) {
die('ERROR: %s'.$e->getMessage());
}
finally
{
$response = $bbb->getMeetings();
if (!isset($response) || ($response == ''))
{
die(sprintf("<br><center>%s</center><br>", lang('NOSERVER')));
}
if ($response->getReturnCode() !== 'SUCCESS')
{
die(sprintf("<br><center>%s</center><br>", $response->getMessage()));
}
}
?>
<html>
<head>
<title>BBB Admin <?php printf($cfg->copyright); ?></title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="topStats">
<center><table class="main"><tr><td>
<div class="chartWrapper">
<div class="chartLabel"><?php echo lang('MEETINGS'); ?><?php echo $server ?></div>
<div class="chartHolder">
<table class="chartHolder" border="1"><tr><th><?php echo lang('USERNAME'); ?></th><th><?php echo lang('MEETINGNAME'); ?></th><th><?php echo lang('MEETINGID'); ?></th><th><?php echo lang('STARTDATE'); ?></th><th><?php echo lang('USERS'); ?></th><th><?php echo lang('FUNCTIONS'); ?></th></tr>
<?php
if(!empty($response->getRawXml()->meetings->meeting))
{
foreach ($response->getRawXml()->meetings->meeting as $meeting)
{
printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>", $meeting->attendees->attendee->fullName ,$meeting->meetingName, $meeting->meetingID ,$meeting->createDate, $meeting->participantCount, LinkFunctions('1', $serverid, $meeting));
}
}
else
printf('<tr><td colspan="6" style="text-align:center;">'.lang('NOMEETINGS').'</td></tr>');
?>
</tr></table class="chartHolder">
<?php printf("<br><center>%s</center><br>", LinkFunctions('0', $serverid, '')); ?>
</div>
</div>
</td>
</tr></table></center>
</div>
</font>
</body>
</html>