1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/objects/getCaptcha.json.php
2023-01-02 13:14:53 -03:00

17 lines
454 B
PHP

<?php
if (empty($global['systemRootPath'])) {
$global['systemRootPath'] = '../';
}
require_once $global['systemRootPath'] . 'videos/configuration.php';
$captchaImage = getIncludeFileContent($global['systemRootPath'] . 'objects/getCaptcha.php');
//echo $captchaImage;exit;
$obj = new stdClass();
$obj->session_id = session_id();
$obj->base64String = base64_encode($captchaImage);
header('Content-Type: application/json');
die(json_encode($obj));