Skip to content

Commit

Permalink
Update ppv_handler.php
Browse files Browse the repository at this point in the history
  • Loading branch information
WMSPanel authored Dec 25, 2018
1 parent 69a9f08 commit 8497f96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pay-per-view/ppv_handler.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
// Log entire incoming request to see what we have in it.
$fp = fopen('/var/tmp/request.log', 'w');
fwrite($fp, file_get_contents("php://input"));
$post_data = file_get_contents("php://input");
fwrite($fp, $post_data);
fclose($fp);

// Use this object for accessing each viewer's ID, IP and stream name.
$sync_data = json_decode(file_get_contents("php://input"));
$sync_data = json_decode($post_data);

// Return IDs of clients which needs to be denied. Their IDs are 1 and 2 here.
// Those viewers will be disconnected immediatelly and will not be allowed to connect anymore.
Expand Down

0 comments on commit 8497f96

Please sign in to comment.