Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions screen/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
header("Location: missing.php?mac={$_GET['mac']}");
exit(0);
}
header("Access-Control-Allow-Origin: http://prelude.concerto-signage.org");
header("Access-Control-Allow-Methods: GET");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Expand Down
2 changes: 2 additions & 0 deletions screen/missing.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* @license GPLv2, see www.gnu.org/licenses/gpl-2.0.html
* @version $Revision$
*/
header("Access-Control-Allow-Origin: http://prelude.concerto-signage.org");
header("Access-Control-Allow-Methods: GET");
header("Refresh: 5; URL=index.php?mac={$_GET['mac']}");
$tmp = str_split(str_pad(preg_replace('/[^0-9A-Fa-f]/', '', $_GET['mac']), 12, "0", STR_PAD_LEFT), 2);
$mac = sprintf("%s:%s:%s:%s:%s:%s", $tmp[0], $tmp[1], $tmp[2], $tmp[3], $tmp[4], $tmp[5])
Expand Down