18 lines
474 B
PHP
18 lines
474 B
PHP
<?php
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
chdir('/var/www/html/api');
|
|
$_GET['k'] = 'DROID2026';
|
|
$_POST['k'] = 'DROID2026';
|
|
$_REQUEST['k'] = 'DROID2026';
|
|
$_GET['action'] = 'status';
|
|
$_SERVER['REQUEST_METHOD'] = 'GET';
|
|
ob_start();
|
|
try {
|
|
require 'wedroid-brain-api.php';
|
|
} catch (Throwable $e) {
|
|
echo json_encode(["error" => $e->getMessage(), "file" => $e->getFile(), "line" => $e->getLine()]);
|
|
}
|
|
$out = ob_get_clean();
|
|
echo $out ?: '{"empty":true}';
|