old htb folders
This commit is contained in:
2023-08-29 21:53:22 +02:00
parent 62ab804867
commit 82b0759f1e
21891 changed files with 6277643 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
if(!is_admin())
{
die(redirect('/home'));
}
if(!isset($_POST['manage_api']) or empty($_POST['manage_api']))
{
die(redirect('/home'));
}
libxml_disable_entity_loader(false);
$dom = new DOMDocument();
$dom->loadXML($_POST['manage_api'], LIBXML_NOENT | LIBXML_DTDLOAD);
$xml = simplexml_import_dom($dom);
header('Content-type: application/json');
echo(curl_api($xml->method, "http://localhost:3000{$xml->uri}", $xml->user));
die();