|
|
|
@ -8,6 +8,8 @@ use Chamilo\PluginBundle\Zoom\MeetingActivity; |
|
|
|
use Chamilo\PluginBundle\Zoom\Recording; |
|
|
|
use Chamilo\PluginBundle\Zoom\Recording; |
|
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require_once __DIR__.'/config.php'; |
|
|
|
|
|
|
|
|
|
|
|
if ('POST' !== $_SERVER['REQUEST_METHOD']) { |
|
|
|
if ('POST' !== $_SERVER['REQUEST_METHOD']) { |
|
|
|
http_response_code(Response::HTTP_NOT_FOUND); // Not found |
|
|
|
http_response_code(Response::HTTP_NOT_FOUND); // Not found |
|
|
|
exit; |
|
|
|
exit; |
|
|
|
@ -16,7 +18,7 @@ if ('POST' !== $_SERVER['REQUEST_METHOD']) { |
|
|
|
// @todo handle non-apache installations |
|
|
|
// @todo handle non-apache installations |
|
|
|
$authorizationHeaderValue = apache_request_headers()['Authorization']; |
|
|
|
$authorizationHeaderValue = apache_request_headers()['Authorization']; |
|
|
|
|
|
|
|
|
|
|
|
require_once __DIR__.'/config.php'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (api_get_plugin_setting('zoom', 'verificationToken') !== $authorizationHeaderValue) { |
|
|
|
if (api_get_plugin_setting('zoom', 'verificationToken') !== $authorizationHeaderValue) { |
|
|
|
http_response_code(Response::HTTP_UNAUTHORIZED); |
|
|
|
http_response_code(Response::HTTP_UNAUTHORIZED); |
|
|
|
|