-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmessage.php
More file actions
32 lines (24 loc) · 723 Bytes
/
message.php
File metadata and controls
32 lines (24 loc) · 723 Bytes
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
<?php
$selection = htmlspecialchars($_GET['status']); // Is user joining or leaving. Sanitize user input just in case.
?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneStatus
Beep="yes"
<?php
if ($selection == "available") {
?>
Timeout="0">
<Message Align="center" Size="double" Color="green">Available For Queue</Message>
<?php
}
elseif ($selection == "unavailable") {
?>
Timeout="30">
<Message Align="center" Size="double" Color="red">Unavailable For Queue</Message>
<?php
}
else { // Sanity check so we don't do anything with data that we don't trust.
echo "Error"; // Just used for debugging
}
?>
</YealinkIPPhoneStatus>